/* =====================================================================
 * 小灯泡主题样式 — 轻简风 (clean & minimal，贴近 veimoz)
 * 实白卡片 / 细边框 / 极淡阴影 / 克制留白 / 无紫色
 * ===================================================================== */
:root {
    --sb-primary: #14b8a6;
    --sb-primary-dark: color-mix(in srgb, var(--sb-primary) 76%, #000);
    --sb-primary-soft: color-mix(in srgb, var(--sb-primary) 8%, transparent);
    --sb-primary-faint: color-mix(in srgb, var(--sb-primary) 5%, transparent);
    --sb-primary-border: color-mix(in srgb, var(--sb-primary) 25%, #fff);
    --sb-primary-glow: color-mix(in srgb, var(--sb-primary) 22%, transparent);
    --sb-text: #1f2430;
    --sb-text-soft: #6b7280;
    --sb-muted: #9aa1ad;
    --sb-border: rgba(17, 24, 39, .08);
    --sb-bg: #f4f5f7;
    --sb-card: #ffffff;
    --sb-radius: 14px;
    --sb-radius-sm: 10px;
    --sb-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 10px 30px rgba(17, 24, 39, .05);
    --sb-shadow-hover: 0 4px 10px rgba(17, 24, 39, .06), 0 18px 44px rgba(17, 24, 39, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--sb-text);
    background: var(--sb-bg);
    line-height: 1.72;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--sb-primary); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--sb-primary-dark); }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 按钮 ---------- */
.sb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 40px; padding: 10px 18px; border-radius: var(--sb-radius-sm); border: 1px solid transparent;
    font-size: 14px; font-weight: 700; cursor: pointer;
    color: #fff; background: linear-gradient(135deg, var(--sb-primary), var(--sb-primary-dark));
    box-shadow: 0 6px 16px var(--sb-primary-glow);
    text-decoration: none; transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}
.sb-btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 10px 24px var(--sb-primary-glow); }
.sb-btn-primary { background: linear-gradient(135deg, var(--sb-primary), var(--sb-primary-dark)); }
.sb-btn-ghost { background: #fff; color: var(--sb-text); border-color: var(--sb-border); box-shadow: none; }
.sb-btn-ghost:hover { background: var(--sb-primary-soft); color: var(--sb-primary); border-color: var(--sb-primary-border); box-shadow: none; }
.sb-btn-glass { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.28); box-shadow: none; }
.sb-btn-glass:hover { background: rgba(255,255,255,.24); color: #fff; }
.sb-btn-block { width: 100%; }
.sb-btn-sm { min-height: 34px; padding: 7px 14px; font-size: 13px; }
.sb-btn-buy { background: linear-gradient(135deg, var(--sb-primary), var(--sb-primary-dark)); box-shadow: 0 6px 16px var(--sb-primary-glow); }
.sb-btn-buy:hover { filter: brightness(1.03); }
.sb-btn-download { background: linear-gradient(135deg, #18a058, #29c46d); }

/* ---------- 顶部导航 ---------- */
.sb-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--sb-border);
    box-shadow: 0 1px 0 rgba(17, 24, 39, .02);
}
.sb-header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.sb-logo { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; font-weight: 900; font-size: 19px; color: var(--sb-text); letter-spacing: -.02em; }
.sb-logo:hover { color: var(--sb-text); opacity: .92; }
.sb-logo img { max-height: 42px; display: block; }
.sb-logo-bulb { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--sb-primary-soft); font-size: 17px; }
.sb-nav-wrap { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-left: auto; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; }
.nav-list .list-item { position: relative; }
.nav-list .nav-link {
    display: block; padding: 8px 13px; border-radius: 999px; color: #3a4151;
    font-size: 14px; font-weight: 600; white-space: nowrap;
    transition: background .22s ease, color .22s ease, transform .22s ease;
}
.nav-list .nav-link:hover,
.nav-list .nav-link[aria-current="page"] { background: var(--sb-primary-soft); color: var(--sb-primary); transform: translateY(-1px); }
.dropdown-menus {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 168px; background: #fff;
    border: 1px solid var(--sb-border); border-radius: 12px; box-shadow: var(--sb-shadow);
    list-style: none; padding: 8px; margin: 0; opacity: 0; visibility: hidden; transform: translateY(8px);
    z-index: 20; transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.list-menu:hover > .dropdown-menus { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menus .nav-link { border-radius: 9px; padding: 9px 12px; }
.sb-header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.sb-search { margin: 0; }
.sb-search input {
    height: 40px; border: 1px solid var(--sb-border); border-radius: 999px; padding: 0 15px;
    width: 170px; outline: none; font-size: 13px; background: #fff; transition: width .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.sb-search input:focus { width: 220px; border-color: var(--sb-primary-border); box-shadow: 0 0 0 4px var(--sb-primary-faint); }
.sb-user-menu { position: relative; }
.sb-user-trigger { position: relative; display: flex; width: 40px; height: 40px; border-radius: 50%; }
.sb-avatar { width: 40px; height: 40px; border: 2px solid #fff; border-radius: 50%; cursor: pointer; box-shadow: 0 4px 12px rgba(17,24,39,.12); object-fit: cover; transition: transform .2s ease, box-shadow .2s ease; }
.sb-user-trigger:hover .sb-avatar { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(15, 118, 110, .18); }
.sb-user-online { position: absolute; right: 0; bottom: 1px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #22c55e; }
.sb-user-dropdown {
    position: absolute; right: -8px; top: 52px; width: 316px; padding: 12px; margin: 0; border: 1px solid rgba(15, 23, 42, .08); border-radius: 18px; background: #fff; box-shadow: 0 18px 46px rgba(15, 23, 42, .16);
    opacity: 0; visibility: hidden; transform: translateY(8px); z-index: 30;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.sb-user-dropdown::before { content: ""; position: absolute; top: -6px; right: 19px; width: 11px; height: 11px; border-top: 1px solid rgba(15, 23, 42, .08); border-left: 1px solid rgba(15, 23, 42, .08); background: #fff; transform: rotate(45deg); }
.sb-user-menu:hover .sb-user-dropdown, .sb-user-menu:focus-within .sb-user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.sb-user-profile { position: relative; display: flex; align-items: center; gap: 10px; padding: 5px 4px 13px; color: var(--sb-text); }
.sb-user-profile:hover { color: var(--sb-text); }
.sb-user-dropdown-avatar { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 14px; object-fit: cover; box-shadow: 0 5px 12px rgba(15, 23, 42, .12); }
.sb-user-profile-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.sb-user-profile-copy strong { overflow: hidden; color: var(--sb-text); font-size: 15px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.sb-user-profile-copy small { overflow: hidden; color: var(--sb-text-soft); font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.sb-user-level { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 10px; font-weight: 900; }
.sb-user-level.is-vip { background: rgba(245, 158, 11, .14); color: #b45309; }
.sb-user-vip-banner { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 10px; border-radius: 11px; background: linear-gradient(135deg, #fff7df, #fff1bf); color: #9a5b00; font-size: 12px; font-weight: 800; }
.sb-user-vip-banner:hover { color: #7c4900; filter: saturate(1.05); }
.sb-user-vip-banner.is-active { background: linear-gradient(135deg, #e8faf7, #d6f4ee); color: #0f766e; }
.sb-user-vip-star { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 7px; background: rgba(255, 255, 255, .76); font-size: 12px; }
.sb-user-vip-banner b, .sb-user-logout b { margin-left: auto; font-size: 19px; font-weight: 500; line-height: 1; }
.sb-user-quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; }
.sb-user-quick-links a { display: flex; align-items: center; flex-direction: column; gap: 5px; padding: 8px 3px; border-radius: 10px; color: #64748b; font-size: 11px; font-weight: 700; text-align: center; }
.sb-user-quick-links a:hover { background: var(--sb-primary-faint); color: var(--sb-primary-dark); }
.sb-user-quick-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; font-size: 13px; font-weight: 900; }
.sb-user-quick-icon.is-profile { background: #e0f2fe; color: #0284c7; }
.sb-user-quick-icon.is-purchases { background: #dcfce7; color: #16a34a; }
.sb-user-quick-icon.is-center { background: #fef3c7; color: #d97706; }
.sb-user-logout { display: flex; align-items: center; padding: 9px 10px; border-top: 1px solid var(--sb-border); color: #94a3b8; font-size: 12px; font-weight: 800; }
.sb-user-logout:hover { color: #dc2626; }
.sb-guest-menu { position: relative; }
.sb-guest-trigger { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--sb-border); border-radius: 50%; background: #fff; color: var(--sb-text); cursor: pointer; box-shadow: 0 4px 12px rgba(17,24,39,.06); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.sb-guest-trigger:hover, .sb-guest-menu.is-open .sb-guest-trigger { transform: translateY(-1px); border-color: rgba(20,184,166,.28); box-shadow: 0 8px 18px rgba(15,118,110,.12); }
.sb-guest-trigger-icon { position: relative; width: 17px; height: 17px; border: 2px solid currentColor; border-radius: 50%; opacity: .8; }
.sb-guest-trigger-icon::before { content: ""; position: absolute; left: 50%; top: 3px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; transform: translateX(-50%); }
.sb-guest-trigger-icon::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 9px; height: 4px; border-radius: 9px 9px 4px 4px; background: currentColor; transform: translateX(-50%); }
.sb-guest-dropdown { position: absolute; right: -8px; top: 52px; width: 292px; padding: 12px; border: 1px solid rgba(15,23,42,.08); border-radius: 18px; background: #fff; box-shadow: 0 18px 46px rgba(15,23,42,.16); opacity: 0; visibility: hidden; transform: translateY(8px); z-index: 30; transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.sb-guest-dropdown::before { content: ""; position: absolute; top: -6px; right: 19px; width: 11px; height: 11px; border-top: 1px solid rgba(15,23,42,.08); border-left: 1px solid rgba(15,23,42,.08); background: #fff; transform: rotate(45deg); }
.sb-guest-menu:hover .sb-guest-dropdown, .sb-guest-menu:focus-within .sb-guest-dropdown, .sb-guest-menu.is-open .sb-guest-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.sb-guest-vip-banner { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 9px 10px; border-radius: 11px; background: linear-gradient(135deg, #fff7df, #fff1bf); color: #9a5b00; font-size: 12px; font-weight: 850; }
.sb-guest-vip-banner:hover { color: #7c4900; filter: saturate(1.05); }
.sb-guest-vip-star { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 7px; background: rgba(255,255,255,.78); font-size: 12px; }
.sb-guest-vip-banner b { margin-left: auto; font-size: 19px; font-weight: 500; line-height: 1; }
.sb-guest-heading { margin: 12px 3px 7px; color: #94a3b8; font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.sb-guest-quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.sb-guest-quick-links.is-two { grid-template-columns: repeat(2, 1fr); }
.sb-guest-quick-links a { display: flex; align-items: center; flex-direction: column; gap: 6px; padding: 10px 4px; border-radius: 11px; color: #64748b; font-size: 12px; font-weight: 800; text-align: center; cursor: pointer; }
.sb-guest-quick-links a:hover { background: var(--sb-primary-faint); color: var(--sb-primary-dark); }
.sb-guest-quick-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 9px; font-size: 14px; font-weight: 900; line-height: 1; }
.sb-guest-quick-icon.is-signin { background: #e0f2fe; color: #0284c7; }
.sb-guest-quick-icon.is-signup { background: #dcfce7; color: #16a34a; }
.sb-guest-quick-icon.is-reset { background: #f3e8ff; color: #9333ea; }
.sb-guest-note { margin-top: 9px; padding-top: 10px; border-top: 1px solid var(--sb-border); color: #94a3b8; font-size: 11px; text-align: center; }
.sb-nav-toggle { display: none; flex-direction: column; gap: 5px; background: #fff; border: 1px solid var(--sb-border); border-radius: 10px; cursor: pointer; padding: 10px; }
.sb-nav-toggle span { width: 22px; height: 2px; background: var(--sb-text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.sb-nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sb-nav-toggle.active span:nth-child(2) { opacity: 0; }
.sb-nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首页横幅 ---------- */
.sb-hero {
    position: relative; overflow: hidden; color: #fff;
    padding: 72px 0 66px; background-color: #061421; background-image: linear-gradient(135deg, #20232f 0%, var(--sb-primary) 78%, var(--sb-primary-dark) 100%);
    background-repeat: no-repeat; background-size: cover; background-position: right center;
}
.sb-hero::before,
.sb-hero::after { content: ""; position: absolute; border-radius: 999px; pointer-events: none; }
.sb-hero::before { width: 420px; height: 420px; right: -110px; top: -160px; background: rgba(255,255,255,.10); filter: blur(2px); }
.sb-hero::after { width: 260px; height: 260px; left: 8%; bottom: -150px; background: rgba(255,255,255,.08); }
.sb-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 0; align-items: center; }
.sb-hero-copy { max-width: 880px; }
.sb-hero-badge { display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.sb-hero-badge:hover { color: #fff; background: rgba(255,255,255,.24); }
.sb-hero h1 { margin: 18px 0 14px; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -.03em; font-weight: 900; }
.sb-hero p { max-width: 620px; margin: 0; opacity: .9; font-size: 17px; }
.sb-hero-search { display: flex; gap: 10px; max-width: 620px; margin-top: 28px; padding: 7px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); }
.sb-hero-search input { flex: 1; min-width: 0; height: 48px; border: 0; border-radius: 999px; padding: 0 18px; outline: none; color: #fff; background: transparent; }
.sb-hero-search input::placeholder { color: rgba(255,255,255,.78); }
.sb-hero-search button { height: 48px; border: 0; border-radius: 999px; padding: 0 22px; background: #fff; color: var(--sb-primary); font-weight: 800; cursor: pointer; transition: transform .2s ease; }
.sb-hero-search button:hover { transform: translateY(-1px); }
.sb-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- 主体布局 ---------- */
.sb-main { padding: 16px 0; }
.sb-main > .row { display: flex; flex-wrap: nowrap; gap: 30px; align-items: flex-start; margin: 0; }
/* 仅作用于主页外层布局行：清除 Bootstrap .row 给子元素注入的 width:100% 与栅格 gutter，避免侧边栏被挤到下方 */
.sb-main > .row > * { width: auto; padding-left: 0; padding-right: 0; margin-top: 0; }
.sb-content { flex: 1 1 auto; min-width: 0; }
.sb-home-layout .sb-content { width: 100%; flex-basis: 100%; }
.sb-resource-aside { flex: 0 0 315px; max-width: 315px; }
.sb-section-head { margin: 0 0 4px;  }
.sb-section-head .title-theme { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; min-height: 34px; margin-bottom: 4px; color: var(--sb-text); font-size: 19px; font-weight: 900; }
.sb-section-head .sb-section-title-copy { min-width: 0; }
.sb-section-head h2 { position: relative; margin: 0; padding-left: 12px; font-size: inherit; line-height: 1.35; font-weight: inherit; }
.sb-section-head h2::before { position: absolute; top: 50%; left: 0; width: 4px; height: 18px; border-radius: 99px; background: var(--sb-primary); content: ""; transform: translateY(-50%); }
.sb-section-head .pull-right { flex: 0 0 auto; }
.sb-section-desc { margin: 5px 0 0 12px; color: #93a0b1; font-size: 12px; line-height: 1.55; font-weight: 400; }
.sb-section-more { display: inline-flex; align-items: center; gap: 1px; padding: 5px 9px; border: 1px solid #e5ebf2; border-radius: 8px; background: #f8fafc; color: #728197; font-size: 12px; font-weight: 700; transition: .2s ease; }
.sb-section-more:hover { border-color: color-mix(in srgb, var(--sb-primary) 30%, #e5ebf2); background: color-mix(in srgb, var(--sb-primary) 8%, #fff); color: var(--sb-primary); }

/* ---------- 资源卡片网格 ---------- */
.sb-resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.sb-home-layout .sb-resource-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---------- 首页模块（自定义分类板块） ---------- */
.sb-home-module { margin-bottom: 32px; }
.sb-section-more:hover { opacity: .82; }

/* 列表模式：一行一条 */
.sb-list { display: flex; flex-direction: column; gap: 12px; }
.sb-list-item {
    display: flex; align-items: center; gap: 14px; padding: 12px 14px;
    background: var(--sb-card); border: 1px solid var(--sb-border); border-radius: var(--sb-radius-sm); box-shadow: var(--sb-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sb-list-item:hover { transform: translateY(-2px); box-shadow: var(--sb-shadow-hover); border-color: rgba(20,184,166,.2); }
.sb-list-thumb {
    flex: 0 0 auto; width: 56px; height: 56px; border-radius: 10px; overflow: hidden;
    background-size: cover; background-position: center; background-color: var(--sb-primary);
    display: flex; align-items: center; justify-content: center; font-size: 24px; text-decoration: none; color: #fff;
}
.sb-list-body { flex: 1 1 auto; min-width: 0; }
.sb-list-title {
    display: block; font-size: 15px; font-weight: 700; color: var(--sb-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-list-title:hover { color: var(--sb-primary); }
.sb-list-meta { margin-top: 4px; font-size: 12px; color: var(--sb-text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-list-side { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
@media (max-width: 560px) {
    .sb-list-item { flex-wrap: wrap; }
    .sb-list-side { width: 100%; justify-content: space-between; }
}
.sb-card {
    position: relative; background: var(--sb-card); border: 1px solid var(--sb-border); border-radius: var(--sb-radius); overflow: hidden;
    box-shadow: var(--sb-shadow); transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease; display: flex; flex-direction: column;
}
.sb-card:hover { transform: translateY(-6px); box-shadow: var(--sb-shadow-hover); border-color: rgba(20, 184, 166,.22); }
.sb-card-cover { position: relative; display: block; height: 178px; background-size: cover; background-position: center; background-color: var(--sb-primary); overflow: hidden; }
.sb-card-cover--empty { background: linear-gradient(135deg, var(--sb-primary), #5eead4); }
.sb-card-cover--empty::after { content: "💡"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 54px; opacity: .9; }
.sb-card-type { position: absolute; top: 13px; left: 13px; z-index: 1; background: rgba(255,255,255,.92); color: var(--sb-primary); padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.sb-card-badge { position: absolute; top: 13px; right: 13px; z-index: 1; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; box-shadow: 0 8px 18px rgba(24,160,88,.22); }
.sb-card-badge--owned { background: linear-gradient(135deg, #18a058, #2acb72); }
.sb-card-body { padding: 16px 16px 6px; flex: 1; }
.sb-card-title { font-size: 16px; margin: 0 0 10px; line-height: 1.45; font-weight: 800; letter-spacing: -.01em; }
.sb-card-title a { color: var(--sb-text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-card-title a:hover { color: var(--sb-primary); }
.sb-card-desc {
    margin: -2px 0 10px;
    font-size: 12px;
    line-height: 1.65;
    color: #7b8794;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sb-card-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--sb-text-soft); }
.sb-card-date, .sb-card-views { display: inline-flex; align-items: center; gap: 4px; }
.sb-card-date::before, .sb-card-views::before { content: ""; width: 1px; height: 11px; background: var(--sb-border); margin-right: 6px; }
.sb-card-date i, .sb-card-views i { color: var(--sb-primary); }
.sb-card-meta a,
.loglist-sort a { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 9px; background: var(--sb-primary-faint); color: var(--sb-text-soft); }
.sb-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 16px; }
.sb-card-price { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.sb-price { color: #ff4d4f; font-weight: 900; font-size: 19px; letter-spacing: -.02em; }
.sb-price--free { color: #18a058; font-size: 15px; }
.sb-price-original { color: var(--sb-muted); text-decoration: line-through; font-size: 13px; }

/* ---------- 分页 / 空态 ---------- */
.sb-pagination { margin-top: 30px; text-align: center; }
.sb-pagination a, .sb-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; margin: 0 4px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--sb-border); color: var(--sb-text); box-shadow: 0 4px 12px rgba(17,24,39,.04); }
.sb-pagination a:hover { background: var(--sb-primary); border-color: var(--sb-primary); color: #fff; }
.sb-empty { text-align: center; padding: 70px 20px; color: var(--sb-text-soft); background: #fff; border: 1px dashed rgba(20, 184, 166,.22); border-radius: var(--sb-radius); }

/* ---------- 文章详情 ---------- */
.sb-log-main .sb-log-content { background: #fff; border: 1px solid var(--sb-border); border-radius: var(--sb-radius); padding: 30px; box-shadow: var(--sb-shadow); }
.sb-log-title { font-size: 28px; margin: 0 0 12px; letter-spacing: -.02em; font-weight: 900; }
.sb-log-meta { font-size: 13px; color: var(--sb-text-soft); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.sb-log-meta a { color: var(--sb-text-soft); }
.sb-log-type { background: var(--sb-primary-soft); color: var(--sb-primary); padding: 3px 11px; border-radius: 999px; font-weight: 800; }
.sb-log-body { margin-top: 20px; font-size: 15px; }
.sb-log-body { color: #405168; font-size: 16px; line-height: 1.9; word-break: break-word; }
.sb-log-body > :first-child { margin-top: 0; }.sb-log-body > :last-child { margin-bottom: 0; }
.sb-log-body p { margin: 0 0 1.25em; }
.sb-log-body h1, .sb-log-body h2, .sb-log-body h3, .sb-log-body h4 { position: relative; margin: 1.7em 0 .72em; color: #24364c; font-weight: 900; line-height: 1.35; letter-spacing: -.018em; }
.sb-log-body h1 { padding-bottom: .38em; border-bottom: 1px solid #e4ebf2; font-size: 1.78em; }.sb-log-body h2 { padding: 0 0 0 13px; font-size: 1.46em; }.sb-log-body h2::before { position: absolute; top: .18em; bottom: .18em; left: 0; width: 4px; border-radius: 99px; background: var(--sb-primary); content: ""; }.sb-log-body h3 { font-size: 1.22em; }.sb-log-body h4 { color: #40546b; font-size: 1.05em; }
.sb-log-body a { color: var(--sb-primary); font-weight: 700; text-decoration: underline; text-decoration-color: var(--sb-primary-border); text-underline-offset: 3px; }.sb-log-body a:hover { color: var(--sb-primary-dark); text-decoration-color: currentColor; }
.sb-log-body ul, .sb-log-body ol { margin: 0 0 1.3em; padding-left: 1.45em; }.sb-log-body li { margin: .35em 0; padding-left: .18em; }.sb-log-body li::marker { color: var(--sb-primary); font-weight: 800; }.sb-log-body ul ul, .sb-log-body ol ol, .sb-log-body ul ol, .sb-log-body ol ul { margin: .38em 0 .2em; }
.sb-log-body blockquote { position: relative; margin: 1.35em 0; padding: 14px 18px 14px 21px; border: 1px solid var(--sb-primary-border); border-left: 4px solid var(--sb-primary); border-radius: 0 12px 12px 0; background: var(--sb-primary-faint); color: #527066; }.sb-log-body blockquote::before { position: absolute; top: 3px; left: 10px; color: var(--sb-primary-glow); font-family: Georgia, serif; font-size: 42px; line-height: 1; content: "“"; }.sb-log-body blockquote > :last-child { margin-bottom: 0; }.sb-log-body blockquote p { position: relative; margin-bottom: .65em; }
.sb-log-body :not(pre) > code { padding: .18em .45em; border: 1px solid #e6eaf0; border-radius: 5px; background: #f6f8fb; color: #d25555; font-family: Consolas, Monaco, monospace; font-size: .86em; }
.sb-log-body pre { margin: 1.35em 0; padding: 18px 20px; overflow: auto; border-radius: 13px; background: #17243a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); color: #dce9f8; font-family: Consolas, Monaco, monospace; font-size: 13px; line-height: 1.75; -webkit-overflow-scrolling: touch; }.sb-log-body pre code { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; }
.sb-log-body hr { height: 1px; margin: 2em 0; border: 0; background: #e7edf3; }
.sb-log-body table { width: 100%; margin: 1.35em 0; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid #e2e9f0; border-radius: 10px; font-size: .9em; }.sb-log-body th, .sb-log-body td { padding: 10px 12px; border-right: 1px solid #e8edf3; border-bottom: 1px solid #e8edf3; text-align: left; }.sb-log-body th { background: #f5f8fb; color: #40536a; font-weight: 800; }.sb-log-body tr:last-child td { border-bottom: 0; }.sb-log-body th:last-child, .sb-log-body td:last-child { border-right: 0; }
.sb-log-body img.sb-image-previewable { cursor: zoom-in; }
.sb-log-body img.sb-image-previewable:focus-visible { outline: 3px solid var(--sb-primary-border); outline-offset: 4px; border-radius: 4px; }
body.sb-lightbox-open { overflow: hidden; }
.sb-image-lightbox {
    position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column;
    padding: 12px 20px; background: transparent; opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}
.sb-image-lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.sb-image-lightbox-toolbar {
    position: relative; z-index: 3; flex: 0 0 auto; margin: 5px auto 0;
    display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px; background: rgba(15, 23, 42, .86); box-shadow: 0 8px 22px rgba(15, 23, 42, .2);
}
.sb-image-lightbox-toolbar button, .sb-image-lightbox-toolbar a {
    width: 30px; height: 28px; padding: 0; border: 0; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer;
}
.sb-image-lightbox-toolbar button:hover, .sb-image-lightbox-toolbar a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.sb-image-lightbox-toolbar [data-image-action="close"] { margin-left: 2px; background: rgba(239, 68, 68, .82); font-size: 18px; }
.sb-image-lightbox-toolbar [data-image-action="close"]:hover { background: #ef4444; }
.sb-image-lightbox-scale { min-width: 38px; color: rgba(255, 255, 255, .78); font-size: 11px; font-weight: 800; text-align: center; }
.sb-image-lightbox-stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.sb-image-lightbox-viewport {
    width: calc(100% - 130px); height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center;
    overflow: hidden; touch-action: none; cursor: zoom-in;
}
.sb-image-lightbox-viewport.is-zoomed { cursor: grab; }
.sb-image-lightbox-viewport.is-dragging { cursor: grabbing; }
.sb-image-lightbox-viewport img {
    display: block; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; transform-origin: center;
    border-radius: 8px; box-shadow: 0 22px 65px rgba(15, 23, 42, .32); transition: opacity .15s ease;
}
.sb-image-lightbox.is-loading .sb-image-lightbox-viewport img { opacity: .3; }
.sb-image-lightbox-nav {
    position: absolute; top: 50%; z-index: 2; width: 46px; height: 62px; margin-top: -31px; border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px; background: rgba(15, 23, 42, .78); color: #fff; font-size: 38px; line-height: 1; cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .16); transition: background .2s ease, transform .2s ease;
}
.sb-image-lightbox-nav:hover { background: rgba(15, 23, 42, .94); transform: scale(1.04); }
.sb-image-lightbox-nav.is-prev { left: 4px; }
.sb-image-lightbox-nav.is-next { right: 4px; }
.sb-image-lightbox-thumbs {
    flex: 0 0 auto; max-width: min(920px, calc(100vw - 32px)); margin: 0 auto; padding: 4px;
    display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: thin;
    border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; background: rgba(15, 23, 42, .82); box-shadow: 0 8px 22px rgba(15, 23, 42, .16);
}
.sb-image-lightbox-thumb { flex: 0 0 44px; width: 44px; height: 38px; padding: 2px; border: 2px solid transparent; border-radius: 7px; background: transparent; cursor: pointer; opacity: .58; transition: opacity .2s ease, border-color .2s ease, transform .2s ease; }
.sb-image-lightbox-thumb:hover { opacity: .9; transform: translateY(-1px); }
.sb-image-lightbox-thumb.is-active { opacity: 1; border-color: #2dd4bf; }
.sb-image-lightbox-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 5px; }
@media (max-width: 640px) {
    .sb-image-lightbox { padding: 8px; }
    .sb-image-lightbox-toolbar { max-width: calc(100vw - 16px); margin-top: 4px; gap: 1px; padding: 3px; }
    .sb-image-lightbox-toolbar button, .sb-image-lightbox-toolbar a { width: 28px; height: 27px; font-size: 13px; }
    .sb-image-lightbox-toolbar [data-image-action="close"] { font-size: 17px; }
    .sb-image-lightbox-scale { min-width: 36px; font-size: 10px; }
    .sb-image-lightbox-viewport { width: calc(100% - 82px); }
    .sb-image-lightbox-viewport img { border-radius: 5px; }
    .sb-image-lightbox-nav { width: 36px; height: 48px; margin-top: -24px; border-radius: 10px; font-size: 30px; }
    .sb-image-lightbox-nav.is-prev { left: 0; }
    .sb-image-lightbox-nav.is-next { right: 0; }
    .sb-image-lightbox-thumbs { max-width: calc(100vw - 16px); padding: 3px; gap: 3px; }
    .sb-image-lightbox-thumb { flex-basis: 40px; width: 40px; height: 35px; }
}
.sb-article-vote { position: relative; margin: 14px 0 26px; padding: 0; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; display: flex; align-items: center; justify-content: center; }
.sb-article-vote-actions { display: flex; align-items: center; justify-content: center; gap: 10px; }
.sb-vote-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 13px; border: 1px solid rgba(15, 23, 42, .08); border-radius: 11px; background: rgba(255, 255, 255, .9); color: #64748b; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 5px 14px rgba(15, 23, 42, .04); transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease; }
.sb-vote-btn:hover { transform: translateY(-1px); color: var(--sb-primary); border-color: var(--sb-primary-border); box-shadow: 0 9px 20px var(--sb-primary-faint); }
.sb-vote-btn:disabled { cursor: wait; opacity: .65; transform: none; }
.sb-vote-btn em { min-width: 12px; font-style: normal; font-size: 12px; color: inherit; }
.sb-vote-btn.is-active { color: var(--sb-primary-dark); border-color: var(--sb-primary-border); background: var(--sb-primary-soft); }
.sb-vote-dislike.is-active { color: #b45309; border-color: rgba(245, 158, 11, .3); background: rgba(254, 243, 199, .82); }
.sb-vote-collect.is-active { color: #c2410c; border-color: rgba(249, 115, 22, .27); background: rgba(255, 237, 213, .82); }
.sb-vote-icon { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; }
.sb-vote-icon-like::before { content: "\2665"; }
.sb-vote-icon-dislike::before { content: "\2193"; font-weight: 900; }
.sb-vote-icon-collect::before { content: "\2605"; }
.sb-vote-divider { width: 1px; height: 25px; margin: 0 2px; background: rgba(15, 23, 42, .1); }
.sb-vote-message { position: absolute; left: 50%; bottom: -12px; z-index: 2; max-width: calc(100% - 30px); padding: 7px 12px; border-radius: 999px; background: var(--sb-primary-dark); color: #fff; font-size: 12px; line-height: 1; opacity: 0; pointer-events: none; transform: translate(-50%, 5px); transition: opacity .2s ease, transform .2s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-vote-message.is-visible { opacity: 1; transform: translate(-50%, 0); }
.sb-vote-message.is-error { background: #b45309; }
.sb-log-tags .tags { display: inline-block; margin-right: 6px; padding: 3px 11px; background: var(--sb-primary-faint); border-radius: 999px; font-size: 12px; color: var(--sb-text-soft); }
.sb-neighbor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 30px 0 26px; }
.sb-neighbor > span { min-width: 0; }
.sb-neighbor > span:only-child { grid-column: 1 / -1; }
.sb-neighbor .neighbor-link { position: relative; min-height: 102px; padding: 17px 18px; display: flex; flex-direction: column; justify-content: center; gap: 7px; overflow: hidden; border: 1px solid var(--sb-border); border-radius: 14px; background: linear-gradient(135deg, #fff, #f8fbfb); color: var(--sb-text); box-shadow: 0 5px 16px rgba(15, 23, 42, .035); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.sb-neighbor .neighbor-link::after { content: ""; position: absolute; top: 0; bottom: 0; width: 3px; background: var(--sb-primary); opacity: 0; transition: opacity .2s ease; }
.sb-neighbor .prev-log .neighbor-link::after { left: 0; }
.sb-neighbor .next-log .neighbor-link::after { right: 0; }
.sb-neighbor .neighbor-link:hover { color: var(--sb-text); transform: translateY(-2px); border-color: rgba(20, 184, 166, .25); background: linear-gradient(135deg, #fff, #f0fdfa); box-shadow: 0 12px 26px rgba(15, 118, 110, .09); }
.sb-neighbor .neighbor-link:hover::after { opacity: 1; }
.sb-neighbor .neighbor-dir { display: inline-flex; align-items: center; gap: 6px; color: var(--sb-primary-dark); font-size: 12px; font-weight: 900; line-height: 1.3; }
.sb-neighbor .neighbor-dir .iconfont { font-size: 17px; line-height: 1; }
.sb-neighbor .neighbor-title { display: -webkit-box; overflow: hidden; color: #334155; font-size: 14px; font-weight: 800; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.sb-neighbor .next-log .neighbor-link { align-items: flex-end; text-align: right; background: linear-gradient(225deg, #fff, #f8fbfb); }
.sb-neighbor .next-log .neighbor-link:hover { background: linear-gradient(225deg, #fff, #f0fdfa); }

.comment-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.comment-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s ease, transform .2s ease;
}
.comment-like-btn:hover { color: #f59e0b; transform: translateY(-1px); }
.comment-like-btn .iconfont { font-size: 13px; }
.comment-like-btn .comment-like-count { font-style: normal; min-width: 16px; color: inherit; }
.comment-like-btn.is-liked,
.comment-like-btn:disabled {
    color: #f59e0b;
    cursor: default;
    opacity: 1;
    transform: none;
}

/* ---------- 文章评论 ---------- */
#comments { margin-top: 34px; }
#comments .comment-post { margin: 0 0 28px; padding: 20px; border: 1px solid var(--sb-border); border-radius: 16px; background: linear-gradient(135deg, #fff, #f8fcfb); box-shadow: 0 8px 22px rgba(15, 23, 42, .035); }
#comments .sb-comment-form-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
#comments .sb-comment-form-title { color: var(--sb-text); font-size: 15px; font-weight: 800; }
#comments .sb-comment-reply-hint { display: inline-flex; align-items: center; max-width: 68%; padding: 5px 9px; border-radius: 999px; background: var(--sb-primary-faint); color: var(--sb-primary-dark); font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#comments .comment-post.is-replying { border-color: var(--sb-primary-border); }
#comments .commentform { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
#comments .comment-post #comment { width: 100%; height: 92px; min-height: 92px; margin: 0; padding: 13px 14px; resize: vertical; border: 1px solid rgba(15, 23, 42, .1); border-radius: 12px; background: #fff; color: var(--sb-text); font: inherit; font-size: 14px; line-height: 1.7; outline: 0; box-shadow: none; transition: border-color .2s ease, box-shadow .2s ease; }
#comments .comment-post #comment:focus { border-color: var(--sb-primary-border); box-shadow: 0 0 0 4px var(--sb-primary-faint); }
#comments .comment-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 10px; margin: 0; }
#comments .com_control { width: 100%; height: 42px; margin: 0; padding: 0 12px; border: 1px solid rgba(15, 23, 42, .1); border-radius: 10px; background: #fff; color: var(--sb-text); font: inherit; font-size: 13px; outline: 0; transition: border-color .2s ease, box-shadow .2s ease; }
#comments .com_control:focus { border-color: var(--sb-primary-border); box-shadow: 0 0 0 4px var(--sb-primary-faint); }
#comments .com_submit_p { display: flex; align-items: center; gap: 9px; width: 100%; margin: 0; }
#comments #comment_submit, #comments #cancel-reply { height: 40px; margin: 0; padding: 0 17px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
#comments #comment_submit { background: linear-gradient(135deg, var(--sb-primary), var(--sb-primary-dark)); color: #fff; box-shadow: 0 6px 15px var(--sb-primary-glow); }
#comments #comment_submit:hover { transform: translateY(-1px); box-shadow: 0 9px 20px var(--sb-primary-glow); }
#comments #cancel-reply { border-color: var(--sb-border); background: #fff; color: #64748b; box-shadow: none; }
#comments #cancel-reply:hover { background: #f8fafc; color: var(--sb-text); }
.sb-log-content .comment-header { margin: 4px 0 15px; padding-bottom: 11px; border-bottom: 1px solid var(--sb-border); color: var(--sb-text); font-size: 16px; }
.sb-log-content .comment { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--sb-border); float: none; }
.sb-log-content .comment .avatar { display: block !important; grid-column: 1; grid-row: 1; width: 40px !important; min-width: 40px !important; max-width: 40px !important; height: 40px !important; min-height: 40px !important; max-height: 40px !important; margin: 0 !important; float: none !important; overflow: hidden !important; }
.sb-log-content .comment .avatar img { display: block !important; width: 40px !important; min-width: 40px !important; max-width: 40px !important; height: 40px !important; min-height: 40px !important; max-height: 40px !important; margin: 0 !important; border-radius: 12px; object-fit: cover !important; box-shadow: 0 3px 10px rgba(15, 23, 42, .1); }
.sb-log-content .comment .comment-infos { position: relative; grid-column: 2; grid-row: 1; min-width: 0; margin: 0 !important; padding: 13px 124px 16px 14px; border: 1px solid rgba(15, 23, 42, .06); border-radius: 12px; background: #f8fafc; color: var(--sb-text); }
.sb-log-content .comment .arrow { display: none; }
.sb-log-content .comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; text-align: left; }
.sb-log-content .comment-author-name { color: #334155; font-size: 13px; font-weight: 800; }
.sb-log-content .comment-reply-to { color: #94a3b8; font-size: 12px; }
.sb-log-content .comment-reply-to i { color: var(--sb-primary-dark); font-style: normal; font-weight: 700; }
.sb-log-content .comment .comment-time { color: #94a3b8; font-size: 12px; }
.sb-log-content .comment .comment-content { margin: 8px 0 0; color: #475569; font-size: 14px; line-height: 1.75; text-align: left; word-break: break-word; }
.sb-log-content .comment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; min-height: 22px; margin-top: 10px; }
.sb-log-content .comment-reply { position: absolute; top: 13px; right: 78px; display: flex; align-items: center; min-height: 22px; margin: 0; }
.sb-log-content .comment-like-btn { position: absolute; top: 13px; right: 14px; display: inline-flex; align-items: center; min-width: 0; margin: 0; white-space: nowrap; }
.sb-log-content .com-reply { padding: 0; border: 0; background: transparent; color: #64748b; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; transition: color .2s ease; }
.sb-log-content .com-reply:hover { color: var(--sb-primary-dark); }
.sb-log-content .comment-children-list { grid-column: 2 / -1; margin: 13px 0 0; padding-left: 14px; border-left: 2px solid var(--sb-primary-border); }
.sb-log-content .comment-children-list .comment-children-list { grid-column: 1 / -1; margin-left: -14px; padding-left: 0; border-left: 0; }
.sb-log-content .comment-children { margin: 0; padding: 0 0 13px; border: 0; }
.sb-log-content .comment-children:last-child { padding-bottom: 0; border-bottom: 0; }
.sb-log-content .comment-children .comment-infos { background: #fff; }
.sb-log-content .comment .comment-post { width: 100%; margin: 14px 0 0; padding: 14px; border: 1px solid var(--sb-border); border-radius: 12px; background: #fff; box-shadow: none; }
.sb-log-content .comment .sb-comment-form-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.sb-log-content .comment .sb-comment-form-title { color: var(--sb-text); font-size: 14px; font-weight: 800; }
.sb-log-content .comment .sb-comment-reply-hint { display: inline-flex; align-items: center; max-width: 62%; padding: 4px 8px; border-radius: 999px; background: var(--sb-primary-faint); color: var(--sb-primary-dark); font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-log-content .comment .commentform { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.sb-log-content .comment .comment-post #comment { width: 100%; height: 82px; min-height: 82px; margin: 0; padding: 11px 12px; resize: vertical; border: 1px solid rgba(15, 23, 42, .1); border-radius: 10px; background: #fff; color: var(--sb-text); font: inherit; font-size: 14px; line-height: 1.7; outline: 0; }
.sb-log-content .comment .comment-post #comment:focus { border-color: var(--sb-primary-border); box-shadow: 0 0 0 4px var(--sb-primary-faint); }
.sb-log-content .comment .comment-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 10px; }
.sb-log-content .comment .com_control { width: 100%; height: 40px; padding: 0 11px; border: 1px solid rgba(15, 23, 42, .1); border-radius: 10px; background: #fff; color: var(--sb-text); font: inherit; font-size: 13px; outline: 0; }
.sb-log-content .comment .com_submit_p { display: flex; align-items: center; gap: 9px; width: 100%; margin: 0; }
.sb-log-content .comment #comment_submit, .sb-log-content .comment #cancel-reply { height: 38px; margin: 0; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.sb-log-content .comment #comment_submit { background: linear-gradient(135deg, var(--sb-primary), var(--sb-primary-dark)); color: #fff; }
.sb-log-content .comment #cancel-reply { border-color: var(--sb-border); background: #fff; color: #64748b; }
.sb-log-content #pagenavi { margin-top: 20px; }
.sb-log-content #pagenavi a, .sb-log-content #pagenavi span { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; margin-right: 5px; padding: 0 9px; border: 1px solid var(--sb-border); border-radius: 8px; background: #fff; color: #64748b; font-size: 12px; }

@media (max-width: 768px) {
    #comments { margin-top: 28px; }
    #comments .comment-post { margin-bottom: 22px; padding: 16px; border-radius: 14px; }
    #comments .comment-post #comment { height: 88px; min-height: 88px; }
    #comments .comment-info { grid-template-columns: 1fr; }
    #comments .sb-comment-form-bar { align-items: flex-start; }
    #comments .sb-comment-reply-hint { max-width: 62%; }
    .sb-log-content .comment-children-list { padding-left: 10px; }
    .sb-log-content .comment-children-list .comment-children-list { margin-left: -10px; }
    .sb-log-content .comment { grid-template-columns: 34px minmax(0, 1fr); gap: 0 10px; }
    .sb-log-content .comment .avatar, .sb-log-content .comment .avatar img { width: 34px !important; min-width: 34px !important; max-width: 34px !important; height: 34px !important; min-height: 34px !important; max-height: 34px !important; border-radius: 10px; }
    .sb-log-content .comment .comment-infos { padding: 11px 110px 14px 12px; }
    .sb-log-content .comment .comment-info { grid-template-columns: 1fr; }
    .sb-log-content .comment-reply { top: 10px; right: 72px; }
    .sb-log-content .comment-like-btn { top: 10px; right: 12px; }
}

/* ---------- 资源侧边栏 ---------- */
/* 文章页侧边栏整体跟随滚动，资源卡片(购买入口)始终在顶部可见，不截断内容 */
.sb-log-main .sb-resource-aside {
    position: sticky; top: 88px; align-self: flex-start;
}

.sb-resource-card { background: #fff; border: 1px solid var(--sb-border); border-radius: var(--sb-radius); padding: 22px; box-shadow: var(--sb-shadow); }
.sb-resource-aside .sb-resource-card { margin-bottom: 20px; }
.sb-resource-aside { color: #475569; }
.sb-resource-aside h3, .sb-resource-aside h4, .sb-resource-aside b, .sb-resource-aside strong { color: var(--sb-text); }
.sb-resource-aside a:not(.sb-btn) { color: #475569; }
.sb-resource-aside a:not(.sb-btn):hover { color: var(--sb-text); }
.sb-resource-aside .sb-pay-type { background: #f1f5f9; color: #475569; }
.sb-resource-aside .sb-pay-thumb-empty { color: #475569; }
.sb-resource-aside .sb-download-panel .sb-download-alert { background: #f1f5f9; color: #475569; }
.sb-author-card { margin: 0 0 20px; padding: 18px; border: 1px solid var(--sb-border); border-radius: var(--sb-radius); background: linear-gradient(145deg, #fff, #f4fbfa); box-shadow: var(--sb-shadow); }
.sb-author-card-title { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--sb-border); color: var(--sb-text); font-size: 15px; font-weight: 900; }
.sb-author-card-head { display: flex; align-items: center; gap: 11px; }
.sb-author-card-head img { width: 52px; height: 52px; flex: 0 0 auto; border: 3px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, .12); object-fit: cover; }
.sb-author-card-head div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.sb-author-card-head strong { overflow: hidden; color: var(--sb-text); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.sb-author-card-head span { color: var(--sb-text-soft); font-size: 12px; }
.sb-author-card-intro { display: -webkit-box; margin: 13px 0; overflow: hidden; color: var(--sb-text-soft); font-size: 13px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.sb-author-card-intro.is-empty { color: #94a3b8; }
.sb-author-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--sb-border); color: var(--sb-text-soft); font-size: 12px; }
.sb-author-card-foot b { color: var(--sb-text); font-size: 16px; }
.sb-author-card-foot a { color: #475569; font-size: 12px; font-weight: 800; }
.sb-author-card-foot a:hover { color: var(--sb-text); }
/* 正文下方购买/下载卡片 */
.sb-log-buy-card { margin: 14px 0 4px; padding: 14px 16px; }
.sb-log-buy-card .sb-price-block { margin-bottom: 10px; }
.sb-log-buy-card .sb-price { font-size: 26px; }
.sb-log-buy-card .sb-price-original { font-size: 13px; }
.sb-log-buy-card .sb-btn-block { padding: 9px 14px; font-size: 14px; }
.sb-log-buy-card .sb-purchase-notice { margin-top: 10px; padding: 10px; font-size: 12px; line-height: 1.6; }
.sb-log-buy-card .sb-contact { margin-top: 8px; font-size: 12px; }
.sb-log-buy-card .sb-download-alert { padding: 9px 12px; margin-bottom: 10px; font-size: 13px; }
.sb-log-buy-card .sb-pancode { font-size: 12px; }
.sb-pay-flexbox-card { padding: 16px; overflow: hidden; }
.sb-pay-flexbox { display: flex; gap: 20px; align-items: stretch; }
.sb-pay-thumb { position: relative; flex: 0 0 190px; min-height: 180px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #eef6f4, #f7f3e8); }
.sb-pay-thumb img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; display: block; }
.sb-pay-thumb-empty { height: 100%; min-height: 180px; display: flex; align-items: center; justify-content: center; color: var(--sb-primary-dark); font-size: 38px; background: linear-gradient(135deg, var(--sb-primary-soft), rgba(246,195,67,.22)); }
.sb-pay-demo { position: absolute; left: 12px; right: 12px; bottom: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 12px; border-radius: 10px; background: rgba(246,195,67,.94); color: #5f3b00; font-size: 13px; font-weight: 900; box-shadow: 0 10px 22px rgba(15,23,42,.16); }
.sb-pay-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.sb-pay-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.sb-pay-title { margin: 0; padding-right: 8px; font-size: 19px; line-height: 1.25; font-weight: 900; color: var(--sb-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sb-pay-desc { margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--sb-text-soft); }
.sb-pay-type { flex: 0 0 auto; padding: 4px 9px; border-radius: 999px; background: var(--sb-primary-faint); color: var(--sb-primary); font-size: 12px; font-weight: 800; }
.sb-pay-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.sb-pay-price { color: #e11d48; font-size: 36px; line-height: 1; font-weight: 950; letter-spacing: 0; }
.sb-pay-price span { margin-right: 2px; font-size: 16px; font-weight: 900; }
.sb-pay-sale { display: inline-flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.sb-pay-sale span { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: #fff2c2; color: #9a5b00; font-size: 12px; font-weight: 900; }
.sb-pay-sale del, .sb-pay-original { color: #94a3b8; font-size: 13px; }
.sb-pay-vip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-pay-vip-pill { display: inline-flex; align-items: center; gap: 5px; padding: 8px 11px; border-radius: 10px; background: #f8fafc; border: 1px solid var(--sb-border); color: #475569; font-size: 13px; font-weight: 800; }
.sb-pay-vip-pill .iconfont { color: #d99a16; }
.sb-pay-action-row { display: flex; align-items: flex-end; justify-content: flex-end; flex-wrap: wrap; gap: 8px 12px; margin-top: auto; }
.sb-pay-price-row > .sb-pay-action-row { margin-top: 0; margin-left: auto; align-items: center; }
.sb-pay-action { min-width: 150px; justify-content: center; padding: 11px 20px; }
.sb-pay-extra { width: 100%; text-align: right; color: #94a3b8; font-size: 12px; }
.sb-pay-foot { margin-top: 2px; }
.sb-pay-foot .sb-purchase-notice { margin-top: 0; padding: 9px 11px; font-size: 12px; line-height: 1.5; }
.sb-pay-foot .sb-contact { margin-top: 8px; font-size: 12px; }
.sb-pay-download-panel .sb-download-alert { margin-bottom: 10px; }
.sb-pay-download-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sb-pay-download-actions .sb-btn { margin-bottom: 0; }
.sb-pay-download-panel .sb-pancode { margin-top: 10px; }
.sb-free-download-row { display: flex; align-items: center; gap: 10px; }
.sb-free-download-row .sb-download-alert { flex: 1 1 auto; margin: 0; padding: 9px 11px; }
.sb-free-download-row .sb-pay-download-actions { flex: 0 0 auto; }
.sb-free-download-row .sb-pay-download-actions .sb-btn { margin: 0; white-space: nowrap; }
.sb-free-download-row .sb-dl-total { flex: 0 0 auto; margin: 0; white-space: nowrap; }
@media (max-width: 768px) {
    .sb-pay-flexbox { display: block; }
    .sb-pay-thumb { display: none; }
    .sb-pay-main { gap: 14px; }
    .sb-pay-head { display: block; }
    .sb-pay-title { font-size: 17px; }
    .sb-pay-price { font-size: 34px; }
    .sb-pay-action-row { justify-content: stretch; }
    .sb-pay-action { width: 100%; }
    .sb-pay-extra { text-align: center; }
    .sb-free-download-row { flex-wrap: wrap; }
    .sb-free-download-row .sb-download-alert { flex-basis: 100%; }
}
.sb-purchase-panel .sb-price-block { text-align: center; margin-bottom: 16px; }
.sb-purchase-panel .sb-price { font-size: 36px; font-weight: 900; color: #ff4d4f; }
.sb-purchase-panel .sb-price-original { font-size: 15px; color: var(--sb-muted); text-decoration: line-through; margin-left: 8px; }
.sb-purchase-notice { margin-top: 14px; padding: 13px; background: var(--sb-primary-faint); border-radius: 12px; font-size: 13px; color: var(--sb-text-soft); white-space: pre-line; line-height: 1.8; }
.sb-pay-pending { margin-bottom: 14px; padding: 11px 14px; border-radius: 12px; background: #fff7e6; color: #d97706; font-weight: 800; text-align: center; font-size: 13px; }
.sb-pay-pending-actions { display: flex; gap: 10px; margin: -4px 0 14px; }
.sb-pay-pending-actions .sb-btn { flex: 1; margin: 0; white-space: nowrap; }
.sb-contact { margin-top: 10px; font-size: 13px; color: var(--sb-text-soft); }
.sb-download-panel .sb-download-alert { background: #e8f7ee; color: #18a058; padding: 11px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 800; }
.sb-download-panel .sb-btn { margin-bottom: 10px; }
/* 文章页下载次数（全站累计） */
.sb-dl-total { margin-top: 4px; font-size: 12px; color: #94a3b8; text-align: right; }
.sb-pancode { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sb-pancode input { flex: 1; border: 1px solid var(--sb-border); border-radius: 12px; padding: 8px 10px; }
/* 侧边栏简约版购买/下载卡片（位于资源参数下方） */
.sb-aside-mini { margin-top: 16px; }
.sb-aside-mini .sb-btn-block { padding: 9px 12px; font-size: 14px; }
.sb-aside-mini.sb-download-panel .sb-btn-block { margin-bottom: 8px; }
.sb-resource-params { margin-top: 18px; border-top: 1px solid var(--sb-border); padding-top: 14px; }
.sb-resource-card > .sb-resource-params:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.sb-resource-params h4 { font-size: 15px; margin: 0 0 10px; }
.sb-resource-params ul { list-style: none; margin: 0; padding: 0; }
.sb-resource-params li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--sb-border); font-size: 14px; }
.sb-resource-params li span { color: var(--sb-text-soft); }

/* ---------- 用户中心 ---------- */
.sb-user-header { text-align: center; padding: 26px 0 16px; }
.sb-user-avatar { width: 88px; height: 88px; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--sb-shadow); object-fit: cover; }
.sb-user-name { font-size: 22px; font-weight: 900; margin-top: 8px; }
.sb-user-email { color: var(--sb-text-soft); font-size: 13px; }
.sb-user-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.sb-user-tab { padding: 10px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--sb-border); color: var(--sb-text); font-weight: 800; }
.sb-user-tab.active { background: var(--sb-primary); color: #fff; border-color: var(--sb-primary); }
.sb-user-section { background: #fff; border: 1px solid var(--sb-border); border-radius: var(--sb-radius); padding: 26px; box-shadow: var(--sb-shadow); }
.sb-user-section h3 { margin: 0 0 18px; }
/* 会员中心 */
.sb-user-vip-state { margin-top: 8px; font-size: 13px; color: var(--sb-text-soft); }
.sb-user-vip-state.is-vip { color: var(--sb-primary); font-weight: 800; }
.sb-vip-badge { display: inline-block; margin-left: 8px; padding: 1px 9px; font-size: 12px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #f6c343, #ee9b1a); border-radius: 999px; vertical-align: middle; }
.sb-alert-error { background: #fde8e8; color: #c0392b; border: 1px solid #f5c6c6; }
.sb-vip-status-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 14px; background: #f6f8fa; border: 1px solid var(--sb-border); margin-bottom: 18px; }
.sb-vip-status-card.is-vip { background: linear-gradient(135deg, rgba(20,184,166,.12), rgba(246,195,67,.18)); border-color: rgba(20,184,166,.4); }
.sb-vip-status-label { font-size: 18px; font-weight: 900; }
.sb-vip-status-card.is-vip .sb-vip-status-label { color: var(--sb-primary); }
.sb-vip-status-desc { font-size: 13px; color: var(--sb-text-soft); margin-top: 4px; }
.sb-vip-status-tag { padding: 5px 12px; border-radius: 999px; background: var(--sb-primary); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.sb-vip-benefits { margin-bottom: 18px; }
.sb-vip-benefits h4, .sb-vip-plans-title { font-size: 15px; margin: 0 0 12px; }
.sb-vip-benefits ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.sb-vip-benefits li { font-size: 13px; color: var(--sb-text); display: flex; align-items: center; gap: 6px; }
.sb-vip-benefits li .iconfont { color: var(--sb-primary); }
.sb-vip-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.sb-vip-plan { border: 1px solid var(--sb-border); border-radius: 14px; padding: 18px 14px; text-align: center; background: #fff; }
.sb-vip-plan-name { font-weight: 800; font-size: 15px; }
.sb-vip-plan-price { color: #ff4d4f; font-weight: 900; font-size: 24px; margin: 8px 0 2px; }
.sb-vip-plan-price span { font-size: 14px; }
.sb-vip-plan-period { font-size: 12px; color: var(--sb-text-soft); margin-bottom: 12px; }
.sb-alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; }
.sb-alert-success { background: #e8f7ee; color: #18a058; }
.sb-profile-form { max-width: 540px; }
.sb-avatar-editor { display: flex; align-items: center; gap: 15px; margin: 0 0 22px; padding: 15px; border: 1px solid var(--sb-border); border-radius: 14px; background: #f8fafc; }
.sb-profile-avatar-preview { width: 68px; height: 68px; flex: 0 0 auto; border: 3px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, .1); object-fit: cover; }
.sb-avatar-editor-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 5px; }
.sb-avatar-editor-copy strong { color: var(--sb-text); font-size: 14px; }
.sb-avatar-editor-copy span { color: var(--sb-text-soft); font-size: 12px; line-height: 1.5; }
.sb-avatar-editor-actions { display: flex; gap: 8px; margin-top: 4px; }
.sb-avatar-editor-actions .sb-btn { margin: 0; }
.sb-avatar-editor-actions button:disabled { cursor: not-allowed; opacity: .55; }
.sb-form-row { margin-bottom: 16px; }
.sb-form-row label { display: block; font-size: 13px; color: var(--sb-text-soft); margin-bottom: 6px; }
.sb-form-row input, .sb-form-row textarea { width: 100%; border: 1px solid var(--sb-border); border-radius: 12px; padding: 11px 13px; font-size: 14px; outline: none; background: #fff; }
.sb-form-row input:focus, .sb-form-row textarea:focus { border-color: rgba(20, 184, 166,.35); box-shadow: 0 0 0 4px var(--sb-primary-faint); }
@media (max-width: 520px) {
    .sb-avatar-editor { align-items: flex-start; padding: 13px; }
    .sb-avatar-editor-actions { flex-wrap: wrap; }
}

/* ---------- 侧边栏组件 ---------- */
.widget { background: #fff; border: 1px solid var(--sb-border); border-radius: var(--sb-radius); padding: 18px; margin-bottom: 20px; box-shadow: var(--sb-shadow); }
.widget-title { font-size: 15px; font-weight: 900; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--sb-border); }
.widget-title h3 { margin: 0; font-size: 15px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; font-size: 14px; }
.widget .tag-container span { display: inline-block; margin: 4px 4px 4px 0; }
.widget .tags-side { background: var(--sb-primary-faint); padding: 4px 10px; border-radius: 999px; font-size: 12px; color: var(--sb-text-soft); }
.widget input[type="search"], .widget .search { width: 100%; border: 1px solid var(--sb-border); border-radius: 12px; padding: 9px 10px; margin-bottom: 8px; outline: none; }
.widget input[type="submit"] { width: 100%; padding: 9px; border: 0; border-radius: 12px; background: var(--sb-primary); color: #fff; font-weight: 800; cursor: pointer; }
.side-cover-image { position: relative; min-height: 100px; border-radius: 12px; overflow: hidden; background-size: cover; background-position: center; }
.side-title-container { position: absolute; inset: auto 0 0; padding: 24px 12px 10px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.62)); }
.side-title-container a { color: #fff; font-weight: 700; }

/* ---------- 页脚 / 工具栏 ---------- */
.sb-footer { background: #fff; border-top: 1px solid var(--sb-border); margin-top: 14px; padding: 30px 0; }
.sb-footer-inner { text-align: center; font-size: 13px; color: var(--sb-text-soft); }
.sb-footer-theme-credit { margin-top: 6px; color: #9aa6b5; font-size: 12px; }.sb-footer-theme-credit a { color: #74869a; font-weight: 700; }.sb-footer-theme-credit a:hover { color: var(--sb-primary); }
.sb-home-friend-links { margin-top: 30px; padding: 18px 20px; border: 1px solid #e7eef5; border-radius: 15px; background: #fff; }.sb-home-friend-links-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 12px; }.sb-home-friend-links-head h2 { margin: 0; color: #3f5066; font-size: 15px; font-weight: 900; }.sb-home-friend-links-head span { color: #9aa8b8; font-size: 11px; }.sb-home-friend-links-list { display: flex; flex-wrap: wrap; gap: 8px 18px; }.sb-home-friend-links-list a { color: #738399; font-size: 12px; }.sb-home-friend-links-list a:hover { color: var(--sb-primary); }
.sb-side-toolbar { position: fixed; right: 18px; bottom: 26px; z-index: 60; }
.sb-side-btn { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--sb-shadow); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--sb-primary); font-size: 20px; transition: transform .2s ease; }
.sb-side-btn:hover { transform: translateY(-3px); }

/* ---------- 404 / 密码页 ---------- */
.sb-404 { text-align: center; padding: 80px 20px; }
.sb-404-code { font-size: 84px; font-weight: 900; color: var(--sb-primary); }
.sb-pw-box { max-width: 430px; margin: 70px auto; background: #fff; border: 1px solid var(--sb-border); border-radius: var(--sb-radius); padding: 34px; box-shadow: var(--sb-shadow); text-align: center; }
.sb-pw-box input { width: 100%; border: 1px solid var(--sb-border); border-radius: 12px; padding: 12px; margin: 14px 0; font-size: 15px; text-align: center; }
.sb-pw-back { display: inline-block; margin-top: 10px; color: var(--sb-text-soft); }

/* ---------- 认证弹窗 ---------- */
.auth-modal-mask { position: fixed; inset: 0; background: rgba(17,24,39,.45); z-index: 1000; backdrop-filter: blur(6px); }
.auth-modal { position: fixed; inset: 0; z-index: 1001; display: flex; align-items: center; justify-content: center; }
.auth-modal-card { position: relative; width: 380px; max-width: 92vw; background: #fff; border: 1px solid var(--sb-border); border-radius: var(--sb-radius); padding: 28px; box-shadow: var(--sb-shadow-hover); }
.auth-modal-close { position: absolute; right: 16px; top: 13px; border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--sb-text-soft); }
.auth-modal-head h3 { margin: 0 0 16px; font-size: 22px; font-weight: 900; }
.auth-modal-alert { display: none; margin-bottom: 12px; padding: 10px 12px; border: 1px solid rgba(220, 38, 38, .14); border-radius: 12px; background: #fff1f2; color: #be123c; font-size: 13px; line-height: 1.55; }
.auth-modal-alert.show { display: block; }
.auth-modal-alert.show.success { border-color: rgba(5, 150, 105, .16); background: #ecfdf5; color: #047857; }
.auth-form-row { margin-bottom: 12px; }
.auth-form-row input { width: 100%; border: 1px solid var(--sb-border); border-radius: 12px; padding: 12px 13px; font-size: 14px; outline: none; }
.auth-form-row input:focus { border-color: rgba(20, 184, 166,.35); box-shadow: 0 0 0 4px var(--sb-primary-faint); }
.auth-captcha-row { display: flex; gap: 8px; }
.auth-captcha-row img { height: 44px; border-radius: 12px; cursor: pointer; }
.auth-inline-row { display: flex; gap: 8px; }
.auth-inline-btn { white-space: nowrap; }
.auth-checkbox { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sb-text-soft); margin-bottom: 14px; }
.auth-submit { width: 100%; padding: 12px; border: 0; border-radius: 12px; background: var(--sb-primary); color: #fff; font-weight: 900; font-size: 15px; cursor: pointer; }
.auth-modal-switch { margin-top: 14px; text-align: center; font-size: 13px; }
.auth-modal-switch a { color: var(--sb-text-soft); margin: 0 6px; }
.auth-login-ext { margin-top: 10px; }
.auth-reset-step-2 { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .sb-hero-inner { grid-template-columns: 1fr; }
    .sb-search { display: none; }
}
@media (max-width: 980px) {
    .sb-resource-aside { flex-basis: 100%; max-width: 100%; }
    .sb-main > .row { flex-direction: column; align-items: stretch; }
    .sb-main > .row > * { width: 100%; }
    .sb-resource-card { position: static !important; }
    .sb-log-main .sb-resource-aside { position: static; }
}
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .sb-main { padding: 22px 0 38px; }
    .sb-log-main > .row { gap: 18px; }
    .sb-log-main .sb-log-content { padding: 20px 18px 24px; border-radius: 16px; }
    .sb-log-header { padding-bottom: 1px; }
    .sb-log-title { margin-bottom: 10px; font-size: 23px; line-height: 1.42; letter-spacing: -.015em; }
    .sb-log-meta { gap: 6px 12px; font-size: 12px; line-height: 1.55; }
    .sb-log-type { padding: 2px 9px; }
    .sb-log-content > hr { margin: 17px 0 0; }
    .sb-log-body { margin-top: 16px; font-size: 15px; line-height: 1.85; }
    .sb-log-body h1 { font-size: 1.58em; }.sb-log-body h2 { padding-left: 11px; font-size: 1.34em; }.sb-log-body h3 { font-size: 1.16em; }.sb-log-body h4 { font-size: 1.03em; }
    .sb-log-body ul, .sb-log-body ol { padding-left: 1.28em; }.sb-log-body blockquote { margin: 1.15em 0; padding: 12px 13px 12px 17px; font-size: .96em; }.sb-log-body pre { margin: 1.15em 0; padding: 14px; border-radius: 10px; font-size: 12px; }.sb-log-body th, .sb-log-body td { padding: 8px 10px; }
    .sb-log-body > :first-child { margin-top: 0; }
    .sb-log-body > :last-child { margin-bottom: 0; }
    .sb-log-body img, .sb-log-body video, .sb-log-body iframe { max-width: 100%; height: auto; }
    .sb-log-body pre { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .sb-log-body table { display: block; max-width: 100%; overflow-x: auto; white-space: nowrap; }
    .sb-header-inner { min-height: 64px; }
    .sb-nav-toggle { display: flex; margin-left: auto; }
    .sb-nav-wrap {
        position: absolute; top: 64px; left: 12px; right: 12px; background: #fff;
        flex-direction: column; align-items: stretch; padding: 14px; gap: 12px;
        border: 1px solid var(--sb-border); border-radius: 16px; opacity: 0; visibility: hidden; transform: translateY(-8px); box-shadow: var(--sb-shadow);
        transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    }
    .sb-nav-wrap.open { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav-list .nav-link { border-radius: 12px; }
    .dropdown-menus { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 2px 0 2px 14px; margin-top: 0; background: transparent; display: none; }
    .list-menu:hover > .dropdown-menus { display: block; }
    .sb-header-actions { width: 100%; justify-content: stretch; flex-wrap: wrap; }
    .sb-header-actions .sb-btn { flex: 1 1 auto; }
    .sb-user-menu { margin-left: auto; }
    .sb-user-dropdown { right: 0; width: min(316px, calc(100vw - 40px)); }
    .sb-user-dropdown::before { right: 14px; }
    .sb-guest-menu { margin-left: auto; }
    .sb-guest-dropdown { right: 0; width: min(292px, calc(100vw - 40px)); }
    .sb-guest-dropdown::before { right: 14px; }
    .sb-search { display: block; width: 100%; }
    .sb-search input, .sb-search input:focus { width: 100%; }
    .sb-hero { padding: 34px 0 30px; background-size: cover; background-position: right center; }
    .sb-hero h1 { font-size: 36px; }
    .sb-hero .sb-hero-search { display: none; }
    .sb-section-head { display: flex; flex-direction: column; }
    .sb-section-desc { margin-top: 8px; }
    .sb-resource-grid, .sb-home-layout .sb-resource-grid { grid-template-columns: 1fr; gap: 18px; }
    .sb-card-cover { height: 190px; }
    .sb-log-buy-card { margin: 24px 0 0; padding: 16px; border-radius: 14px; }
    .sb-pay-main { gap: 12px; }
    .sb-pay-title { font-size: 17px; line-height: 1.42; }
    .sb-pay-desc { margin-top: 5px; line-height: 1.65; }
    .sb-pay-price-row { gap: 10px; }
    .sb-pay-price { font-size: 32px; }
    .sb-pay-action-row { width: 100%; margin-top: 2px; }
    .sb-pay-action { min-height: 44px; }
    .sb-pay-vip-row { gap: 7px; }
    .sb-pay-vip-pill { width: 100%; padding: 9px 10px; }
    .sb-pay-foot { margin-top: 2px; }
    .sb-pay-foot .sb-purchase-notice { padding: 10px; line-height: 1.7; }
    .sb-pay-download-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
    .sb-pay-download-actions .sb-btn { width: 100%; min-height: 44px; margin: 0; }
    .sb-pay-download-panel .sb-download-alert { margin-bottom: 10px; }
    .sb-pancode { flex-wrap: wrap; gap: 8px; }
    .sb-pancode input { min-width: 0; flex: 1 1 130px; }
    .sb-dl-total { margin-top: 8px; text-align: left; }
    .sb-article-vote { margin: 12px 0 22px; padding: 0; }
    .sb-article-vote-actions { width: 100%; gap: 7px; }
    .sb-vote-btn { flex: 1 1 0; min-width: 0; padding: 0 7px; }
    .sb-log-tags { margin: 0 0 18px; line-height: 2.15; }
    .sb-log-tags .tags { margin-right: 4px; }
    .sb-neighbor { grid-template-columns: 1fr; gap: 10px; margin: 22px 0; }
    .sb-neighbor .neighbor-link { min-height: 82px; padding: 14px 15px; border-radius: 12px; }
    .sb-neighbor .neighbor-title { font-size: 13px; }
    .sb-resource-aside .sb-resource-card { margin-bottom: 16px; padding: 18px; }
}

@media (max-width: 420px) {
    .container { padding: 0 12px; }
    .sb-main { padding-top: 16px; }
    .sb-log-main .sb-log-content { padding: 18px 14px 22px; border-radius: 14px; }
    .sb-log-title { font-size: 21px; }
    .sb-log-meta { gap: 5px 10px; }
    .sb-log-buy-card { padding: 14px; }
    .sb-vote-btn { font-size: 12px; }
}

/* ---------- User workspace ---------- */
.sb-uc-workspace { max-width: 1180px; }
.sb-uc-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 178px; overflow: hidden; padding: 30px 36px; border-radius: 22px; color: #fff; background: linear-gradient(118deg, #1d4f91, #3176c9 58%, #8ab7eb); box-shadow: 0 18px 42px rgba(32, 85, 160, .2); }
.sb-uc-hero::before { position: absolute; top: -150px; right: 11%; width: 380px; height: 380px; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.055), 0 0 0 90px rgba(255,255,255,.04); content: ""; }
.sb-uc-hero.is-vip { background: linear-gradient(118deg, #7c4b11, #c77b1b 55%, #e8b65a); box-shadow: 0 18px 42px rgba(173, 110, 24, .2); }
.sb-uc-hero-glow { position: absolute; width: 270px; height: 270px; right: 0; bottom: -160px; border-radius: 50%; background: rgba(255,255,255,.18); filter: blur(8px); }
.sb-uc-profile-intro, .sb-uc-hero-account { position: relative; z-index: 1; }
.sb-uc-profile-intro { display: flex; align-items: center; gap: 18px; min-width: 0; }
.sb-uc-hero-avatar { width: 82px; height: 82px; flex: 0 0 auto; border: 4px solid rgba(255,255,255,.88); border-radius: 24px; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,.15); object-fit: cover; }
.sb-uc-eyebrow, .sb-uc-content-head > div > span, .sb-uc-membership-strip span { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 900; letter-spacing: .14em; opacity: .72; }
.sb-uc-profile-intro h1 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 27px; font-weight: 900; }
.sb-uc-profile-intro h1 span { padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 10px; letter-spacing: .08em; }
.sb-uc-hero-edit { display: inline-block; margin-top: 11px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; color: #fff; font-size: 11px; font-weight: 800; }.sb-uc-hero-edit:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.12); }
.sb-uc-profile-intro p { max-width: 530px; margin: 6px 0 0; overflow: hidden; font-size: 13px; line-height: 1.7; opacity: .86; text-overflow: ellipsis; white-space: nowrap; }
.sb-uc-hero-account { display: flex; min-width: 150px; flex-direction: column; padding-left: 23px; border-left: 1px solid rgba(255,255,255,.28); }
.sb-uc-hero-account span { font-size: 11px; opacity: .75; }.sb-uc-hero-account strong { margin: 3px 0; font-size: 17px; }.sb-uc-hero-account b { margin-top: 6px; font-size: 12px; font-weight: 800; }.sb-uc-hero-account small { margin-top: 3px; font-size: 11px; line-height: 1.55; opacity: .82; }.sb-uc-hero-account a { width: fit-content; margin-top: 10px; padding: 6px 11px; border-radius: 8px; background: rgba(255,255,255,.94); color: #2a68ac; font-size: 11px; font-weight: 900; }.sb-uc-hero.is-vip .sb-uc-hero-account a { color: #a36315; }
.sb-uc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 22px; margin-top: 22px; }
.sb-uc-sidebar { position: sticky; top: 18px; overflow: hidden; border: 1px solid #e8eef7; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(15, 41, 83, .055); }
.sb-uc-side-user { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid #edf2f7; background: linear-gradient(135deg, #f6faff, #fff); }.sb-uc-side-user img { width: 38px; height: 38px; border-radius: 13px; object-fit: cover; }.sb-uc-side-user div { display: flex; min-width: 0; flex-direction: column; }.sb-uc-side-user strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.sb-uc-side-user span { margin-top: 2px; color: #7f8ba3; font-size: 11px; }
.sb-uc-menu { display: flex; flex-direction: column; padding: 11px 9px 13px; }.sb-uc-menu-label { margin: 13px 8px 5px; color: #a1acbd; font-size: 10px; font-weight: 900; letter-spacing: .1em; }.sb-uc-menu a { display: flex; align-items: center; gap: 9px; min-height: 39px; padding: 7px 9px; border-radius: 10px; color: #5f6d83; font-size: 13px; font-weight: 700; }.sb-uc-menu a:hover { color: #245fa8; background: #f3f8ff; }.sb-uc-menu a.is-active { color: #fff; background: linear-gradient(135deg, #2a71c0, #4993dc); box-shadow: 0 7px 14px rgba(50,119,198,.2); }.sb-uc-menu i { width: 19px; color: #5284ba; font-style: normal; font-size: 17px; text-align: center; }.sb-uc-menu a.is-active i { color: #fff; }.sb-uc-menu em { min-width: 20px; margin-left: auto; padding: 1px 5px; border-radius: 999px; background: #edf3fb; color: #7391b4; font-size: 10px; font-style: normal; text-align: center; }.sb-uc-menu a.is-active em { background: rgba(255,255,255,.2); color: #fff; }
.sb-uc-side-logout { display: flex; align-items: center; justify-content: space-between; margin: 0 9px 10px; padding: 10px 9px; border-top: 1px solid #edf2f7; color: #98a4b6; font-size: 12px; font-weight: 700; }.sb-uc-side-logout:hover { color: #d9534f; }.sb-uc-side-logout b { font-size: 18px; font-weight: 400; }
.sb-uc-content { min-width: 0; }.sb-uc-content > .sb-alert { margin: 0 0 14px; }.sb-uc-content-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 1px 1px 15px; }.sb-uc-content-head h2 { margin: 0; color: #1c2a42; font-size: 23px; font-weight: 900; letter-spacing: -.02em; }.sb-uc-content-head p { margin: 5px 0 0; color: #7d899b; font-size: 13px; }.sb-uc-content-head > div > span { color: #4b82bc; opacity: 1; }
.sb-uc-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }.sb-uc-stat-card { display: flex; min-height: 116px; flex-direction: column; justify-content: center; padding: 16px 17px; border: 1px solid transparent; border-radius: 15px; background: #fff; box-shadow: 0 7px 18px rgba(29,54,90,.045); transition: transform .18s ease, box-shadow .18s ease; }.sb-uc-stat-card:hover { transform: translateY(-3px); box-shadow: 0 13px 24px rgba(29,54,90,.1); }.sb-uc-stat-card span { color: #6d7d94; font-size: 12px; font-weight: 700; }.sb-uc-stat-card strong { margin: 4px 0 2px; color: #1e2d48; font-size: 25px; line-height: 1.15; }.sb-uc-stat-card small { color: #93a0b1; font-size: 11px; }.sb-uc-stat-card.is-blue { border-color: #dcecff; background: #f8fbff; }.sb-uc-stat-card.is-pink { border-color: #fde6ef; background: #fffafd; }.sb-uc-stat-card.is-green { border-color: #d9f1e9; background: #f9fdfa; }.sb-uc-stat-card.is-gold { border-color: #f8ebcf; background: #fffdf8; }
.sb-uc-notice { display: flex; align-items: flex-start; gap: 13px; margin-top: 16px; padding: 16px 18px; border: 1px solid #d8e8fa; border-radius: 16px; background: linear-gradient(100deg, #f5faff, #fbfdff); }.sb-uc-notice-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: #3d82c6; color: #fff; font-size: 17px; font-weight: 900; box-shadow: 0 5px 12px rgba(61,130,198,.22); }.sb-uc-notice-copy { min-width: 0; }.sb-uc-notice-copy span { display: block; color: #6993bf; font-size: 9px; font-weight: 900; letter-spacing: .14em; }.sb-uc-notice-copy h3 { margin: 2px 0 4px; color: #315a85; font-size: 14px; font-weight: 900; }.sb-uc-notice-copy p { margin: 0; color: #66809c; font-size: 12px; line-height: 1.75; }
.sb-uc-dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }.sb-uc-panel { overflow: hidden; border: 1px solid #e8eef7; border-radius: 17px; background: #fff; box-shadow: 0 8px 22px rgba(27,55,96,.045); }.sb-uc-list-panel, .sb-uc-orders, .sb-uc-vip-panel { padding: 4px 18px; }.sb-uc-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 10px; }.sb-uc-panel-head h3 { margin: 0; color: #24324a; font-size: 15px; font-weight: 900; }.sb-uc-panel-head a { color: #4c84bf; font-size: 12px; font-weight: 700; }
.sb-uc-log-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 18px; border-top: 1px solid #f0f3f8; }.sb-uc-log-cover { width: 52px; height: 42px; flex: 0 0 auto; overflow: hidden; border-radius: 9px; background: linear-gradient(135deg, #dceafd, #9cc4e9); background-position: center; background-size: cover; }.sb-uc-log-cover.is-empty::after { display: grid; height: 100%; place-items: center; color: rgba(42,104,172,.7); content: "◇"; }.sb-uc-log-copy { min-width: 0; flex: 1; }.sb-uc-log-copy h4 { margin: 0; overflow: hidden; color: #344158; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }.sb-uc-log-copy h4 a:hover { color: #3075bb; }.sb-uc-log-meta { display: flex; gap: 8px; margin-top: 4px; overflow: hidden; color: #98a5b5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.sb-uc-log-open { color: #5284ba; font-size: 11px; font-weight: 700; }.sb-uc-empty-mini { padding: 36px 18px; color: #9aa7b8; font-size: 13px; text-align: center; }
.sb-uc-membership-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 21px 24px; border-radius: 17px; background: linear-gradient(120deg, #edf6ff, #f9fcff); color: #24456e; }.sb-uc-membership-strip.is-vip { background: linear-gradient(120deg, #fff6e2, #fffbf3); color: #8d5a17; }.sb-uc-membership-strip h3 { margin: 0; font-size: 17px; }.sb-uc-membership-strip p { margin: 5px 0 0; font-size: 12px; opacity: .74; }.sb-uc-membership-strip a { flex: 0 0 auto; padding: 9px 14px; border-radius: 10px; background: #3579be; color: #fff; font-size: 12px; font-weight: 800; }.sb-uc-membership-strip.is-vip a { background: #c7832d; }
.sb-uc-order { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 2px; border-bottom: 1px solid #edf2f7; }.sb-uc-order:last-child { border-bottom: 0; }.sb-uc-order > div:first-child { display: flex; min-width: 0; flex-direction: column; gap: 4px; }.sb-uc-order-type { width: fit-content; padding: 2px 7px; border-radius: 999px; background: #edf5ff; color: #4e83bc; font-size: 10px; font-weight: 800; }.sb-uc-order strong { overflow: hidden; color: #41506a; font-family: Consolas, monospace; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.sb-uc-order small { color: #98a5b5; font-size: 11px; }.sb-uc-order-side { display: flex; align-items: flex-end; flex-direction: column; gap: 5px; white-space: nowrap; }.sb-uc-order-side b { color: #334863; font-size: 15px; }.sb-uc-order-side span { padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; }.sb-uc-order-side .is-paid { background: #e8f8ef; color: #298457; }.sb-uc-order-side .is-pending { background: #fff4df; color: #b67a23; }
.sb-uc-inner-title { margin: 24px 0 13px; color: #2d3a50; font-size: 16px; font-weight: 900; }.sb-uc-vip-panel { padding: 18px; }.sb-uc-vip-panel .sb-vip-hero { margin: 0; }.sb-uc-vip-panel .sb-vip-perks { grid-template-columns: repeat(3, 1fr); }.sb-uc-vip-panel .sb-vip-perk > span { color: #218463; font-weight: 900; }.sb-uc-content .sb-profile-form { max-width: 640px; padding: 22px; }
.sb-uc-security-panel { padding: 0; }.sb-security-note { display: flex; flex-direction: column; gap: 4px; margin: 0 0 20px; padding: 13px 15px; border: 1px solid #dceafb; border-radius: 12px; background: #f5faff; }.sb-security-note b { color: #386d9f; font-size: 13px; }.sb-security-note span { color: #7187a0; font-size: 12px; line-height: 1.55; }.sb-security-status { min-height: 18px; margin: 11px 0 0; font-size: 12px; font-weight: 700; }.sb-security-status.is-success { color: #168358; }.sb-security-status.is-error { color: #c44747; }.sb-profile-form .sb-btn:disabled { cursor: not-allowed; opacity: .65; }
@media (max-width: 960px) { .sb-uc-layout { grid-template-columns: 1fr; }.sb-uc-sidebar { position: static; display: flex; align-items: center; overflow: visible; padding: 9px; }.sb-uc-side-user, .sb-uc-side-logout, .sb-uc-menu-label { display: none; }.sb-uc-menu { display: flex; flex: 1; flex-direction: row; gap: 5px; overflow-x: auto; padding: 0; scrollbar-width: none; }.sb-uc-menu::-webkit-scrollbar { display: none; }.sb-uc-menu a { flex: 0 0 auto; min-height: 35px; padding: 7px 10px; white-space: nowrap; }.sb-uc-menu em { display: none; } }
@media (max-width: 700px) { .sb-uc-workspace { margin-top: 16px; }.sb-uc-hero { min-height: 0; align-items: flex-start; flex-direction: column; padding: 23px 20px; border-radius: 17px; gap: 16px; }.sb-uc-hero-account { width: 100%; padding: 11px 0 0; border-top: 1px solid rgba(255,255,255,.22); border-left: 0; }.sb-uc-hero-avatar { width: 62px; height: 62px; border-radius: 19px; }.sb-uc-profile-intro h1 { font-size: 21px; }.sb-uc-profile-intro p { white-space: normal; }.sb-uc-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }.sb-uc-stat-card { min-height: 96px; padding: 13px; }.sb-uc-stat-card strong { font-size: 21px; }.sb-uc-dashboard-grid { grid-template-columns: 1fr; gap: 12px; }.sb-uc-content-head { align-items: flex-start; flex-direction: column; gap: 9px; }.sb-uc-content-head h2 { font-size: 20px; }.sb-uc-content-head .sb-btn { width: 100%; }.sb-uc-list-panel, .sb-uc-orders { padding: 3px 12px; }.sb-uc-log-item { padding: 10px 2px; }.sb-uc-log-cover { width: 46px; height: 38px; }.sb-uc-log-open { display: none; }.sb-uc-membership-strip { align-items: flex-start; flex-direction: column; padding: 18px; }.sb-uc-membership-strip a { width: 100%; text-align: center; }.sb-uc-vip-panel .sb-vip-perks { grid-template-columns: 1fr; }.sb-uc-vip-panel { padding: 13px; }.sb-uc-vip-panel .sb-vip-hero { padding: 17px; }.sb-uc-order { align-items: flex-start; }.sb-uc-order small { max-width: 210px; line-height: 1.6; }.sb-uc-content .sb-profile-form { padding: 16px 3px; } }

/* 让每列成为 flex 容器，使内部 .post-list 高度 100% 真正生效（同行等高） */
.cat-posts-wrapper > .col { display: flex; }
.cat-posts-wrapper > .col > .post-list { width: 100%; }

.post-list {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 128px;
    background: var(--sb-card);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    overflow: hidden;
    box-shadow: var(--sb-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-list:hover {
    transform: translateY(-3px);
    box-shadow: var(--sb-shadow-lg);
    border-color: var(--sb-primary);
}

/* 左侧缩略图：图片铺满并随右侧内容等高 */
.post-list .entry-media {
    position: relative;
    flex: 0 0 34%;
    max-width: 34%;
    align-self: stretch;
}
.post-list .placeholder {
    position: absolute; inset: 0;
    height: 100%;
    overflow: hidden;
    background: var(--sb-bg-soft);
}
.post-list .placeholder > a { position: absolute; inset: 0; display: block; }
.post-list .placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-list .sb-list-thumb--empty {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; color: var(--sb-text-soft);
}
.post-list .entry-tipss {
    position: absolute; left: 10px; top: 10px; z-index: 2;
    padding: 3px 11px; border-radius: 999px;
    font-size: 12px; font-weight: 700; color: #fff;
    background: rgba(0,0,0,.45);
}
.post-list .entry-tipss.is-vip { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.post-list .entry-tipss.is-free { background: #16a34a; }
.post-list .entry-tipss.is-owned { background: #0ea5e9; }

/* 右侧内容 */
.post-list .entry-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 13px;
    display: flex; flex-direction: column; justify-content: center; gap: 3px;
}
.post-list .entry-title { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-list .entry-title a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-list .entry-title a { color: var(--sb-text); }
.post-list .entry-title a:hover { color: var(--sb-primary); }
.post-list .entry-meta { font-size: 13px; color: var(--sb-text-soft); }
.post-list .meta-category a { color: var(--sb-primary); }
.post-list .meta-category .dot {
    display: inline-block; width: 6px; height: 6px;
    border-radius: 50%; background: var(--sb-primary);
    margin-right: 5px; vertical-align: middle;
}
.post-list .entry-excerpt { margin: 0; font-size: 12px; line-height: 1.45; color: var(--sb-text-soft);
    min-height: 2.9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-list .entry-excerpt.is-empty { visibility: hidden; }
.post-list .entry-footer {
    margin-top: 0;
    display: flex; align-items: center; gap: 12px; min-width: 0;
    font-size: 13px; color: var(--sb-text-soft);
}
.post-list .entry-footer > * { flex: 0 0 auto; }
.post-list .entry-footer .meta-category { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-list .entry-footer .meta-category a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-list .entry-footer a { color: var(--sb-text-soft); }
.post-list .entry-footer a:hover { color: var(--sb-primary); }
.post-list .entry-footer i { margin-right: 4px; }

/* 窄屏：保持左图右文的紧凑列表，不切换成大卡片 */
@media (max-width: 575px) {
    .post-list { flex-direction: row; height: 112px; border-radius: 12px; }
    .post-list .entry-media { flex: 0 0 31%; max-width: 31%; height: auto; padding-bottom: 0; align-self: stretch; }
    .post-list .placeholder { position: absolute; inset: 0; height: 100%; }
    .post-list .entry-wrapper { padding: 7px 10px; gap: 2px; justify-content: center; }
    .post-list .entry-title { font-size: 15px; line-height: 1.4; }
    .post-list .entry-excerpt { font-size: 12px; line-height: 1.4; }
    .post-list .entry-footer { gap: 7px; font-size: 11px; }
    .post-list .entry-footer i { margin-right: 2px; }
    .post-list .meta-category .dot { width: 5px; height: 5px; margin-right: 3px; }
    .post-list .entry-tipss { left: 6px; top: 6px; padding: 2px 7px; font-size: 10px; }
    .post-list .sb-list-thumb--empty { font-size: 26px; }
}

/* ---------- 会员图标 / 徽标 ---------- */
.icon-vip::before { content: "\2605"; } /* ★ */

/* 资源卡片：会员权限角标 */
.sb-card-badge--vip {
    position: absolute; left: 10px; top: 10px; z-index: 2;
    padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

/* ---------- 资源详情：价格 / 会员提示 ---------- */
.sb-price-vip {
    display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px;
    font-size: 12px; font-weight: 700; color: #b45309; background: #fff7ed; border: 1px solid #fed7aa;
}
.sb-vip-free-hint {
    margin: 10px 0 2px; padding: 9px 12px; border-radius: 10px; font-size: 13px; color: #b45309;
    background: #fff7ed; border: 1px dashed #fdba74; display: flex; align-items: center; gap: 6px;
}
.sb-vip-free-hint .iconfont { color: #f59e0b; }

/* 仅会员可下载：引导面板 */
.sb-vip-required .sb-vip-required-tip {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
    padding: 11px 13px; border-radius: 10px; font-size: 14px; font-weight: 700; color: #b45309;
    background: #fff7ed; border: 1px solid #fed7aa;
}
.sb-vip-required .sb-vip-required-tip .iconfont { color: #f59e0b; font-size: 16px; }

/* 会员专属按钮（开通会员下载 / 续费） */
.sb-btn-vip {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 6px 16px rgba(245, 158, 11, .22);
}
.sb-btn-vip:hover { filter: brightness(1.04); color: #fff; box-shadow: 0 10px 24px rgba(245, 158, 11, .30); }
.sb-aside-mini.sb-vip-required { margin-top: 16px; }

/* ===================== 用户中心 / 会员中心 ===================== */

/* 用户封面 */
.sb-uc-cover {
    position: relative; overflow: hidden;
    border-radius: 18px; padding: 28px 30px;
    background: linear-gradient(135deg, var(--sb-primary), var(--sb-primary-dark));
    color: #fff; box-shadow: 0 12px 30px var(--sb-primary-glow);
}
.sb-uc-cover.is-vip {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 12px 30px rgba(245, 158, 11, .25);
}
.sb-uc-cover-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.sb-uc-id { display: flex; align-items: center; gap: 16px; }
.sb-uc-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .85); object-fit: cover;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18); background: #fff;
}
.sb-uc-name { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.sb-uc-vip {
    font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
    background: #fff; color: #ef4444; box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.sb-uc-email { font-size: 13px; opacity: .85; margin-top: 4px; }
.sb-uc-meta { display: flex; gap: 26px; }
.sb-uc-meta-item { text-align: left; }
.sb-uc-meta-label { display: block; font-size: 12px; opacity: .8; margin-bottom: 4px; }
.sb-uc-meta-value { font-size: 15px; font-weight: 700; }

/* 顶部导航 */
.sb-uc-nav {
    display: flex; gap: 8px; margin: 18px 0 22px;
    background: #fff; padding: 8px; border-radius: 14px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
}
.sb-uc-nav-item {
    flex: 1; text-align: center; padding: 11px 10px; border-radius: 10px;
    font-size: 14px; font-weight: 600; color: var(--sb-text-soft, #64748b);
    text-decoration: none; transition: .2s;
}
.sb-uc-nav-item:hover { color: var(--sb-primary); background: var(--sb-primary-soft); }
.sb-uc-nav-item.active {
    color: #fff; background: linear-gradient(135deg, var(--sb-primary), var(--sb-primary-dark));
    box-shadow: 0 6px 16px var(--sb-primary-glow);
}

/* 区块标题 */
.sb-uc-subtitle {
    font-size: 17px; font-weight: 800; margin: 26px 0 14px;
    padding-left: 12px; border-left: 4px solid var(--sb-primary);
    color: var(--sb-text, #0f172a);
}

/* 会员状态横幅 */
.sb-vip-hero {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 22px 24px; border-radius: 16px; color: #fff;
    background: linear-gradient(135deg, var(--sb-primary), var(--sb-primary-dark));
    box-shadow: 0 10px 26px var(--sb-primary-glow);
}
.sb-vip-hero.is-vip {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 10px 26px rgba(245, 158, 11, .22);
}
.sb-vip-hero-left { display: flex; align-items: center; gap: 16px; }
.sb-vip-hero-badge {
    width: 54px; height: 54px; border-radius: 14px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .20); font-size: 26px;
}
.sb-vip-hero-title { font-size: 19px; font-weight: 800; }
.sb-vip-hero-sub { font-size: 13px; opacity: .9; margin-top: 4px; }
.sb-vip-hero-tag {
    font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .25); white-space: nowrap;
}

/* 会员权益网格 */
.sb-vip-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sb-vip-perk {
    display: flex; align-items: center; gap: 9px; padding: 13px 15px;
    background: #fff; border: 1px solid #eef2f7; border-radius: 12px;
    font-size: 14px; font-weight: 600; color: var(--sb-text, #0f172a);
    box-shadow: 0 3px 10px rgba(15, 23, 42, .04);
}
.sb-vip-perk .iconfont { color: var(--sb-primary); font-size: 16px; }

/* 套餐卡片 */
.sb-vip-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sb-vip-plan {
    position: relative; padding: 22px 16px 20px; text-align: center;
    background: #fff; border: 1px solid #eef2f7; border-radius: 16px;
    transition: .22s; box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}
.sb-vip-plan:hover {
    transform: translateY(-6px); box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
    border-color: var(--sb-primary-border);
}
.sb-vip-plan.is-hot {
    border-color: #f59e0b; background: linear-gradient(180deg, #fff7ed, #fff);
    box-shadow: 0 10px 26px rgba(245, 158, 11, .20);
}
.sb-vip-plan-flag {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    font-size: 12px; font-weight: 700; color: #fff; padding: 3px 12px;
    border-radius: 999px; background: linear-gradient(135deg, #f59e0b, #ef4444); white-space: nowrap;
}
.sb-vip-plan-name { font-size: 15px; font-weight: 700; color: var(--sb-text, #0f172a); }
.sb-vip-plan-price { margin: 10px 0 4px; font-size: 26px; font-weight: 800; color: #ef4444; }
.sb-vip-plan-cur { font-size: 15px; font-weight: 700; margin-right: 2px; }
.sb-vip-plan-period { font-size: 13px; color: var(--sb-text-soft, #64748b); margin-bottom: 16px; }

/* 窄屏适配 */
@media (max-width: 768px) {
    .sb-vip-perks { grid-template-columns: 1fr; }
    .sb-vip-plans { grid-template-columns: repeat(2, 1fr); }
    .sb-uc-meta { width: 100%; justify-content: space-between; gap: 12px; }
}
@media (max-width: 480px) {
    .sb-vip-plans { grid-template-columns: 1fr; }
    .sb-uc-cover-inner { flex-direction: column; align-items: flex-start; }
    .sb-uc-meta { gap: 18px; }
}

/* ===================== 分类卡片导航（主内容上方） ===================== */
/* 下间距与资源流/分页（.sb-pagination 顶部 30px）保持一致 */
.sb-cat-section { position: relative; margin: 0 0 30px; }

/* 桌面端：固定网格，不轮播；箭头默认隐藏，仅在手机端轮播时显示 */
.sb-cat-arrow { display: none; }
.sb-cat-boxes {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.sb-cat-box { text-decoration: none; display: block; user-select: none; }
.sb-cat-thumb {
    position: relative; height: 168px; border-radius: 14px; overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .10);
    background: linear-gradient(135deg, var(--sb-primary), var(--sb-primary-dark));
}
/* 无图片时的图标占位（让未配置图片的卡片也清晰可见） */
.sb-cat-icon {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 56px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25));
}
/* 卡片配色多样化（按序号循环，避免全是同一种蓝） */
.sb-cat-boxes .sb-cat-box:nth-child(5n+1) .sb-cat-thumb { background: linear-gradient(135deg, var(--sb-primary), var(--sb-primary-dark)); }
.sb-cat-boxes .sb-cat-box:nth-child(5n+2) .sb-cat-thumb { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.sb-cat-boxes .sb-cat-box:nth-child(5n+3) .sb-cat-thumb { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.sb-cat-boxes .sb-cat-box:nth-child(5n+4) .sb-cat-thumb { background: linear-gradient(135deg, #10b981, #059669); }
.sb-cat-boxes .sb-cat-box:nth-child(5n+5) .sb-cat-thumb { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.sb-cat-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.sb-cat-box:hover .sb-cat-thumb img { transform: scale(1.07); }
.sb-cat-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .62) 100%); }
.sb-cat-info { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; }
.sb-cat-title { font-size: 18px; font-weight: 800; margin: 0; line-height: 1.2; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.sb-cat-info small { display: block; margin-top: 4px; font-size: 12px; opacity: .92; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.sb-twitter-notice { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 15px; border: 1px solid #e4edf7; border-radius: 13px; background: linear-gradient(100deg, #f7fbff, #fff); box-shadow: 0 7px 18px rgba(27, 55, 96, .04); }
.sb-twitter-notice-mark { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: #e6f1ff; color: #4383c3; font-size: 14px; }
.sb-twitter-notice-copy { min-width: 0; flex: 1; }.sb-twitter-notice-copy strong { display: block; margin-bottom: 2px; color: #3c5d80; font-size: 12px; font-weight: 900; }.sb-twitter-notice-copy p { margin: 0; overflow: hidden; color: #637990; font-size: 12px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.sb-twitter-notice-meta { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 2px; color: #9aaaba; font-size: 10px; }.sb-twitter-notice-meta span { color: #6f8eac; font-weight: 700; }

/* 平板：网格列数减少 */
@media (max-width: 992px) { .sb-cat-boxes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    .sb-cat-boxes { grid-template-columns: repeat(2, 1fr); }
    .sb-twitter-notice { align-items: flex-start; }.sb-twitter-notice-meta { display: none; }
}

/* 手机端（≤640px）：横向轮播，一次只显示一张，左/右箭头出现 */
@media (max-width: 640px) {
    .sb-cat-boxes {
        display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth;
        scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
        padding: 4px 2px 12px; scrollbar-width: thin;
    }
    .sb-cat-boxes::-webkit-scrollbar { height: 6px; }
    .sb-cat-boxes::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, .18); border-radius: 999px; }
    .sb-cat-boxes.dragging { scroll-behavior: auto; cursor: grabbing; }
    .sb-cat-box { flex: 0 0 100%; scroll-snap-align: start; }
    .sb-cat-thumb { height: 160px; }

    .sb-cat-arrow {
        position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
        width: 40px; height: 40px; border-radius: 50%;
        border: 1px solid var(--sb-border); background: rgba(255, 255, 255, .95); color: var(--sb-text);
        font-size: 22px; line-height: 1; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 6px 16px rgba(17, 24, 39, .12); transition: .2s;
    }
    #sbCatPrev { left: -8px; }
    #sbCatNext { right: -8px; }
    .sb-cat-arrow:hover:not(.is-disabled) { background: var(--sb-primary); color: #fff; border-color: var(--sb-primary); }
    .sb-cat-arrow.is-disabled { opacity: 0; pointer-events: none; }
}

/* ===================== 搜索结果页 ===================== */
.sb-search-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--sb-border);
}
.sb-search-title { font-size: 20px; font-weight: 800; margin: 0; color: var(--sb-text); }
.sb-search-sub { margin: 6px 0 0; font-size: 13px; color: #64748b; }
.sb-list-head {
    position: relative; isolation: isolate; overflow: hidden; min-height: 104px; margin: 0 0 20px; padding: 18px 24px;
    border: 1px solid rgba(20, 184, 166, .18); border-radius: 18px; background: linear-gradient(120deg, #f0fdfa 0%, #f8fffd 52%, #eff6ff 100%);
    box-shadow: 0 14px 30px rgba(15, 118, 110, .08);
}
.sb-list-head::before, .sb-list-head::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.sb-list-head::before { width: 190px; height: 190px; right: -46px; top: -98px; background: rgba(20, 184, 166, .12); }
.sb-list-head::after { width: 96px; height: 96px; right: 108px; bottom: -58px; background: rgba(59, 130, 246, .10); }
.sb-list-head .sb-search-head-main { min-width: 0; }
.sb-list-head .sb-search-title { max-width: 760px; font-size: 24px; line-height: 1.25; letter-spacing: -.03em; font-weight: 900; }
.sb-list-head .sb-search-sub { max-width: 680px; margin-top: 5px; font-size: 13px; line-height: 1.55; color: #64748b; }
.sb-list-head .sb-btn-ghost { position: relative; flex: 0 0 auto; border-color: rgba(20, 184, 166, .24); background: rgba(255, 255, 255, .78); box-shadow: 0 7px 16px rgba(15, 118, 110, .08); }
.sb-list-head .sb-btn-ghost:hover { background: var(--sb-primary); color: #fff; }
.sb-list-kicker { display: inline-flex; align-items: center; min-height: 21px; margin-bottom: 6px; padding: 0 8px; border: 1px solid rgba(20, 184, 166, .15); border-radius: 999px; background: rgba(255, 255, 255, .72); color: #0f766e; font-size: 11px; font-weight: 900; letter-spacing: .08em; }

/* ===================== 用户中心：消费记录 ===================== */
.sb-orders-summary {
    display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap;
}
.sb-orders-summary-item {
    flex: 1 1 160px; background: linear-gradient(135deg, rgba(20,184,166,.10), rgba(8,145,178,.08));
    border: 1px solid var(--sb-border); border-radius: 14px; padding: 16px 18px;
}
.sb-orders-summary-label { display: block; font-size: 13px; color: #64748b; }
.sb-orders-summary-value { display: block; margin-top: 6px; font-size: 22px; font-weight: 800; color: var(--sb-primary); }

.sb-order-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sb-order-item {
    border: 1px solid var(--sb-border); border-radius: 14px; padding: 14px 16px; background: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.sb-order-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sb-order-type {
    font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.sb-order-type--resource { background: rgba(20,184,166,.14); color: #0d9488; }
.sb-order-type--vip { background: rgba(139,92,246,.14); color: #7c3aed; }
.sb-order-no { font-size: 13px; color: #475569; word-break: break-all; }
.sb-order-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: #64748b; white-space: nowrap; }
.sb-order-amount { font-weight: 800; color: var(--sb-text); }
.sb-order-time { color: #64748b; font-size: 12px; }
.sb-order-status { font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.sb-order-status--paid { background: rgba(34,197,94,.14); color: #16a34a; }
.sb-order-status--unpaid { background: rgba(234,179,8,.16); color: #b45309; }

/* 已购列表：下载次数 */ 
.sb-dl-count { font-size: 12px; color: #94a3b8; margin-left: auto; }

@media (max-width: 640px) {
    .sb-order-item { flex-direction: column; align-items: flex-start; }
    .sb-order-meta { flex-wrap: wrap; gap: 10px; }
    .sb-search-head { flex-direction: column; align-items: flex-start; }
    .sb-list-head { min-height: 0; padding: 17px 18px; }
    .sb-list-head .sb-search-title { font-size: 21px; }
}

/* 正文下载卡：电脑端“价格 + 立即购买”同一行 */
@media (min-width: 769px) {
    .sb-pay-flexbox-card .sb-pay-main > .sb-pay-price-row { align-items: center; }
    .sb-pay-flexbox-card .sb-pay-main > .sb-pay-price-row > .sb-pay-action-row .sb-pay-action { min-width: 160px; }
}
/* 首页卡片：封面左上角价格/VIP标签 */
.sb-card-tips { position: absolute; top: 10px; left: 10px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.sb-card-tip { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 9px; border-radius: 8px; color: #fff; font-size: 12px; line-height: 1; font-weight: 900; box-shadow: 0 8px 18px rgba(15,23,42,.18); backdrop-filter: blur(10px); }
.sb-card-tip--price { background: rgba(245, 158, 11, .72); color: #fff9e7; }
.sb-card-tip--status { background: rgba(15,23,42,.72); }
.sb-card-tip--status.is-vip { background: rgba(245,158,11,.9); color: #fff; }
.sb-card-tip--status.is-owned { background: rgba(24,160,88,.9); }
.sb-card-cover .sb-card-type { left: auto; right: 10px; top: 10px; max-width: calc(100% - 116px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(255,255,255,.9); box-shadow: 0 8px 18px rgba(15,23,42,.12); }
/* Resource checkout coupon input: keeps the payment action compact on desktop and mobile. */
.sb-coupon-buy-form { display: flex; align-items: center; gap: 8px; }
.sb-coupon-buy-form input { width: 128px; height: 38px; padding: 0 10px; border: 1px solid #dbe4ec; border-radius: 9px; background: #fff; color: #4a6077; font-size: 13px; outline: none; }
.sb-coupon-buy-form input:focus { border-color: var(--sb-primary); box-shadow: 0 0 0 3px var(--sb-primary-faint); }
.sb-vip-coupon-form { display: flex; gap: 8px; margin: 0 0 16px; }.sb-vip-coupon-form input { width: 220px; height: 38px; padding: 0 12px; border: 1px solid var(--sb-border); border-radius: 9px; background: #fff; color: var(--sb-text); }.sb-vip-coupon-form .sb-btn { min-height: 38px; }
.sb-ticket-submit { overflow: hidden; border-color: rgba(20, 184, 166, .2); }
.sb-ticket-submit .sb-uc-panel-head { margin: -1px -1px 18px; padding: 15px 18px; border-bottom: 1px solid rgba(20, 184, 166, .13); background: linear-gradient(90deg, rgba(20, 184, 166, .09), rgba(20, 184, 166, .015)); }
.sb-ticket-submit .sb-uc-panel-head h3::before { display: inline-grid; width: 26px; height: 26px; margin-right: 8px; border-radius: 8px; place-items: center; background: var(--sb-primary); color: #fff; content: '?'; font-size: 15px; vertical-align: -2px; }
.sb-ticket-submit form { padding: 0 18px 18px; }
.sb-ticket-form-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.sb-ticket-submit .sb-form-row { margin-bottom: 16px; }
.sb-ticket-submit label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #334155; font-size: 13px; font-weight: 800; }
.sb-ticket-submit label::after { color: #94a3b8; content: '请尽量填写完整'; font-size: 11px; font-weight: 400; }
.sb-ticket-submit .sb-ticket-form-grid label::after { content: '可选'; }
.sb-ticket-submit input,.sb-ticket-submit select,.sb-ticket-submit textarea { width: 100%; border: 1px solid #dce5ec; border-radius: 10px; background: #fff; color: #334155; font: inherit; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.sb-ticket-submit input,.sb-ticket-submit select { height: 43px; padding: 0 13px; }
.sb-ticket-submit textarea { min-height: 132px; padding: 12px 13px; line-height: 1.7; resize: vertical; }
.sb-ticket-submit input::placeholder,.sb-ticket-submit textarea::placeholder { color: #a7b4c2; }
.sb-ticket-submit input:focus,.sb-ticket-submit select:focus,.sb-ticket-submit textarea:focus { border-color: var(--sb-primary); outline: 0; box-shadow: 0 0 0 4px var(--sb-primary-faint); }
.sb-ticket-submit button[type="submit"] { min-width: 132px; min-height: 42px; margin-top: 2px; border-radius: 10px; box-shadow: 0 8px 16px rgba(20, 184, 166, .2); font-weight: 800; }
.sb-ticket-list { margin-top: 18px; }.sb-ticket-item { padding: 17px 0; border-bottom: 1px solid var(--sb-border); }.sb-ticket-item:last-child { border-bottom: 0; }.sb-ticket-item-head strong { display: block; margin-top: 8px; color: var(--sb-text); }.sb-ticket-item-head small { display: block; margin-top: 5px; color: var(--sb-text-soft); }.sb-ticket-status { display: inline-block; padding: 3px 8px; border-radius: 99px; background: #fff3d8; color: #a66a15; font-size: 12px; font-weight: 700; }.sb-ticket-status.is-1 { background: #e3f0ff; color: #3176ae; }.sb-ticket-status.is-2 { background: #e4f7ed; color: #168355; }.sb-ticket-status.is-3 { background: #edf0f3; color: #697686; }.sb-ticket-content { margin-top: 12px; color: var(--sb-text-soft); line-height: 1.8; }.sb-ticket-reply { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #f7f9fb; color: var(--sb-text-soft); }.sb-ticket-reply.is-admin { border-left: 3px solid var(--sb-primary); background: var(--sb-primary-faint); }.sb-ticket-reply b { color: var(--sb-text); font-size: 13px; }.sb-ticket-reply span { margin-left: 8px; color: var(--sb-muted); font-size: 12px; }.sb-ticket-reply p { margin: 7px 0 0; line-height: 1.75; }
@media (max-width: 620px) { .sb-coupon-buy-form { width: 100%; }.sb-coupon-buy-form input { min-width: 0; flex: 1; }.sb-coupon-buy-form .sb-btn { flex: 0 0 auto; }.sb-vip-coupon-form input { min-width: 0; flex: 1; }.sb-ticket-form-grid { grid-template-columns: 1fr; gap: 0; } }
