/* ============================================================================
   KAMC 官网样式表
   - 颜色/间距全部通过 CSS 变量控制，明暗主题见 :root 与 [data-theme="dark"]
   - 本文件由 index.html 的 <style> 拆分而来，勿在 HTML 内直接写样式
   ============================================================================ */
:root {
            --bg: #ffffff;
            --nav-bg: #ffffff;
            --card-bg: #ffffff;
            --modal-bg: #ffffff;
            --input-bg: #ffffff;
            --qr-bg: #ffffff;
            --on-accent: #ffffff;

            --text: #333333;
            --text-strong: #111111;
            --text-body: #555555;
            --text-muted: #666666;
            --text-faint: #888888;
            --placeholder: #aaaaaa;

            --accent: #0055cc;
            --accent-hover: #0044aa;
            --accent-soft: rgba(0, 85, 204, 0.08);
            --accent-border: rgba(0, 85, 204, 0.35);

            --nav-home: #0055cc;
            --nav-download: #10b981;
            --nav-faq: #d97706;
            --nav-sponsor: #dc3545;
            --nav-download-soft: rgba(16, 185, 129, 0.08);
            --nav-faq-soft: rgba(217, 119, 6, 0.08);
            --nav-sponsor-soft: rgba(220, 53, 69, 0.08);

            --border: #e2e2e2;
            --border-soft: #eeeeee;
            --divider: #eaeaea;
            --code-bg: #f3f3f3;
            --table-head-bg: #fafafa;
            --disclaimer-bg: #f9f9f9;
            --btn-cancel-bg: #f0f0f0;
            --btn-cancel-hover: #e0e0e0;
            --dot: #e0e0e0;
            --dot-active: #888888;
            --scroll-thumb: #d1d5db;
            --scroll-thumb-hover: #9ca3af;
            --quote-bg: #fffaf0;
            --quote-text: #6b6b6b;
            --warn: #f59e0b;

            --hover-tint: rgba(0, 0, 0, 0.05);
            --hover-tint-strong: rgba(0, 0, 0, 0.06);
            --scrim: rgba(0, 0, 0, 0.45);
            --scrim-soft: rgba(0, 0, 0, 0.4);

            --shadow-nav: 0 8px 30px rgba(0, 0, 0, 0.15);
            --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.25);
            --shadow-card-hover: 0 14px 34px rgba(0, 0, 0, 0.28);
            --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.08);
            --shadow-sm-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
            --shadow-md-hover: 0 10px 26px rgba(0, 0, 0, 0.12);
            --shadow-input: 0 2px 10px rgba(0, 0, 0, 0.05);
            --shadow-focus: 0 4px 18px rgba(0, 85, 204, 0.14);
            --shadow-qr: 0 10px 30px rgba(0, 0, 0, 0.1);
            --shadow-qr-hover: 0 14px 40px rgba(0, 0, 0, 0.15);
            --shadow-dialog: 0 20px 50px rgba(0, 0, 0, 0.3);
            --shadow-modal: 0 30px 80px rgba(0, 0, 0, 0.35);

            --switch-bg: #f7f7f7;
            --switch-border: #e6e6e6;
            --switch-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
            --switch-head-bg: #ffffff;
            --switch-head-border: #dedede;
            --switch-head-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
            --switch-icon: #9a9a9a;
            --switch-icon-hover: #4a4a4a;
            --switch-icon-active: #111111;

            color-scheme: light;
        }

        [data-theme="dark"] {
            --bg: #121212;
            --nav-bg: #1a1a1a;
            --card-bg: #1e1e1e;
            --modal-bg: #1e1e1e;
            --input-bg: #181818;
            --qr-bg: #1e1e1e;
            --on-accent: #ffffff;

            --text: #e2e8f0;
            --text-strong: #f1f5f9;
            --text-body: #c7d2e0;
            --text-muted: #9aa8ba;
            --text-faint: #7f8b9c;
            --placeholder: #64748b;

            --accent: #4d8dff;
            --accent-hover: #6ea3ff;
            --accent-soft: rgba(77, 141, 255, 0.16);
            --accent-border: rgba(77, 141, 255, 0.45);

            --nav-home: #6aa8ff;
            --nav-download: #34d399;
            --nav-faq: #fbbf24;
            --nav-sponsor: #f87171;
            --nav-download-soft: rgba(52, 211, 153, 0.14);
            --nav-faq-soft: rgba(251, 191, 36, 0.14);
            --nav-sponsor-soft: rgba(248, 113, 113, 0.14);

            --border: #303030;
            --border-soft: #2a2a2a;
            --divider: #2a2a2a;
            --code-bg: #262626;
            --table-head-bg: #242424;
            --disclaimer-bg: #1b1b1b;
            --btn-cancel-bg: #2a2a2a;
            --btn-cancel-hover: #343434;
            --dot: #3a3a3a;
            --dot-active: #94a3b8;
            --scroll-thumb: #3a4048;
            --scroll-thumb-hover: #4b5563;
            --quote-bg: #241f14;
            --quote-text: #b8b0a4;
            --warn: #fbbf24;

            --hover-tint: rgba(255, 255, 255, 0.06);
            --hover-tint-strong: rgba(255, 255, 255, 0.10);
            --scrim: rgba(0, 0, 0, 0.62);
            --scrim-soft: rgba(0, 0, 0, 0.55);

            --shadow-nav: 0 8px 30px rgba(0, 0, 0, 0.55);
            --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
            --shadow-card-hover: 0 14px 34px rgba(0, 0, 0, 0.6);
            --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.45);
            --shadow-sm-hover: 0 8px 24px rgba(0, 0, 0, 0.55);
            --shadow-md-hover: 0 10px 26px rgba(0, 0, 0, 0.55);
            --shadow-input: 0 2px 10px rgba(0, 0, 0, 0.35);
            --shadow-focus: 0 4px 18px rgba(77, 141, 255, 0.25);
            --shadow-qr: 0 10px 30px rgba(0, 0, 0, 0.45);
            --shadow-qr-hover: 0 14px 40px rgba(0, 0, 0, 0.55);
            --shadow-dialog: 0 20px 50px rgba(0, 0, 0, 0.6);
            --shadow-modal: 0 30px 80px rgba(0, 0, 0, 0.65);

            --switch-bg: #1e1e1e;
            --switch-border: #363636;
            --switch-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
            --switch-head-bg: #2b2b2b;
            --switch-head-border: #3c3c3c;
            --switch-head-shadow: 0 3px 8px rgba(0, 0, 0, 0.55);
            --switch-icon: #7a7a7a;
            --switch-icon-hover: #cfcfcf;
            --switch-icon-active: #f2f2f2;

            color-scheme: dark;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', 'Consolas', sans-serif;
        }

        html, body {
            overflow: hidden;
            width: 100%;
            height: 100%;
        }

        body {
            background-color: var(--bg);
            color: var(--text);
            display: flex;
            flex-direction: column;
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        .navbar {
            background-color: var(--nav-bg);
            height: clamp(76px, 6.5vw, 92px);
            flex-shrink: 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 clamp(20px, 2vw, 36px);
            box-shadow: var(--shadow-nav);
            z-index: 100;
            position: relative;
        }

        .navbar-logo {
            height: clamp(54px, 6.2vw, 68px);
            display: flex;
            align-items: center;
            text-decoration: none;
            cursor: pointer;
        }

        .navbar-logo:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 4px;
            border-radius: 6px;
        }

        .navbar-logo img {
            height: 100%;
            object-fit: contain;
        }

        .logo-desktop {
            margin-left: -10px;
        }

        .logo-mobile {
            display: none;
        }

        .navbar-links {
            display: flex;
            gap: clamp(24px, 2.5vw, 38px);
        }

        .navbar-links a,
        .navbar-links button {
            text-decoration: none;
            color: var(--text-strong);
            font-size: clamp(1.4rem, 1.8vw, 1.6rem);
            font-weight: bold;
            padding: clamp(10px, 1.2vw, 14px) clamp(24px, 2.4vw, 34px);
            border-radius: 10px;
            transition: color 0.4s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
            position: relative;
            cursor: pointer;
            border: none;
            background: transparent;
            font-family: inherit;
            -webkit-appearance: none;
            appearance: none;
        }

        .navbar-links a::after,
        .navbar-links button::after {
            content: '';
            position: absolute;
            bottom: 4px;
            left: clamp(24px, 2.4vw, 34px);
            width: 0;
            height: 2px;
            background-color: currentColor;
            transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .navbar-links a:hover::after,
        .navbar-links button:hover::after {
            width: calc(100% - (clamp(24px, 2.4vw, 34px) * 2));
        }

        .nav-home:hover { color: var(--nav-home); background-color: var(--accent-soft); }
        .nav-download:hover { color: var(--nav-download); background-color: var(--nav-download-soft); }
        .nav-faq:hover { color: var(--nav-faq); background-color: var(--nav-faq-soft); }
        .nav-sponsor:hover { color: var(--nav-sponsor); background-color: var(--nav-sponsor-soft); }

        .nav-home.active { color: var(--nav-home); }
        .nav-download.active { color: var(--nav-download); }
        .nav-faq.active { color: var(--nav-faq); }
        .nav-sponsor.active { color: var(--nav-sponsor); }

        .navbar-links a.active::after,
        .navbar-links button.active::after {
            width: calc(100% - (clamp(24px, 2.4vw, 34px) * 2));
        }

        .hamburger {
            display: none;
            width: 44px;
            height: 44px;
            border-radius: 10px;
            cursor: pointer;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 6px;
            transition: background-color 0.3s ease;
            background-color: transparent;
            border: none;
            outline: none;
            -webkit-appearance: none;
            appearance: none;
        }

        .hamburger:hover {
            background-color: var(--hover-tint);
        }

        .hamburger span {
            display: block;
            width: 26px;
            height: 3px;
            background-color: var(--text-strong);
            border-radius: 2px;
            transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .hamburger.open span:nth-child(1) {
            transform: translateY(9px) rotate(45deg);
        }

        .hamburger.open span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.open span:nth-child(3) {
            transform: translateY(-9px) rotate(-45deg);
        }

        .scroll-container {
            flex: 1;
            width: 100%;
            overflow-y: auto;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
        }

        .scroll-container::-webkit-scrollbar {
            width: 6px;
        }

        .scroll-container::-webkit-scrollbar-track {
            background: transparent;
        }

        .scroll-container::-webkit-scrollbar-thumb {
            background: var(--scroll-thumb);
            border-radius: 10px;
        }

        .scroll-container::-webkit-scrollbar-thumb:hover {
            background: var(--scroll-thumb-hover);
        }

        .scroll-container {
            scrollbar-width: thin;
            scrollbar-color: var(--scroll-thumb) transparent;
        }

        .main-content {
            flex: 1;
            width: 100%;
            position: relative;
        }

        .page {
            display: none;
            width: 100%;
        }

        .page.active {
            display: block;
            animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        }

        @keyframes fadeIn {
            from { opacity: 0.6; transform: translateY(4px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .hero-banner {
            position: relative;
            width: 100%;
            background-color: var(--bg);
        }

        .hero-banner img {
            width: 100%;
            display: block;
            min-height: clamp(350px, 38vw, 450px);
            object-fit: cover;
            background-color: var(--bg);
        }

        .floating-cards {
            position: absolute;
            right: clamp(30px, 3.5vw, 40px);
            top: clamp(30px, 3.5vw, 40px);
            display: flex;
            flex-direction: column;
            gap: clamp(20px, 2.5vw, 30px);
            width: clamp(340px, 32vw, 400px);
            z-index: 10;
        }

        .card {
            background-color: var(--card-bg);
            border-radius: 12px;
            padding: clamp(30px, 3.5vw, 40px) clamp(25px, 2.8vw, 30px);
            font-size: 1rem;
            font-weight: normal;
            color: var(--text);
            box-shadow: var(--shadow-card);
            transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: clamp(180px, 17vw, 200px);
        }

        .card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-card-hover);
        }

        .card h3 {
            font-size: 1.2rem;
            margin-bottom: 10px;
            color: var(--text-strong);
            font-weight: normal;
        }

        .card p {
            line-height: 1.6;
            color: var(--text-body);
            margin-bottom: 20px;
        }

        .card-btn {
            display: inline-block;
            background-color: var(--accent);
            color: var(--on-accent);
            text-decoration: none;
            padding: clamp(10px, 1.2vw, 12px) clamp(18px, 1.8vw, 22px);
            border-radius: 6px;
            text-align: center;
            transition: background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
            font-size: 1rem;
            align-self: flex-start;
            cursor: pointer;
            border: none;
            font-family: inherit;
            -webkit-appearance: none;
            appearance: none;
        }

        .card-btn:hover {
            background-color: var(--accent-hover);
        }

        .other-page-content {
            max-width: 900px;
            margin: 60px auto;
            padding: 0 40px;
            text-align: left;
        }

        .other-page-content h2 {
            font-size: 2rem;
            margin-bottom: 25px;
            color: var(--text-strong);
            text-align: left;
            outline: none;

            cursor: default;
        }

        .other-page-content p {
            font-size: 1.05rem;
            line-height: 1.8;
            color: var(--text-body);
            text-align: left;
            margin-bottom: 30px;
        }

        .download-desc {
            margin-bottom: 45px;
        }

        .download-grid {
            display: flex;
            align-items: flex-start;
            gap: 20px;
            margin-top: 10px;
        }

        .download-col {
            flex: 1 1 0;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .download-card {
            background-color: var(--card-bg);
            border-radius: 12px;
            padding: 25px;
            box-shadow: var(--shadow-sm);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .download-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-sm-hover);
        }

        .download-card .version {
            font-size: 1.3rem;
            font-weight: bold;
            color: var(--text-strong);
            margin-bottom: 4px;
        }

        .download-card .date {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 16px;
        }

        .download-card .links {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: auto;
        }

        .download-card .links a,
        .download-card .links button {
            display: inline-block;
            padding: 8px 14px;
            border-radius: 6px;
            color: var(--on-accent);
            text-decoration: none;
            font-size: 0.85rem;
            transition: opacity 0.2s ease;
            cursor: pointer;
            border: none;
            font-family: inherit;
            -webkit-appearance: none;
            appearance: none;
        }

        .download-card .links a:hover,
        .download-card .links button:hover {
            opacity: 0.85;
        }

        .link-123 { background-color: #3b82f6; }
        .link-lanzou { background-color: #f59e0b; }
        .link-baidu { background-color: #ef4444; }
        .link-bili { background-color: #f472b6; }
        .qq-number { color: var(--accent); font-weight: bold; }

        .faq-search-wrap {
            position: relative;
            margin-bottom: 26px;
        }

        .faq-search-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            width: 18px;
            height: 18px;
            pointer-events: none;
            opacity: 0.45;
        }

        .faq-search {
            width: 100%;
            box-sizing: border-box;
            padding: 13px 16px 13px 44px;
            font-size: 1rem;
            font-family: inherit;
            color: var(--text);
            background-color: var(--input-bg);
            border: 1px solid var(--border);
            border-radius: 10px;
            box-shadow: var(--shadow-input);
            outline: none;
            transition: border-color 0.25s ease, box-shadow 0.25s ease;
            -webkit-appearance: none;
            appearance: none;
        }

        .faq-search::placeholder {
            color: var(--placeholder);
        }

        .faq-search:focus {
            border-color: var(--accent);
            box-shadow: var(--shadow-focus);
        }

        .faq-grid {
            display: flex;
            align-items: flex-start;
            gap: 20px;
        }

        .faq-col {
            flex: 1 1 0;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .faq-card {
            background-color: var(--card-bg);
            border: 1px solid transparent;
            border-radius: 12px;
            padding: 22px 24px;
            box-shadow: var(--shadow-sm);
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        }

        .faq-card:hover,
        .faq-card:focus-visible {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md-hover);
            border-color: var(--accent-border);
            outline: none;
        }

        .faq-card h3 {
            font-size: 1.15rem;
            line-height: 1.5;
            color: var(--text-strong);
            margin-bottom: 10px;
            font-weight: bold;
        }

        .faq-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 12px;
        }

        .faq-badge {
            font-size: 0.78rem;
            padding: 3px 10px;
            border-radius: 999px;
            background-color: var(--accent-soft);
            color: var(--accent);
            white-space: nowrap;
        }

        .faq-badge.is-date {
            background-color: var(--hover-tint);
            color: var(--text-muted);
        }

        .faq-summary {
            font-size: 0.95rem;
            line-height: 1.75;
            color: var(--text-body);
            display: -webkit-box;
            -webkit-line-clamp: 3;
            line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .faq-empty {
            padding: 48px 0;
            text-align: center;
            color: var(--text-faint);
            font-size: 0.95rem;
        }

        .faq-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--scrim);
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0s linear 0.3s;
        }

        .faq-modal-overlay.active {
            opacity: 1;
            visibility: visible;
            transition: opacity 0.3s ease, visibility 0s linear 0s;
        }

        .faq-modal {
            width: 820px;
            max-width: calc(100vw - 48px);
            height: 620px;
            max-height: calc(100vh - 80px);
            background-color: var(--modal-bg);
            border-radius: 16px;
            box-shadow: var(--shadow-modal);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transform: scale(0.98) translateY(8px);
            transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .faq-modal-overlay.active .faq-modal {
            transform: scale(1) translateY(0);
        }

        .faq-modal-header {
            position: relative;
            padding: 22px 26px 14px 26px;
            border-bottom: 1px solid var(--border-soft);
        }

        .faq-modal-header h3 {
            font-size: 1.35rem;
            line-height: 1.5;
            color: var(--text-strong);
            padding-right: 44px;
            text-align: left;
        }

        .faq-modal-close {
            position: absolute;
            top: 14px;
            right: 14px;
            width: 36px;
            height: 36px;
            border: none;
            border-radius: 8px;
            background-color: transparent;
            color: var(--text-muted);
            font-size: 1.1rem;
            line-height: 1;
            cursor: pointer;
            transition: background-color 0.2s ease, color 0.2s ease;
            -webkit-appearance: none;
            appearance: none;
        }

        .faq-modal-close:hover {
            background-color: var(--hover-tint-strong);
            color: var(--text-strong);
        }

        .faq-modal .faq-meta {
            padding: 14px 26px 0 26px;
            margin-bottom: 6px;
        }

        .faq-modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 16px 26px 28px 26px;
            text-align: left;
        }

        .faq-modal-body h4 {
            font-size: 1.02rem;
            color: var(--text-strong);
            margin: 18px 0 8px 0;
        }

        .faq-modal-body h4:first-child { margin-top: 0; }

        .faq-modal-body p {
            font-size: 0.95rem;
            line-height: 1.85;
            color: var(--text-body);
            margin-bottom: 12px;
            text-align: left;
        }

        .faq-modal-body ul,
        .faq-modal-body ol {
            margin: 0 0 14px 0;
            padding-left: 22px;
        }

        .faq-modal-body li {
            font-size: 0.95rem;
            line-height: 1.8;
            color: var(--text-body);
            margin-bottom: 4px;
        }

        .faq-modal-body img {
            max-width: 100%;
            border-radius: 10px;
            margin: 12px 0;
            display: block;
        }

        .faq-modal-body code {
            font-family: 'Consolas', monospace;
            font-size: 0.9em;
            background-color: var(--code-bg);
            border-radius: 4px;
            padding: 2px 6px;
        }

        .faq-modal-body strong { color: var(--text-strong); }

        .faq-modal-body a {
            color: var(--accent);
            text-decoration: none;
        }

        .faq-modal-body a:hover { text-decoration: underline; }

        .faq-modal-body blockquote {
            margin: 14px 0;
            padding: 10px 16px;
            border-left: 3px solid var(--warn);
            background-color: var(--quote-bg);
            border-radius: 0 8px 8px 0;
            color: var(--quote-text);
            font-size: 0.92rem;
            line-height: 1.8;
        }

        .faq-modal-body table {
            width: 100%;
            border-collapse: collapse;
            margin: 12px 0 16px 0;
            font-size: 0.92rem;
        }

        .faq-modal-body th,
        .faq-modal-body td {
            border: 1px solid var(--border-soft);
            padding: 8px 12px;
            text-align: left;
            color: var(--text-body);
        }

        .faq-modal-body th {
            background-color: var(--table-head-bg);
            color: var(--text);
        }

        .faq-modal-body::-webkit-scrollbar { width: 8px; }
        .faq-modal-body::-webkit-scrollbar-track { background: transparent; }
        .faq-modal-body::-webkit-scrollbar-thumb {
            background-color: var(--scroll-thumb);
            border-radius: 8px;
        }

        .notice-card {
            position: relative;
            overflow: hidden;
            height: clamp(180px, 17vw, 200px);
        }

        .notice-content {
            flex: 1;
            display: grid;
            position: relative;
            overflow-y: auto;
            padding-right: 8px;
            margin-bottom: 10px;
        }

        .notice-content::-webkit-scrollbar {
            width: 4px;
        }
        .notice-content::-webkit-scrollbar-track {
            background: transparent;
        }
        .notice-content::-webkit-scrollbar-thumb {
            background: var(--scroll-thumb);
            border-radius: 4px;
        }
        .notice-content::-webkit-scrollbar-thumb:hover {
            background: var(--scroll-thumb-hover);
        }

        .notice-page {
            grid-area: 1 / 1;
            opacity: 0;
            transform: translateY(5px);
            transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
            pointer-events: none;
        }

        .notice-page.active {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        .notice-dots {
            display: flex;
            gap: 8px;
            margin-top: auto;
            align-items: center;
            padding-top: 8px;
        }

        .notice-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: var(--dot);
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.2s ease;
            border: none;
            padding: 0;
            -webkit-appearance: none;
            appearance: none;
        }

        .notice-dot:hover {
            transform: scale(1.3);
        }

        .notice-dot.active {
            background-color: var(--dot-active);
        }

        .sponsor-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 40px;
            margin-bottom: 20px;
        }

        .sponsor-qr {
            width: 260px;
            height: 260px;
            object-fit: contain;
            background-color: var(--qr-bg);
            border-radius: 16px;
            padding: 15px;
            box-shadow: var(--shadow-qr);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .sponsor-qr:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-qr-hover);
        }

        .sponsor-note {
            margin-top: 15px;
            font-size: 1rem;
            color: var(--text-body);
            font-weight: bold;
        }

        .sponsor-disclaimer {
            margin-top: 30px;
            font-size: 0.85rem;
            color: var(--text-faint);
            text-align: center;
            background-color: var(--disclaimer-bg);
            padding: 12px 20px;
            border-radius: 8px;
            border-left: 4px solid var(--warn);
        }

        .footer {
            padding: 20px 20px 40px 20px;
            text-align: center;
        }

        .footer-divider {
            height: 1px;
            background-color: var(--divider);
            width: 100%;
            margin-top: 100px;
            margin-bottom: 30px;
        }

        .footer p {
            color: var(--text-faint);
            font-size: 0.9rem;
            margin-bottom: 8px;
            line-height: 1.6;
        }

        .footer a {
            color: var(--accent);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer a:hover {
            color: var(--accent-hover);
            text-decoration: underline;
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: var(--scrim-soft);
            -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
            z-index: 999;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0.6;
            visibility: hidden;
            transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.5s;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
            transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
        }

        .modal-overlay.closing {
            opacity: 0;
            visibility: visible;
        }

        .modal-overlay[hidden] {
            display: none;
        }

        .modal-box {
            background-color: var(--modal-bg);
            border-radius: 12px;
            padding: 35px;
            width: 90%;
            max-width: 420px;
            box-shadow: var(--shadow-dialog);
            text-align: center;
            opacity: 0.6;
            transform: scale(0.95) translateY(6px);
            cursor: default;
            transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .modal-overlay.active .modal-box {
            opacity: 1;
            transform: scale(1) translateY(0);
        }

        .modal-overlay.closing .modal-box {
            opacity: 0;
            transform: scale(0.95) translateY(6px);
        }

        .modal-box h3 {
            font-size: 1.3rem;
            margin-bottom: 15px;
            color: var(--text-strong);
        }

        .modal-box p {
            color: var(--text-body);
            margin-bottom: 25px;
            font-size: 1rem;
            line-height: 1.6;
            text-align: center;
        }

        .modal-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
        }

        .modal-buttons button {
            padding: 10px 24px;
            border-radius: 8px;
            font-size: 1rem;
            cursor: pointer;
            transition: background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
            font-family: inherit;
            border: none;
            outline: none;
            font-weight: bold;
            -webkit-appearance: none;
            appearance: none;
        }

        .btn-cancel {
            background-color: var(--btn-cancel-bg);
            color: var(--text);
        }

        .btn-cancel:hover {
            background-color: var(--btn-cancel-hover);
        }

        .btn-confirm {
            background-color: var(--accent);
            color: var(--on-accent);
        }

        .btn-confirm:hover {
            background-color: var(--accent-hover);
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }

        @media (max-width: 1024px) {
            .navbar {
                padding: 0 20px;
                height: 70px;
            }

            .navbar-logo {
                height: 44px;
            }

            .logo-desktop {
                display: none;
                margin-left: 0;
            }

            .logo-mobile {
                display: block;
            }

            .hamburger {
                display: flex;
            }

            .navbar-links {
                display: flex;
                flex-direction: column;
                position: absolute;
                top: 70px;
                left: 0;
                width: 100%;
                background-color: var(--nav-bg);
                box-shadow: var(--shadow-nav);
                padding: 0 20px;
                gap: 0;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1), padding 0.5s cubic-bezier(0.22, 1, 0.36, 1);
            }

            .navbar-links.open {
                max-height: 500px;
                padding: 15px 20px 25px 20px;
            }

            .navbar-links a,
            .navbar-links button {
                font-size: 1.15rem;
                padding: 14px 16px;
                border-radius: 8px;
                width: 100%;
                text-align: center;
            }

            .navbar-links a::after,
            .navbar-links button::after {
                display: none;
            }

            .scroll-container {
                height: calc(100vh - 70px);
                height: calc(100dvh - 70px);
            }

            .hero-banner img {
                display: none;
            }

            .hero-banner {
                padding-top: 20px;
            }

            .floating-cards {
                position: static;
                width: 100%;
                padding: 20px;
                gap: 15px;
            }

            .card {
                padding: 25px 20px;
                min-height: auto;
            }

            .card-btn {
                width: 100%;
                align-self: stretch;
            }

            .other-page-content {
                margin: 30px auto;
                padding: 0 20px;
            }

            .download-grid {
                flex-direction: column;
                align-items: stretch;
                gap: 15px;
            }

            .sponsor-qr {
                width: 220px;
                height: 220px;
            }

            .footer-divider {
                margin-top: 60px;
            }
        }
        @media (max-width: 1024px) {
            .faq-grid {
                flex-direction: column;
                align-items: stretch;
                gap: 16px;
            }

            .faq-modal {
                width: calc(100vw - 32px);
                height: calc(100vh - 64px);
                border-radius: 12px;
            }

            .faq-modal-header {
                padding: 18px 18px 12px 18px;
            }

            .faq-modal-header h3 {
                font-size: 1.15rem;
            }

            .faq-modal .faq-meta {
                padding: 12px 18px 0 18px;
            }

            .faq-modal-body {
                padding: 14px 18px 22px 18px;
            }
        }

        /* ===== 主题切换控件 ===== */
        .navbar-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .theme-switch {
            position: fixed;
            left: 30px;
            bottom: 30px;
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 144px;
            height: 75px;
            padding: 5px;
            border-radius: 26px;
            background-color: var(--switch-bg);
            border: 1px solid var(--switch-border);
            box-shadow: var(--switch-shadow);
        }

        .theme-switch-knob {
            z-index: 1;
            position: absolute;
            top: 5px;
            left: 5px;
            width: 63px;
            height: 63px;
            border-radius: 20px;
            background-color: var(--switch-head-bg);
            border: 1px solid var(--switch-head-border);
            box-shadow: var(--switch-head-shadow);
            transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
            pointer-events: none;
        }

        .theme-switch.is-dark .theme-switch-knob {
            transform: translateX(69px);
        }

        .theme-switch-btn {
            position: relative;
            z-index: 2;
            width: 63px;
            height: 63px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;
            border-radius: 20px;
            color: var(--switch-icon);
            cursor: pointer;
            transition: color 0.3s ease, transform 0.2s ease;
            -webkit-appearance: none;
            appearance: none;
            padding: 0;
        }

        .theme-switch-btn:hover {
            color: var(--switch-icon-hover);
        }

        .theme-switch-btn:active {
            transform: scale(0.94);
        }

        .theme-switch-btn:focus-visible {
            outline: 2px solid var(--switch-icon-hover);
            outline-offset: 3px;
        }

        .theme-switch-btn[aria-pressed="true"] {
            color: var(--switch-icon-active);
        }

        .theme-icon {
            display: block;
            width: 34px;
            height: 34px;
            background-color: currentColor;
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
            -webkit-mask-position: center;
            mask-position: center;
            -webkit-mask-size: contain;
            mask-size: contain;
        }

        .icon-sun {
            -webkit-mask-image: url('../resources/image/sun.svg');
            mask-image: url('../resources/image/sun.svg');
        }

        .icon-moon {
            -webkit-mask-image: url('../resources/image/moon.svg');
            mask-image: url('../resources/image/moon.svg');
        }

        .theme-toggle-mobile {
            display: none;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 10px;
            border: none;
            background-color: transparent;
            color: var(--text-strong);
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.2s ease;
            -webkit-appearance: none;
            appearance: none;
        }

        .theme-toggle-mobile:hover {
            background-color: var(--hover-tint);
        }

        .theme-toggle-mobile:active {
            transform: scale(0.9);
        }

        .theme-toggle-mobile .theme-icon {
            width: 26px;
            height: 26px;
        }

        html.theme-transition,
        html.theme-transition body,
        html.theme-transition .navbar,
        html.theme-transition .card,
        html.theme-transition .download-card,
        html.theme-transition .faq-card,
        html.theme-transition .modal-box,
        html.theme-transition .faq-modal,
        html.theme-transition .navbar-links,
        html.theme-transition .footer,
        html.theme-transition .faq-search {
            transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        }

        [data-theme="dark"] .navbar {
            border-bottom: 1px solid var(--border-soft);
            box-shadow: none;
        }

        [data-theme="dark"] .card,
        [data-theme="dark"] .download-card,
        [data-theme="dark"] .faq-card,
        [data-theme="dark"] .modal-box,
        [data-theme="dark"] .faq-modal {
            border: 1px solid var(--border-soft);
        }

        [data-theme="dark"] .hero-banner,
        [data-theme="dark"] .hero-banner img {
            background-color: var(--bg);
        }

        [data-theme="dark"] .hero-banner img {
            filter: brightness(0.86) saturate(0.95);
        }

        /* 宣传图自带 #0f0f0f 底色，比页面底色 #121212 略暗：
           在图片底部叠一层渐隐到页面底色的遮罩，消除横向色带接缝。
           用覆盖层而不是 mask，避免把图里的白色窗口一起淡化。 */
        [data-theme="dark"] .hero-banner::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 120px;
            pointer-events: none;
            background: linear-gradient(to bottom, rgba(18, 18, 18, 0) 0%, var(--bg) 100%);
            z-index: 1;
        }

        [data-theme="dark"] .sponsor-qr {
            border: 1px solid var(--border);
        }

        [data-theme="dark"] .link-123 { background-color: #2f6fe0; }
        [data-theme="dark"] .link-lanzou { background-color: #d98a10; }
        [data-theme="dark"] .link-baidu { background-color: #d64545; }
        [data-theme="dark"] .link-bili { background-color: #d95f9f; }

        [data-theme="dark"] .btn-cancel { color: var(--text); }

        [data-theme="dark"] .theme-switch {
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        [data-theme="dark"] .navbar-links {
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        @media (max-width: 1024px) {
            .theme-switch {
                display: none;
            }

            .theme-toggle-mobile {
                display: flex;
            }
        }


/* ============================================================================
   静态兜底 / 加载占位 / 错误页 / 无脚本提示
   ============================================================================ */

.static-fallback {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 40px;
    text-align: center;
}

.static-fallback h1 {
    font-size: 2rem;
    color: var(--text-strong);
    margin-bottom: 18px;
}

.static-fallback p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-body);
    margin-bottom: 12px;
}

.static-links {
    color: var(--text-faint);
}

.static-links a {
    color: var(--accent);
    text-decoration: none;
}

.static-links a:hover {
    text-decoration: underline;
}

.nojs-notice {
    margin: 16px 20px;
    padding: 14px 18px;
    border-radius: 10px;
    background-color: var(--disclaimer-bg);
    border-left: 4px solid var(--warn);
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.7;
}

.nojs-notice strong {
    color: var(--text-strong);
}

.nojs-notice a {
    color: var(--accent);
}

.faq-error {
    flex: 1 1 100%;
    width: 100%;
    grid-column: 1 / -1;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-body);
    background-color: var(--disclaimer-bg);
    border: 1px dashed var(--border);
    border-radius: 12px;
    line-height: 1.9;
}

.faq-error strong {
    color: var(--text-strong);
}

.faq-error button {
    margin-left: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--card-bg);
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}

.faq-error button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---- 统一错误页（403 / 404 / 加载失败共用） ---- */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background-color: var(--bg);
}

.error-code {
    font-size: 4.5rem;
    font-weight: bold;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.error-title {
    font-size: 1.8rem;
    color: var(--text-strong);
    margin-bottom: 14px;
}

.error-text {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-body);
    max-width: 560px;
    margin-bottom: 10px;
}

.error-hint {
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text-faint);
    max-width: 560px;
    margin-bottom: 26px;
}

.error-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.error-actions a,
.error-actions button {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.98rem;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--border);
    background-color: var(--card-bg);
    color: var(--text);
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.error-actions a:hover,
.error-actions button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.error-actions .primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.error-actions .primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
}

.footer {
    background-color: var(--bg);
}

@media (max-width: 1024px) {
    .static-fallback {
        margin: 40px auto;
        padding: 0 20px;
    }

    .error-code {
        font-size: 3.2rem;
    }

    .error-title {
        font-size: 1.4rem;
    }
}
