        .model-card {
            transition: all 0.2s ease;
        }
        .model-card:hover {
            transform: translateY(-2px);
        }
        .nav-item {
            transition: 0.2s;
            cursor: pointer;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid transparent;
        }
        .nav-item.active {
            border-bottom-color: #111827;
            color: #111827;
        }
        pre {
            white-space: pre-wrap;
            word-break: break-all;
        }
        .code-block {
            position: relative;
            background: #1e1e1e;
            color: #fff;
            border-radius: 8px;
            padding: 16px;
            font-size: 14px;
            overflow-x: auto;
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        }
        /* 文档中心插图（本次 API 更新等） */
        .doc-figure { margin: 0; }
        .doc-figure img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 10px;
            border: 1px solid #e5e7eb;
            background: #fff;
            padding: 6px;
        }
        .dark .doc-figure img { border-color: #374151; background: #111827; }
        .doc-figure figcaption {
            margin-top: 8px;
            font-size: 12px;
            line-height: 1.6;
            color: #9ca3af;
            text-align: center;
        }
        .lang-dropdown {
            position: relative;
        }
        .lang-menu {
            position: absolute;
            top: 110%;
            right: 0;
            min-width: 120px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 99;
            background: white;
            border: 1px solid #e5e7eb;
        }
        .dark .lang-menu {
            background: #1f2937;
            border-color: #374151;
        }
        .api-code-tab {
            padding: 6px 14px;
            border: 1px solid #d1d5db;
            border-bottom: none;
            border-radius: 6px 6px 0 0;
            cursor: pointer;
            margin-right: 4px;
            background: #f9fafb;
            transition: 0.2s;
        }
        .dark .api-code-tab {
            border-color: #374151;
            background: #1f2937;
            color: #d1d5db;
        }
        .api-code-tab.active {
            background: #111827;
            color: white;
            border-color: #111827;
        }
        .quota-progress {
            height: 10px;
            border-radius: 99px;
            background: #e5e7eb;
            overflow: hidden;
        }
        .dark .quota-progress {
            background: #374151;
        }
        .quota-progress-inner {
            height: 100%;
            border-radius: 99px;
            transition: width 0.4s ease;
        }
        .recharge-item.selected {
            border-color: #111827;
            color: #111827;
            background: rgba(99, 68, 232, 0.05);
        }
        /* 支付方式卡片列表 */
        .payment-card-item {
            display: flex; align-items: center; gap: 12px;
            padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 10px;
            cursor: pointer; transition: all 0.15s;
        }
        .payment-card-item:hover { border-color: #6366f1; background: rgba(99,102,241,0.03); }
        .payment-card-item.selected { border-color: #6366f1; background: rgba(99,102,241,0.08); box-shadow: 0 0 0 2px rgba(99,102,241,0.15); }
        .payment-card-icon {
            width: 40px; height: 26px; border-radius: 5px;
            display: flex; align-items: center; justify-content: center;
            font-size: 9px; font-weight: 800; color: #fff; flex-shrink: 0;
        }
        .payment-card-icon.visa { background: linear-gradient(135deg,#1a1f71,#2d3494); }
        .payment-card-icon.mc { background: linear-gradient(135deg,#eb001b,#f79e1b); }
        .payment-card-icon.amex { background: linear-gradient(135deg,#006fcf,#00aeff); }
        .payment-card-icon.unionpay { background: linear-gradient(135deg,#e21836,#00447c); }
        .payment-card-icon.card { background: #374151; }
        .payment-card-info { flex: 1; min-width: 0; }
        .payment-card-number { font-size: 13px; font-weight: 600; color: #111827; letter-spacing: 0.5px; }
        .payment-card-meta { font-size: 11px; color: #9ca3af; margin-top: 1px; }
        .payment-card-delete {
            padding: 4px 8px; border-radius: 6px; color: #9ca3af;
            background: none; border: none; cursor: pointer; font-size: 12px; opacity: 0; transition: opacity 0.15s;
        }
        .payment-card-item:hover .payment-card-delete { opacity: 1; }
        .payment-card-delete:hover { color: #ef4444; }
        .payment-save-btn {
            background: linear-gradient(135deg, #8b5cf6, #6366f1);
        }
        .payment-save-btn:hover { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
        .api-key-card {
            transition: all 0.2s;
        }
        .api-key-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
        }
        .modal-overlay {
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
        }
        .toggle-switch {
            position: relative;
            width: 44px;
            height: 24px;
            background: #d1d5db;
            border-radius: 999px;
            cursor: pointer;
            transition: 0.3s;
            flex-shrink: 0;
        }
        .dark .toggle-switch {
            background: #4b5563;
        }
        .toggle-switch.active {
            background: #111827;
        }
        .toggle-switch .dot {
            position: absolute;
            top: 2px;
            left: 2px;
            width: 20px;
            height: 20px;
            background: white;
            border-radius: 999px;
            transition: 0.3s;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        .toggle-switch.active .dot {
            left: 22px;
        }
        .key-display {
            font-family: 'Courier New', monospace;
            background: #f3f4f6;
            padding: 8px 12px;
            border-radius: 6px;
            word-break: break-all;
        }
        .dark .key-display {
            background: #1f2937;
        }
        .intro-card {
            background: linear-gradient(135deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.05));
        }
        .dark .intro-card {
            background: rgba(249, 250, 251, 0.04);
        }
        /* 模型卡片颜色变体 */
        .model-card-code .icon-bg { background: #3b82f6; }
        .model-card-master .icon-bg { background: #f59e0b; }
        .model-card-think .icon-bg { background: #0d9488; }
        .model-card-llm .icon-bg { background: #111827; }
        .model-card-draw .icon-bg { background: #ec4899; }
        .price-tag {
            display: inline-block;
            padding: 2px 10px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 500;
        }
        .price-tag-green { background: #d1fae5; color: #065f46; }
        .dark .price-tag-green { background: #064e3b; color: #a7f3d0; }
        .price-tag-blue { background: #dbeafe; color: #1e40af; }
        .dark .price-tag-blue { background: #1e3a5f; color: #93c5fd; }
        .price-tag-amber { background: #fef3c7; color: #92400e; }
        .dark .price-tag-amber { background: #78350f; color: #fcd34d; }
        .price-tag-gray { background: #f3f4f6; color: #4b5563; }
        .dark .price-tag-gray { background: #374151; color: #9ca3af; }

        /* ============ 在线体验 Playground ============ */
        .pg-msg { display: flex; gap: 10px; max-width: 100%; }
        .pg-msg.user { flex-direction: row-reverse; }
        .pg-bubble {
            max-width: 78%; padding: 10px 14px; border-radius: 14px;
            font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
        }
        .pg-msg.user .pg-bubble {
            background: #111827; color: #fff; border-bottom-right-radius: 4px;
        }
        .pg-msg.assistant .pg-bubble {
            background: #fff; color: #1f2937; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px;
        }
        .dark .pg-msg.assistant .pg-bubble { background: #1f2937; color: #e5e7eb; border-color: #374151; }
        .pg-avatar {
            width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff;
        }
        .pg-avatar.user { background: #94a3b8; }
        .pg-avatar.assistant { background: #111827; }
        .pg-typing::after { content: '▍'; animation: pg-blink 1s steps(2, start) infinite; }
        @keyframes pg-blink { to { visibility: hidden; } }
        #pgChat::-webkit-scrollbar, #pgImageResult::-webkit-scrollbar { width: 6px; }
        #pgChat::-webkit-scrollbar-thumb, #pgImageResult::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }

        /* ============ 文档中心侧边栏布局 ============ */
        .docs-layout {
            display: flex; min-height: calc(100vh - 120px);
        }
        .docs-sidebar {
            width: 260px; flex-shrink: 0;
            border-right: 1px solid #e5e7eb;
            background: #fafafa; overflow-y: auto; padding: 20px 0;
            position: sticky; top: 112px; max-height: calc(100vh - 112px);
        }
        .dark .docs-sidebar {
            border-right-color: #374151; background: #111827;
        }
        .docs-sidebar-section { margin-bottom: 4px; }
        .docs-sidebar-title {
            display: flex; align-items: center; gap: 8px;
            padding: 8px 20px; font-weight: 600; font-size: 14px;
            color: #374151; cursor: pointer; user-select: none;
        }
        .dark .docs-sidebar-title { color: #d1d5db; }
        .docs-sidebar-title:hover { color: #111827; }
        .docs-sidebar-title.active { color: #111827; }
        .docs-sidebar-children { padding-left: 12px; }
        .docs-sidebar-link {
            display: block; padding: 6px 20px 6px 32px; font-size: 13px;
            color: #6b7280; cursor: pointer; border-left: 2px solid transparent;
            text-decoration: none; transition: all 0.15s;
        }
        .dark .docs-sidebar-link { color: #9ca3af; }
        .docs-sidebar-link:hover { color: #111827; background: rgba(17,24,39,0.04); }
        .docs-sidebar-link.active {
            color: #111827; border-left-color: #111827;
            background: rgba(99,68,232,0.06); font-weight: 500;
        }
        .docs-main {
            flex: 1; min-width: 0; padding: 24px 36px; max-width: 900px;
        }
        .docs-toc {
            width: 200px; flex-shrink: 0; padding: 24px 16px;
            border-left: 1px solid #e5e7eb; font-size: 13px;
            position: sticky; top: 112px; max-height: calc(100vh - 112px); overflow-y: auto;
        }
        .dark .docs-toc { border-left-color: #374151; }
        .docs-toc-title {
            display: flex; align-items: center; gap: 6px;
            font-weight: 600; margin-bottom: 12px; color: #374151;
        }
        .dark .docs-toc-title { color: #d1d5db; }
        .docs-toc a {
            display: block; padding: 4px 0 4px 12px; color: #6b7280;
            text-decoration: none; border-left: 2px solid transparent;
            transition: all 0.15s;
        }
        .dark .docs-toc a { color: #9ca3af; }
        .docs-toc a:hover { color: #111827; border-left-color: #d1d5db; }
        .docs-toc a.active { color: #111827; border-left-color: #111827; font-weight: 500; }
        .docs-toc a.sub { padding-left: 24px; font-size: 12px; }

        /* ---- 文档中心增强：搜索 / 复制 / 标注 / 方法徽章 / 面包屑 / 上下页 ---- */
        .docs-search {
            position: sticky; top: 0; z-index: 5;
            padding: 12px 16px; background: #fafafa;
            border-bottom: 1px solid #e5e7eb;
        }
        .dark .docs-search { background: #111827; border-bottom-color: #374151; }
        .docs-search-box { position: relative; }
        .docs-search-box i.fa-search { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 13px; }
        .docs-search-box input {
            width: 100%; padding: 8px 34px 8px 30px; border: 1px solid #e5e7eb; border-radius: 8px;
            font-size: 13px; background: #fff; color: #1f2937; outline: none;
        }
        .dark .docs-search-box input { background: #1f2937; border-color: #374151; color: #e5e7eb; }
        .docs-search-box input:focus { border-color: #6344e8; box-shadow: 0 0 0 3px rgba(99,68,232,0.12); }
        .docs-search-kbd {
            position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
            font-size: 11px; color: #9ca3af; border: 1px solid #e5e7eb; border-radius: 4px; padding: 1px 5px;
        }
        .docs-sidebar-link.hidden-by-search, .docs-sidebar-title.hidden-by-search { display: none; }
        .docs-no-result { padding: 12px 20px; font-size: 13px; color: #9ca3af; }

        .code-copy {
            position: absolute; top: 8px; right: 8px;
            background: rgba(255,255,255,0.08); color: #cbd5e1;
            border: 1px solid rgba(255,255,255,0.15); border-radius: 6px;
            padding: 3px 8px; font-size: 11px; cursor: pointer; transition: all .15s;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        }
        .code-copy:hover { background: rgba(255,255,255,0.16); color: #fff; }
        .code-copy.copied { color: #4ade80; border-color: #4ade80; }

        .code-cap { font-size: 12px; font-weight: 600; color: #64748b; margin: 16px 0 4px; letter-spacing: .02em; }
        .dark .code-cap { color: #94a3b8; }

        .callout { display: flex; gap: 10px; border-radius: 10px; padding: 12px 16px; margin: 16px 0; font-size: 14px; line-height: 1.6; }
        .callout i { margin-top: 3px; flex-shrink: 0; }
        .callout.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
        .dark .callout.info { background: rgba(30,58,138,0.25); border-color: #1e40af; color: #bfdbfe; }
        .callout.tip { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
        .dark .callout.tip { background: rgba(6,78,59,0.25); border-color: #065f46; color: #a7f3d0; }
        .callout.warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
        .dark .callout.warn { background: rgba(120,53,15,0.25); border-color: #92400e; color: #fde68a; }
        .callout.danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
        .dark .callout.danger { background: rgba(127,29,29,0.25); border-color: #991b1b; color: #fecaca; }

        .docs-method { display: inline-block; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 6px; margin-right: 8px; letter-spacing: .3px; vertical-align: middle; }
        .docs-method.post { background: #6344e8; color: #fff; }
        .docs-method.get { background: #059669; color: #fff; }

        .docs-breadcrumb { font-size: 13px; color: #9ca3af; margin-bottom: 6px; }
        .docs-breadcrumb a { color: #6344e8; cursor: pointer; }
        .docs-breadcrumb span { color: #374151; }
        .dark .docs-breadcrumb span { color: #e5e7eb; }

        .docs-prevnext { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #e5e7eb; }
        .dark .docs-prevnext { border-top-color: #374151; }
        .docs-prevnext a { flex: 1; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 16px; text-decoration: none; color: #374151; transition: all .15s; }
        .dark .docs-prevnext a { border-color: #374151; color: #d1d5db; }
        .docs-prevnext a:hover { border-color: #6344e8; color: #6344e8; }
        .docs-prevnext .pn-label { font-size: 12px; color: #9ca3af; }
        .docs-prevnext .pn-title { font-weight: 600; margin-top: 2px; }
        .docs-prevnext .next { text-align: right; }
        .docs-main h2, .docs-main h3 { scroll-margin-top: 130px; }

        /* ============ 模型市场新布局 ============ */
        .market-layout { display: flex; gap: 24px; }
        .market-filters {
            width: 240px; flex-shrink: 0;
        }
        .market-grid {
            flex: 1; min-width: 0;
        }
        .filter-group { margin-bottom: 20px; }
        .filter-group-title {
            display: flex; align-items: center; justify-content: space-between;
            font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 10px; cursor: pointer;
        }
        .dark .filter-group-title { color: #d1d5db; }
        .filter-tags { display: flex; flex-wrap: wrap; gap: 8px; }
        .filter-tag {
            padding: 5px 14px; border: 1px solid #e5e7eb; border-radius: 8px;
            font-size: 13px; cursor: pointer; transition: all 0.15s;
            background: white; color: #4b5563;
        }
        .dark .filter-tag { background: #1f2937; border-color: #374151; color: #d1d5db; }
        .filter-tag:hover { border-color: #111827; color: #111827; }
        .filter-tag.active {
            background: #111827; color: white; border-color: #111827;
        }
        .market-search-bar {
            display: flex; gap: 10px; margin-bottom: 20px;
        }
        .market-search-bar input {
            flex: 1; padding: 10px 16px; border: 1px solid #e5e7eb; border-radius: 10px;
            font-size: 14px; outline: none; transition: border-color 0.2s;
            background: white; color: #1f2937;
        }
        .dark .market-search-bar input { background: #1f2937; border-color: #374151; color: #e5e7eb; }
        .market-search-bar input:focus { border-color: #111827; box-shadow: 0 0 0 3px rgba(99,68,232,0.1); }
        .market-card-grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px;
        }
        .mcard {
            border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px;
            cursor: pointer; transition: all 0.2s; background: white;
            position: relative;
        }
        .dark .mcard { background: #1f2937; border-color: #374151; }
        .mcard:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: #d1d5db; }
        .mcard.deprecated {
            opacity: 0.65;
        }
        .mcard.deprecated:hover {
            transform: none; box-shadow: none; border-color: #e5e7eb;
        }
        .dark .mcard.deprecated:hover { border-color: #374151; }
        .mcard-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
        .mcard-icon {
            width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center;
            color: white; font-size: 18px;
        }
        /* 模型图标图片（Consider / Awei AI / Awei Draw） */
        .mcard-icon-img,
        .lab-card-icon-img,
        .lab-modal-icon-img {
            width: 100%; height: 100%;
            object-fit: contain;
            border-radius: inherit;
            display: block;
        }
        .mcard-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
        .mcard-name { font-weight: 700; font-size: 15px; color: #1f2937; }
        .dark .mcard-name { color: #f3f4f6; }
        .mcard-subtitle { font-size: 12px; color: #9ca3af; }
        .mcard-new-badge {
            background: #ef4444; color: white; font-size: 11px; font-weight: 600;
            padding: 1px 8px; border-radius: 4px;
        }
        .mcard-deprecated-badge {
            background: #f3f4f6; color: #6b7280; font-size: 11px; font-weight: 600;
            padding: 2px 10px; border-radius: 6px; border: 1px solid #e5e7eb;
        }
        .dark .mcard-deprecated-badge { background: #374151; color: #9ca3af; border-color: #4b5563; }
        .mcard-desc {
            font-size: 13px; color: #6b7280; line-height: 1.5;
            margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
        }
        .dark .mcard-desc { color: #9ca3af; }
        .mcard-tags { display: flex; flex-wrap: wrap; gap: 6px; }
        .mcard-tag {
            font-size: 11px; padding: 2px 10px; border-radius: 6px;
            background: #f3f4f6; color: #4b5563; font-weight: 500;
        }
        .dark .mcard-tag { background: #374151; color: #d1d5db; }
        .mcard-tag.primary-tag { background: #f3f4f6; color: #111827; }
        .dark .mcard-tag.primary-tag { background: #374151; color: #f9fafb; }

        /* ============ Deprecated 模型详情弹窗 ============ */
        .dep-modal-overlay {
            position: fixed; inset: 0; z-index: 70;
            background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
            display: flex; align-items: center; justify-content: center; padding: 20px;
        }
        .dep-modal {
            background: white; dark:bg-gray-800; border-radius: 16px;
            width: 100%; max-width: 600px; max-height: 80vh; overflow-y: auto;
            box-shadow: 0 25px 60px rgba(0,0,0,0.2);
        }
        .dark .dep-modal { background: #1f2937; }
        .dep-modal-header {
            display: flex; align-items: center; gap: 12px; padding: 20px 24px 0;
        }
        .dep-modal-body { padding: 16px 24px 24px; }
        .dep-warning-banner {
            background: #fff7ed; border: 1px solid #fed7aa;
            border-radius: 10px; padding: 12px 16px; margin-bottom: 16px;
            display: flex; align-items: center; gap: 8px; font-size: 13px; color: #9a3412;
        }
        .dark .dep-warning-banner { background: #431407; border-color: #7c2d12; color: #fdba74; }

        /* ============ 全局顶栏（文档中心/模型市场子页面） ============ */
        .subpage-header {
            background: #111827; color: white; padding: 12px 24px;
            display: flex; align-items: center; gap: 12px;
        }
        .subpage-header .sp-logo {
            width: 32px; height: 32px; border-radius: 8px; object-fit: contain;
            background: rgba(255,255,255,0.15); padding: 3px;
        }
        .subpage-header .sp-title { font-weight: 700; font-size: 17px; cursor: pointer; }
        .subpage-header .sp-title:hover { opacity: 0.85; }
        .subpage-header .sp-page-name { font-weight: 600; font-size: 15px; opacity: 0.9; margin-left: 12px; }
        .subpage-header .lang-menu { background: #1f2937; border-color: #374151; color: #e5e7eb; }
        .subpage-header .lang-menu div:hover { background: #374151; }

        /* ============ 智能顶栏：滚动收缩 + 汉堡侧栏（所有页面通用） ============ */
        #mainHeader { transition: box-shadow .25s ease; }
        #mainHeader .main-header-top { transition: padding .25s ease; }
        #mainHeader .header-logo-img { transition: width .25s ease, height .25s ease; }
        #mainHeader .header-site-name { transition: font-size .25s ease; }
        #mainHeader .header-tool { transition: all .25s ease; }
        #mainHeader .main-header-nav { transition: opacity .25s ease, max-height .25s ease, transform .25s ease, margin-top .25s ease; overflow: hidden; }

        /* 滚动后状态 */
        #mainHeader.header-scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.1); }
        #mainHeader.header-scrolled .main-header-top { padding-top: .5rem; padding-bottom: .5rem; }
        #mainHeader.header-scrolled .header-logo-img { width: 2rem; height: 2rem; }
        #mainHeader.header-scrolled .header-site-name { font-size: 1.25rem; }
        #mainHeader.header-scrolled .header-tool,
        #mainHeader.header-scrolled .header-tool button {
            padding: .35rem .55rem !important;
            font-size: .8rem;
        }
        #mainHeader.header-scrolled .main-header-nav {
            opacity: 0;
            max-height: 0;
            margin-top: 0;
            transform: translateY(-.5rem);
            pointer-events: none;
        }
        #mainHeader.header-scrolled .header-hamburger { display: flex; }

        /* 汉堡按钮：未滚动桌面端隐藏，滚动后/移动端显示 */
        .header-hamburger {
            display: none;
            align-items: center;
            justify-content: center;
            width: 2.25rem;
            height: 2.25rem;
            border-radius: .5rem;
            background: transparent;
            border: none;
            cursor: pointer;
            color: #4b5563;
            font-size: 1.15rem;
            transition: background .2s, color .2s;
        }
        .dark .header-hamburger { color: #d1d5db; }
        .header-hamburger:hover { background: rgba(0,0,0,.08); }
        .dark .header-hamburger:hover { background: rgba(255,255,255,.12); }

        @media (max-width: 768px) {
            .header-hamburger { display: flex; }
            .main-header-nav { display: none !important; }
            #mainHeader.header-scrolled .header-tool,
            #mainHeader.header-scrolled .header-tool button {
                padding: .3rem .45rem !important;
                font-size: .75rem;
            }
        }

        /* 侧栏遮罩 */
        .nav-drawer-overlay {
            position: fixed;
            inset: 0;
            z-index: 55;
            background: rgba(0,0,0,.45);
            opacity: 0;
            pointer-events: none;
            transition: opacity .25s ease;
        }
        .nav-drawer-overlay:not(.hidden) { opacity: 1; pointer-events: auto; }

        /* 侧栏面板（毛玻璃） */
        .nav-drawer {
            position: fixed;
            top: 0;
            right: 0;
            width: 280px;
            max-width: 80vw;
            height: 100vh;
            z-index: 60;
            background: rgba(255,255,255,.85);
            backdrop-filter: blur(24px) saturate(160%);
            -webkit-backdrop-filter: blur(24px) saturate(160%);
            border-left: 1px solid rgba(255,255,255,.35);
            box-shadow: -8px 0 32px rgba(0,0,0,.18);
            transform: translateX(110%);
            transition: transform .3s cubic-bezier(.4,0,.2,1);
            display: flex;
            flex-direction: column;
        }
        .dark .nav-drawer {
            background: rgba(17,24,39,.88);
            border-left-color: rgba(255,255,255,.12);
        }
        .nav-drawer.open { transform: translateX(0); }

        .nav-drawer-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.25rem;
            border-bottom: 1px solid rgba(0,0,0,.08);
        }
        .dark .nav-drawer-header { border-color: rgba(255,255,255,.12); }
        .nav-drawer-header span { font-size: 1.05rem; font-weight: 600; color: #111827; }
        .dark .nav-drawer-header span { color: #f9fafb; }

        .nav-drawer-close {
            width: 2rem;
            height: 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: .5rem;
            background: transparent;
            border: none;
            cursor: pointer;
            color: #6b7280;
            font-size: 1.1rem;
            transition: background .2s, color .2s;
        }
        .dark .nav-drawer-close { color: #d1d5db; }
        .nav-drawer-close:hover { background: rgba(0,0,0,.08); color: #111827; }
        .dark .nav-drawer-close:hover { background: rgba(255,255,255,.12); color: #f9fafb; }

        .nav-drawer-body {
            flex: 1;
            overflow-y: auto;
            padding: .75rem;
        }
        .nav-drawer-item {
            display: block;
            padding: .9rem 1rem;
            margin-bottom: .25rem;
            border-radius: .75rem;
            color: #374151;
            font-size: .95rem;
            cursor: pointer;
            transition: all .2s;
            text-decoration: none;
        }
        .dark .nav-drawer-item { color: #e5e7eb; }
        .nav-drawer-item:hover {
            background: rgba(99,102,241,.12);
            color: #4f46e5;
        }
        .dark .nav-drawer-item:hover { background: rgba(129,140,248,.18); color: #a5b4fc; }
        .nav-drawer-item.active {
            background: rgba(99,102,241,.14);
            color: #4f46e5;
            font-weight: 600;
        }
        .dark .nav-drawer-item.active { background: rgba(129,140,248,.22); color: #a5b4fc; }

        @media (max-width: 480px) {
            .nav-drawer { width: 260px; }
        }

        /* ============ 厂商选择器 ============ */
        .vendor-selector {
            display: flex; flex-wrap: wrap; gap: 8px;
        }
        .vendor-btn {
            padding: 6px 14px; border: 1px solid #e5e7eb; border-radius: 8px;
            font-size: 13px; cursor: pointer; transition: all 0.15s;
            background: white; color: #4b5563; display: flex; align-items: center; gap: 6px;
        }
        .dark .vendor-btn { background: #1f2937; border-color: #374151; color: #d1d5db; }
        .vendor-btn:hover { border-color: #111827; }
        .vendor-btn.active {
            background: #111827; color: white; border-color: #111827;
        }
        .vendor-btn .vendor-dot {
            width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
        }

        /* ============ 响应式 ============ */
        @media (max-width: 1024px) {
            .docs-layout { flex-direction: column; }
            .docs-sidebar { width: 100%; position: static; max-height: none; border-right: none; border-bottom: 1px solid #e5e7eb; }
            .docs-toc { display: none; }
            .market-layout { flex-direction: column; }
            .market-filters { width: 100%; }
            .market-card-grid { grid-template-columns: 1fr; }
        }
        @media (max-width: 640px) {
            .docs-main { padding: 16px; }
            .mcard { padding: 14px; }
        }

        /* ============ 暗色模式：primary(黑) 反色处理，保证可见 ============ */
        .dark .text-primary { color: #f9fafb !important; }
        .dark .border-primary { border-color: #f9fafb !important; }
        .dark .bg-primary { background-color: #374151 !important; color: #f9fafb !important; }
        .dark .hover\:text-primary:hover { color: #f9fafb !important; }
        .dark .nav-item.active { color: #f9fafb; border-bottom-color: #f9fafb; }
        .dark .api-code-tab.active { background: #f9fafb; color: #111827; border-color: #f9fafb; }
        .dark .recharge-item.selected { border-color: #f9fafb; color: #f9fafb; background: rgba(249, 250, 251, 0.08); }
        .dark .toggle-switch.active { background: #e5e7eb; }
        .dark .docs-sidebar-link:hover { color: #f9fafb; background: rgba(249, 250, 251, 0.06); }
        .dark .docs-sidebar-link.active { color: #f9fafb; border-left-color: #f9fafb; background: rgba(249, 250, 251, 0.10); }
        .dark .docs-sidebar-title:hover, .dark .docs-sidebar-title.active { color: #f9fafb; }
        .dark .docs-toc a:hover, .dark .docs-toc a.active { color: #f9fafb; border-left-color: #f9fafb; }
        .dark .filter-tag:hover { border-color: #f9fafb; color: #f9fafb; }
        .dark .filter-tag.active { background: #f9fafb; color: #111827; border-color: #f9fafb; }
        .dark .market-search-bar input:focus { border-color: #f9fafb; box-shadow: 0 0 0 3px rgba(249, 250, 251, 0.15); }
        .dark .vendor-btn:hover { border-color: #f9fafb; }
        .dark .vendor-btn.active { background: #f9fafb; color: #111827; border-color: #f9fafb; }

        /* ============ 登录/注册/找回密码 弹窗（三Tab） ============ */
        .auth-modal-overlay {
            position: fixed; inset: 0; z-index: 200;
            background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
            display: flex; align-items: center; justify-content: center;
        }
        .auth-modal {
            width: 420px; max-width: 92vw;
            background: #1e1e2e; border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
            overflow: hidden;
        }
        /* Tab 栏 */
        .auth-tabs {
            display: flex; border-bottom: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.03);
        }
        .auth-tab {
            flex: 1; padding: 14px 0; text-align: center;
            font-size: 15px; font-weight: 500; color: #888;
            cursor: pointer; transition: all 0.2s;
            border-bottom: 2px solid transparent;
            background: none; border-top: none; border-left: none; border-right: none;
        }
        .auth-tab:hover { color: #ccc; }
        .auth-tab.active {
            color: #4fc3f7; border-bottom-color: #4fc3f7;
        }
        /* 面板 */
        .auth-panel { padding: 24px 28px 20px; }
        /* 已记住账号列表 */
        .remembered-list { margin-bottom: 16px; }
        .remembered-item {
            display: flex; align-items: center; gap: 10px;
            padding: 8px 12px; margin-bottom: 6px;
            background: rgba(255,255,255,0.05); border-radius: 8px;
            cursor: pointer; transition: background 0.2s;
        }
        .remembered-item:hover { background: rgba(255,255,255,0.1); }
        .remembered-avatar {
            width: 32px; height: 32px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 14px; font-weight: 600; color: #fff; flex-shrink: 0;
        }
        .remembered-info { flex: 1; min-width: 0; }
        .remembered-name { font-size: 14px; font-weight: 600; color: #eee; }
        .remembered-handle { font-size: 12px; color: #777; }
        .remembered-remove {
            color: #555; cursor: pointer; font-size: 16px; padding: 2px 4px;
        }
        .remembered-remove:hover { color: #f44336; }
        /* 表单字段 */
        .auth-field { margin-bottom: 14px; }
        .auth-field label {
            display: block; font-size: 13px; color: #999; margin-bottom: 6px;
        }
        .auth-input-wrap {
            display: flex; align-items: center; gap: 10px;
            background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px; padding: 0 12px; transition: border-color 0.2s;
        }
        .auth-input-wrap:focus-within { border-color: #4fc3f7; }
        .auth-icon { color: #666; font-size: 14px; width: 18px; text-align: center; }
        .auth-input-wrap input,
        .auth-select {
            flex: 1; background: none; border: none; outline: none;
            color: #ddd; font-size: 14px; padding: 11px 0;
        }
        .auth-input-wrap input::placeholder { color: #555; }
        .auth-select {
            appearance: none; -webkit-appearance: none;
            cursor: pointer; padding-right: 24px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat; background-position: right 10px center;
        }
        .auth-select option { background: #2a2a3a; color: #ddd; }
        /* 主按钮 */
        .auth-btn-primary {
            width: 100%; padding: 12px; margin-top: 6px;
            background: #22c55e; color: #fff; border: none; border-radius: 8px;
            font-size: 15px; font-weight: 600; cursor: pointer;
            transition: opacity 0.2s;
        }
        .auth-btn-primary:hover { opacity: 0.9; }
        .auth-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
        /* 底部链接 */
        .auth-footer-links {
            text-align: center; margin-top: 14px; font-size: 13px; color: #666;
        }
        .auth-footer-links a { color: #4fc3f7; cursor: pointer; text-decoration: none; }
        .auth-footer-links a:hover { text-decoration: underline; }
        /* 找回密码进度条 */
        .forgot-progress {
            display: flex; gap: 6px; margin-bottom: 20px; padding: 0 4px;
        }
        .forgot-step {
            flex: 1; height: 3px; border-radius: 2px;
            background: rgba(255,255,255,0.1); transition: background 0.3s;
        }
        .forgot-step.active { background: #22c55e; }
        .forgot-step.active.blue { background: #4fc3f7; }
        /* 安全问题显示 */
        .forgot-q-display {
            background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px; padding: 12px 14px; color: #ddd; font-size: 14px;
        }
        /* 登录后头部用户信息 — 头像下拉菜单 */
        .user-dropdown { position: relative; display: inline-block; }
        .user-avatar-btn {
            display: flex; align-items: center; gap: 8px;
            padding: 4px 12px 4px 6px;
            background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
            border-radius: 20px; cursor: pointer; transition: background 0.2s;
            color: #e5e7eb; font-size: 13px; font-weight: 500;
        }
        .user-avatar-btn:hover { background: rgba(255,255,255,0.12); }
        .user-avatar-circle {
            width: 30px; height: 30px; border-radius: 50%;
            background: linear-gradient(135deg, #4fc3f7, #a78bfa);
            display: flex; align-items: center; justify-content: center;
            color: #fff; font-size: 14px; font-weight: 700; flex-shrink: 0;
        }
        .user-name-truncate { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .user-vip-badge {
            font-size: 10px; padding: 1px 7px; border-radius: 8px;
            color: #fff; font-weight: 700; letter-spacing: 0.3px;
        }
        /* VIP 四档：free / pro / team / ultimate */
        .user-vip-badge.vip-free { background: #374151; color: #9ca3af; }
        .user-vip-badge.vip-pro { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
        .user-vip-badge.vip-team { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
        .user-vip-badge.vip-ultimate { background: linear-gradient(135deg, #f59e0b, #ef4444); }
        .user-menu {
            position: absolute; top: calc(100% + 6px); right: 0;
            min-width: 180px; padding: 6px 0;
            background: #1f2937; border: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.35);
            z-index: 9999; opacity: 0; visibility: hidden;
            transform: translateY(-6px) scale(0.97);
            transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
        }
        .user-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
        .user-menu-item {
            display: flex; align-items: center; gap: 10px;
            width: 100%; padding: 10px 16px;
            background: none; border: none; text-align: left;
            color: #d1d5db; font-size: 13px; cursor: pointer;
            transition: background 0.12s, color 0.12s;
        }
        .user-menu-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
        .user-menu-item i { width: 16px; text-align: center; font-size: 13px; color: #9ca3af; }
        .user-menu-item:hover i { color: #4fc3f7; }
        .user-menu-divider { height: 1px; margin: 4px 14px; background: rgba(255,255,255,0.06); }
        .user-menu-item.danger:hover { background: rgba(239,68,68,0.1); color: #f87171; }
        .user-menu-item.danger:hover i { color: #f87171; }

        /* ===== 云服务器 ===== */
        .month-btn {
            border: 1px solid #d1d5db; border-radius: .5rem; padding: .55rem .25rem;
            font-size: .8rem; color: #374151; background: #fff; transition: all .15s; cursor: pointer;
        }
        .dark .month-btn { border-color: #4b5563; color: #d1d5e0; background: #1f2937; }
        .month-btn:hover { border-color: #111827; }
        .month-btn.selected { border-color: #111827; background: #111827; color: #fff; }
        .dark .month-btn.selected { border-color: #60a5fa; background: #1e3a8a; }
        /* ===== 购买向导步骤条 ===== */
        .step-dot { width: 28px; height: 28px; border-radius: 50%; background: #e5e7eb; color: #6b7280; font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s; }
        .dark .step-dot { background: #374151; color: #9ca3af; }
        .step-dot.active { background: #111827; color: #fff; }
        .dark .step-dot.active { background: #60a5fa; color: #fff; }
        .step-dot.skip { opacity: .3; }
        .step-line { flex: 1; min-width: 8px; height: 2px; background: #e5e7eb; }
        .dark .step-line { background: #374151; }
        .sbs-tier-card.selected { border-color: #111827; }
        .dark .sbs-tier-card.selected { border-color: #60a5fa; }
        .sbs-region.selected { border-color: #111827; }
        .dark .sbs-region.selected { border-color: #60a5fa; }
        .fw-item.checked { border-color: #111827; background: rgba(17,24,39,0.04); }
        .dark .fw-item.checked { border-color: #60a5fa; background: rgba(96,165,250,0.08); }
        .server-card {
            border: 1px solid #e5e7eb; border-radius: .75rem; padding: 1.5rem;
            display: flex; flex-direction: column; background: #fff; transition: box-shadow .15s, transform .15s;
        }
        .dark .server-card { border-color: #374151; background: #1f2937; }
        .server-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
        .server-trial-btn {
            flex: 1; padding: .55rem; border: 1px solid #111827; border-radius: .5rem;
            font-size: .85rem; transition: all .15s; cursor: pointer; background: #fff; color: #111827;
        }
        .dark .server-trial-btn { border-color: #4b5563; color: #d1d5e0; background: #1f2937; }
        .server-trial-btn:hover:not(:disabled) { background: #111827; color: #fff; }
        .dark .server-trial-btn:hover:not(:disabled) { background: #60a5fa; color: #fff; border-color: #60a5fa; }
        .server-trial-btn:disabled { opacity: .4; cursor: not-allowed; }
        .server-buy-btn {
            flex: 1; padding: .55rem; border-radius: .5rem; font-size: .85rem;
            background: #111827; color: #fff; cursor: pointer; transition: opacity .15s;
        }
        .server-buy-btn:hover { opacity: .9; }
        .server-os-btn {
            flex: 0 0 auto; padding: .4rem .9rem; border-radius: .5rem; font-size: .82rem; cursor: pointer;
            background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%); color: #fff; border: none;
            display: inline-flex; align-items: center; gap: 6px; transition: transform .15s, box-shadow .15s;
            box-shadow: 0 4px 14px rgba(99,102,241,.35);
        }
        .server-os-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,.5); }
        .server-os-btn i { font-size: .8rem; }
        .server-pay-item {
            display: flex; align-items: center; gap: 10px; padding: 10px 12px;
            border: 1px solid #e5e7eb; border-radius: .5rem; cursor: pointer; transition: all .15s;
        }
        .dark .server-pay-item { border-color: #374151; }
        .server-pay-item.selected { border-color: #111827; background: #f3f4f6; }
        .dark .server-pay-item.selected { border-color: #60a5fa; background: #1e3a8a; }
        .srv-badge-trial { font-size: .7rem; padding: .1rem .5rem; border-radius: 9999px; background: #fef3c7; color: #b45309; }
        .srv-badge-paid { font-size: .7rem; padding: .1rem .5rem; border-radius: 9999px; background: #d1fae5; color: #047857; }

        /* ========== DeepSeek 风格首页 ========== */
        .awei-hero {
            min-height: calc(100vh - 140px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem 0;
        }
        .awei-hero-inner {
            width: 100%;
            max-width: 1100px;
        }
        .hero-banner {
            display: inline-flex;
            align-items: center;
            gap: .6rem;
            padding: .5rem 1rem;
            border-radius: 9999px;
            background: rgba(255,255,255,.10);
            color: #e0e7ff;
            font-size: .9rem;
            cursor: pointer;
            transition: all .2s;
            margin-bottom: 2rem;
            border: 1px solid rgba(255,255,255,.16);
            backdrop-filter: blur(6px);
        }
        .dark .hero-banner {
            background: rgba(255,255,255,.12);
            color: #e0e7ff;
        }
        .hero-banner:hover {
            background: rgba(255,255,255,.18);
            transform: translateX(4px);
        }
        .dark .hero-banner:hover { background: rgba(255,255,255,.2); }
        .hero-banner-icon { color: #a5b4fc; }
        .hero-banner-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 720px; }
        .hero-banner-arrow { transition: transform .2s; }
        .hero-banner:hover .hero-banner-arrow { transform: translateX(3px); }
        .hero-title {
            font-size: 4rem;
            font-weight: 700;
            letter-spacing: .15em;
            color: #ffffff;
            margin-bottom: 3rem;
            text-shadow: 0 2px 30px rgba(120,140,255,.35);
        }
        .dark .hero-title { color: #ffffff; }
        @media (max-width: 768px) {
            .hero-title { font-size: 2.4rem; margin-bottom: 2rem; }
        }
        .hero-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            align-items: stretch;
        }
        @media (max-width: 768px) {
            .hero-grid { grid-template-columns: 1fr; }
        }
        .hero-left {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }
        @media (max-width: 520px) {
            .hero-left { grid-template-columns: 1fr; }
        }
        .hero-card {
            background: rgba(255,255,255,.07);
            border: 1px solid rgba(255,255,255,.16);
            border-radius: 1.25rem;
            padding: 1.75rem;
            cursor: pointer;
            transition: all .2s;
            display: flex;
            flex-direction: column;
            justify-content: center;
            backdrop-filter: blur(10px);
        }
        .dark .hero-card {
            background: rgba(255,255,255,.07);
            border-color: rgba(255,255,255,.16);
        }
        .hero-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 14px 34px rgba(80,90,200,.28);
            border-color: rgba(165,180,252,.7);
            background: rgba(255,255,255,.12);
        }
        .dark .hero-card:hover { box-shadow: 0 14px 34px rgba(80,90,200,.4); }
        .hero-card-title {
            font-size: 1.15rem;
            font-weight: 700;
            color: #c7d2fe;
            margin-bottom: .6rem;
        }
        .hero-card-api .hero-card-title { color: #a5b4fc; }
        .dark .hero-card-title { color: #c7d2fe; }
        .hero-card-desc {
            font-size: .95rem;
            color: rgba(255,255,255,.72);
            line-height: 1.6;
            white-space: pre-line;
        }
        .dark .hero-card-desc { color: rgba(255,255,255,.72); }
        .hero-right { min-height: 100%; }
        .hero-promo {
            height: 100%;
            min-height: 260px;
            border-radius: 1.25rem;
            overflow: hidden;
            cursor: pointer;
            position: relative;
            background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4f46e5 100%);
            display: flex;
            align-items: flex-end;
            padding: 2rem;
            transition: transform .2s;
        }
        .hero-promo::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 80% 20%, rgba(129, 140, 248, .35), transparent 50%),
                        radial-gradient(circle at 20% 80%, rgba(168, 85, 247, .25), transparent 45%);
        }
        .hero-promo:hover { transform: translateY(-4px); }
        .hero-promo-content { position: relative; z-index: 1; }
        .hero-promo-title {
            font-size: 1.6rem;
            font-weight: 700;
            color: #fff;
            margin-bottom: .6rem;
        }
        .hero-promo-desc {
            font-size: 1rem;
            color: rgba(255,255,255,.8);
            line-height: 1.6;
            margin-bottom: 1.2rem;
            white-space: pre-line;
        }
        .hero-promo-btn {
            display: inline-block;
            padding: .55rem 1.25rem;
            border-radius: 9999px;
            background: rgba(255,255,255,.15);
            color: #fff;
            font-size: .9rem;
            font-weight: 500;
            border: 1px solid rgba(255,255,255,.25);
            transition: all .2s;
        }
        .hero-promo:hover .hero-promo-btn {
            background: rgba(255,255,255,.25);
            border-color: rgba(255,255,255,.4);
        }

        /* ========== 首页：全屏太空动态背景 ========== */
        #page-home {
            position: relative;
            z-index: 0;
            cursor: grab;
        }
        #page-home:active { cursor: grabbing; }
        /* 铺满整个视口的太空画布（首页隐藏时随父级一起隐藏） */
        #page-home .space-canvas {
            position: fixed;
            inset: 0;
            width: 100vw;
            height: 100vh;
            z-index: 0;
            pointer-events: none;
        }
        /* 首页所有内容浮于画布之上 */
        .awei-hero,
        .awei-home-footer { position: relative; z-index: 1; }

        /* ========== 首页底部栏 ========== */
        .awei-home-footer {
            max-width: 1100px;
            margin: 0 auto;
            padding: 4rem 1rem 2rem;
            border-top: 1px solid rgba(255,255,255,.12);
            background: transparent;
        }
        .dark .awei-home-footer { border-color: rgba(255,255,255,.12); }
        .awei-footer-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
            margin-bottom: 3rem;
        }
        @media (max-width: 768px) {
            .awei-footer-grid { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 420px) {
            .awei-footer-grid { grid-template-columns: 1fr; }
        }
        .awei-footer-col h4 {
            font-size: 1rem;
            font-weight: 600;
            color: #ffffff;
            margin-bottom: 1rem;
        }
        .dark .awei-footer-col h4 { color: #ffffff; }
        .awei-footer-col a {
            display: block;
            font-size: .9rem;
            color: rgba(255,255,255,.65);
            margin-bottom: .65rem;
            cursor: pointer;
            transition: color .2s;
        }
        .dark .awei-footer-col a { color: rgba(255,255,255,.65); }
        .awei-footer-col a:hover { color: #a5b4fc; }
        .dark .awei-footer-col a:hover { color: #c7d2fe; }
        .awei-footer-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: .8rem;
            color: rgba(255,255,255,.45);
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255,255,255,.12);
        }
        .dark .awei-footer-bottom { border-color: rgba(255,255,255,.12); }
        @media (max-width: 520px) {
            .awei-footer-bottom { flex-direction: column; gap: .5rem; align-items: flex-start; }
        }

        /* ========== Awei AI 实验室 ========== */
        .lab-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        .lab-header-icon {
            width: 3.5rem;
            height: 3.5rem;
            border-radius: 1rem;
            background: linear-gradient(135deg, #6366f1, #a855f7);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }
        .lab-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: #111827;
        }
        .dark .lab-title { color: #f3f4f6; }
        .lab-subtitle {
            font-size: .95rem;
            color: #6b7280;
        }
        .dark .lab-subtitle { color: #9ca3af; }
        .lab-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 1.5rem;
        }
        .lab-card {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 1.25rem;
            padding: 1.75rem;
            cursor: pointer;
            transition: all .2s;
            display: flex;
            flex-direction: column;
        }
        .dark .lab-card {
            background: #1f2937;
            border-color: #374151;
        }
        .lab-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 28px rgba(0,0,0,.08);
            border-color: #6366f1;
        }
        .dark .lab-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.25); }
        .lab-card-icon {
            width: 3rem;
            height: 3rem;
            border-radius: .75rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 1.25rem;
            margin-bottom: 1rem;
        }
        .lab-card-name {
            font-size: 1.15rem;
            font-weight: 700;
            color: #111827;
            margin-bottom: .25rem;
        }
        .dark .lab-card-name { color: #f3f4f6; }
        .lab-card-subtitle {
            font-size: .85rem;
            color: #6b7280;
            margin-bottom: .75rem;
        }
        .dark .lab-card-subtitle { color: #9ca3af; }
        .lab-card-desc {
            font-size: .9rem;
            color: #4b5563;
            line-height: 1.5;
            margin-bottom: 1rem;
            flex: 1;
        }
        .dark .lab-card-desc { color: #d1d5db; }
        .lab-card-actions {
            display: flex;
            gap: .75rem;
            margin-top: auto;
        }
        .lab-card-actions button {
            flex: 1;
            padding: .55rem .75rem;
            border-radius: .6rem;
            font-size: .85rem;
            font-weight: 500;
            transition: all .2s;
        }
        .lab-btn-primary {
            background: #4f46e5;
            color: #fff;
            border: none;
        }
        .lab-btn-primary:hover { background: #4338ca; }
        .lab-btn-secondary {
            background: transparent;
            color: #4f46e5;
            border: 1px solid #e2e8f0;
        }
        .dark .lab-btn-secondary { border-color: #4b5563; color: #818cf8; }
        .lab-btn-secondary:hover { background: rgba(79,70,229,.05); border-color: #4f46e5; }

        /* 实验室模型详情浮层 */
        .lab-modal-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,.5);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            overflow-y: auto;
        }
        .lab-modal {
            background: #fff;
            border-radius: 1.5rem;
            width: 100%;
            max-width: 720px;
            max-height: 85vh;
            overflow-y: auto;
            box-shadow: 0 24px 48px rgba(0,0,0,.2);
        }
        .dark .lab-modal { background: #1f2937; }
        .lab-modal-header {
            display: flex;
            gap: 1rem;
            padding: 1.75rem;
            border-bottom: 1px solid #e5e7eb;
        }
        .dark .lab-modal-header { border-color: #374151; }
        .lab-modal-icon {
            width: 4rem;
            height: 4rem;
            border-radius: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 1.5rem;
            flex-shrink: 0;
        }
        .lab-modal-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: #111827;
        }
        .dark .lab-modal-title { color: #f3f4f6; }
        .lab-modal-subtitle {
            font-size: .9rem;
            color: #6b7280;
        }
        .dark .lab-modal-subtitle { color: #9ca3af; }
        .lab-modal-tags {
            display: flex;
            flex-wrap: wrap;
            gap: .4rem;
            margin-top: .5rem;
        }
        .lab-modal-tag {
            font-size: .7rem;
            padding: .2rem .55rem;
            border-radius: 9999px;
            background: #e0e7ff;
            color: #4338ca;
        }
        .dark .lab-modal-tag { background: #312e81; color: #c7d2fe; }
        .lab-modal-actions {
            display: flex;
            gap: .75rem;
            margin-top: .75rem;
        }
        .lab-modal-body {
            padding: 1.75rem;
        }
        .lab-modal-section {
            margin-bottom: 1.5rem;
        }
        .lab-modal-section:last-child { margin-bottom: 0; }
        .lab-modal-section h3 {
            font-size: 1.1rem;
            font-weight: 700;
            color: #111827;
            margin-bottom: .75rem;
        }
        .dark .lab-modal-section h3 { color: #f3f4f6; }
        .lab-modal-section p {
            font-size: .92rem;
            color: #4b5563;
            line-height: 1.7;
        }
        .dark .lab-modal-section p { color: #d1d5db; }
        .lab-info-table {
            border: 1px solid #e5e7eb;
            border-radius: .75rem;
            overflow: hidden;
        }
        .dark .lab-info-table { border-color: #374151; }
        .lab-info-row {
            display: flex;
            justify-content: space-between;
            padding: .75rem 1rem;
            border-bottom: 1px solid #e5e7eb;
            font-size: .9rem;
        }
        .dark .lab-info-row { border-color: #374151; }
        .lab-info-row:last-child { border-bottom: none; }
        .lab-info-row span:first-child { color: #6b7280; }
        .dark .lab-info-row span:first-child { color: #9ca3af; }
        .lab-close-btn {
            position: absolute;
            top: 1rem;
            right: 1rem;
            width: 2rem;
            height: 2rem;
            border-radius: .5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #9ca3af;
            cursor: pointer;
            transition: all .2s;
        }
        .lab-close-btn:hover { background: #f3f4f6; color: #111827; }
        .dark .lab-close-btn:hover { background: #374151; color: #f3f4f6; }

/* ===== Awei Skill 跨产品技能条（js/skills.js 渲染）===== */
.awei-skill-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.awei-skill-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 9999px;
    background: rgba(17,24,39,0.06); color: #111827;
    font-size: 12px; font-weight: 500; line-height: 1;
    border: 1px solid rgba(17,24,39,0.08);
}
.dark .awei-skill-chip { background: rgba(255,255,255,0.08); color: #f3f4f6; border-color: rgba(255,255,255,0.12); }
.awei-skill-chip i { font-size: 12px; opacity: .85; }
.awei-skill-empty { color: #9ca3af; font-size: 12px; }

/* ========== 法律文本 / 安全漏洞 / 透明度中心 ========== */
.legal-shell, .sec-shell {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}
.legal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: .75rem;
}
.dark .legal-title { color: #f3f4f6; }
.legal-meta {
    font-size: .9rem;
    color: #6b7280;
    margin-bottom: 2rem;
}
.dark .legal-meta { color: #9ca3af; }
.legal-body {
    font-size: .95rem;
    line-height: 1.8;
    color: #374151;
}
.dark .legal-body { color: #d1d5db; }
.legal-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.dark .legal-body h2 { color: #f3f4f6; }
.legal-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: .5rem;
}
.dark .legal-body h3 { color: #f3f4f6; }
.legal-body p { margin-bottom: 1rem; }
.legal-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-body a { color: #4f46e5; text-decoration: underline; }
.dark .legal-body a { color: #818cf8; }

/* 反馈安全漏洞 */
.sec-big-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000;
    margin-bottom: .5rem;
}
.dark .sec-big-title { color: #fff; }
.sec-version {
    font-size: .85rem;
    color: #9ca3af;
    margin-bottom: 2rem;
    user-select: none;
}
.sec-form { display: flex; flex-direction: column; gap: 1.25rem; }
.sec-field label {
    display: block;
    font-size: .95rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: .5rem;
}
.dark .sec-field label { color: #f3f4f6; }
.sec-req { color: #ef4444; }
.sec-opt { color: #9ca3af; font-weight: 400; }
.sec-field input[type="text"],
.sec-field input[type="password"],
.sec-field textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    background: #fff;
    color: #111827;
    font-size: .95rem;
    transition: border .2s;
}
.dark .sec-field input,
.dark .sec-field textarea { background: #1f2937; border-color: #374151; color: #f3f4f6; }
.sec-field input:focus, .sec-field textarea:focus { outline: none; border-color: #111827; }
.sec-field textarea { resize: vertical; }
.sec-hint {
    font-size: .85rem;
    color: #6b7280;
    margin-bottom: .5rem;
}
.dark .sec-hint { color: #9ca3af; }
.sec-drop {
    border: 2px dashed #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    color: #6b7280;
    cursor: pointer;
    transition: all .2s;
}
.sec-drop:hover { border-color: #111827; color: #111827; }
.dark .sec-drop { border-color: #374151; color: #9ca3af; }
.dark .sec-drop:hover { border-color: #818cf8; color: #f3f4f6; }
.sec-file-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: .75rem;
}
.sec-file-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .75rem;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    background: #f9fafb;
    font-size: .85rem;
}
.dark .sec-file-item { background: #1f2937; border-color: #374151; }
.sec-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-file-remove {
    color: #9ca3af; cursor: pointer;
}
.sec-file-remove:hover { color: #ef4444; }
.sec-submit {
    padding: .75rem 1.75rem;
    border-radius: .6rem;
    background: #111827;
    color: #fff;
    font-weight: 500;
    font-size: .95rem;
    transition: opacity .2s;
}
.sec-submit:hover { opacity: .9; }
.sec-submit:disabled { opacity: .5; cursor: not-allowed; }

/* 后台 */
.sec-gate {
    max-width: 480px;
    margin: 3rem auto;
    text-align: center;
}
.sec-status-badge {
    display: inline-flex;
    align-items: center;
    padding: .25rem .75rem;
    border-radius: 9999px;
    font-size: .75rem;
    font-weight: 500;
}
.sec-status-filed { background: #fee2e2; color: #991b1b; }
.dark .sec-status-filed { background: #450a0a; color: #fca5a5; }
.sec-status-processing { background: #fef3c7; color: #92400e; }
.dark .sec-status-processing { background: #451a03; color: #fcd34d; }
.sec-status-done { background: #d1fae5; color: #065f46; }
.dark .sec-status-done { background: #064e3b; color: #a7f3d0; }

/* 透明度中心 */
.trans-actions {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 2.5rem;
}
.trans-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    color: #111827;
    font-size: 1rem;
    cursor: pointer;
    transition: all .2s;
    text-align: left;
}
.dark .trans-row { background: #1f2937; border-color: #374151; color: #f3f4f6; }
.trans-row:hover { border-color: #111827; }
.dark .trans-row:hover { border-color: #818cf8; }
.trans-row-go {
    font-size: .9rem;
    color: #4f46e5;
    font-weight: 500;
}
.dark .trans-row-go { color: #818cf8; }
.trans-h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: .25rem;
}
.dark .trans-h2 { color: #f3f4f6; }
.trans-sub {
    font-size: .9rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}
.dark .trans-sub { color: #9ca3af; }
.trans-model-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.trans-model-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    transition: all .2s;
}
.dark .trans-model-card { background: #1f2937; border-color: #374151; }
.trans-model-card:hover { border-color: #111827; }
.dark .trans-model-card:hover { border-color: #818cf8; }
.trans-model-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
}
.trans-model-info { flex: 1; min-width: 0; }
.trans-model-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: .25rem;
}
.dark .trans-model-name { color: #f3f4f6; }
.trans-model-date {
    font-size: .85rem;
    color: #6b7280;
}
.dark .trans-model-date { color: #9ca3af; }
.trans-model-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}
.trans-model-actions button {
    padding: .55rem 1rem;
    border-radius: .5rem;
    font-size: .85rem;
    font-weight: 500;
    transition: all .2s;
}
.trans-btn-outline {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
}
.dark .trans-btn-outline { background: #1f2937; border-color: #4b5563; color: #f3f4f6; }
.trans-btn-outline:hover { border-color: #111827; }
.trans-btn-dark {
    background: #111827;
    color: #fff;
    border: none;
}
.trans-btn-dark:hover { opacity: .9; }

/* ==================== 加入我们 ==================== */
.join-shell { max-width: 860px; margin: 0 auto; padding: 3rem 1.25rem 5rem; }
.join-hero { text-align: center; margin-bottom: 2.5rem; }
.join-title { font-size: 2.25rem; font-weight: 700; color: #111827; margin-bottom: .5rem; }
.dark .join-title { color: #f3f4f6; }
.join-subtitle { color: #6b7280; font-size: 1.05rem; }
.join-position-list { display: grid; gap: 1rem; }
.join-position-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.5rem;
    display: flex; align-items: center; justify-content: space-between; cursor: pointer;
    transition: all .2s;
}
.dark .join-position-card { background: #1f2937; border-color: #374151; }
.join-position-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); border-color: #111827; }
.join-position-info h3 { font-size: 1.15rem; font-weight: 600; color: #111827; margin-bottom: .35rem; }
.dark .join-position-info h3 { color: #f3f4f6; }
.join-position-info p { font-size: .9rem; color: #6b7280; }
.join-position-tag { font-size: .75rem; padding: .25rem .6rem; background: #f3f4f6; color: #374151; border-radius: 999px; }
.join-position-go { color: #9ca3af; font-size: 1.1rem; }
.join-form-wrap { background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.75rem; }
.dark .join-form-wrap { background: #1f2937; border-color: #374151; }
.join-back { display: inline-flex; align-items: center; color: #6b7280; font-size: .9rem; margin-bottom: 1rem; }
.join-back:hover { color: #111827; }
.join-form-title { font-size: 1.5rem; font-weight: 700; color: #111827; margin-bottom: 1.25rem; }
.dark .join-form-title { color: #f3f4f6; }
.join-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 640px) { .join-grid { grid-template-columns: 1fr; } }
.join-field { margin-bottom: 1rem; }
.join-field label { display: block; font-size: .9rem; font-weight: 500; color: #374151; margin-bottom: .4rem; }
.dark .join-field label { color: #d1d5db; }
.join-required { color: #ef4444; }
.join-field input, .join-field select, .join-field textarea {
    width: 100%; padding: .65rem .85rem; border: 1px solid #d1d5db; border-radius: .5rem;
    background: #fff; color: #111827; font-size: .95rem; outline: none; transition: border .2s;
}
.dark .join-field input, .dark .join-field select, .dark .join-field textarea { background: #111827; border-color: #4b5563; color: #f3f4f6; }
.join-field input:focus, .join-field select:focus, .join-field textarea:focus { border-color: #111827; }
.join-field textarea { resize: vertical; }
.join-drop {
    border: 2px dashed #d1d5db; border-radius: .75rem; padding: 1.25rem; text-align: center;
    color: #6b7280; cursor: pointer; transition: all .2s;
}
.join-drop:hover { border-color: #111827; color: #111827; background: #f9fafb; }
.join-file-list { margin-top: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.join-file-item {
    display: flex; align-items: center; justify-content: space-between; padding: .55rem .75rem;
    background: #f3f4f6; border-radius: .5rem; font-size: .85rem;
}
.join-file-item button { color: #9ca3af; }
.join-check { display: flex; gap: .5rem; align-items: flex-start; margin: 1.25rem 0; font-size: .85rem; color: #4b5563; }
.join-check input { margin-top: .2rem; }
.join-submit {
    width: 100%; padding: .85rem; background: #111827; color: #fff; border-radius: .5rem;
    font-weight: 600; transition: opacity .2s;
}
.join-submit:hover { opacity: .9; }
.join-msg { margin-top: .75rem; font-size: .9rem; text-align: center; min-height: 1.25rem; }
.join-done { text-align: center; padding: 4rem 1rem; }
.join-done-icon { font-size: 4rem; color: #22c55e; margin-bottom: 1rem; }
.join-done h2 { font-size: 1.75rem; font-weight: 700; color: #111827; margin-bottom: .5rem; }
.dark .join-done h2 { color: #f3f4f6; }
.join-done p { color: #6b7280; margin-bottom: 1.5rem; }

/* ==================== 服务状态 ==================== */
.status-shell { max-width: 960px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.status-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.status-title { font-size: 1.75rem; font-weight: 700; color: #111827; }
.dark .status-title { color: #f3f4f6; }
.status-range { display: inline-flex; align-items: center; gap: .75rem; color: #6b7280; font-size: .95rem; }
.status-range button { width: 2rem; height: 2rem; border-radius: .5rem; border: 1px solid #e5e7eb; background: #fff; color: #374151; }
.dark .status-range button { background: #1f2937; border-color: #374151; color: #d1d5db; }
.status-service-list { display: flex; flex-direction: column; gap: 1.5rem; }
.status-service {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.25rem 1.5rem;
}
.dark .status-service { background: #1f2937; border-color: #374151; }
.status-service-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.status-service-head i.fa-check-circle { color: #22c55e; font-size: 1.25rem; }
.status-service-head i.fa-exclamation-circle { color: #f59e0b; font-size: 1.25rem; }
.status-service-head i.fa-times-circle { color: #ef4444; font-size: 1.25rem; }
.status-service-name { font-weight: 600; color: #111827; }
.dark .status-service-name { color: #f3f4f6; }
.status-service-info { color: #9ca3af; cursor: pointer; }
.status-service-uptime { margin-left: auto; font-size: .9rem; color: #6b7280; }
.status-bars { display: flex; gap: .2rem; align-items: flex-end; height: 28px; }
.status-bar {
    flex: 1; min-width: 4px; max-width: 10px; border-radius: 2px; height: 100%;
    position: relative; cursor: pointer; transition: opacity .2s;
}
.status-bar:hover { opacity: .75; }
.status-bar.normal { background: #22c55e; }
.status-bar.fluctuation { background: #f59e0b; }
.status-bar.broken { background: #ef4444; }
.status-bar[title] { position: relative; }
.status-footer { text-align: center; color: #9ca3af; font-size: .85rem; margin-top: 2rem; }
.status-legend { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; font-size: .85rem; color: #6b7280; }
.status-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.normal { background: #22c55e; }
.status-dot.fluctuation { background: #f59e0b; }
.status-dot.broken { background: #ef4444; }

/* ==================== 404 页面 ==================== */
.notfound-shell {
    min-height: calc(100vh - 64px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 2rem; text-align: center;
}
.notfound-code {
    font-size: 6rem; font-weight: 300; letter-spacing: .25rem;
    color: #111827; margin-bottom: 1.5rem; line-height: 1;
}
.dark .notfound-code { color: #f3f4f6; }
.notfound-text { color: #6b7280; font-size: .95rem; line-height: 2; margin-bottom: 2rem; }
.dark .notfound-text { color: #9ca3af; }
.notfound-text p { margin: 0; }
.notfound-btn {
    padding: .65rem 1.5rem; border: 1px solid #e5e7eb; border-radius: 9999px;
    background: transparent; color: #374151; font-size: .9rem; cursor: pointer;
    transition: all .2s;
}
.notfound-btn:hover { background: #111827; color: #fff; border-color: #111827; }
.dark .notfound-btn { border-color: #374151; color: #d1d5db; }
.dark .notfound-btn:hover { background: #f3f4f6; color: #111827; border-color: #f3f4f6; }

/* ===== Cookie 同意横幅 ===== */
.cookie-banner {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
    width: min(920px, calc(100% - 32px)); z-index: 60;
    background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(229,231,235,.9); border-radius: 16px;
    box-shadow: 0 12px 40px rgba(17,24,39,.12);
    padding: 16px 20px; animation: cookieUp .4s ease;
}
@keyframes cookieUp { from { opacity: 0; transform: translateX(-50%) translateY(16px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.dark .cookie-banner { background: rgba(31,41,55,.82); border-color: rgba(55,65,81,.9); box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cookie-text { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; color: #4b5563; line-height: 1.5; }
.dark .cookie-text { color: #cbd5e1; }
.cookie-text i { margin-top: 3px; color: #3b82f6; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-decline, .cookie-accept {
    padding: .5rem 1.25rem; border-radius: 9999px; font-size: .85rem; cursor: pointer; transition: all .2s; border: 1px solid transparent;
}
.cookie-decline { background: transparent; border-color: #d1d5db; color: #4b5563; }
.cookie-decline:hover { background: #f3f4f6; }
.dark .cookie-decline { border-color: #4b5563; color: #cbd5e1; }
.dark .cookie-decline:hover { background: #374151; }
.cookie-accept { background: #3b82f6; color: #fff; }
.cookie-accept:hover { background: #2563eb; }

/* ===== 统一管理员后台 Tabs ===== */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid #e5e7eb; }
.dark .admin-tabs { border-color: #374151; }
.admin-tab {
    padding: 10px 18px; border: none; background: transparent; cursor: pointer;
    font-size: .92rem; color: #6b7280; border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: all .2s;
}
.admin-tab:hover { color: #111827; }
.dark .admin-tab:hover { color: #f3f4f6; }
.admin-tab.active { color: #3b82f6; border-bottom-color: #3b82f6; font-weight: 600; }
.join-file-link { color: #3b82f6; text-decoration: underline; }
.join-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.join-detail-grid > div { font-size: .88rem; }
.join-detail-grid .lbl { color: #9ca3af; font-size: .75rem; margin-bottom: 2px; }

/* ===== 新闻动态页 ===== */
.news-shell { max-width: 960px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.news-header { margin-bottom: 2rem; }
.news-title { font-size: 1.75rem; font-weight: 700; }
.news-sub { color: #6b7280; margin-top: .35rem; }
.dark .news-sub { color: #9ca3af; }
.news-admin { margin-bottom: 2rem; }
.news-admin-btn { background: #4f46e5; color: #fff; border: none; border-radius: .6rem; padding: .6rem 1rem; font-size: .9rem; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.news-admin-btn:hover { background: #4338ca; }
.news-admin-form { margin-top: 1rem; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: .75rem; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.dark .news-admin-form { background: #111827; border-color: #374151; }
.news-input { border: 1px solid #d1d5db; border-radius: .5rem; padding: .55rem .75rem; font-size: .9rem; background: #fff; color: #111827; width: 100%; box-sizing: border-box; }
.dark .news-input { background: #1f2937; border-color: #374151; color: #f3f4f6; }
.news-input:focus { outline: 2px solid #6366f1; border-color: transparent; }
.news-submit-btn { background: #10b981; color: #fff; border: none; border-radius: .5rem; padding: .55rem 1rem; font-size: .9rem; cursor: pointer; align-self: flex-start; }
.news-submit-btn:hover { background: #059669; }
.news-msg { font-size: .85rem; color: #ef4444; }
.news-list { display: flex; flex-direction: column; gap: 1.25rem; }
.news-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.dark .news-card { background: #1f2937; border-color: #374151; }
.news-card-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.news-tag { font-size: .75rem; padding: .2rem .6rem; border-radius: 999px; font-weight: 600; background: #eef2ff; color: #4f46e5; white-space: nowrap; }
.dark .news-tag { background: #312e81; color: #c7d2fe; }
.news-date { font-size: .8rem; color: #9ca3af; margin-left: auto; }
.news-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.news-card-content { color: #4b5563; line-height: 1.7; white-space: pre-line; }
.dark .news-card-content { color: #d1d5db; }
.news-card-op { font-size: .8rem; color: #9ca3af; margin-top: .75rem; }

/* ===== 模型对比页 ===== */
.compare-shell { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.compare-header { margin-bottom: 1.5rem; }
.compare-title { font-size: 1.75rem; font-weight: 700; }
.compare-sub { color: #6b7280; margin-top: .35rem; }
.dark .compare-sub { color: #9ca3af; }
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 760px; }
.compare-table th, .compare-table td { border: 1px solid #e5e7eb; padding: .75rem .85rem; text-align: left; vertical-align: top; }
.dark .compare-table th, .dark .compare-table td { border-color: #374151; }
.compare-table thead th { background: #f9fafb; font-weight: 700; }
.dark .compare-table thead th { background: #111827; }
.compare-dim { color: #6b7280; font-weight: 600; background: #fafafa; white-space: nowrap; }
.dark .compare-dim { color: #9ca3af; background: #0f172a; }
.compare-col-hl { background: rgba(99,102,241,.10); font-weight: 600; }
.compare-table tbody tr:hover td { background: rgba(99,102,241,.05); }
.compare-note { font-size: .8rem; color: #9ca3af; margin-top: 1rem; line-height: 1.6; }

/* ===== 服务状态实时探测标记 ===== */
.status-realtime { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: #6b7280; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: .5rem; padding: .4rem .75rem; margin-bottom: 1.25rem; }
.dark .status-realtime { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.3); color: #a7f3d0; }
.status-live { color: #22c55e; font-size: .6rem; animation: statusPulse 1.5s infinite; }
@keyframes statusPulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ============================================================
   定价页
   ============================================================ */
.pricing-shell { max-width: 1120px; margin: 0 auto; padding: 2.5rem 1.25rem 4.5rem; }
.pricing-header { text-align: center; margin-bottom: 2.5rem; }
.pricing-title { font-size: 2rem; font-weight: 800; letter-spacing: -.01em; }
.pricing-sub { color: #6b7280; margin-top: .5rem; }
.dark .pricing-sub { color: #9ca3af; }
.pricing-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.pricing-quick-card { border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.25rem; background: linear-gradient(160deg, rgba(99,102,241,.06), rgba(255,255,255,0)); }
.dark .pricing-quick-card { border-color: #374151; background: linear-gradient(160deg, rgba(99,102,241,.12), rgba(17,24,39,0)); }
.pricing-quick-num { font-size: 1.6rem; font-weight: 800; color: #4f46e5; }
.pricing-quick-label { font-weight: 700; margin-top: .25rem; font-size: .95rem; }
.pricing-quick-note { font-size: .8rem; color: #6b7280; margin-top: .35rem; line-height: 1.5; }
.dark .pricing-quick-note { color: #9ca3af; }
.pricing-section-title { font-size: 1.25rem; font-weight: 700; margin: 2.5rem 0 1rem; }
.pricing-table-wrap { }
.pricing-table-scroll { overflow-x: auto; border: 1px solid #e5e7eb; border-radius: 1rem; }
.dark .pricing-table-scroll { border-color: #374151; }
.pricing-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 720px; background: #fff; }
.dark .pricing-table { background: #1f2937; }
.pricing-table thead th { text-align: left; padding: .85rem 1rem; background: #f9fafb; font-weight: 700; font-size: .85rem; color: #374151; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
.dark .pricing-table thead th { background: #111827; color: #d1d5db; border-color: #374151; }
.pricing-table td { padding: .9rem 1rem; border-bottom: 1px solid #f3f4f6; vertical-align: top; }
.dark .pricing-table td { border-color: #263244; }
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:hover td { background: rgba(99,102,241,.05); }
.pricing-row-hl td { background: rgba(99,102,241,.07); }
.pricing-td-name { min-width: 260px; }
.pricing-name-line { display: block; font-weight: 700; font-size: .95rem; }
.pricing-sub { display: block; font-size: .78rem; color: #9ca3af; margin-top: .15rem; }
.pricing-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.pricing-tag { font-size: .68rem; padding: .1rem .45rem; border-radius: 999px; background: #f3f4f6; color: #6b7280; }
.dark .pricing-tag { background: #374151; color: #d1d5db; }
.pricing-badge-new { font-size: .62rem; font-weight: 700; color: #fff; background: #f59e0b; border-radius: 4px; padding: .05rem .3rem; margin-left: .4rem; vertical-align: middle; }
.pricing-td-ctx { color: #6b7280; white-space: nowrap; }
.pricing-td-price { font-weight: 600; white-space: nowrap; color: #111827; }
.dark .pricing-td-price { color: #f3f4f6; }
.pricing-table-note { font-size: .78rem; color: #9ca3af; margin-top: .75rem; line-height: 1.6; }
.pricing-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.pricing-plan { position: relative; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.4rem; display: flex; flex-direction: column; background: #fff; }
.dark .pricing-plan { border-color: #374151; background: #1f2937; }
.pricing-plan-hl { border-color: #4f46e5; box-shadow: 0 8px 28px rgba(79,70,229,.14); }
.pricing-plan-badge { position: absolute; top: -.6rem; right: 1rem; background: #4f46e5; color: #fff; font-size: .68rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.pricing-plan-name { font-weight: 700; font-size: 1.02rem; }
.pricing-plan-price { font-size: 2rem; font-weight: 800; margin: .5rem 0 .1rem; color: #111827; }
.dark .pricing-plan-price { color: #f9fafb; }
.pricing-plan-price .cur { font-size: 1rem; font-weight: 600; margin-right: .1rem; }
.pricing-plan-tokens { font-size: .82rem; color: #4f46e5; font-weight: 600; }
.pricing-plan-desc { font-size: .82rem; color: #6b7280; margin: .6rem 0 .8rem; line-height: 1.55; }
.dark .pricing-plan-desc { color: #9ca3af; }
.pricing-plan-feats { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.pricing-plan-feats li { font-size: .82rem; color: #4b5563; display: flex; gap: .45rem; align-items: flex-start; }
.dark .pricing-plan-feats li { color: #d1d5db; }
.pricing-plan-feats li i { color: #10b981; margin-top: .18rem; font-size: .78rem; }
.pricing-plan-btn { border: none; border-radius: .6rem; padding: .65rem; background: #111827; color: #fff; font-size: .88rem; cursor: pointer; font-weight: 600; }
.pricing-plan-hl .pricing-plan-btn { background: #4f46e5; }
.pricing-plan-btn:hover { opacity: .9; }
.pricing-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.pricing-rule-card { border: 1px solid #e5e7eb; border-radius: .9rem; padding: 1.1rem; }
.dark .pricing-rule-card { border-color: #374151; }
.pricing-rule-icon { width: 2.1rem; height: 2.1rem; border-radius: .6rem; background: rgba(79,70,229,.1); color: #4f46e5; display: flex; align-items: center; justify-content: center; margin-bottom: .6rem; }
.pricing-rule-title { font-weight: 700; font-size: .95rem; }
.pricing-rule-desc { font-size: .82rem; color: #6b7280; margin-top: .3rem; line-height: 1.6; }
.dark .pricing-rule-desc { color: #9ca3af; }
.pricing-faq { display: flex; flex-direction: column; gap: .6rem; }
.pricing-faq-item { border: 1px solid #e5e7eb; border-radius: .8rem; padding: 0 1rem; background: #fff; }
.dark .pricing-faq-item { border-color: #374151; background: #1f2937; }
.pricing-faq-item summary { cursor: pointer; font-weight: 600; font-size: .92rem; padding: .9rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.pricing-faq-item summary::-webkit-details-marker { display: none; }
.pricing-faq-item summary::after { content: '+'; color: #9ca3af; font-weight: 400; font-size: 1.1rem; }
.pricing-faq-item[open] summary::after { content: '−'; }
.pricing-faq-body { font-size: .85rem; color: #6b7280; padding: 0 0 .9rem; line-height: 1.7; }
.dark .pricing-faq-body { color: #9ca3af; }
.pricing-cta { margin-top: 3rem; border-radius: 1.2rem; padding: 1.75rem 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: linear-gradient(120deg, #4f46e5, #7c3aed); color: #fff; }
.pricing-cta-title { font-size: 1.25rem; font-weight: 800; }
.pricing-cta-sub { font-size: .85rem; opacity: .85; margin-top: .25rem; }
.pricing-cta-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.pricing-cta-primary { border: none; border-radius: .6rem; padding: .7rem 1.3rem; background: #fff; color: #4f46e5; font-weight: 700; cursor: pointer; }
.pricing-cta-ghost { border: 1px solid rgba(255,255,255,.6); border-radius: .6rem; padding: .7rem 1.3rem; background: transparent; color: #fff; font-weight: 600; cursor: pointer; }
.pricing-cta-ghost:hover { background: rgba(255,255,255,.12); }

/* ============================================================
   在线调试台
   ============================================================ */
.pgc-shell { max-width: 1240px; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }
.pgc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.pgc-toolbar-left { display: flex; align-items: center; gap: .75rem; }
.pgc-toolbar-icon { width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: #111827; color: #fff; display: flex; align-items: center; justify-content: center; }
.pgc-toolbar-title { font-weight: 800; font-size: 1.1rem; }
.pgc-toolbar-sub { font-size: .78rem; color: #6b7280; }
.dark .pgc-toolbar-sub { color: #9ca3af; }
.pgc-toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pgc-select { border: 1px solid #d1d5db; border-radius: .55rem; padding: .5rem .7rem; font-size: .85rem; background: #fff; color: #111827; }
.dark .pgc-select { background: #1f2937; border-color: #374151; color: #f3f4f6; }
.pgc-select-key { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.dark .pgc-select-key { background: #422006; color: #fcd34d; border-color: #b45309; }
.pgc-btn-ghost { border: 1px solid #d1d5db; border-radius: .55rem; padding: .5rem .9rem; font-size: .85rem; background: transparent; color: #4b5563; cursor: pointer; }
.dark .pgc-btn-ghost { border-color: #374151; color: #d1d5db; }
.pgc-btn-ghost:hover { background: #f3f4f6; }
.dark .pgc-btn-ghost:hover { background: #374151; }
.pgc-key-warn { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: #92400e; background: #fffbeb; border: 1px solid #fcd34d; border-radius: .6rem; padding: .6rem .85rem; margin-bottom: 1rem; }
.dark .pgc-key-warn { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.4); color: #fcd34d; }
.pgc-inline-link { border: none; background: none; color: #4f46e5; text-decoration: underline; cursor: pointer; font-size: .82rem; }
.pgc-body { display: grid; grid-template-columns: 218px minmax(0,1fr) 360px; gap: 1.25rem; align-items: start; }
@media (max-width: 1240px) { .pgc-body { grid-template-columns: minmax(0,1fr) 340px; } .pgc-sessions { display: none; } }
@media (max-width: 980px) { .pgc-body { grid-template-columns: 1fr; } .pgc-side { display: flex; } }
.pgc-main { border: 1px solid #e5e7eb; border-radius: 1rem; overflow: hidden; background: #fff; display: flex; flex-direction: column; min-height: 62vh; }
.dark .pgc-main { border-color: #374151; background: #1f2937; }
.pgc-chat { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .85rem; background: #f9fafb; max-height: 60vh; }
.dark .pgc-chat { background: #111827; }
.pgc-msg { display: flex; gap: .6rem; align-items: flex-start; }
.pgc-msg-avatar { width: 1.9rem; height: 1.9rem; border-radius: .5rem; display: flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0; }
.pgc-msg-user .pgc-msg-avatar { background: #111827; color: #fff; }
.pgc-msg-assistant .pgc-msg-avatar { background: #4f46e5; color: #fff; }
.pgc-msg-system .pgc-msg-avatar { background: #e5e7eb; color: #6b7280; }
.dark .pgc-msg-system .pgc-msg-avatar { background: #374151; color: #9ca3af; }
.pgc-msg-body { font-size: .88rem; line-height: 1.7; white-space: pre-wrap; word-break: break-word; padding: .6rem .85rem; border-radius: .7rem; max-width: 100%; }
.pgc-msg-user .pgc-msg-body { background: #111827; color: #fff; }
.dark .pgc-msg-user .pgc-msg-body { background: #374151; }
.pgc-msg-assistant .pgc-msg-body { background: #fff; border: 1px solid #e5e7eb; }
.dark .pgc-msg-assistant .pgc-msg-body { background: #1f2937; border-color: #374151; }
.pgc-msg-system .pgc-msg-body { background: transparent; color: #9ca3af; font-size: .8rem; padding: .2rem .85rem; }
.pgc-msg-typing .pgc-msg-body::after { content: '▋'; animation: statusPulse 1s infinite; color: #4f46e5; }
.pgc-blocked { margin-top: .5rem; font-size: .78rem; color: #ef4444; }
.pgc-compose { border-top: 1px solid #e5e7eb; padding: .8rem; }
.dark .pgc-compose { border-color: #374151; }
.pgc-input { width: 100%; resize: vertical; border: 1px solid #d1d5db; border-radius: .6rem; padding: .6rem .8rem; font-size: .88rem; background: #fff; color: #111827; box-sizing: border-box; font-family: inherit; }
.dark .pgc-input { background: #111827; border-color: #374151; color: #f3f4f6; }
.pgc-input:focus { outline: 2px solid #6366f1; border-color: transparent; }
.pgc-compose-bar { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; }
.pgc-ctx-hint { font-size: .75rem; color: #9ca3af; }
.pgc-send { border: none; border-radius: .55rem; padding: .55rem 1.2rem; background: #4f46e5; color: #fff; font-size: .88rem; font-weight: 600; cursor: pointer; }
.pgc-send:hover { background: #4338ca; }
.pgc-send:disabled { opacity: .55; cursor: not-allowed; }
.pgc-side { display: flex; flex-direction: column; gap: 1rem; }
.pgc-side-block { border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1rem; background: #fff; }
.dark .pgc-side-block { border-color: #374151; background: #1f2937; }
.pgc-side-title { font-weight: 700; font-size: .9rem; margin-bottom: .75rem; }
.pgc-field { display: block; margin-bottom: .8rem; }
.pgc-field > span { display: flex; justify-content: space-between; font-size: .78rem; color: #6b7280; margin-bottom: .35rem; }
.dark .pgc-field > span { color: #9ca3af; }
.pgc-field input[type=range] { width: 100%; accent-color: #4f46e5; }
.pgc-select-sm, .pgc-input-sm { width: 100%; border: 1px solid #d1d5db; border-radius: .5rem; padding: .45rem .6rem; font-size: .8rem; background: #fff; color: #111827; box-sizing: border-box; font-family: inherit; }
.dark .pgc-select-sm, .dark .pgc-input-sm { background: #111827; border-color: #374151; color: #f3f4f6; }
.pgc-input-sm { resize: vertical; }
.pgc-code-block { padding: 0; overflow: hidden; }
.pgc-code-head { display: flex; align-items: center; justify-content: space-between; padding: .5rem .75rem; border-bottom: 1px solid #e5e7eb; }
.dark .pgc-code-head { border-color: #374151; }
.pgc-code-tabs { display: flex; gap: .25rem; }
.pgc-code-tab { border: none; background: transparent; font-size: .78rem; color: #9ca3af; padding: .3rem .55rem; border-radius: .4rem; cursor: pointer; }
.pgc-code-tab.active { background: #eef2ff; color: #4f46e5; font-weight: 600; }
.dark .pgc-code-tab.active { background: #312e81; color: #c7d2fe; }
.pgc-code-copy { border: none; background: transparent; color: #9ca3af; cursor: pointer; font-size: .85rem; }
.pgc-code-copy:hover { color: #4f46e5; }
.pgc-code-pre { margin: 0; padding: .85rem; font-size: .74rem; line-height: 1.6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; max-height: 340px; white-space: pre; color: #374151; background: #f9fafb; }
.dark .pgc-code-pre { background: #0f172a; color: #e5e7eb; }
.pgc-usage { margin-top: 1rem; font-size: .82rem; color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: .6rem; padding: .55rem .85rem; }
.dark .pgc-usage { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.35); color: #6ee7b7; }

/* ============================================================
   AWEI ID 登录 / 注册
   ============================================================ */
.aid-shell { max-width: 980px; margin: 0 auto; padding: 3rem 1.25rem 4.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .aid-shell { grid-template-columns: 1fr; gap: 1.5rem; } }
.aid-brand { }
.aid-brand-logo { width: 3.2rem; height: 3.2rem; border-radius: 1rem; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.aid-brand-title { font-size: 2rem; font-weight: 800; margin-top: 1rem; letter-spacing: -.02em; }
.aid-brand-sub { color: #6b7280; margin-top: .6rem; line-height: 1.75; font-size: .92rem; }
.dark .aid-brand-sub { color: #9ca3af; }
.aid-brand-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: .7rem; }
.aid-brand-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: #4b5563; }
.dark .aid-brand-list li { color: #d1d5db; }
.aid-brand-list li i { color: #10b981; margin-top: .2rem; }
.aid-brand-foot { margin-top: 2rem; font-size: .75rem; color: #9ca3af; letter-spacing: .08em; }
.aid-card { border: 1px solid #e5e7eb; border-radius: 1.2rem; padding: 1.75rem; background: #fff; box-shadow: 0 12px 40px rgba(15,23,42,.07); }
.dark .aid-card { border-color: #374151; background: #1f2937; box-shadow: none; }
.aid-tabs { display: flex; gap: .3rem; border-bottom: 1px solid #e5e7eb; margin-bottom: 1.4rem; }
.dark .aid-tabs { border-color: #374151; }
.aid-tab { border: none; background: transparent; cursor: pointer; padding: .6rem .9rem; font-size: .9rem; color: #6b7280; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.dark .aid-tab { color: #9ca3af; }
.aid-tab.active { color: #4f46e5; border-bottom-color: #4f46e5; font-weight: 700; }
.aid-panel-title { font-size: 1.25rem; font-weight: 800; }
.aid-panel-sub { font-size: .82rem; color: #9ca3af; margin: .3rem 0 1.1rem; }
.aid-field { display: block; margin-bottom: .85rem; }
.aid-field > span { display: block; font-size: .8rem; font-weight: 600; color: #4b5563; margin-bottom: .35rem; }
.dark .aid-field > span { color: #d1d5db; }
.aid-field input, .aid-field select { width: 100%; border: 1px solid #d1d5db; border-radius: .6rem; padding: .65rem .8rem; font-size: .9rem; background: #fff; color: #111827; box-sizing: border-box; font-family: inherit; }
.dark .aid-field input, .dark .aid-field select { background: #111827; border-color: #374151; color: #f3f4f6; }
.aid-field input:focus, .aid-field select:focus { outline: 2px solid #6366f1; border-color: transparent; }
.aid-msg { font-size: .82rem; min-height: 1.1rem; margin: .4rem 0 .2rem; }
.aid-msg-err { color: #ef4444; }
.aid-msg-ok { color: #10b981; }
.aid-submit { width: 100%; border: none; border-radius: .65rem; padding: .75rem; background: #111827; color: #fff; font-size: .92rem; font-weight: 700; cursor: pointer; margin-top: .4rem; }
.dark .aid-submit { background: #4f46e5; }
.aid-submit:hover { opacity: .92; }
.aid-submit:disabled { opacity: .6; cursor: not-allowed; }
.aid-submit-ghost { background: #4f46e5; }
.aid-card #aidFgtStep2 { margin-top: .5rem; border-top: 1px dashed #e5e7eb; padding-top: 1rem; }
.dark .aid-card #aidFgtStep2 { border-color: #374151; }

/* ============================================================
   新闻动态后台管理
   ============================================================ */
.nadm-shell { max-width: 1120px; margin: 0 auto; padding: 2.25rem 1.25rem 4rem; }
.nadm-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.nadm-title { font-size: 1.6rem; font-weight: 800; }
.nadm-sub { font-size: .85rem; color: #6b7280; margin-top: .3rem; }
.dark .nadm-sub { color: #9ca3af; }
.nadm-back { border: 1px solid #d1d5db; background: transparent; border-radius: .55rem; padding: .5rem .9rem; font-size: .85rem; color: #4b5563; cursor: pointer; }
.dark .nadm-back { border-color: #374151; color: #d1d5db; }
.nadm-back:hover { background: #f3f4f6; }
.dark .nadm-back:hover { background: #374151; }
.nadm-gate { max-width: 420px; margin: 3rem auto; text-align: center; border: 1px solid #e5e7eb; border-radius: 1.2rem; padding: 2.25rem 1.75rem; background: #fff; }
.dark .nadm-gate { border-color: #374151; background: #1f2937; }
.nadm-gate-icon { width: 3rem; height: 3rem; border-radius: 1rem; background: rgba(79,70,229,.1); color: #4f46e5; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin: 0 auto .9rem; }
.nadm-gate-title { font-weight: 800; font-size: 1.15rem; }
.nadm-gate-sub { font-size: .82rem; color: #6b7280; margin: .4rem 0 1.2rem; }
.dark .nadm-gate-sub { color: #9ca3af; }
.nadm-gate-row { display: flex; gap: .5rem; }
.nadm-input { width: 100%; border: 1px solid #d1d5db; border-radius: .55rem; padding: .6rem .75rem; font-size: .88rem; background: #fff; color: #111827; box-sizing: border-box; font-family: inherit; }
.dark .nadm-input { background: #111827; border-color: #374151; color: #f3f4f6; }
.nadm-input:focus { outline: 2px solid #6366f1; border-color: transparent; }
.nadm-primary { border: none; border-radius: .55rem; padding: .6rem 1.2rem; background: #4f46e5; color: #fff; font-size: .88rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.nadm-primary:hover { background: #4338ca; }
.nadm-ghost { border: 1px solid #d1d5db; border-radius: .55rem; padding: .6rem 1.1rem; background: transparent; color: #4b5563; font-size: .88rem; cursor: pointer; }
.dark .nadm-ghost { border-color: #374151; color: #d1d5db; }
.nadm-msg { font-size: .82rem; margin-top: .6rem; }
.nadm-msg-err { color: #ef4444; }
.nadm-msg-ok { color: #10b981; }
.nadm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .nadm-grid { grid-template-columns: 1fr; } }
.nadm-editor, .nadm-list-wrap { border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.25rem; background: #fff; }
.dark .nadm-editor, .dark .nadm-list-wrap { border-color: #374151; background: #1f2937; }
.nadm-editor-head, .nadm-list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; font-weight: 700; font-size: .95rem; }
.nadm-reset { border: none; background: none; color: #4f46e5; font-size: .8rem; cursor: pointer; text-decoration: underline; }
.nadm-field { display: block; margin-bottom: .8rem; }
.nadm-field > span { display: block; font-size: .78rem; font-weight: 600; color: #4b5563; margin-bottom: .3rem; }
.dark .nadm-field > span { color: #d1d5db; }
.nadm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.nadm-editor-actions { display: flex; align-items: center; gap: .6rem; margin-top: .3rem; }
.nadm-preview { margin-top: 1rem; }
.nadm-preview-label { font-size: .75rem; color: #9ca3af; margin-bottom: .5rem; }
.nadm-count { font-size: .78rem; color: #9ca3af; font-weight: 400; }
.nadm-list { display: flex; flex-direction: column; gap: .7rem; max-height: 620px; overflow-y: auto; }
.nadm-item { display: flex; gap: .75rem; border: 1px solid #e5e7eb; border-radius: .8rem; padding: .8rem .9rem; }
.dark .nadm-item { border-color: #374151; }
.nadm-item.editing { border-color: #4f46e5; background: rgba(79,70,229,.06); }
.nadm-item-main { flex: 1; min-width: 0; }
.nadm-item-top { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.nadm-item-tag { font-size: .68rem; padding: .1rem .45rem; border-radius: 999px; background: #eef2ff; color: #4f46e5; font-weight: 600; }
.dark .nadm-item-tag { background: #312e81; color: #c7d2fe; }
.nadm-item-date { font-size: .72rem; color: #9ca3af; margin-left: auto; }
.nadm-item-title { font-weight: 700; font-size: .9rem; }
.nadm-item-excerpt { font-size: .78rem; color: #6b7280; margin-top: .25rem; line-height: 1.55; }
.dark .nadm-item-excerpt { color: #9ca3af; }
.nadm-item-actions { display: flex; flex-direction: column; gap: .35rem; }
.nadm-icon-btn { width: 1.9rem; height: 1.9rem; border: 1px solid #e5e7eb; border-radius: .5rem; background: transparent; color: #6b7280; cursor: pointer; }
.dark .nadm-icon-btn { border-color: #374151; color: #9ca3af; }
.nadm-icon-btn:hover { color: #4f46e5; border-color: #4f46e5; }
.nadm-icon-btn.danger:hover { color: #ef4444; border-color: #ef4444; }
.nadm-empty { text-align: center; color: #9ca3af; font-size: .85rem; padding: 1.5rem 0; }

/* ============================================================
   用量统计（额度页）
   ============================================================ */
.usage-sum-card { border: 1px solid #e5e7eb; border-radius: .8rem; padding: .85rem .95rem; }
.dark .usage-sum-card { border-color: #374151; }
.usage-sum-label { font-size: .75rem; color: #6b7280; }
.dark .usage-sum-label { color: #9ca3af; }
.usage-sum-value { font-size: 1.25rem; font-weight: 800; margin-top: .25rem; }
.usage-sum-sub { font-size: .72rem; color: #9ca3af; margin-top: .15rem; }
.usage-chart-block { }
.usage-chart-label { font-size: .8rem; font-weight: 600; color: #4b5563; margin-bottom: .75rem; }
.dark .usage-chart-label { color: #d1d5db; }
.usage-bars { display: flex; align-items: flex-end; gap: .35rem; height: 160px; padding-bottom: 1.4rem; position: relative; overflow-x: auto; }
.usage-bar-col { flex: 1; min-width: 18px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.usage-bar { width: 100%; max-width: 26px; border-radius: .3rem .3rem 0 0; background: linear-gradient(180deg, #6366f1, #4f46e5); min-height: 2px; transition: height .3s; }
.usage-bar-col:hover .usage-bar { background: linear-gradient(180deg, #818cf8, #6366f1); }
.usage-bar-value { font-size: .62rem; color: #9ca3af; margin-bottom: .2rem; white-space: nowrap; }
.usage-bar-label { position: absolute; bottom: -1.25rem; font-size: .62rem; color: #9ca3af; white-space: nowrap; }
.usage-rank-list { display: flex; flex-direction: column; gap: .7rem; }
.usage-rank-row { }
.usage-rank-top { display: flex; justify-content: space-between; font-size: .78rem; margin-bottom: .25rem; }
.usage-rank-name { color: #4b5563; font-weight: 600; }
.dark .usage-rank-name { color: #d1d5db; }
.usage-rank-val { color: #9ca3af; }
.usage-rank-bar { height: .4rem; border-radius: 999px; background: #f3f4f6; overflow: hidden; }
.dark .usage-rank-bar { background: #374151; }
.usage-rank-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4f46e5, #7c3aed); }
.usage-empty { text-align: center; color: #9ca3af; font-size: .82rem; padding: 1.5rem 0; }

/* ============================================================
   API 密钥统计条
   ============================================================ */
.key-stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .85rem; margin-bottom: 1.5rem; }
.key-stat { border: 1px solid #e5e7eb; border-radius: .8rem; padding: .85rem 1rem; }
.dark .key-stat { border-color: #374151; }
.key-stat-num { font-size: 1.4rem; font-weight: 800; color: #4f46e5; }
.key-stat-label { font-size: .75rem; color: #6b7280; margin-top: .15rem; }
.dark .key-stat-label { color: #9ca3af; }
.key-stat-cta { display: flex; align-items: center; justify-content: center; padding: .5rem; }
.key-stat-btn { border: 1px solid #4f46e5; background: rgba(79,70,229,.06); color: #4f46e5; border-radius: .55rem; padding: .55rem .9rem; font-size: .82rem; font-weight: 600; cursor: pointer; width: 100%; }
.key-stat-btn:hover { background: #4f46e5; color: #fff; }

/* ============================================================
   顶栏搜索入口
   ============================================================ */
.kbd-hint { font-size: .68rem; border: 1px solid currentColor; border-radius: .3rem; padding: 0 .3rem; opacity: .6; }

/* ============================================================
   全局搜索面板
   ============================================================ */
.gsearch-overlay { position: fixed; inset: 0; z-index: 95; background: rgba(15,23,42,.45); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 1rem 2rem; }
.gsearch-box { width: 100%; max-width: 640px; background: #fff; border-radius: 1rem; box-shadow: 0 24px 60px rgba(15,23,42,.28); overflow: hidden; display: flex; flex-direction: column; max-height: 68vh; }
.dark .gsearch-box { background: #1f2937; }
.gsearch-head { display: flex; align-items: center; gap: .7rem; padding: .95rem 1.1rem; border-bottom: 1px solid #e5e7eb; }
.dark .gsearch-head { border-color: #374151; }
.gsearch-icon { color: #9ca3af; }
.gsearch-input { flex: 1; border: none; outline: none; font-size: 1rem; background: transparent; color: #111827; font-family: inherit; }
.dark .gsearch-input { color: #f3f4f6; }
.gsearch-close { border: 1px solid #d1d5db; background: transparent; border-radius: .4rem; font-size: .68rem; padding: .15rem .4rem; color: #9ca3af; cursor: pointer; }
.dark .gsearch-close { border-color: #374151; }
.gsearch-filters { display: flex; gap: .35rem; padding: .6rem 1.1rem 0; flex-wrap: wrap; }
.gsearch-filter { border: 1px solid #e5e7eb; background: transparent; border-radius: 999px; padding: .25rem .7rem; font-size: .76rem; color: #6b7280; cursor: pointer; }
.dark .gsearch-filter { border-color: #374151; color: #9ca3af; }
.gsearch-filter.active { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.gsearch-results { overflow-y: auto; padding: .6rem; flex: 1; }
.gsearch-item { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: .6rem; cursor: pointer; }
.gsearch-item.active, .gsearch-item:hover { background: rgba(79,70,229,.09); }
.gsearch-item-icon { width: 1.9rem; height: 1.9rem; border-radius: .5rem; background: #f3f4f6; color: #4f46e5; display: flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0; }
.dark .gsearch-item-icon { background: #374151; }
.gsearch-item-main { flex: 1; min-width: 0; }
.gsearch-item-title { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsearch-item-sub { font-size: .74rem; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsearch-item-kind { font-size: .68rem; color: #9ca3af; border: 1px solid #e5e7eb; border-radius: 999px; padding: .05rem .45rem; white-space: nowrap; }
.dark .gsearch-item-kind { border-color: #374151; }
.gsearch-empty { text-align: center; color: #9ca3af; padding: 2rem 1rem; font-size: .86rem; }
.gsearch-empty i { font-size: 1.6rem; display: block; margin-bottom: .5rem; opacity: .5; }
.gsearch-empty-sub { font-size: .74rem; margin-top: .3rem; opacity: .8; }
.gsearch-foot { display: flex; gap: 1rem; align-items: center; padding: .55rem 1.1rem; border-top: 1px solid #e5e7eb; font-size: .72rem; color: #9ca3af; }
.dark .gsearch-foot { border-color: #374151; }
.gsearch-foot b { color: #6b7280; font-weight: 600; }
.dark .gsearch-foot b { color: #d1d5db; }
.gsearch-count { margin-left: auto; }

/* ============================================================
   调试台 · 会话侧栏
   ============================================================ */
.pgc-sessions { border: 1px solid #e5e7eb; border-radius: 1rem; padding: .8rem; background: #fff; max-height: 62vh; display: flex; flex-direction: column; }
.dark .pgc-sessions { border-color: #374151; background: #1f2937; }
.pgc-sessions-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: .85rem; margin-bottom: .6rem; }
.pgc-session-new { border: 1px solid #4f46e5; background: rgba(79,70,229,.07); color: #4f46e5; width: 1.6rem; height: 1.6rem; border-radius: .45rem; cursor: pointer; font-size: .72rem; }
.pgc-session-new:hover { background: #4f46e5; color: #fff; }
.pgc-session-list { overflow-y: auto; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.pgc-session-item { display: flex; align-items: flex-start; gap: .3rem; border: 1px solid transparent; border-radius: .6rem; padding: .5rem .55rem; cursor: pointer; }
.pgc-session-item:hover { background: #f9fafb; }
.dark .pgc-session-item:hover { background: #111827; }
.pgc-session-item.active { border-color: #4f46e5; background: rgba(79,70,229,.08); }
.pgc-session-main { flex: 1; min-width: 0; }
.pgc-session-title { font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgc-session-meta { font-size: .68rem; color: #9ca3af; margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgc-session-del { border: none; background: transparent; color: #cbd5e1; cursor: pointer; font-size: .7rem; padding: 0 .1rem; }
.pgc-session-del:hover { color: #ef4444; }
.pgc-session-empty { font-size: .78rem; color: #9ca3af; text-align: center; padding: 1rem 0; }

/* ============================================================
   调试台 · 多模态输入
   ============================================================ */
.pgc-inline-fields { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.pgc-inline-fields label { font-size: .76rem; color: #6b7280; display: flex; align-items: center; gap: .35rem; }
.dark .pgc-inline-fields label { color: #9ca3af; }
.pgc-upload-row { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; flex-wrap: wrap; }
.pgc-upload-btn { cursor: pointer; background: #4f46e5; color: #fff; border-radius: .55rem; padding: .5rem .9rem; font-size: .83rem; font-weight: 600; }
.pgc-upload-btn:hover { background: #4338ca; }
.pgc-file-name { font-size: .8rem; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.dark .pgc-file-name { color: #9ca3af; }
.pgc-img-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; }
.pgc-img-item { margin: 0; }
.pgc-img-item img { width: 100%; border-radius: .6rem; display: block; }
.pgc-img-note { font-size: .72rem; color: #9ca3af; margin-top: .5rem; }

/* ============================================================
   模型市场卡片 · 调试台直达按钮
   ============================================================ */
.mcard-trial-btn { margin-top: .7rem; width: 100%; border: 1px solid #4f46e5; background: rgba(79,70,229,.06); color: #4f46e5; border-radius: .5rem; padding: .45rem .7rem; font-size: .78rem; font-weight: 600; cursor: pointer; }
.mcard-trial-btn:hover { background: #4f46e5; color: #fff; }

/* ============================================================
   账号安全验证弹窗（邮箱验证码）
   ============================================================ */
.otp-overlay { position: fixed; inset: 0; z-index: 96; background: rgba(15,23,42,.5); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.otp-box { width: 100%; max-width: 420px; background: #fff; border-radius: 1.1rem; box-shadow: 0 24px 60px rgba(15,23,42,.3); overflow: hidden; }
.dark .otp-box { background: #1f2937; }
.otp-head { display: flex; align-items: center; gap: .7rem; padding: 1.05rem 1.2rem; border-bottom: 1px solid #e5e7eb; }
.dark .otp-head { border-color: #374151; }
.otp-head-icon { width: 2.3rem; height: 2.3rem; border-radius: .7rem; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; display: flex; align-items: center; justify-content: center; }
.otp-head-text { flex: 1; min-width: 0; }
.otp-head-title { font-weight: 800; font-size: 1rem; }
.otp-head-sub { font-size: .76rem; color: #6b7280; margin-top: .1rem; }
.dark .otp-head-sub { color: #9ca3af; }
.otp-head-close { border: none; background: transparent; font-size: 1.3rem; line-height: 1; color: #9ca3af; cursor: pointer; }
.otp-head-close:hover { color: #ef4444; }
.otp-body { padding: 1.15rem 1.2rem 1.25rem; }
.otp-email-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .82rem; margin-bottom: .75rem; }
.otp-email-label { color: #9ca3af; }
.otp-email-val { font-weight: 700; color: #4f46e5; }
.otp-send { width: 100%; border: 1px solid #4f46e5; background: rgba(79,70,229,.07); color: #4f46e5; border-radius: .6rem; padding: .6rem; font-size: .86rem; font-weight: 700; cursor: pointer; }
.otp-send:hover:not(:disabled) { background: #4f46e5; color: #fff; }
.otp-send:disabled { opacity: .6; cursor: not-allowed; }
.otp-tip { font-size: .76rem; color: #9ca3af; margin: .5rem 0 0; min-height: 1rem; line-height: 1.5; }
.otp-tip.ok { color: #059669; }
.otp-code-input { width: 100%; margin-top: .75rem; border: 1px solid #d1d5db; border-radius: .6rem; padding: .7rem; font-size: 1.25rem; letter-spacing: .5rem; text-align: center; font-family: ui-monospace, Menlo, monospace; background: #fff; color: #111827; box-sizing: border-box; }
.dark .otp-code-input { background: #111827; border-color: #374151; color: #f3f4f6; }
.otp-code-input:focus { outline: 2px solid #6366f1; border-color: transparent; }
.otp-msg { font-size: .8rem; min-height: 1.1rem; margin: .5rem 0 0; }
.otp-msg.err { color: #ef4444; }
.otp-msg.ok { color: #10b981; }
.otp-actions { display: flex; gap: .6rem; margin-top: .9rem; }
.otp-cancel { flex: 1; border: 1px solid #d1d5db; background: transparent; border-radius: .6rem; padding: .62rem; font-size: .86rem; color: #4b5563; cursor: pointer; }
.dark .otp-cancel { border-color: #374151; color: #d1d5db; }
.otp-confirm { flex: 2; border: none; border-radius: .6rem; padding: .62rem; background: #4f46e5; color: #fff; font-size: .88rem; font-weight: 700; cursor: pointer; }
.otp-confirm:disabled { opacity: .6; cursor: not-allowed; }
.otp-foot { font-size: .72rem; color: #9ca3af; margin: .75rem 0 0; line-height: 1.55; }
.otp-noemail { padding: 1.5rem 1.2rem; text-align: center; }
.otp-noemail-text { font-size: .86rem; color: #6b7280; margin-bottom: 1rem; }
.dark .otp-noemail-text { color: #9ca3af; }

/* ============================================================
   账户设置 · 账号安全卡片
   ============================================================ */
.sec-badge { font-size: .72rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; }
.sec-badge.on { background: rgba(16,185,129,.12); color: #059669; }
.sec-badge.off { background: #f3f4f6; color: #6b7280; }
.dark .sec-badge.off { background: #374151; color: #9ca3af; }
.sec-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.sec-input { flex: 1; min-width: 220px; border: 1px solid #d1d5db; border-radius: .6rem; padding: .62rem .8rem; font-size: .88rem; background: #fff; color: #111827; box-sizing: border-box; }
.dark .sec-input { background: #111827; border-color: #374151; color: #f3f4f6; }
.sec-input:focus { outline: 2px solid #6366f1; border-color: transparent; }
.sec-btn { border: none; border-radius: .6rem; padding: .62rem 1.1rem; background: #4f46e5; color: #fff; font-size: .86rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.sec-btn:hover { background: #4338ca; }
.sec-btn-ghost { border: 1px solid #d1d5db; background: transparent; border-radius: .6rem; padding: .62rem 1rem; font-size: .86rem; color: #4b5563; cursor: pointer; white-space: nowrap; }
.dark .sec-btn-ghost { border-color: #374151; color: #d1d5db; }
.sec-msg { font-size: .82rem; margin-top: .6rem; min-height: 1rem; }
.sec-msg.ok { color: #10b981; }
.sec-msg.err { color: #ef4444; }
.sec-hint { font-size: .76rem; color: #9ca3af; margin-top: .5rem; line-height: 1.6; }

/* ============================================================
   技能中心 · 我的技能管理
   ============================================================ */
.mine-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.mine-title { font-weight: 800; font-size: 1.05rem; }
.mine-sub { font-size: .8rem; color: #6b7280; margin-top: .25rem; line-height: 1.6; max-width: 700px; }
.dark .mine-sub { color: #9ca3af; }
.mine-refresh { border: 1px solid #d1d5db; background: transparent; border-radius: .55rem; padding: .45rem .9rem; font-size: .82rem; color: #4b5563; cursor: pointer; }
.dark .mine-refresh { border-color: #374151; color: #d1d5db; }
.mine-list { display: flex; flex-direction: column; gap: 1rem; }
.mine-empty { text-align: center; color: #9ca3af; font-size: .86rem; padding: 2rem 0; }
.mine-item { border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.1rem; background: #fff; }
.dark .mine-item { border-color: #374151; background: #1f2937; }
.mine-item-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.mine-item-icon { width: 2.2rem; height: 2.2rem; border-radius: .6rem; background: rgba(79,70,229,.1); color: #4f46e5; display: flex; align-items: center; justify-content: center; }
.mine-item-info { flex: 1; min-width: 0; }
.mine-item-name { font-weight: 700; font-size: .95rem; }
.mine-item-meta { font-size: .76rem; color: #9ca3af; margin-top: .15rem; }
.mine-content-badge { font-size: .7rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.mine-content-badge.ok { background: rgba(16,185,129,.12); color: #059669; }
.mine-content-badge.warn { background: rgba(245,158,11,.15); color: #b45309; }
.mine-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .7rem; }
.mine-field { display: block; }
.mine-field span { display: block; font-size: .74rem; color: #6b7280; margin-bottom: .25rem; }
.dark .mine-field span { color: #9ca3af; }
.mine-field-wide { grid-column: 1 / -1; }
.mine-input { width: 100%; border: 1px solid #d1d5db; border-radius: .5rem; padding: .5rem .65rem; font-size: .84rem; background: #fff; color: #111827; box-sizing: border-box; }
.dark .mine-input { background: #111827; border-color: #374151; color: #f3f4f6; }
.mine-input:focus { outline: 2px solid #6366f1; border-color: transparent; }
.mine-file { font-size: .78rem; color: #6b7280; }
.mine-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .9rem; }
.mine-save { border: none; border-radius: .55rem; padding: .5rem 1rem; background: #4f46e5; color: #fff; font-size: .83rem; font-weight: 600; cursor: pointer; }
.mine-save:hover { background: #4338ca; }
.mine-download { border: 1px solid #d1d5db; background: transparent; border-radius: .55rem; padding: .5rem 1rem; font-size: .83rem; color: #4b5563; cursor: pointer; }
.dark .mine-download { border-color: #374151; color: #d1d5db; }
.mine-del { border: 1px solid rgba(239,68,68,.5); background: transparent; border-radius: .55rem; padding: .5rem 1rem; font-size: .83rem; color: #ef4444; cursor: pointer; }
.mine-del:hover { background: #ef4444; color: #fff; }

/* ============================================================
   服务状态订阅
   ============================================================ */
.status-subscribe { margin-top: 1.5rem; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.1rem 1.25rem; }
.dark .status-subscribe { border-color: #374151; }
.status-subscribe-head { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: .9rem; }
.status-subscribe-head > i { color: #4f46e5; font-size: 1.15rem; margin-top: .15rem; }
.status-subscribe-title { font-weight: 700; font-size: .95rem; }
.status-subscribe-sub { font-size: .78rem; color: #6b7280; margin-top: .15rem; }
.dark .status-subscribe-sub { color: #9ca3af; }
.status-subscribe-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.status-sub-input { flex: 1; min-width: 220px; border: 1px solid #d1d5db; border-radius: .55rem; padding: .55rem .75rem; font-size: .86rem; background: #fff; color: #111827; box-sizing: border-box; }
.dark .status-sub-input { background: #111827; border-color: #374151; color: #f3f4f6; }
.status-sub-btn { border: none; border-radius: .55rem; padding: .55rem 1.1rem; background: #4f46e5; color: #fff; font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.status-sub-btn:hover { background: #4338ca; }
.status-sub-ghost { border: 1px solid #d1d5db; background: transparent; border-radius: .55rem; padding: .55rem 1rem; font-size: .85rem; color: #4b5563; cursor: pointer; white-space: nowrap; }
.dark .status-sub-ghost { border-color: #374151; color: #d1d5db; }
.status-sub-msg { font-size: .8rem; margin-top: .6rem; min-height: 1rem; }
.status-sub-msg.ok { color: #10b981; }
.status-sub-msg.err { color: #ef4444; }

/* ============================================================
   系统数据自检（管理员）
   ============================================================ */
.dbc-shell { max-width: 1100px; margin: 0 auto; padding: 2.25rem 1.25rem 4rem; }
.dbc-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.dbc-title { font-size: 1.5rem; font-weight: 800; }
.dbc-sub { font-size: .83rem; color: #6b7280; margin-top: .35rem; max-width: 720px; line-height: 1.65; }
.dark .dbc-sub { color: #9ca3af; }
.dbc-back { border: 1px solid #d1d5db; background: transparent; border-radius: .55rem; padding: .5rem .9rem; font-size: .84rem; color: #4b5563; cursor: pointer; }
.dark .dbc-back { border-color: #374151; color: #d1d5db; }
.dbc-gate { max-width: 420px; margin: 3rem auto; text-align: center; border: 1px solid #e5e7eb; border-radius: 1.1rem; padding: 2rem 1.6rem; }
.dark .dbc-gate { border-color: #374151; }
.dbc-gate-icon { width: 2.8rem; height: 2.8rem; border-radius: .9rem; background: rgba(79,70,229,.1); color: #4f46e5; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin: 0 auto .8rem; }
.dbc-gate-title { font-weight: 800; margin-bottom: 1rem; }
.dbc-gate-row { display: flex; gap: .55rem; }
.dbc-input { width: 100%; border: 1px solid #d1d5db; border-radius: .55rem; padding: .58rem .75rem; font-size: .86rem; background: #fff; color: #111827; box-sizing: border-box; }
.dark .dbc-input { background: #111827; border-color: #374151; color: #f3f4f6; }
.dbc-input:focus { outline: 2px solid #6366f1; border-color: transparent; }
.dbc-input-grow { flex: 1; }
.dbc-primary { border: none; border-radius: .55rem; padding: .58rem 1.15rem; background: #4f46e5; color: #fff; font-size: .86rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.dbc-primary:hover { background: #4338ca; }
.dbc-ghost { border: 1px solid #d1d5db; background: transparent; border-radius: .55rem; padding: .58rem 1.05rem; font-size: .85rem; color: #4b5563; cursor: pointer; white-space: nowrap; }
.dark .dbc-ghost { border-color: #374151; color: #d1d5db; }
.dbc-msg { font-size: .82rem; margin-top: .6rem; min-height: 1rem; }
.dbc-msg.ok { color: #10b981; }
.dbc-msg.err { color: #ef4444; }
.dbc-section-title { font-weight: 800; font-size: 1.02rem; margin: 1.5rem 0 .9rem; }
.dbc-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.dbc-table-card { border: 1px solid #e5e7eb; border-radius: .9rem; padding: 1rem; background: #fff; }
.dark .dbc-table-card { border-color: #374151; background: #1f2937; }
.dbc-table-card.bad { border-color: #fcd34d; background: #fffbeb; }
.dark .dbc-table-card.bad { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.45); }
.dbc-table-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .2rem; }
.dbc-table-name { font-weight: 700; font-size: .9rem; }
.dbc-table-flag { font-size: .68rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; background: rgba(16,185,129,.13); color: #059669; }
.dbc-table-card.bad .dbc-table-flag { background: rgba(245,158,11,.2); color: #b45309; }
.dbc-table-id { font-size: .68rem; color: #9ca3af; font-family: ui-monospace, Menlo, monospace; word-break: break-all; margin-bottom: .6rem; }
.dbc-kv { display: flex; justify-content: space-between; gap: .6rem; font-size: .78rem; padding: .3rem 0; border-top: 1px dashed #e5e7eb; }
.dark .dbc-kv { border-color: #374151; }
.dbc-kv span { color: #9ca3af; white-space: nowrap; }
.dbc-kv b { text-align: right; word-break: break-all; }
.dbc-kv.ok b { color: #059669; }
.dbc-kv.warn b { color: #b45309; }
.dbc-kv.bad b { color: #ef4444; }
.dbc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .8rem; }
.dbc-stat { border: 1px solid #e5e7eb; border-radius: .8rem; padding: .85rem 1rem; }
.dark .dbc-stat { border-color: #374151; }
.dbc-stat.warn { border-color: #fcd34d; }
.dbc-stat b { display: block; font-size: 1.35rem; font-weight: 800; color: #4f46e5; }
.dbc-stat.warn b { color: #b45309; }
.dbc-stat span { font-size: .74rem; color: #6b7280; }
.dark .dbc-stat span { color: #9ca3af; }
.dbc-list { margin-top: 1.1rem; border: 1px solid #e5e7eb; border-radius: .9rem; padding: 1rem; }
.dark .dbc-list { border-color: #374151; }
.dbc-list-title { font-size: .82rem; font-weight: 700; color: #6b7280; margin-bottom: .6rem; }
.dark .dbc-list-title { color: #9ca3af; }
.dbc-list-row { display: flex; align-items: center; gap: .6rem; font-size: .79rem; padding: .32rem 0; border-top: 1px dashed #f3f4f6; }
.dark .dbc-list-row { border-color: #374151; }
.dbc-list-row code { font-family: ui-monospace, Menlo, monospace; font-size: .72rem; color: #6b7280; }
.dbc-list-row em { margin-left: auto; color: #9ca3af; font-style: normal; }
.dbc-actions { margin-top: 1.75rem; border: 1px solid #fcd34d; background: #fffbeb; border-radius: .9rem; padding: 1.1rem 1.2rem; }
.dark .dbc-actions { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.35); }
.dbc-actions-title { font-weight: 800; font-size: .92rem; margin-bottom: .8rem; color: #b45309; }
.dbc-actions-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .7rem; }
.dbc-warn-btn { border: 1px solid #f59e0b; background: #fff; color: #b45309; border-radius: .55rem; padding: .55rem 1.05rem; font-size: .84rem; font-weight: 600; cursor: pointer; }
.dark .dbc-warn-btn { background: transparent; }
.dbc-warn-btn:hover { background: #f59e0b; color: #fff; }

/* ==================================================================
   ⑧ 用量图表（折线 / 环形）+ 分享卡片
   ================================================================== */
.usage-line-svg { width: 100%; height: auto; display: block; overflow: visible; }
.usage-donut-host { min-height: 190px; display: flex; align-items: center; justify-content: center; }
.usage-donut-wrap { display: flex; align-items: center; gap: 1.2rem; width: 100%; flex-wrap: wrap; justify-content: center; }
.usage-donut-svg { width: 170px; height: 170px; flex: 0 0 auto; }
.usage-donut-legend { display: flex; flex-direction: column; gap: .5rem; min-width: 150px; flex: 1 1 150px; }
.usage-donut-legend-item { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: #4b5563; }
.dark .usage-donut-legend-item { color: #cbd5e1; }
.usage-donut-dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.usage-donut-name { flex: 1; }
.usage-donut-pct { font-variant-numeric: tabular-nums; color: #6b7280; }
.usage-share-block { display: flex; flex-direction: column; }
.usage-share-desc { font-size: .84rem; color: #6b7280; margin: .4rem 0 1rem; line-height: 1.6; }
.usage-share-btn { align-self: flex-start; border: none; cursor: pointer; background: linear-gradient(135deg, #6366f1, #4338ca); color: #fff; border-radius: .7rem; padding: .7rem 1.3rem; font-weight: 600; font-size: .9rem; transition: transform .15s ease, box-shadow .15s ease; }
.usage-share-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,.35); }
.usage-share-btn:disabled { opacity: .6; cursor: default; transform: none; }

/* ==================================================================
   ⑨ 邀请码 / 归属闭环
   ================================================================== */
.ref-link-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: .8rem; padding: .9rem 1rem; margin-bottom: 1rem; }
.dark .ref-link-box { background: rgba(148,163,184,.08); border-color: rgba(148,163,184,.25); }
.ref-code-row { display: flex; align-items: center; gap: .6rem; }
.ref-code-label { font-size: .8rem; color: #64748b; }
.ref-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; letter-spacing: .16em; font-size: 1.05rem; color: #4338ca; background: #eef2ff; border-radius: .5rem; padding: .18rem .7rem; }
.dark .ref-code { background: rgba(99,102,241,.18); color: #a5b4fc; }
.ref-hint { font-size: .75rem; color: #94a3b8; margin-top: .55rem; }
.ref-badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .68rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; }
.ref-badge.ok { background: #dcfce7; color: #15803d; }
.ref-badge.wait { background: #fef3c7; color: #b45309; }
.dark .ref-badge.ok { background: rgba(16,185,129,.18); color: #6ee7b7; }
.dark .ref-badge.wait { background: rgba(245,158,11,.18); color: #fcd34d; }
.ref-notice { margin: .5rem 0 .2rem; padding: .7rem .9rem; border-radius: .6rem; background: #eef2ff; color: #4338ca; font-size: .84rem; border: 1px solid #c7d2fe; }

/* ==================================================================
   ⑩ 我的作品（相册）
   ================================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.gallery-item { margin: 0; border: 1px solid #e5e7eb; border-radius: .9rem; overflow: hidden; background: #fff; transition: box-shadow .18s ease, transform .18s ease; }
.dark .gallery-item { background: #1f2937; border-color: #374151; }
.gallery-item:hover { box-shadow: 0 10px 26px rgba(15,23,42,.12); transform: translateY(-2px); }
.gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #f1f5f9; }
.gallery-meta { padding: .7rem .8rem .8rem; }
.gallery-prompt { font-size: .82rem; font-weight: 600; color: #1f2937; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.dark .gallery-prompt { color: #e5e7eb; }
.gallery-sub { font-size: .72rem; color: #94a3b8; margin: .35rem 0 .6rem; }
.gallery-actions { display: flex; align-items: center; gap: .4rem; }
.gallery-actions button, .gallery-actions a { flex: 1; text-align: center; cursor: pointer; border: 1px solid #e2e8f0; background: #f8fafc; color: #475569; border-radius: .5rem; padding: .38rem .3rem; font-size: .74rem; text-decoration: none; transition: .15s; }
.dark .gallery-actions button, .dark .gallery-actions a { background: rgba(148,163,184,.1); border-color: #374151; color: #cbd5e1; }
.gallery-actions button:hover, .gallery-actions a:hover { border-color: #6366f1; color: #6366f1; }
.gallery-actions button.del { flex: 0 0 auto; padding: .38rem .6rem; }
.gallery-actions button.del:hover { border-color: #ef4444; color: #ef4444; }
.gallery-empty { grid-column: 1 / -1; text-align: center; padding: 3.4rem 1rem; color: #94a3b8; border: 1px dashed #cbd5e1; border-radius: 1rem; }
.gallery-empty i { font-size: 2.6rem; margin-bottom: .8rem; display: block; }
.gallery-go-btn { margin-top: 1rem; border: none; cursor: pointer; background: #6366f1; color: #fff; border-radius: .6rem; padding: .55rem 1.2rem; font-size: .85rem; }

/* ==================================================================
   ⑪ 服务状态：Webhook 提示 + 可用率月报
   ================================================================== */
.status-sub-hint { font-size: .74rem; color: #94a3b8; align-self: center; }
.status-report { margin-top: 1.6rem; border-top: 1px solid rgba(148,163,184,.25); padding-top: 1.4rem; }
.status-report-body { margin-top: 1rem; }
.status-report-empty { color: #94a3b8; font-size: .86rem; padding: .8rem 0; }
.status-report-range { font-size: .78rem; color: #94a3b8; margin-bottom: .6rem; }
.status-report-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.status-report-table th { text-align: left; color: #94a3b8; font-weight: 600; padding: .5rem .6rem; border-bottom: 1px solid rgba(148,163,184,.25); }
.status-report-table td { padding: .55rem .6rem; border-bottom: 1px solid rgba(148,163,184,.14); color: #334155; }
.dark .status-report-table td { color: #cbd5e1; }

/* ==================================================================
   ⑫ 新手引导
   ================================================================== */
#onboardModal { display: flex; align-items: center; justify-content: center; }
#onboardModal.hidden { display: none; }
.onboard-mask { position: absolute; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(3px); }
.onboard-card { position: relative; z-index: 2; width: min(560px, 92vw); background: #fff; border-radius: 1.2rem; box-shadow: 0 30px 70px rgba(2,6,23,.4); overflow: hidden; animation: onboardIn .32s cubic-bezier(.22,1,.36,1); }
.dark .onboard-card { background: #1e293b; }
@keyframes onboardIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.onboard-head { display: flex; align-items: center; gap: .9rem; padding: 1.4rem 1.5rem; background: linear-gradient(135deg, #4338ca, #0f172a); color: #fff; }
.onboard-brand { width: 3rem; height: 3rem; border-radius: 1rem; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.onboard-head-text { flex: 1; }
.onboard-title { font-size: 1.15rem; font-weight: 800; }
.onboard-sub { font-size: .82rem; opacity: .8; margin-top: .15rem; }
.onboard-close { background: transparent; border: none; color: rgba(255,255,255,.7); font-size: 1.1rem; cursor: pointer; padding: .3rem; }
.onboard-close:hover { color: #fff; }
.onboard-steps { padding: 1.2rem 1.5rem .6rem; display: flex; flex-direction: column; gap: .8rem; }
.onboard-step { display: flex; align-items: center; gap: .9rem; border: 1px solid #e5e7eb; border-radius: .9rem; padding: .9rem 1rem; transition: .18s; }
.dark .onboard-step { border-color: #334155; }
.onboard-step.done { border-color: #86efac; background: #f0fdf4; }
.dark .onboard-step.done { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.4); }
.onboard-step-idx { width: 2rem; height: 2rem; flex: 0 0 auto; border-radius: 50%; background: #eef2ff; color: #4338ca; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.onboard-step.done .onboard-step-idx { background: #10b981; color: #fff; }
.onboard-step-main { flex: 1; }
.onboard-step-title { font-weight: 700; font-size: .92rem; color: #1f2937; }
.dark .onboard-step-title { color: #e5e7eb; }
.onboard-step-desc { font-size: .78rem; color: #6b7280; margin-top: .2rem; line-height: 1.5; }
.onboard-step-btn { flex: 0 0 auto; border: 1px solid #6366f1; background: #fff; color: #6366f1; border-radius: .55rem; padding: .45rem .9rem; font-size: .8rem; font-weight: 600; cursor: pointer; }
.onboard-step-btn:hover { background: #6366f1; color: #fff; }
.onboard-foot { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem 1.3rem; }
.onboard-skip { background: transparent; border: none; color: #94a3b8; font-size: .84rem; cursor: pointer; }
.onboard-skip:hover { color: #64748b; }
.onboard-start { border: none; cursor: pointer; background: linear-gradient(135deg, #6366f1, #4338ca); color: #fff; border-radius: .7rem; padding: .6rem 1.4rem; font-weight: 700; font-size: .88rem; }
.onboard-start:hover { box-shadow: 0 8px 20px rgba(99,102,241,.4); }

/* ==================== GitHub 登录入口 ==================== */
.auth-divider { display: flex; align-items: center; gap: .75rem; margin: .9rem 0; color: #9aa4b2; font-size: .76rem; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: #e5e7eb; }
.auth-divider span { letter-spacing: .08em; }
.gh-login-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .72rem 1rem; border-radius: .6rem; border: 1px solid #24292f; background: #24292f; color: #fff; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .18s ease, box-shadow .18s ease, transform .12s ease; }
.gh-login-btn:hover { background: #1b1f24; box-shadow: 0 8px 20px rgba(36,41,47,.25); }
.gh-login-btn:active { transform: translateY(1px); }
.gh-login-btn svg { flex: 0 0 auto; }
.gh-login-btn.disabled { background: #e5e7eb; border-color: #e5e7eb; color: #9aa4b2; cursor: not-allowed; box-shadow: none; }
.gh-login-hint { margin-top: .5rem; font-size: .74rem; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: .5rem; padding: .45rem .6rem; line-height: 1.5; }
.dark .auth-divider::before, .dark .auth-divider::after { background: #374151; }
.dark .gh-login-btn.disabled { background: #1f2937; border-color: #374151; color: #6b7280; }
.dark .gh-login-hint { background: rgba(180,83,9,.12); border-color: rgba(253,230,138,.25); color: #fbbf24; }

/* ---------- GitHub 注册入口 / 完善注册信息弹窗（沿用 auth-modal 的深色玻璃质感）---------- */
.gh-register-btn { margin-bottom: .1rem; }
.gh-login-note { margin: .55rem 0 .1rem; font-size: .72rem; line-height: 1.6; color: #9aa4b2; }
.gh-login-note b { color: #e5e7eb; font-weight: 600; }

@keyframes ghRegPop { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.gh-reg-modal { width: 440px; max-height: 90vh; overflow-y: auto; padding: 20px 22px 18px; animation: ghRegPop .22s ease-out; }
@media (prefers-reduced-motion: reduce) { .gh-reg-modal { animation: none; } }

.gh-reg-head { display: flex; align-items: center; gap: .7rem; padding-bottom: .85rem; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: .85rem; }
.gh-reg-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.08); flex: 0 0 auto; }
.gh-reg-headTxt { flex: 1; min-width: 0; }
.gh-reg-name { font-size: .95rem; font-weight: 600; color: #f3f4f6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-reg-login { font-size: .76rem; color: #9aa4b2; margin-top: 2px; }
.gh-reg-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; color: #6ee7b7; background: rgba(16,185,129,.14); border: 1px solid rgba(16,185,129,.32); border-radius: 999px; padding: .22rem .5rem; white-space: nowrap; }

.gh-reg-tip { font-size: .76rem; line-height: 1.6; color: #c3cbd8; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: .5rem; padding: .5rem .65rem; margin-bottom: .9rem; }
.gh-reg-notice { font-size: .76rem; line-height: 1.65; color: #fcd34d; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.34); border-radius: .5rem; padding: .55rem .7rem; margin-bottom: .9rem; }
.gh-reg-notice i { margin-right: .3rem; }
.gh-reg-notice b { color: #fde68a; font-weight: 600; }
.gh-reg-notice.hidden { display: none; }

.gh-reg-qbox { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: .55rem; padding: .6rem .65rem .65rem; margin-bottom: 14px; }
.gh-reg-q { font-size: .78rem; color: #c3cbd8; margin-bottom: .5rem; display: flex; align-items: center; gap: .35rem; }
.gh-reg-q i { color: #818cf8; }

.gh-reg-error { font-size: .76rem; color: #fca5a5; background: rgba(239,68,68,.13); border: 1px solid rgba(239,68,68,.32); border-radius: .5rem; padding: .5rem .65rem; margin-bottom: .8rem; line-height: 1.5; }

/* ============================================================
   顶栏导航 · 单行收纳（避免第 14 项换行到第二行，破坏页面观感）
   ============================================================ */
@media (min-width: 1024px) {
    #mainHeader .main-header-nav {
        flex-wrap: nowrap !important;
        gap: 1.45rem !important;
        align-items: center;
    }
    #mainHeader .main-header-nav .nav-item { white-space: nowrap; padding-bottom: .62rem; }
}
@media (min-width: 1024px) and (max-width: 1320px) {
    #mainHeader .main-header-nav { gap: 1.05rem !important; }
    #mainHeader .main-header-nav .nav-item { font-size: .86rem; }
}
