﻿@import url('../../css/style.css');
@import url('fontawesome/css/all.min.css');
@import url('prism.css');

:root {
    --nav-height: 64px;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-high);
    font-family: 'Inter', 'Plus Jakarta Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.75;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.01em;
}

/* 文档内容图片响应�?*/
.content-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: block;
}


/* 动态背景装�?*/
.bg-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.12;
    pointer-events: none;
    animation: blobFloat 25s infinite linear;
}

.blob-1 {
    background: var(--accent-primary);
    top: -200px;
    left: -200px;
}

.blob-2 {
    background: var(--accent-secondary);
    bottom: -200px;
    right: -200px;
    animation-delay: -10s;
}

.blob-3 {
    background: var(--accent-tertiary);
    top: 50%;
    left: 50%;
    animation-duration: 35s;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(100px, 50px) rotate(120deg) scale(1.1);
    }

    66% {
        transform: translate(-50px, 100px) rotate(240deg) scale(0.9);
    }

    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

/* Light Theme: Subtle or No Blobs */
:root[data-theme="light"] .bg-blob {
    opacity: 0.05;
    filter: blur(100px);
}


.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航�?*/
.faq-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.faq-nav .faq-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.faq-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.faq-menu {
    display: flex;
    gap: 8px;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item:hover,
.nav-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* 返回按钮 - 跟随内容区域左侧定位 */
.back-to-faq {
    position: fixed;
    top: 80px;
    /* 相对于内容区域定位：(视口宽度 - 内容宽度)/2 - 按钮偏移 */
    left: max(20px, calc((100vw - 1200px) / 2 - 60px));
    width: 44px;
    height: 44px;
    background: rgba(13, 17, 26, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


.back-to-faq:hover {
    background: var(--accent-primary);
    color: #0f172a;
    transform: translateX(-3px);
    box-shadow: 0 8px 30px var(--accent-primary-40);
}

.back-to-faq svg {
    width: 22px;
    height: 22px;
}


/* 指南头部 */
.guide-header {
    padding: 60px 0 40px;
    text-align: center;
}


.guide-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.gradient-text {
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.version-badge {
    font-size: 14px;
    padding: 4px 12px;
    background: var(--accent-primary);
    color: #0f172a;
    border-radius: 20px;
    vertical-align: middle;
    /* 确保不受父级文字渐变影响 */
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: #0f172a;
    display: inline-block;
}

.applicable-systems {
    margin-top: 20px;
}

.systems-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.system-item {
    background: var(--accent-primary-10);
    border: 1px solid var(--accent-primary-30);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--accent-primary);
}

/* 分类区域 */
.category-section {
    margin-bottom: 50px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-header .faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
}

.category-header .faq-icon svg {
    width: 24px;
    height: 24px;
}

/* 通用图标样式 */
.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon svg {
    width: 18px;
    height: 18px;
    color: currentColor;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 分类标题图标动效 */
.category-header .faq-icon svg {
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.85;
    }
}

/* 问题卡片悬浮图标动效 */
.problem-card:hover .faq-icon svg {
    transform: scale(1.15);
    color: var(--accent-primary);
}

.problem-title .faq-icon svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.problem-link .faq-icon svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

/* 链接悬浮图标动效 */
.problem-link:hover .faq-icon svg {
    transform: translateX(3px);
}



.category-title {
    font-size: 22px;
    font-weight: 700;
}

/* 问题列表 */
.problem-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.problem-card {
    background: rgba(13, 17, 26, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.problem-card:hover {
    transform: translateY(-4px);
    /* border-color: var(--accent-primary-40); */
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}


.problem-number {
    width: 32px;
    height: 32px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    animation: iconFadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    transition: all 0.3s ease;
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes iconFadeIn {
    from {
        transform: scale(0.5) rotate(-15deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

/* 动态图标动画增�?*/
.problem-card:hover .faq-icon {
    transform: scale(1.18) rotate(5deg);
    color: var(--accent-primary);
    filter: drop-shadow(0 0 12px hsla(var(--h-primary), 80%, 65%, 0.5));
}

.problem-card:hover .problem-number {
    background: var(--grad-main);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-primary-40);
    transform: rotate(-5deg) scale(1.05);
}

.faq-icon svg {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.problem-card:hover .faq-icon svg {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.category-header .faq-icon {
    animation: iconPulse 4s ease-in-out infinite;
}

.problem-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: white;
}

.problem-desc {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* 查看手册按钮 */
.problem-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--grad-main);
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px -3px var(--accent-primary-40);
    position: relative;
    overflow: hidden;
}

.problem-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.problem-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px var(--accent-primary-50);
}

.problem-link:hover::before {
    left: 100%;
}

.problem-link .faq-icon svg {
    width: 14px;
    height: 14px;
}

/* 详细内容区域 */
.problem-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: var(--text-low);
}

.step-list {
    margin: 10px 0;
    padding-left: 18px;
}

.step-list li {
    margin-bottom: 6px;
    list-style-type: decimal;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    color: #818cf8;
    margin: 12px 0;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.6;
}

.code-block code {
    white-space: pre;
    padding: 0;
    background: transparent;
    border: none;
    color: inherit;
    font-size: inherit;
}

/* 表格样式 (用于 CPU 列表�? */
.faq-table-container {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-primary);
    text-align: left;
    padding: 16px;
    font-weight: 600;
}

td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.architecture-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.arm64 {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.x86_64 {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
}

.loongarch64 {
    background: rgba(167, 139, 250, 0.1);
    color: #a78bfa;
}

.mips64 {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

/* ����������ʽ�Ż� */
.download-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--accent-primary-15);
    color: var(--accent-primary) !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--accent-primary-40);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-link:hover {
    background: var(--accent-primary);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-primary-30);
    border-color: var(--accent-primary);
}

.download-link::before {
    content: '\f019';
    /* fa-download */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
}

/* Ѹ�װ�ť��ʽ΢�� (����) */
.thunder-cell-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 32px;
    /* �� download-link �߶�һ�� */
    margin-left: 8px;
    padding: 0 12px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

/* 页脚 */
.faq-footer {
    padding: 60px 0 40px;
    margin-top: 100px;
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-info h3 {
    margin-bottom: 8px;
    color: var(--accent-primary);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.6;
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    body {
        padding-top: var(--nav-height);
    }

    .guide-header {
        padding: 40px 10px 20px;
    }

    .guide-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .problem-list {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .problem-card {
        padding: 16px;
        gap: 12px;
    }

    .problem-title {
        font-size: 16px;
    }

    .footer-grid {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* FAQ 移动端导航增�?*/
.navbar-mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .faq-menu {
        position: fixed;
        top: 64px;
        left: 12px;
        right: 12px;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        flex-direction: column;
        padding: 10px;
        gap: 2px;
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    }

    .faq-menu.active {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: all;
    }

    .navbar-mobile-toggle {
        display: flex;
    }

    .nav-item {
        width: 100%;
        padding: 12px 16px;
        justify-content: flex-start;
    }
}

/* ==================== 亮色主题适配 ==================== */
:root[data-theme="light"] .faq-nav {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, #1a1a2e 0%, #4a5568 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

:root[data-theme="light"] .problem-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .problem-card:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 40px var(--accent-primary-15);
}

:root[data-theme="light"] .problem-title {
    color: #1a1a2e;
}

:root[data-theme="light"] .back-to-faq {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}

:root[data-theme="light"] .category-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .nav-item:hover,
:root[data-theme="light"] .nav-item.active {
    color: #1a1a2e;
    background: rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .faq-footer {
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .faq-table-container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] th {
    background: rgba(0, 0, 0, 0.03);
}

:root[data-theme="light"] td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .code-block {
    background: #f1f5f9;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--accent-primary);
}

/* 亮色主题 - 背景粒子降低饱和�?*/
:root[data-theme="light"] .bg-blob {
    opacity: 0.06;
    filter: blur(180px);
}

/* 亮色主题 - 系统标签 */
:root[data-theme="light"] .system-item {
    background: transparent;
    border: 1px solid var(--accent-primary-40);
    color: var(--accent-primary);
}

/* 亮色主题 - 版本徽章 */
:root[data-theme="light"] .version-badge {
    background: var(--accent-primary);
    color: #fff;
    -webkit-text-fill-color: #fff;
}

/* 亮色主题 - 问题编号 */
:root[data-theme="light"] .problem-number {
    background: var(--accent-primary-10);
    color: var(--accent-primary);
}

/* ��ɫ���� - �������鱳������ */
:root[data-theme="light"] .content-section {
    background: transparent;
    border: none;
    box-shadow: none;
}

:root[data-theme="light"] .content-section h2 {
    border-bottom-color: var(--accent-primary);
}

:root[data-theme="light"] .content-section p {
    color: #334155;
}

:root[data-theme="light"] .step-card {
    background: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: none !important;
}

:root[data-theme="light"] .step-card:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}

/* 亮色主题 - 分类图标 */
:root[data-theme="light"] .category-header .faq-icon {
    color: var(--accent-primary);
}

/* 亮色主题 - 分类标题 */
:root[data-theme="light"] .category-title {
    color: #1a1a2e;
}

/* Emerald 主题 - 系统标签 */
:root[data-theme="emerald"] .system-item {
    background: transparent;
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
}

/* Sunset 主题 - 系统标签 */
:root[data-theme="sunset"] .system-item {
    background: transparent;
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: #f97316;
}

/* ==================== 增强版内容组�?(Premium Typography) ==================== */
.content-section {
    display: block !important;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0 0 20px 0;
    /* ��С�߾�ʹ�ṹ����� */
    margin-bottom: 20px;
    box-shadow: none;
    animation: slideUpFade 0.6s ease-out;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-primary);
    display: inline-block;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px hsla(var(--h-primary), 80%, 60%, 0.1);
    scroll-margin-top: 100px;
}

.content-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 20px 0 12px;
    color: var(--accent-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    scroll-margin-top: 100px;
}

.content-section h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--grad-main);
    border-radius: 2px;
}

.content-section p {
    color: var(--text-mid);
    font-size: 15px;
    line-height: 1.8;
}

/* 步骤卡片视觉重写 - 改为更加稳固的布局 */
.step-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 30px 32px !important;
    margin-bottom: 20px !important;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.step-card:hover {
    border-color: var(--accent-primary) !important;
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.step-number {
    display: inline-block;
    background: var(--grad-main);
    color: white;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* ǿ�������ĵ�ͼƬ�ߴ� - �Զ���������� */
.doc-image {
    max-width: 90%;
    max-height: 600px !important;
    height: auto !important;
    border-radius: 12px !important;
    margin: 20px auto !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: block !important;
    transition: all 0.4s ease !important;
    cursor: zoom-in;
}

.doc-image.half-width {
    max-width: 100% !important;
    /* ������丸������ȣ��������� flex ���� */
    margin: 0 !important;

}

.doc-image:hover {
    transform: scale(1.02) translateY(-2px) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3) !important;
}

/* ��ͼ�Ű渨�� */
.image-row {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: flex-start;
    flex-wrap: wrap;
}

.image-wrapper {
    flex: 1;
    min-width: 300px;
}

.image-wrapper .doc-image {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.image-caption {
    text-align: center;
    font-size: 13px;
    color: var(--text-low);
    margin-top: 10px;
    font-weight: 500;
}

/* 网格布局对齐辅助 */
.software-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 24px !important;
    align-items: stretch !important;
    /* 强制等高 */
}

.software-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.doc-image:hover {
    transform: scale(1.02);
    border-color: var(--accent-primary) !important;
}

/* 提示类卡�?*/
.legacy-note,
.warning-box,
.tip-box,
.highlight-box,
.problem-box,
.info-box {
    border-left-width: 4px !important;
    border-radius: 12px !important;
    padding: 20px !important;
    font-size: 14px !important;
    margin-bottom: 20px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--accent-primary) !important;
}

.warning-box {
    border-left-color: #ef4444 !important;
}

.tip-box {
    border-left-color: #10b981 !important;
}

.highlight-box {
    border-left-color: var(--accent-secondary) !important;
}

.problem-box {
    border-left-color: #f59e0b !important;
}

:root[data-theme="light"] .legacy-note,
:root[data-theme="light"] .warning-box,
:root[data-theme="light"] .tip-box,
:root[data-theme="light"] .highlight-box,
:root[data-theme="light"] .problem-box,
:root[data-theme="light"] .info-box {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.05);
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 页面布局与侧边栋目录 (优化�? ==================== */
.page-layout {
    display: flex;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    transition: gap 0.3s ease;
}

.main-content-area {
    flex: 1;
    min-width: 0;
}

.toc-sidebar {
    width: 0;
    opacity: 0;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    overflow-x: hidden;
}

.toc-sidebar.expanded {
    width: 240px;
    opacity: 1;
    pointer-events: all;
    /* margin-right: 30px; �Ƴ��� margin��ͳһʹ�� page-layout �� gap ���� */
}

.toc-sidebar::-webkit-scrollbar {
    width: 4px;
}

.toc-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.toc-toggle {
    position: fixed;
    top: 80px;
    /* 与返回按钮（left）对称，使用内容区域右侧偏移 */
    /* right: max(20px, calc((100vw - 1200px) / 2 - 60px)); */
    left: max(20px, calc((100vw - 1200px) / 2 - 60px));
    width: 44px;
    /* 与返回按钮一�?*/
    height: 44px;
    background: rgba(13, 17, 26, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toc-toggle:hover {
    background: var(--accent-primary);
    color: #0f172a;
    transform: scale(1.05) translateX(3px);
    box-shadow: 0 8px 30px var(--accent-primary-40);
}

.toc-sidebar h3 {
    color: var(--accent-primary);
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.toc-sidebar h3::before {
    display: none !important;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 4px;
}

.toc-list a {
    display: block;
    padding: 8px 12px;
    color: var(--text-mid) !important;
    text-decoration: none;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.2s;
    border-left: 2px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toc-list a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white !important;
    border-left-color: var(--accent-primary);
}

.toc-list a.active {
    background: var(--accent-primary-10);
    color: var(--accent-primary) !important;
    border-left-color: var(--accent-primary);
    font-weight: 600;
}


/* ==================== 侧边栏图标动�?(Hamburger) ==================== */


/* ==================== 侧边栏图标动�?(FontAwesome) ==================== */
/* FontAwesome 图标默认样式 */
.toc-toggle i {
    display: inline-block;
    vertical-align: middle;
}

/* 激活状态（叉号动画）已�?JS 控制类名实现 */

/* 激活状态下的按钮样式（适配亮色背景�?*/
.toc-toggle.active {
    background: rgba(13, 17, 26, 0.95);
    color: var(--accent-primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ==================== 亮色主题适配 ==================== */
:root[data-theme="light"] {
    /* 主要背景色调�?*/
    --card-bg: #fff;
    --text-main: #334155;
    --text-muted: #64748b;
}

/* 目录切换按钮 */
:root[data-theme="light"] .toc-toggle {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-high);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .toc-toggle:hover {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 8px 30px var(--accent-primary-30);
}

:root[data-theme="light"] .toc-toggle.active {
    background: #fff;
    color: var(--accent-primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-primary-20);
}

/* 目录侧边栏 - Light 主题 */
:root[data-theme="light"] .toc-sidebar {
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

:root[data-theme="light"] .toc-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .toc-sidebar h3 {
    color: var(--accent-primary);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .toc-list a {
    color: #475569 !important;
}

:root[data-theme="light"] .toc-list a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #1a1a2e !important;
}

:root[data-theme="light"] .toc-list a.active {
    background: var(--accent-primary-10);
    color: var(--accent-primary) !important;
}

/* 导航栏适配 */
:root[data-theme="light"] .faq-nav {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

:root[data-theme="light"] .nav-item {
    color: var(--text-mid);
}

:root[data-theme="light"] .nav-item:hover,
:root[data-theme="light"] .nav-item.active {
    background: rgba(0, 0, 0, 0.05);
    color: var(--accent-primary);
}

/* 移动端返回按�?*/
:root[data-theme="light"] .back-to-faq {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-high);
}

/* 页脚适配 */
:root[data-theme="light"] .faq-footer {
    background: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .faq-footer p,
:root[data-theme="light"] .footer-info p {
    color: var(--text-mid);
}

/* ==================== 移动端适配 (Media Queries) ==================== */

@media (max-width: 1024px) {

    /* 侧边�?Overlay 模式 */
    .toc-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        max-height: 100vh;
        width: 280px;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 80px 20px 20px;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 1;
        pointer-events: all;
        overflow-y: auto;
    }

    .toc-sidebar.expanded {
        transform: translateX(0);
        margin-right: 0;
        width: 280px;
        box-shadow: 10px 0 50px rgba(0, 0, 0, 0.5);
    }

    .page-layout {
        display: block;
    }

    .toc-toggle {
        display: flex;
        /* 强制显示 */
        top: 80px;
        left: 20px;
    }

    /* 移动端章节折叠样?*/
    .content-section {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 12px;
    }

    .content-section h2 {
        cursor: pointer;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px 20px;
        margin: 0 !important;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-glass);
        border-radius: 12px;
        transition: all 0.3s ease;
        -webkit-tap-highlight-color: transparent;
        font-size: 1.1rem;
    }

    :root[data-theme="light"] .content-section h2 {
        background: rgba(0, 0, 0, 0.02);
        border-color: rgba(0, 0, 0, 0.08);
    }

    .content-section h2:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.06);
    }

    :root[data-theme="light"] .content-section h2:active {
        background: rgba(0, 0, 0, 0.05);
    }

    .content-section h2.expanded {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom-color: transparent;
        background: rgba(255, 255, 255, 0.05);
        color: var(--accent-primary);
    }

    :root[data-theme="light"] .content-section h2.expanded {
        background: rgba(0, 0, 0, 0.04);
        border-bottom-color: transparent;
    }

    .content-section h2::after {
        content: '\f078';
        /* fa-chevron-down */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 14px;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin-left: 10px;
        opacity: 0.6;
        -webkit-text-fill-color: var(--text-mid);
    }

    .content-section h2.expanded::after {
        transform: rotate(-180deg);
        -webkit-text-fill-color: var(--accent-primary);
        opacity: 1;
    }

    .section-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
        opacity: 0;
        padding: 0 16px;
        background: rgba(255, 255, 255, 0.015);
        border: 1px solid transparent;
        border-top: none;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    :root[data-theme="light"] .section-content {
        background: rgba(0, 0, 0, 0.01);
    }

    .section-content.expanded {
        max-height: 5000px;
        /* 足够大的高度 */
        opacity: 1;
        transition: all 0.5s cubic-bezier(1, 0, 1, 0);
        padding-top: 20px;
        padding-bottom: 30px;
    }

    :root[data-theme="light"] .toc-sidebar {
        background: rgba(255, 255, 255, 0.98);
        border-right: 1px solid rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 768px) {
    .faq-container {
        padding: 0 8px;
    }

    .content-section {
        padding: 10px 8px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .guide-title {
        font-size: 1.5rem;
    }

    /* �ƶ��� step-number �� step-card �ռ��Ż� */
    .step-number {
        padding: 2px 6px;
        font-size: 10px;
        margin-bottom: 6px;
        min-width: auto;
    }

    .step-card {
        padding: 14px;
        gap: 10px;
        margin-bottom: 10px;
    }

    /* �ƶ��˱��ť�Ż� */
    .download-link {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-bottom: 8px;
    }

    .thunder-cell-btn {
        display: flex !important;
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
        height: 36px;
        /* �ƶ�����΢�Ӵ�߶ȷ����� */
    }

    /* ��֤���Ԫ�����ݲ���� */
    td {
        white-space: normal;
        word-break: break-all;
    }
}

/* ==================== 通用组件样式 (Common Components) ==================== */

/* 图片与图�?*/
.doc-image {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: block;
    transition: transform 0.3s ease;
}

.doc-image:hover {
    transform: scale(1.01);
}

.image-caption {
    text-align: center;
    font-size: 13px;
    color: var(--text-low);
    margin-top: -10px;
    margin-bottom: 20px;
}

/* 提示框与信息�?*/
.highlight-box,
.tip-box,
.info-box,
.info-block {
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid transparent;
}

.highlight-box {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
}

.highlight-box strong {
    color: #ef4444;
}

.tip-box {
    background: rgba(251, 191, 36, 0.1);
    border-left-color: #fbbf24;
}

.info-box,
.info-block.note {
    background: var(--accent-primary-10);
    border-left-color: var(--accent-primary);
}

.info-block.solution {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
}

.info-block.problem {
    background: rgba(244, 63, 94, 0.1);
    border-left-color: #f43f5e;
}

.info-header {
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-high);
}

/* 步骤卡片 */
.step-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.step-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

:root[data-theme="light"] .step-card {
    background: var(--bg-card);
    border-color: var(--border-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .step-card:hover {
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.step-number {
    background: var(--grad-main);
    color: white;
    min-width: 36px;
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

.step-content {
    flex: 1;
    min-width: 0;
}

/* 软件与术语卡�?*/
.software-grid,
.vendor-grid,
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 8px 0;
}

.software-card,
.term-card,
.portal-card,
.vendor-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.software-card:hover,
.term-card:hover,
.portal-card:hover,
.vendor-card:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg);
}

:root[data-theme="light"] .software-card,
:root[data-theme="light"] .term-card,
:root[data-theme="light"] .portal-card,
:root[data-theme="light"] .vendor-card {
    background: var(--bg-card);
    border-color: var(--border-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .software-card:hover,
:root[data-theme="light"] .term-card:hover,
:root[data-theme="light"] .portal-card:hover,
:root[data-theme="light"] .vendor-card:hover {
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Vendor Specific Styles */
.vendor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.vendor-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-high);
}

.vendor-icon {
    color: var(--accent-primary);
    opacity: 0.8;
}

.vendor-info {
    font-size: 13px;
    color: var(--text-mid);
    margin-top: auto;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.info-icon {
    width: 14px;
    text-align: center;
    opacity: 0.7;
}

.visit-hint {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0.5;
    transition: all 0.3s ease;
    color: var(--text-low);
    font-size: 12px;
}

.vendor-card:hover .visit-hint {
    opacity: 1;
    color: var(--accent-primary);
    transform: scale(1.1);
}

.jump-btn {
    margin-top: 15px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-high);
    font-size: 13px;
    text-align: center;
    transition: all 0.3s ease;
}

.vendor-card:hover .jump-btn {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-high);
}

td {
    color: var(--text-mid);
}

/* 代码与键盘键 */
code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    color: var(--accent-secondary);
}

pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 8px 0;
}

kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

/* 亮色模式适配 (Light Theme Adaptations) */
:root[data-theme="light"] .doc-image {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .step-card,
:root[data-theme="light"] .software-card,
:root[data-theme="light"] .term-card,
:root[data-theme="light"] .portal-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] table {
    background: #ffffff;
}

:root[data-theme="light"] th {
    background: #f1f5f9;
    color: #1e293b;
}

:root[data-theme="light"] td {
    border-color: #e2e8f0;
    color: #475569;
}

:root[data-theme="light"] code,
:root[data-theme="light"] kbd {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

/* ==========================================================================
   Utility Tool Components (MD5, KMS, etc.)
   ========================================================================== */

.tool-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    margin-bottom: 8px;
}

.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.01);
    position: relative;
    overflow: hidden;
}

.upload-zone:hover,
.upload-zone.active {
    border-color: var(--accent-primary);
    background: hsla(var(--h-primary), 80%, 60%, 0.05);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: inline-block;
    color: var(--accent-primary);
}

.progress-section {
    margin-top: 25px;
}

.progress-track {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--grad-main);
    width: 0%;
    transition: width 0.2s linear;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

.stat-label {
    font-size: 11px;
    color: var(--text-low);
    display: block;
}

.stat-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-high);
    font-family: var(--font-mono);
}

.md5-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    position: relative;
    margin: 20px 0;
}

.md5-value {
    font-family: var(--font-mono);
    font-size: 16px;
    word-break: break-all;
    color: var(--accent-primary);
    text-align: center;
    display: block;
    letter-spacing: 0.5px;
}

/* KMS Generator Specific */
.generator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.config-panel {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-panel {
    background: #0d1117;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 450px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 600;
    color: var(--text-high);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-high);
    font-family: var(--font-mono);
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.styled-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: var(--font-mono);
    transition: all 0.3s;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: all 0.2s;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.checkbox-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.location-alert {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #f59e0b;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    color: var(--text-mid);
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
}

.btn-zip {
    background: var(--grad-main);
    color: white;
}

.btn-download {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.btn-copy {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.btn-sh {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-high);
}

/* Light Theme Adaptations */
:root[data-theme="light"] .tool-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .upload-zone {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] table {
    background: #ffffff;
}

:root[data-theme="light"] .config-panel {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .form-control,
:root[data-theme="light"] .styled-input {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

:root[data-theme="light"] .checkbox-item {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.05);
    color: #1e293b;
}

:root[data-theme="light"] .md5-box {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .stat-item {
    background: #f1f5f9;
}

:root[data-theme="light"] .btn-sh {
    background: #e2e8f0;
    color: #1e293b;
}

:root[data-theme="light"] .btn-zip {
    color: white;
}

@media (max-width: 900px) {
    .generator-container {
        grid-template-columns: 1fr;
    }
}

/* ==================== 搜索触发器样�?==================== */
.guide-header {
    position: relative;
}

.search-trigger {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-trigger:hover {
    background: var(--accent-primary-10);
    border-color: var(--accent-primary);
    color: var(--text-light);
}

.search-trigger-icon {
    width: 18px;
    height: 18px;
}

.search-shortcut {
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 11px;
    font-family: monospace;
}

/* ==================== 搜索模态框样式 ==================== */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    padding-top: 80px;
    animation: fadeIn 0.2s ease;
}

.search-modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.search-modal {
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.search-modal-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 0 16px;
}

.search-modal-input-wrap .search-icon {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-modal-input {
    flex: 1;
    padding: 16px 0;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 18px;
    outline: none;
}

.search-modal-input::placeholder {
    color: var(--text-muted);
}

.search-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.search-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.search-modal-body {
    padding: 20px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

/* 热门搜索 */
.search-hot-keywords {
    margin-bottom: 20px;
}

.hot-keywords-title {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.hot-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-keyword {
    padding: 6px 14px;
    background: var(--accent-primary-10);
    border: 1px solid var(--accent-primary-20);
    border-radius: 20px;
    color: var(--accent-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.hot-keyword:hover {
    background: var(--accent-primary-20);
    transform: translateY(-2px);
}

/* 搜索结果 */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: var(--accent-primary-10);
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.search-result-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
    font-size: 15px;
}

.search-result-title mark {
    background: var(--accent-primary-30);
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
}

.search-result-desc {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-category {
    font-size: 11px;
    color: var(--accent-primary);
    margin-top: 4px;
}

.search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.search-no-results-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* 浅色主题适配 */
:root[data-theme="light"] .search-trigger {
    background: rgba(0, 0, 0, 0.03);
    border-color: #e2e8f0;
}

:root[data-theme="light"] .search-modal {
    background: #ffffff;
}

:root[data-theme="light"] .search-modal-input-wrap {
    background: #f1f5f9;
}

:root[data-theme="light"] .search-result-item {
    background: #f8fafc;
}

:root[data-theme="light"] .hot-keyword {
    background: var(--accent-primary-10);
}

/* �������񲼾� */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

/* 网格布局：简介功能卡�?*/
.function-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.function-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.function-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.function-card strong {
    color: var(--text-high);
    font-size: 1.15em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.function-card .card-icon {
    font-size: 1.6em;
    margin-bottom: 4px;
    display: block;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.function-card p {
    margin: 0;
    font-size: 0.95em;
    color: var(--text-mid);
    line-height: 1.6;
}

/* 适配浅色主题 */
:root[data-theme="light"] .function-card {
    background: var(--bg-card);
    border-color: var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .function-card strong {
    color: var(--text-high);
}

:root[data-theme="light"] .function-card p {
    color: var(--text-mid);
}

:root[data-theme="light"] .function-card:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Button styles for light mode coordination */
:root[data-theme="light"] .btn-primary,
:root[data-theme="light"] .btn-zip {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

:root[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, var(--text-high) 0%, var(--text-mid) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ���ָ��� */
.content-section {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.content-section:last-child {
    border-bottom: none;
}

h2 {
    margin: 10px 0 6px;
}

p {
    margin-bottom: 8px;
}

/* ==================== ������������ǿ��ʽ (Desktop FAQ) ==================== */
.code-block-container {
    position: relative;
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(13, 17, 23, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-block,
pre[class*="language-"] {
    margin: 0 !important;
    padding: 40px 16px 16px !important;
    font-family: 'Plus Jakarta Sans Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    overflow-x: auto;
}

.copy-button {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--text-mid);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-1px);
}

.copy-button.copied {
    background: var(--accent-primary-20);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ���䲻ͬ��������� */
.command-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.command-desc {
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.command-desc::before {
    content: '>';
    opacity: 0.5;
}

/* ��� Prism �Ķ����Ż� */
code[class*="language-"] {
    text-shadow: none !important;
}

/* Light Theme Overrides for Code Copy Button */
:root[data-theme="light"] .code-block-container {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

:root[data-theme="light"] .copy-button {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #475569;
}

:root[data-theme="light"] .copy-button:hover {
    background: #cbd5e1;
    border-color: var(--accent-primary);
    color: #1e293b;
}

:root[data-theme="light"] .copy-button.copied {
    background: var(--accent-primary-10);
    color: var(--accent-primary);
}

/* ==================== Terminology Page Optimizations ==================== */

/* Term Definition Card */
.term-card {
    background: var(--card-bg, rgba(13, 17, 26, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.term-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-primary-40, rgba(56, 189, 248, 0.4));
    background: rgba(30, 41, 59, 0.6);
}

.term-card p strong {
    color: var(--accent-primary);
    font-size: 1.1em;
    display: block;
    margin-bottom: 8px;
}

/* Software/Shortcut Grid */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.software-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.software-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Shortcut Row Improvements */
.shortcut-row {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    align-items: center;
}

.shortcut-row:last-child {
    border-bottom: none;
}

kbd {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.85em;
    color: var(--text-high);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

/* Enhanced Table Styles */
.content-section table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0 40px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.content-section th {
    background: rgba(255, 255, 255, 0.08);
    /* Slightly lighter header */
    color: var(--accent-primary);
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.content-section td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-mid);
    line-height: 1.6;
}

.content-section tr:last-child td {
    border-bottom: none;
}

.content-section tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
    /* Zebra striping */
}

.content-section tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Light Theme Adaptations for Terminology */
:root[data-theme="light"] .term-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .term-card:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--accent-primary);
}

:root[data-theme="light"] .software-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .software-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--accent-primary-40);
}

:root[data-theme="light"] .content-section table {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .content-section th {
    background: rgba(0, 0, 0, 0.05);
    border-bottom-color: rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

:root[data-theme="light"] .content-section td {
    border-bottom-color: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

:root[data-theme="light"] .content-section tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

:root[data-theme="light"] kbd {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
    box-shadow: 0 2px 0 #cbd5e1;
}