:root {
            --primary: #3c5a9b;
            --primary-deep: #2e4a8a;
            --primary-light: #6e8bc2;
            --primary-soft: #e8edf7;
            --line: #e4e9f2;
            --text: #1f2430;
            --text-2: #6b7280;
            --text-3: #9aa3b2;
            --card-shadow: 0 1px 2px rgba(31, 42, 68, 0.04), 0 8px 24px rgba(31, 42, 68, 0.06);
            --radius: 14px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, HarmonyOS_Regular, HarmonyOS_Medium, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
            font-size: 16px;
            color: var(--text);
        }

        body {
            min-height: 100vh;
            background-color: #eef2f9;
            background-image:
                radial-gradient(1200px 620px at 8% -10%, rgba(110, 139, 194, 0.28), transparent 62%),
                radial-gradient(900px 540px at 108% 8%, rgba(110, 139, 194, 0.18), transparent 56%),
                radial-gradient(1100px 620px at 50% 118%, rgba(140, 165, 215, 0.16), transparent 60%);
            background-attachment: fixed;
        }

        /* ===== Header（毛玻璃） ===== */
        .header {
            position: sticky;
            top: 0;
            z-index: 200;
            min-height: 64px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 10px clamp(16px, 3.5vw, 40px);
            background: rgba(255, 255, 255, 0.78);
            backdrop-filter: blur(18px) saturate(1.6);
            -webkit-backdrop-filter: blur(18px) saturate(1.6);
            border-bottom: 1px solid rgba(110, 139, 194, 0.18);
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 13px;
            min-width: 0;
            flex: 1 1 auto;
            margin-left: 12px;
        }

        .brand-mark {
            width: 26px;
            height: 26px;
            flex-shrink: 0;
            filter: drop-shadow(0 1px 2px rgba(60, 90, 155, 0.28));
        }

        .brand {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .brand .logo {
            font-size: 21px;
            font-weight: 700;
            line-height: 1.2;
            color: #24304a;
            letter-spacing: 0.2px;
            text-decoration: none;
        }

        .brand .subtitle {
            font-size: 12.5px;
            line-height: 1.4;
            color: var(--text-2);
            margin-top: 1px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .header-right {
            display: flex;
            align-items: center;
            flex-shrink: 0;
        }

        .header-right a,
        .header-right button {
            color: var(--primary);
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            padding: 7px 16px;
            background: var(--primary-soft);
            border: 1px solid transparent;
            border-radius: 999px;
            transition: all 0.2s;
            font-family: inherit;
            line-height: normal;
            cursor: pointer;
        }

        .header-right a:hover,
        .header-right button:hover {
            background: var(--primary);
            color: #fff;
            box-shadow: 0 2px 8px rgba(60, 90, 155, 0.3);
        }

        /* ===== Main Container ===== */
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 26px auto 20px;
            padding: 0 clamp(12px, 2.5vw, 26px);
            display: flex;
            align-items: flex-start;
            gap: 24px;
        }

        /* ===== Left Sidebar（卡片导航） ===== */
        .sidebar {
            position: sticky;
            top: 88px;
            width: 226px;
            flex-shrink: 0;
            background: #fff;
            border: 1px solid var(--line);
            border-radius: var(--radius);
            box-shadow: var(--card-shadow);
            padding: 10px;
        }

        .sidebar-tabs {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .sidebar-tabs li {
            height: 40px;
            line-height: 40px;
            padding: 0 14px;
            font-size: 14px;
            color: var(--text-2);
            cursor: pointer;
            border-radius: 9px;
            transition: all 0.15s;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .sidebar-tabs li:hover {
            color: var(--primary);
            background: #f2f5fb;
        }

        .sidebar-tabs li.active {
            color: var(--primary);
            background: var(--primary-soft);
            font-weight: 600;
        }

        /* ===== Right Content ===== */
        .content {
            flex: 1;
            min-width: 0;
        }

        /* ===== Download Item（卡片） ===== */
        .item {
            background: #fff;
            border: 1px solid var(--line);
            border-radius: var(--radius);
            box-shadow: var(--card-shadow);
            padding: 20px 24px;
            margin-bottom: 22px;
        }

        .item .tag {
            margin-bottom: 14px;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .el-tag {
            border-radius: 6px;
            padding: 0 9px;
            font-size: 12px;
            line-height: 23px;
            height: 23px;
            border-width: 1px;
            border-style: solid;
            display: inline-block;
            margin-right: 0;
        }

        .el-tag--light {
            background-color: var(--primary-soft);
            color: var(--primary);
            border-color: #d9e1f0;
        }

        .el-tag--success {
            background-color: #eaf7ea;
            color: #4e9e46;
            border-color: #d3eed2;
        }

        .el-tag--danger {
            background-color: #fdf0ea;
            color: #d2602c;
            border-color: #f7ded2;
        }

        .el-tag--info {
            background-color: #f4f5f7;
            color: var(--text-2);
            border-color: #e8eaef;
        }

        /* ===== 下载列表 ===== */
        .collapse {
            border: 1px solid var(--line);
            border-radius: 12px;
            overflow: hidden;
            background: #fff;
        }

        .collapse-item {
            border-bottom: 1px solid var(--line);
        }

        .collapse-item:last-child {
            border-bottom: none;
        }

        .collapse-header {
            display: flex;
            align-items: center;
            padding: 14px 16px;
            cursor: pointer;
            font-size: 15px;
            font-weight: 500;
            color: var(--text);
            transition: background-color 0.15s;
            user-select: none;
        }

        .collapse-header:hover {
            background-color: #f6f8fc;
        }

        .collapse-header .folder-icon {
            margin-right: 10px;
            font-size: 17px;
            filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
        }

        .collapse-header .arrow {
            margin-left: auto;
            color: var(--text-3);
            font-size: 11px;
            transition: transform 0.25s, color 0.25s;
        }

        .collapse-item.expanded .collapse-header {
            background-color: #f6f8fc;
        }

        .collapse-item.expanded .collapse-header .arrow {
            transform: rotate(90deg);
            color: var(--primary);
        }

        .collapse-content {
            display: none;
            padding: 18px 20px;
            background: #fbfcfe;
            border-top: 1px solid var(--line);
        }

        .collapse-item.expanded .collapse-content {
            display: block;
        }

        .link {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin: 4px 0 18px;
        }

        .link .dl-btn {
            background: linear-gradient(180deg, #47689f 0%, var(--primary) 100%);
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 10px 22px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            text-decoration: none;
            box-shadow: 0 2px 8px rgba(60, 90, 155, 0.28);
            transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
        }

        .link .dl-btn--quark {
            background: linear-gradient(180deg, #8b6bff 0%, #6c4df0 100%);
            box-shadow: 0 2px 8px rgba(108, 77, 240, 0.28);
        }

        .link .dl-btn--baidu {
            background: linear-gradient(180deg, #3b8dff 0%, #1f6df0 100%);
            box-shadow: 0 2px 8px rgba(31, 109, 240, 0.28);
        }

        .link .dl-btn--site {
            background: linear-gradient(180deg, #4f9c76 0%, #2f7d52 100%);
            box-shadow: 0 2px 8px rgba(47, 125, 82, 0.28);
        }

        .link a.dl-btn:hover {
            filter: brightness(1.08);
            transform: translateY(-1px);
        }

        .link a.dl-btn--quark:hover {
            box-shadow: 0 4px 14px rgba(108, 77, 240, 0.4);
        }

        .link a.dl-btn--baidu:hover {
            box-shadow: 0 4px 14px rgba(31, 109, 240, 0.4);
        }

        .link a.dl-btn--site:hover {
            box-shadow: 0 4px 14px rgba(47, 125, 82, 0.4);
        }

        .link a.dl-btn:active {
            transform: translateY(0);
        }

        .link .dl-btn .download-icon {
            font-size: 13px;
        }

        .link .dl-btn.is-disabled {
            background: #d7dde8;
            color: #7a8190;
            cursor: not-allowed;
            box-shadow: none;
        }

        .link .dl-btn.is-disabled .download-icon {
            opacity: 0.6;
        }

        /* ===== PE 工具页详情（重构后：标题 / 介绍 / 下载地址 三段） ===== */
        .pe-detail {
            background: #fff;
            border: 1px solid var(--line);
            border-radius: var(--radius);
            padding: 22px 24px 18px;
            margin-bottom: 22px;
        }

        .pe-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 16px;
        }

        .pe-section {
            padding: 14px 0;
            border-top: 1px dashed var(--line);
        }

        .pe-section:first-of-type {
            border-top: none;
            padding-top: 4px;
        }

        .pe-section h2 {
            font-size: 14px;
            color: var(--primary);
            margin: 0 0 10px;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        .pe-section p {
            margin: 0;
            font-size: 13.5px;
            line-height: 1.9;
            color: var(--text-2);
        }

        .pe-features {
            margin: 0;
            padding-left: 20px;
            list-style: disc;
        }

        .pe-features li {
            font-size: 13.5px;
            line-height: 1.9;
            color: var(--text-2);
        }

        /* 下载地址：不用按钮，直接把链接文本列出来 */
        .pe-links {
            margin: 0 0 12px;
            padding: 0;
            list-style: none;
        }

        .pe-links li {
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            gap: 8px;
            padding: 9px 12px;
            background: #f8fafd;
            border: 1px solid var(--line);
            border-radius: 6px;
        }

        .pe-links li + li {
            margin-top: 8px;
        }

        .pe-links .pe-link-label {
            flex: none;
            font-size: 13px;
            font-weight: 600;
            color: var(--primary);
        }

        .pe-links a {
            flex: 1 1 220px;
            font-size: 12.5px;
            color: var(--text-2);
            font-family: ui-monospace, "SF Mono", Consolas, "Courier New", monospace;
            word-break: break-all;
            text-decoration: none;
        }

        .pe-links a:hover {
            color: var(--primary);
            text-decoration: underline;
        }

        /* 详情页配图：本地 webp 截图，限宽居中，不铺满整栏（源图 1000px 宽，显示缩到 480px 内仍清晰） */
        .pe-figure {
            margin: 0 auto 20px;
            max-width: 480px;
        }

        /* 竖版长截图（如 Rufus 主界面）再收窄一档，避免在页面上占太高 */
        .pe-figure--narrow {
            max-width: 360px;
        }

        .pe-figure img {
            display: block;
            width: 100%;
            height: auto;
            background: #f8fafd;
            border: 1px solid var(--line);
            border-radius: 8px;
        }

        .pe-figure figcaption {
            margin-top: 8px;
            font-size: 12.5px;
            line-height: 1.7;
            color: var(--text-3);
            text-align: center;
        }

        .pe-dl-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 12px;
        }

        .pe-dl-buttons .dl-btn {
            /* 复用 .link .dl-btn 的样式，这里只补差异：让 PE 页按钮稍微大一点 */
            padding: 10px 22px;
            font-size: 14px;
        }

        .pe-note {
            font-size: 12.5px !important;
            color: var(--text-3) !important;
            line-height: 1.8 !important;
            background: #f8fafd;
            border-left: 3px solid #cfdcef;
            padding: 10px 14px;
            border-radius: 0 6px 6px 0;
        }

        .info {
            font-size: 13px;
            line-height: 24px;
            color: var(--text-2);
            word-break: break-all;
        }

        .info .label {
            display: inline-block;
            min-width: 62px;
            color: var(--text-3);
            font-size: 12px;
        }

        /* ===== Footer ===== */
        .footer {
            text-align: center;
            padding: 8px 20px 30px;
            margin-top: 26px;
        }

        .footer .footer-title {
            font-size: 18px;
            font-weight: 700;
            color: #2b3a5f;
            margin-bottom: 4px;
        }

        .footer .footer-desc {
            font-size: 14px;
            color: var(--text-2);
        }

        .footer .footer-desc a {
            color: var(--primary);
            text-decoration: none;
        }

        .footer .footer-copy {
            font-size: 12.5px;
            color: var(--text-3);
            margin-top: 6px;
        }

        /* ===== Empty Placeholder ===== */
        .placeholder {
            text-align: center;
            padding: 80px 20px;
            color: var(--text-3);
            font-size: 15px;
            background: rgba(255, 255, 255, 0.6);
            border: 1px dashed #cdd6e6;
            border-radius: var(--radius);
        }

        .placeholder .icon {
            font-size: 48px;
            margin-bottom: 15px;
            opacity: 0.7;
        }

        /* ===== FAQ Modal ===== */
        .modal-mask {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(20, 30, 55, 0.45);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            padding: 16px;
        }

        .modal-mask.show {
            display: flex;
        }

        .modal {
            width: 680px;
            max-width: 100%;
            max-height: 84vh;
            background-color: #fff;
            border-radius: 16px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            box-shadow: 0 24px 60px rgba(20, 30, 60, 0.3);
        }

        .modal-header {
            padding: 20px 22px;
            border-bottom: 1px solid var(--line);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #fbfcfe;
        }

        .modal-header h3 {
            font-size: 17px;
            color: #24304a;
        }

        .modal-header .close {
            cursor: pointer;
            color: var(--text-3);
            font-size: 22px;
            line-height: 1;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            transition: all 0.15s;
        }

        .modal-header .close:hover {
            background: var(--primary-soft);
            color: var(--primary);
        }

        .modal-body {
            padding: 22px;
            overflow-y: auto;
            line-height: 1.8;
            font-size: 14px;
            color: var(--text);
        }

        .modal-body h4 {
            margin-top: 18px;
            margin-bottom: 8px;
            color: #24304a;
            font-size: 15px;
        }

        .modal-body h4:first-child {
            margin-top: 0;
        }

        .modal-body p {
            margin-bottom: 10px;
        }

        .modal-body ul {
            padding-left: 20px;
            margin: 8px 0 12px;
        }

        .modal-body ul li {
            margin-bottom: 6px;
        }

        .modal-body strong {
            color: var(--primary);
            font-weight: 600;
        }

        /* ===== 窄屏 / 移动端自适应 ===== */
        @media (max-width: 992px) {
            html, body {
                overflow-x: hidden;
            }

            .header {
                padding: 10px 16px;
            }

            .container {
                flex-direction: column;
                align-items: stretch;
                gap: 14px;
                margin: 16px auto 8px;
            }

            /* 侧边栏 -> 顶部自动换行的标签 */
            .sidebar {
                position: static;
                top: auto;
                width: 100%;
                border-radius: 14px;
                padding: 8px 6px;
                box-shadow: none;
                border: 1px solid var(--line);
                background: rgba(255, 255, 255, 0.9);
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
            }

            .sidebar-tabs {
                flex-direction: row;
                flex-wrap: wrap;
                gap: 6px;
            }

            .sidebar-tabs li {
                width: auto;
                height: 34px;
                line-height: 34px;
                padding: 0 14px;
                font-size: 13px;
                border-radius: 17px;
                background: #f1f4fa;
                color: #46536d;
            }

            .sidebar-tabs li:hover {
                background: #e5ebf6;
                color: var(--primary);
            }

            .sidebar-tabs li.active {
                color: #fff;
                background: linear-gradient(180deg, #47689f 0%, var(--primary) 100%);
                font-weight: 600;
                box-shadow: 0 2px 8px rgba(60, 90, 155, 0.3);
            }

            .item {
                padding: 18px 20px;
            }

            .collapse-header > span:nth-child(2) {
                flex: 1;
                min-width: 0;
            }

            .content {
                min-width: 0;
            }

            .footer {
                margin-top: 4px;
                padding-bottom: 26px;
            }
        }

        @media (max-width: 600px) {
            .header {
                gap: 10px;
                padding: 9px 12px;
            }

            .header-left {
                gap: 10px;
            }

            .brand-mark {
                width: 22px;
                height: 22px;
            }

            .brand .logo {
                font-size: 18px;
            }

            .brand .subtitle {
                font-size: 11px;
            }

            .header-right a,
            .header-right button {
                font-size: 12px;
                padding: 6px 12px;
            }

            .container {
                padding: 0 10px;
                margin-top: 12px;
                gap: 12px;
            }

            .sidebar-tabs li {
                height: 32px;
                line-height: 32px;
                padding: 0 12px;
                font-size: 12.5px;
            }

            .item {
                padding: 15px 14px;
                border-radius: 12px;
                margin-bottom: 14px;
            }

            .item .tag {
                margin-bottom: 11px;
            }

            .collapse {
                border-radius: 10px;
            }

            .collapse-header {
                padding: 12px 12px;
                font-size: 14px;
            }

            .collapse-header .folder-icon {
                font-size: 15px;
                margin-right: 8px;
            }

            .collapse-content {
                padding: 14px 14px;
            }

            .link {
                margin-bottom: 14px;
            }

            .link .dl-btn {
                padding: 9px 18px;
                font-size: 13px;
            }

            .info {
                font-size: 12px;
                line-height: 21px;
            }

            .info .label {
                min-width: 52px;
                font-size: 11px;
            }

            .placeholder {
                padding: 50px 16px;
            }

            .footer {
                padding: 6px 12px 22px;
            }

            .footer .footer-title {
                font-size: 16px;
            }

            .footer .footer-desc {
                font-size: 12.5px;
            }

            .footer .footer-copy {
                font-size: 11.5px;
            }

            .modal-mask {
                padding: 12px;
            }

            .modal {
                max-height: 88vh;
                border-radius: 14px;
            }

            .modal-header {
                padding: 15px 16px;
            }

            .modal-header h3 {
                font-size: 16px;
            }

            .modal-body {
                padding: 16px;
            }
        }

.sidebar-tabs li { padding: 0; }
        .sidebar-tabs li a { display: block; height: 100%; padding: 0 14px;
            color: inherit; text-decoration: none; line-height: inherit;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .sidebar-tabs li.active { padding: 0 14px; }
        .sidebar-tabs li a:focus-visible { outline: 2px solid var(--primary-light); outline-offset: -2px; }
        .intro { margin: 0 0 18px; padding: 14px 18px; background: #f5f8ff;
            border: 1px solid #e3eaf8; border-left: 4px solid #4a6aab;
            border-radius: 8px; color: #475a77; font-size: 13.5px; line-height: 1.9; }
        .intro b { color: #2f4f8f; }
        .content-title { font-size: 18px; color: var(--text); margin: 0 0 14px; line-height: 1.5; }
        /* ---- 首页聚合目录 ---- */
        .content.home .home-hero { background: linear-gradient(135deg, #33508f, #4a6aab);
            color: #fff; padding: 24px 26px 20px; border-radius: var(--radius); margin-bottom: 20px; }
        .home-hero h1, .home-hero h2 { color: #fff; font-size: 19px; line-height: 1.55; margin: 0 0 10px; }
        .home-hero p { color: #dce5f5; font-size: 13.5px; line-height: 1.9; margin: 4px 0; }
        .cat-group { margin-bottom: 22px; }
        .cat-group h2 { font-size: 16px; color: var(--text); padding-left: 10px;
            border-left: 4px solid var(--primary); line-height: 1.4; margin-bottom: 4px; }
        .cat-note { font-size: 12.5px; color: var(--text-2); margin: 6px 0 10px 14px; line-height: 1.7; }
        .cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 12px; }
        .cat-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px;
            padding: 14px 16px; text-decoration: none; box-shadow: 0 1px 2px rgba(31, 42, 68, 0.03);
            transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s; }
        .cat-card:hover { border-color: var(--primary-light); box-shadow: var(--card-shadow); transform: translateY(-2px); }
        .cat-card h3 { font-size: 14.5px; color: var(--primary-deep); margin-bottom: 6px; line-height: 1.4; }
        .cat-card p { font-size: 12.5px; color: var(--text-2); line-height: 1.7; }
        .cat-go { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--primary); font-weight: 600; }
        .home-steps { margin-top: 4px; padding: 18px 22px; background: #f5f8ff;
            border: 1px solid #e3eaf8; border-radius: var(--radius); }
        .home-steps h2 { font-size: 16px; color: var(--text); margin-bottom: 8px; }
        .home-steps ol { margin: 0; padding-left: 20px; }
        .home-steps li { font-size: 13.5px; line-height: 2.1; color: #475a77; }
        .home-steps b { color: #2f4f8f; }
        @media (max-width: 640px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
        @media (max-width: 440px) { .cat-grid { grid-template-columns: 1fr; }
            .content.home .home-hero { padding: 18px 16px; } }
        /* ---- PE 总栏目 ---- */
        .cat-card--hub { border-color: #c3d2ee; background: #f6f9ff; }
        .back-link { margin: 0 0 12px; font-size: 12.5px; }
        .back-link a { color: var(--primary); text-decoration: none; }
        .back-link a:hover { text-decoration: underline; }
