/* ============================================================
 * GYscan Website - Main Stylesheet (v3.0 / ACG-Home Inspired)
 * Design Language: Dark Theme + Soft Glass Cards + Gradient Accents
 * Primary Color: #49b1f5
 * Secondary Colors: #7ac0f0, #a4d8fa, #b5e0ff, #9d7cd8, #f2a4b7
 * Success / Warning / Error: #4ade80, #fbbf24, #f87171
 * ============================================================ */

/* -------- CSS Variables -------- */
:root {
    /* 背景色彩 - 深色主题 */
    --bg-primary: #1a1b26;
    --bg-secondary: #24283b;
    --bg-tertiary: #2a2e42;
    --bg-card: rgba(40, 45, 65, 0.55);
    --bg-card-solid: #282d42;
    --bg-overlay: rgba(26, 27, 38, 0.65);
    --bg-glass: rgba(30, 34, 52, 0.4);

    /* 文字色彩 */
    --text-primary: #e8ecf5;
    --text-secondary: #a8b2d1;
    --text-muted: #6b7390;
    --text-inverted: #0f1220;

    /* 主色调 - ACG-Home 蓝色系 */
    --accent-primary: #49b1f5;
    --accent-hover: #2a92d8;
    --accent-soft: rgba(73, 177, 245, 0.15);
    --accent-glow: rgba(73, 177, 245, 0.35);

    /* 辅助色 - 蓝紫色调 */
    --accent-secondary: #7ac0f0;
    --accent-tertiary: #a4d8fa;
    --accent-light: #b5e0ff;

    /* 强调色 - 紫、粉、绿、黄、红 */
    --accent-pink: #f2a4b7;
    --accent-purple: #9d7cd8;
    --accent-green: #4ade80;
    --accent-warning: #fbbf24;
    --accent-red: #f87171;
    --accent-orange: #fb923c;

    /* 边框色彩 */
    --border-color: rgba(122, 192, 240, 0.18);
    --border-hover: rgba(73, 177, 245, 0.55);
    --border-strong: rgba(73, 177, 245, 0.3);

    /* 阴影 */
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-card-hover: 0 8px 32px rgba(73, 177, 245, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 24px rgba(73, 177, 245, 0.3);
    --shadow-glow-purple: 0 0 24px rgba(157, 124, 216, 0.3);
    --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);

    /* 字体 */
    --font-sans: 'Linotte', 'HYZhengYuan', 'PingFang SC', 'Microsoft YaHei',
        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'JetBrains Mono', 'Consolas', 'Monaco', monospace;

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

    /* 间距 */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* 过渡 */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* 模糊效果 */

    /* 最大宽度 */
    --container-max: 1280px;
    --container-narrow: 960px;

    /* 自定义光标（ACG-Home 风格） */
    --cursor-normal: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><circle cx='12' cy='12' r='8' fill='%2349b1f5' stroke='%23ffffff' stroke-width='2'/></svg>") 12 12, auto;
    --cursor-pointer: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><circle cx='12' cy='12' r='8' fill='%239d7cd8' stroke='%23ffffff' stroke-width='2'/></svg>") 12 12, pointer;

    color-scheme: dark;
}

/* 字体加载 */
@font-face {
    font-family: 'Linotte';
    src: url('/fonts/Linotte Regular.otf') format('opentype');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Linotte';
    src: url('/fonts/Linotte Bold.otf') format('opentype');
    font-weight: bold;
    font-display: swap;
}

@font-face {
    font-family: 'HYZhengYuan';
    src: url('/fonts/HYZhengYuan-55W.ttf') format('truetype');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HYZhengYuan';
    src: url('/fonts/HYZhengYuan-85S.ttf') format('truetype');
    font-weight: bold;
    font-display: swap;
}

/* -------- 全局基础样式 -------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: #0d0f14;
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    min-width: 320px;
    background-image:
        linear-gradient(135deg, rgba(13, 15, 20, 0.70) 0%, rgba(18, 20, 25, 0.70) 100%),
        var(--bg-img, url('/images/1.webp'));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* 浮动光斑装饰 - ACG-Home 风格 */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}

body::before {
    background: var(--accent-primary);
    top: -150px;
    left: -150px;
    animation: floatOrb1 20s ease-in-out infinite;
}

body::after {
    background: var(--accent-secondary);
    bottom: -150px;
    right: -150px;
    animation: floatOrb2 25s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.15); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, -50px) scale(1.1); }
}

/* 链接样式 - ACG-Home 下划线动画风格 */
a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
    background-image: linear-gradient(to right, var(--accent-primary), var(--accent-primary));
    background-size: 0 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: color var(--transition-fast), background-size 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
    background-size: 100% 2px;
}

/* 链接目标跳转标记 - 添加外链接图标 */
a[target='_blank']::after {
    content: ' ↗';
    font-size: 0.7em;
    opacity: 0.7;
}

/* 选中文本样式 */
::selection {
    background: rgba(73, 177, 245, 0.35);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(73, 177, 245, 0.35);
    color: var(--text-primary);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-secondary), var(--accent-primary));
    border-radius: 10px;
    border: 2px solid var(--bg-secondary);
    transition: background var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-hover));
}

::-webkit-scrollbar-corner {
    background: var(--bg-secondary);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-secondary) var(--bg-secondary);
}

/* 分割线（ACG-Home 风格） */
hr {
    border: none;
    height: 1px;
    margin: var(--space-8) 0;
    background: linear-gradient(90deg,
        transparent,
        var(--border-strong),
        transparent);
    position: relative;
}

/* 段落文字优化 */
p {
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: 0.01em;
    word-break: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 标题文字优化 */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* -------- 警告区域文字排版（下载页） -------- */
.warning-section {
    padding: 80px 40px;
    position: relative;
}

.warning-section .section-header h2 {
    color: #f87171;
    text-shadow: 0 0 20px rgba(248, 113, 113, 0.3);
    animation: warningPulse 2s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* 警告 SVG 图标（替换 ⚠️ emoji） */
.warning-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f87171;
    filter: drop-shadow(0 0 8px rgba(248, 113, 113, 0.45));
    line-height: 1;
    flex-shrink: 0;
}

.warning-icon-svg svg {
    display: block;
    vertical-align: middle;
    animation: warningIconPulse 2s ease-in-out infinite;
}

.warning-icon-sm svg {
    animation-duration: 2.4s;
    filter: drop-shadow(0 0 6px rgba(248, 113, 113, 0.35));
}

@keyframes warningIconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

@keyframes warningPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.warning-section p {
    font-size: 15.5px;
    line-height: 1.9;
    letter-spacing: 0.01em;
    margin: 8px 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    word-break: break-word;
}

.warning-section p:nth-child(1) {
    color: #f87171;
    font-weight: 600;
    font-size: 16px;
}

.warning-section p:nth-child(2) {
    color: #f87171;
    font-weight: 500;
}

.warning-section p:nth-child(3) {
    color: #49b1f5;
    font-size: 16px;
    font-weight: 600;
    margin-top: 18px;
}

.warning-section p:nth-child(4),
.warning-section p:nth-child(5),
.warning-section p:nth-child(6),
.warning-section p:nth-child(7) {
    color: #4ade80;
}

.warning-section p:nth-child(8),
.warning-section p:nth-child(9) {
    color: #f87171;
    font-weight: 600;
}

/* -------- 导航栏 (Navbar) -------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 27, 38, 0.75);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(73, 177, 245, 0.4),
        rgba(157, 124, 216, 0.4),
        transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.navbar:hover::after {
    opacity: 1;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
    overflow: hidden;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    font-size: 20px;
    color: var(--text-primary);
    background: none !important;
    text-decoration: none;
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.02);
}

.logo::after {
    display: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 0 0 1px var(--border-color),
        0 4px 12px rgba(73, 177, 245, 0.25);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.logo:hover .logo-icon {
    box-shadow: 0 0 0 1px var(--border-hover),
        0 6px 20px rgba(73, 177, 245, 0.4);
    transform: rotate(-6deg);
}

.logo-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

/* 果冻动画关键帧 */
@keyframes jelly {
    0% { transform: scale3d(1, 1, 1); }
    30% { transform: scale3d(1.2, 0.8, 1); }
    40% { transform: scale3d(0.85, 1.15, 1); }
    50% { transform: scale3d(1.08, 0.92, 1); }
    65% { transform: scale3d(0.97, 1.03, 1); }
    75% { transform: scale3d(1.02, 0.98, 1); }
    100% { transform: scale3d(1, 1, 1); }
}

/* 导航链接 */
/* 导航链接
 * 窄屏策略：单行不换行 + 横向滚动兜底，
 * 避免在中等宽度下换行撑破固定高度的导航栏。 */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    justify-content: safe center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.nav-links::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* 内容超出时右侧渐隐，提示可横向滚动 */
.nav-links.is-scrollable {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
}

.nav-links.is-scrollable.is-scrollable-end {
    -webkit-mask-image: none;
    mask-image: none;
}

.nav-links a {
    padding: 8px 9px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    transition: background var(--transition-fast), color var(--transition-fast);
    background-image: none;
    position: relative;
    animation: jelly 0.6s ease both;
    animation-play-state: paused;
    /* 不允许链接自身换行或被压缩，空间不足时由容器横向滚动 */
    white-space: nowrap;
    flex: 0 0 auto;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--accent-soft);
    animation-play-state: running;
}

.nav-links a.active {
    color: var(--accent-primary);
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px var(--border-hover);
}

/* 移动端导航切换按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== 导航栏用户信息区域 ========== */
.nav-auth-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-auth-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px 6px 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    transition: all var(--transition-base);
}

.nav-auth-user:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-solid);
}

.nav-auth-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-auth-avatar span {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-auth-name {
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-auth-user:hover .nav-auth-name {
    color: var(--text-primary);
}

.nav-auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-auth-buttons .btn {
    min-height: 36px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    background-image: none;
}

/* 警告色调按钮 - 退出登录 */
.nav-auth-buttons .btn-danger,
.tab-link.danger-tab,
.tab-link.logout-tab {
    background-image: linear-gradient(135deg, #dc2626, #ef4444) !important;
    color: #fff !important;
    border: 1px solid #ef4444;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.25);
    transition: all var(--transition-base);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.nav-auth-buttons .btn-danger:hover,
.tab-link.danger-tab:hover,
.tab-link.logout-tab:hover {
    background-image: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

/* 未登录状态按钮 */
.nav-auth-guest {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* -------- 用户中心 Dashboard 样式 -------- */
.dashboard {
    max-width: 960px;
    margin: 100px auto 60px;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

.dashboard h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.user-id-display {
    color: var(--text-muted);
    font-size: 13px;
    font-family: var(--font-mono);
    margin-bottom: 28px;
    padding: 10px 16px;
    background: var(--bg-card-solid);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: inline-block;
}

.dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-inset);
}

.tab-link {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    background-image: none;
    background: transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    border: 1px solid transparent;
    user-select: none;
}

.tab-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    background-image: none;
    border-color: var(--border-hover);
}

.tab-link.active-tab {
    background-image: linear-gradient(135deg, var(--accent-primary), var(--accent-hover)) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(73, 177, 245, 0.35);
}

.tab-link.active-tab:hover {
    transform: translateY(-1px);
    background-image: linear-gradient(135deg, var(--accent-primary), var(--accent-hover)) !important;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--accent-primary),
        var(--accent-purple),
        transparent);
    opacity: 0.6;
}

.card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(73, 177, 245, 0.15);
}

.device-item {
    padding: 14px 18px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 13.5px;
    transition: all 0.2s;
}

.device-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
}

.device-item .ip {
    color: var(--text-muted);
    font-size: 12.5px;
    font-family: var(--font-mono);
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14.5px;
    font-weight: 500;
    background: var(--bg-card-solid);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
}

/* 移动端下拉菜单 */
.nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(26, 27, 38, 0.98);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    pointer-events: none;
    display: none;
}

.nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-menu-item {
    display: block;
    padding: 14px 18px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-md);
    margin-bottom: 4px;
    transition: all var(--transition-fast);
    background-image: none;
}

.nav-menu-item:hover {
    background: var(--accent-soft);
    color: var(--text-primary);
}

.nav-menu-item.active {
    color: var(--accent-primary);
    background: var(--accent-soft);
}

/* -------- 按钮组件 -------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    user-select: none;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background-image: none;
    line-height: 1.4;
    color: var(--text-primary);
    min-height: 38px;
    box-sizing: border-box;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.btn:hover::before {
    left: 100%;
}

.btn > * {
    position: relative;
    z-index: 2;
}

.btn svg,
.btn .btn-icon,
.btn img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: #fff;
    box-shadow: 0 4px 16px rgba(73, 177, 245, 0.35);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(73, 177, 245, 0.5);
}

.btn-secondary {
    background: var(--bg-card-solid);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-green), #22c55e);
    color: var(--text-inverted);
    border: none;
    box-shadow: 0 4px 16px rgba(74, 222, 128, 0.25);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 222, 128, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--accent-warning), #f59e0b);
    color: var(--text-inverted);
    border: none;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.25);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-red), #dc2626);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(248, 113, 113, 0.25);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(248, 113, 113, 0.4);
}

.btn-large {
    padding: 8px 20px;
    font-size: 13px;
    border-radius: var(--radius-md);
    min-height: 38px;
}

.btn-small {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-full {
    width: 100%;
}

/* GitHub / Gitee 特殊按钮 */
.btn-github {
    background: rgba(36, 40, 59, 0.85);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-github:hover {
    background: rgba(42, 46, 66, 0.95);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-gitee {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.25), rgba(196, 30, 58, 0.15));
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #fecaca;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-base);
}

.btn-gitee:hover {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.35), rgba(196, 30, 58, 0.25));
    border-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 113, 113, 0.25);
    color: #fff;
}

/* -------- 徽章/标签组件 -------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    background: var(--accent-soft);
    color: var(--accent-primary);
    border: 1px solid var(--border-hover);
}

.badge-info {
    background: rgba(122, 192, 240, 0.12);
    color: var(--accent-secondary);
    border-color: rgba(122, 192, 240, 0.3);
}

.badge-success {
    background: rgba(74, 222, 128, 0.12);
    color: var(--accent-green);
    border-color: rgba(74, 222, 128, 0.3);
}

.badge-warning {
    background: rgba(251, 191, 36, 0.12);
    color: var(--accent-warning);
    border-color: rgba(251, 191, 36, 0.3);
}

.badge-danger {
    background: rgba(248, 113, 113, 0.12);
    color: var(--accent-red);
    border-color: rgba(248, 113, 113, 0.3);
}

.badge-purple {
    background: rgba(157, 124, 216, 0.12);
    color: var(--accent-purple);
    border-color: rgba(157, 124, 216, 0.3);
}

/* -------- 卡片组件 (通用) -------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--accent-primary),
        var(--accent-purple),
        transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* -------- 通用区块布局 -------- */
.section {
    padding: 80px 40px;
    position: relative;
}

.section-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    display: inline-block;
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg,
        var(--accent-primary),
        var(--accent-purple));
    border-radius: 10px;
    margin: 14px auto 0;
    box-shadow: var(--shadow-glow);
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* 非首页页面顶部区域（Page Hero） */
.page-hero {
    position: relative;
    width: 100%;
    margin-top: 68px;
    padding: 100px 32px 60px;
    background:
        linear-gradient(180deg,
            rgba(13, 15, 20, 0.75) 0%,
            rgba(18, 20, 25, 0.55) 50%,
            #0d0f14 95%),
        var(--bg-img, url('/images/1.webp'));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, rgba(73, 177, 245, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(73, 177, 245, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.2;
    background: linear-gradient(135deg,
        var(--text-primary),
        var(--accent-tertiary),
        var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero .subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

.page-hero .badge-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* -------- 首页 Hero Section -------- */
.home {
    padding-top: 0;
}

.hero-section {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 160px 60px 80px;
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    right: -50%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(13, 15, 20, 0.70) 0%, rgba(18, 20, 25, 0.70) 100%),
        var(--bg-img, url('/images/1.webp'));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, rgba(73, 177, 245, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(73, 177, 245, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at 30% 30%, black 0%, transparent 60%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 30%, black 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.hero-left {
    position: relative;
    z-index: 1;
}

.hero-left h1 {
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-left h1 .highlight {
    display: inline-block;
    background: linear-gradient(135deg,
        var(--accent-primary),
        var(--accent-secondary),
        var(--accent-purple),
        var(--accent-pink));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 6s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-left .desc {
    font-size: 16.5px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-left .desc::first-letter {
    font-size: 1.05em;
    color: var(--accent-primary);
}

/* -------- 站点标识（大陆站 / 国际站） -------- */
.site-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 20px;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(73, 177, 245, 0.12);
}

.site-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.site-hint {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: -18px 0 32px;
    max-width: 520px;
}

.site-hint a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    background-image: none;
    transition: color var(--transition-fast);
}

.site-hint a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* -------- 导航栏站点切换按钮 -------- */
.site-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(13, 15, 20, 0.45);
    flex: 0 0 auto;
}

.site-switch-btn {
    display: inline-flex !important;
    align-items: center;
    padding: 5px 9px !important;
    border-radius: 8px;
    color: var(--text-secondary) !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    white-space: nowrap;
    text-decoration: none;
    background-image: none !important;
    animation: none !important;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.site-switch-btn:hover {
    color: var(--text-primary) !important;
    background: var(--accent-soft) !important;
    animation: none !important;
}

.site-switch-btn.active {
    color: var(--accent-primary) !important;
    background: var(--accent-soft) !important;
    box-shadow: inset 0 0 0 1px var(--border-hover);
}

/* -------- 页脚站点切换链接 -------- */
.site-switch-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 12px;
}

.site-switch-footer .site-switch-link {
    color: #b8c2d9;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    background-image: none;
    transition: color var(--transition-fast);
}

.site-switch-footer .site-switch-link:hover {
    color: var(--accent-primary);
}

.footer-col .site-switch-link,
.footer-section .site-switch-link {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #b8c2d9;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
    background-image: none;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-col .site-switch-link:hover,
.footer-section .site-switch-link:hover {
    color: var(--accent-primary);
    transform: translateX(3px);
}

.action-buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13.5px;
}

.meta-info span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.meta-info span::before {
    content: '◆';
    color: var(--accent-primary);
    font-size: 10px;
}

/* 右侧终端窗口 - ACG-Home 风格 */
.hero-right {
    position: relative;
    z-index: 1;
}

.code-window {
    background: linear-gradient(135deg,
        rgba(36, 40, 59, 0.85) 0%,
        rgba(26, 27, 38, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 30px 80px -20px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(73, 177, 245, 0.08) inset,
        0 20px 60px -20px rgba(73, 177, 245, 0.15);
    position: relative;
    animation: windowFloat 6s ease-in-out infinite;
}

@keyframes windowFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* 终端窗口顶部发光线 */
.code-window::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--accent-primary),
        var(--accent-purple),
        transparent);
    opacity: 0.6;
    border-radius: 2px;
    pointer-events: none;
    z-index: 2;
}

.window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(36, 40, 59, 0.7);
    border-bottom: 1px solid var(--border-color);
}

.window-header .dots {
    display: flex;
    gap: 8px;
}

.window-header .dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
}

.window-header .dots:hover span {
    transform: scale(1.15);
}

.window-header .dots span:nth-child(1) {
    background: radial-gradient(circle at 30% 30%, #fca5a5, var(--accent-red));
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.4);
}

.window-header .dots span:nth-child(2) {
    background: radial-gradient(circle at 30% 30%, #fcd34d, var(--accent-warning));
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.4);
}

.window-header .dots span:nth-child(3) {
    background: radial-gradient(circle at 30% 30%, #86efac, var(--accent-green));
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.4);
}

.window-header .title {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* 终端代码内容 */
.code-content {
    padding: 24px 28px 28px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 2;
    overflow-x: auto;
}

.code-content .line {
    opacity: 0;
    animation: typeIn 0.4s ease forwards;
}

.code-content .line:nth-child(1) { animation-delay: 0.1s; }
.code-content .line:nth-child(2) { animation-delay: 0.3s; }
.code-content .line:nth-child(3) { animation-delay: 0.5s; }
.code-content .line:nth-child(4) { animation-delay: 0.7s; }
.code-content .line:nth-child(5) { animation-delay: 0.9s; }
.code-content .line:nth-child(6) { animation-delay: 1.1s; }
.code-content .line:nth-child(7) { animation-delay: 1.3s; }
.code-content .line:nth-child(8) { animation-delay: 1.5s; }
.code-content .line:nth-child(9) { animation-delay: 1.7s; }
.code-content .line:nth-child(10) { animation-delay: 1.9s; }

@keyframes typeIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.code-content .prompt {
    color: var(--accent-primary);
    margin-right: 8px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(73, 177, 245, 0.3);
}

.code-content .info {
    color: var(--accent-secondary);
}

.code-content .success {
    color: var(--accent-green);
}

.code-content .empty {
    color: var(--text-muted);
    font-style: italic;
}

.code-content .cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent-primary);
    margin-left: 2px;
    vertical-align: middle;
    animation: cursorBlink 1s step-end infinite;
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(73, 177, 245, 0.6);
}

@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* -------- 公告板块 -------- */
.announcement-section {
    max-width: var(--container-max);
    margin: 40px auto 0;
    padding: 0 32px;
}

.announcement-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.announcement-header svg {
    flex-shrink: 0;
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.announcement-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    transition: all var(--transition-base);
}

.announcement-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-solid);
}

.announcement-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.announcement-content h1 {
    display: none;
}

.announcement-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.announcement-content a {
    color: var(--accent-primary);
    text-decoration: none;
}

.announcement-content a:hover {
    text-decoration: underline;
}

.announcement-content ul {
    margin: 6px 0;
    padding-left: 18px;
}

.announcement-content li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* -------- 统计数据条 -------- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 50px 40px;
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
}

.stat {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--accent-primary),
        var(--accent-purple),
        transparent);
    opacity: 0.7;
}

.stat:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.stat .num {
    display: block;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(135deg,
        var(--accent-primary),
        var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat .num .lock-icon {
    display: inline-block;
    vertical-align: middle;
    stroke: var(--accent-primary);
    -webkit-text-fill-color: initial;
}

.stat .label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* -------- 功能网格卡片（首页核心功能） -------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--accent-primary),
        var(--accent-secondary),
        transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card .icon {
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    filter: drop-shadow(0 4px 8px rgba(73, 177, 245, 0.25));
    transition: transform var(--transition-base);
}

.feature-card .icon svg,
.feature-card .icon img {
    width: 48px;
    height: 48px;
}

.feature-card .icon img {
    object-fit: contain;
}

.feature-card:hover .icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
}

/* -------- 命令模块区域（胶囊式标签） -------- */
.commands-section {
    padding: 80px 40px;
    position: relative;
}

.commands-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.cmd-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 14px 20px;
    transition: all var(--transition-fast);
    cursor: pointer;
    text-align: center;
    background-image: none;
}

.cmd-item:hover {
    border-color: var(--border-hover);
    background: var(--accent-soft);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(73, 177, 245, 0.2);
}

.cmd-item code {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-primary);
    font-weight: 700;
    transition: color var(--transition-fast);
}

.cmd-item:hover code {
    color: var(--accent-secondary);
}

.cmd-item span {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* 测试/实验性命令 */
.cmd-item.testing {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.08);
}

.cmd-item.testing code {
    color: var(--accent-warning);
}

.cmd-item.testing:hover {
    border-color: rgba(251, 191, 36, 0.6);
    background: rgba(251, 191, 36, 0.15);
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.15);
}

/* -------- 跨平台支持区域 -------- */
.platforms-section {
    padding: 80px 40px;
    position: relative;
}

.platforms-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.platforms-text h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 14px;
}

.platforms-text p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.platform-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.platform-card:hover::before {
    opacity: 0.5;
}

.platform-card img,
.platform-card .p-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(73, 177, 245, 0.25));
    transition: transform var(--transition-base);
}

.platform-card .p-icon svg,
.platform-card .p-icon img {
    width: 56px;
    height: 56px;
}

.platform-card .p-icon img {
    object-fit: contain;
}

.platform-card img {
    object-fit: contain;
}

.platform-card:hover img,
.platform-card:hover .p-icon {
    transform: scale(1.1) rotate(6deg);
}

.platform-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.platform-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* -------- 视频演示区 -------- */
.demo-section {
    padding: 80px 40px;
    position: relative;
}

.demo-container {
    max-width: 960px;
    margin: 0 auto;
}

.demo-video {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow:
        0 30px 80px -20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(73, 177, 245, 0.08) inset;
    background: var(--bg-secondary);
}

.video-error {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

/* -------- CTA 行动号召区域 -------- */
.cta-section {
    padding: 80px 32px;
    position: relative;
    overflow: hidden;
    margin: 60px auto;
    max-width: 900px;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(25, 25, 30, 0.55);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    z-index: -1;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 250px;
    background: radial-gradient(ellipse, rgba(73, 177, 245, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.cta-inner {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg,
        var(--text-primary),
        var(--accent-tertiary),
        var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-inner p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* -------- 页脚 -------- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 40px 24px;
    margin-top: 60px;
    position: relative;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--accent-primary),
        var(--accent-purple),
        transparent);
    opacity: 0.5;
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 40px;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.footer-logo .logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(73, 177, 245, 0.15);
}

.footer-desc {
    font-size: 15px;
    color: #b8c2d9;
    line-height: 1.8;
    letter-spacing: 0.3px;
    max-width: 380px;
}

.footer-col h4,
.footer-section h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #ffffff;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after,
.footer-section h4::after {
    content: '';
    display: block;
    width: 42px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    border-radius: 2px;
    margin-top: 10px;
}

.footer-col a,
.footer-section a {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #b8c2d9;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
    transition: color var(--transition-fast), transform var(--transition-fast), padding-left var(--transition-fast);
    background-image: none;
}

.footer-col a:hover,
.footer-section a:hover {
    color: var(--accent-primary);
    transform: translateX(3px);
    padding-left: 4px;
}

.footer-col p,
.footer-section p {
    font-size: 15px;
    color: #b8c2d9;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

.footer-section .disclaimer,
.footer-col .disclaimer {
    color: var(--accent-warning) !important;
    font-size: 14px !important;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.7;
    padding: 12px 16px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(251, 191, 36, 0.25);
    margin-top: 12px;
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: #8a93ad;
}

/* -------- 文档页面样式 -------- */
.docs-hero {
    padding: 100px 32px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 68px;
}

.docs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* 光晕中心放在 Hero 内部并让四周都衰减到全透明：
       若以 50% 100%（底边）为圆心，渐变会在底边被 overflow:hidden 硬切，
       页面会出现一条横贯的拼接线 */
    background: radial-gradient(ellipse 60% 55% at 50% 45%, var(--accent-soft) 0%, transparent 70%);
    z-index: -1;
}

.docs-content {
    padding: 24px 32px 80px;
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* 带侧边栏的文档布局 */
.docs-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 32px;
}

.docs-sidebar {
    position: sticky;
    top: 88px;
    z-index: 50;
    align-self: start;
    height: fit-content;
}

.docs-main {
    width: 100%;
    flex: 1;
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* 文档导航 */
.doc-nav {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
}

.doc-nav-item {
    display: block;
    padding: 10px 16px;
    font-size: 14.5px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    margin-bottom: 4px;
    font-weight: 500;
    background-image: none;
}

.doc-nav-item:hover,
.doc-nav-item.active {
    background: var(--accent-soft);
    color: var(--accent-primary);
    transform: translateX(4px);
}

.doc-nav-item.active {
    box-shadow: inset 3px 0 0 var(--accent-primary);
    font-weight: 600;
}

/* 分类标题样式 */
.category-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    position: relative;
}

.category-title .category-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
    line-height: 1;
    color: inherit;
}

.category-title .category-icon svg {
    width: 28px;
    height: 28px;
    display: block;
    vertical-align: middle;
}

.category-title .category-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.category-title::before {
    content: '';
    width: 6px;
    height: 24px;
    border-radius: 3px;
    background: currentColor;
    opacity: 0.7;
}

.category-general {
    color: var(--accent-primary);
    background: var(--accent-soft);
    border-color: var(--border-hover);
}

.category-crypto {
    color: var(--accent-secondary);
    background: rgba(122, 192, 240, 0.1);
    border-color: rgba(122, 192, 240, 0.3);
}

.category-network {
    color: var(--accent-green);
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
}

.category-stress {
    color: var(--accent-warning);
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

.category-info {
    color: var(--accent-tertiary);
    background: rgba(164, 216, 250, 0.08);
    border-color: rgba(164, 216, 250, 0.3);
}

.category-web {
    color: var(--accent-purple);
    background: rgba(157, 124, 216, 0.12);
    border-color: rgba(157, 124, 216, 0.35);
}

.category-test {
    color: var(--accent-red);
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.3);
}

/* 命令卡片网格（文档首页） */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 40px;
}

.command-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-image: none;
    color: var(--text-primary);
}

.command-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--accent-primary),
        transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.command-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.command-card:hover::before {
    opacity: 1;
}

.command-code {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-primary);
    background: rgba(73, 177, 245, 0.12);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(73, 177, 245, 0.25);
    display: inline-block;
    margin-bottom: 12px;
    align-self: flex-start;
    transition: all var(--transition-fast);
}

.command-card:hover .command-code {
    background: var(--accent-soft);
    border-color: var(--border-hover);
    box-shadow: 0 0 0 3px rgba(73, 177, 245, 0.1);
}

.command-desc {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color var(--transition-base);
}

.command-card:hover .command-desc {
    color: var(--text-primary);
}

/* 测试/实验性命令卡片 */
.command-card.command-beta {
    border: 1px dashed rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.04);
}

.command-card.command-beta .command-code {
    color: var(--accent-warning);
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.3);
}

/* 文档详情页内部样式 */
.doc-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
}

.doc-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.doc-section h1,
.doc-section h2,
.doc-section h3,
.doc-section h4 {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-top: 0;
}

.doc-section h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.doc-section h2 {
    font-size: 26px;
    margin: 0 0 16px;
    position: relative;
    padding-bottom: 12px;
}

.doc-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-purple));
    border-radius: 3px;
}

.doc-section h3 {
    font-size: 20px;
    margin: 28px 0 14px;
    color: var(--accent-secondary);
}

.doc-section > p {
    font-size: 15.5px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.doc-section ul,
.doc-section ol {
    padding-left: 24px;
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 15px;
    margin-bottom: 16px;
}

.doc-section li {
    margin-bottom: 6px;
}

.doc-section code {
    font-family: var(--font-mono);
    font-size: 13.5px;
    background: rgba(73, 177, 245, 0.12);
    color: var(--accent-primary);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(73, 177, 245, 0.2);
}

/* 代码块样式（文档内） */
.doc-section pre {
    background: linear-gradient(135deg,
        rgba(26, 27, 38, 0.95) 0%,
        rgba(36, 40, 59, 0.92) 100%);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-primary);
    border-right: 2px solid var(--accent-purple);
    border-radius: var(--radius-lg);
    padding: 18px;
    padding-left: 28px;
    padding-top: 52px;
    overflow: auto;
    margin: 20px 0;
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* 代码块顶部装饰 */
.doc-section pre::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-red);
    box-shadow:
        18px 0 0 var(--accent-warning),
        36px 0 0 var(--accent-green);
}

.doc-section pre::after {
    content: 'code';
    position: absolute;
    top: 14px;
    right: 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.doc-section pre code {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.8;
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* 警告框 */
.warning-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left: 4px solid var(--accent-warning);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 20px 0;
    color: var(--accent-warning);
    font-size: 14.5px;
    line-height: 1.7;
}

.info-box {
    background: rgba(73, 177, 245, 0.08);
    border: 1px solid rgba(73, 177, 245, 0.3);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 20px 0;
    color: var(--accent-secondary);
    font-size: 14.5px;
    line-height: 1.7;
}

.success-box {
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-left: 4px solid var(--accent-green);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 20px 0;
    color: var(--accent-green);
    font-size: 14.5px;
    line-height: 1.7;
}

.danger-box {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-left: 4px solid var(--accent-red);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 20px 0;
    color: var(--accent-red);
    font-size: 14.5px;
    line-height: 1.7;
}

/* 表格样式 */
.command-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.command-table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.command-table th,
.command-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14.5px;
}

.command-table th {
    background: linear-gradient(180deg,
        var(--bg-secondary) 0%,
        var(--bg-tertiary) 100%);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--accent-primary);
}

.command-table tbody tr:last-child td {
    border-bottom: none;
}

.command-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

.command-table tbody tr:hover {
    background: var(--accent-soft);
}

.command-table td {
    color: var(--text-secondary);
}

.command-table td code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-primary);
    font-weight: 600;
    padding: 3px 10px;
    background: rgba(73, 177, 245, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(73, 177, 245, 0.2);
}

/* -------- 下载页面样式 -------- */
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    text-align: center;
    background-image: none;
    color: var(--text-primary);
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--accent-primary),
        var(--accent-purple));
}

.download-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.download-card .icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    color: var(--accent-primary);
    filter: drop-shadow(0 4px 12px rgba(73, 177, 245, 0.3));
}

.download-card .icon svg {
    width: 64px;
    height: 64px;
}

.download-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.download-card .version {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.download-card .size {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(73, 177, 245, 0.12);
    color: var(--accent-primary);
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 24px;
}

.download-card .features {
    text-align: left;
    margin-bottom: 24px;
}

.download-card .features p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-card .features p::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: bold;
}

/* -------- Guide（Markdown）页面样式 -------- */
.guide-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.guide-content h1,
.guide-content h2,
.guide-content h3,
.guide-content h4,
.guide-content h5,
.guide-content h6 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
}

.guide-content h1 {
    font-size: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-hover);
}

.guide-content h2 {
    font-size: 26px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.guide-content h2::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-purple));
    border-radius: 2px;
}

.guide-content h3 {
    font-size: 20px;
    color: var(--accent-secondary);
}

.guide-content p {
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.guide-content a {
    color: var(--accent-primary);
}

.guide-content ul,
.guide-content ol {
    padding-left: 28px;
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 15px;
    margin-bottom: 20px;
}

.guide-content li {
    margin-bottom: 8px;
}

.guide-content blockquote {
    border-left: 4px solid var(--accent-primary);
    padding: 16px 24px;
    margin: 20px 0;
    background: var(--accent-soft);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.guide-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.guide-content code {
    font-family: var(--font-mono);
    font-size: 13.5px;
    background: rgba(73, 177, 245, 0.12);
    color: var(--accent-primary);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(73, 177, 245, 0.2);
}

.guide-content pre {
    background: linear-gradient(135deg,
        rgba(26, 27, 38, 0.95) 0%,
        rgba(36, 40, 59, 0.92) 100%);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-primary);
    border-right: 2px solid var(--accent-purple);
    border-radius: var(--radius-lg);
    padding: 18px;
    padding-left: 28px;
    padding-top: 52px;
    overflow: auto;
    margin: 20px 0;
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.guide-content pre::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-red);
    box-shadow:
        18px 0 0 var(--accent-warning),
        36px 0 0 var(--accent-green);
}

.guide-content pre::after {
    content: 'code';
    position: absolute;
    top: 14px;
    right: 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.guide-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.8;
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.guide-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--border-hover),
        transparent);
    margin: 32px 0;
}

.guide-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.guide-content th,
.guide-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14.5px;
}

.guide-content th {
    background: var(--bg-tertiary);
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-primary);
}

.guide-content tbody tr:last-child td {
    border-bottom: none;
}

.guide-content tbody tr:hover {
    background: var(--accent-soft);
}

.guide-content td {
    color: var(--text-secondary);
}

/* -------- 动画效果集合 -------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-float {
    animation: floatUp 4s ease-in-out infinite;
}

/* -------- 响应式设计（桌面端） -------- */

/* 导航栏窄屏适配：逐级压缩，保证始终单行显示不换行 */
@media (max-width: 1440px) {
    .nav-container {
        padding: 0 24px;
        gap: 16px;
    }
}

@media (max-width: 1150px) {
    .nav-container {
        padding: 0 16px;
        gap: 12px;
    }

    .logo {
        gap: 8px;
        font-size: 17px;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .nav-links a {
        padding: 7px 6px;
        font-size: 12px;
    }

    .site-switch-btn {
        padding: 5px 8px !important;
        font-size: 12px !important;
    }

    #nav-auth .btn {
        padding: 5px 11px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 1000px) {
    /* 空间不足时 Logo 只保留图标 */
    .navbar .logo-text {
        display: none;
    }

    .navbar .logo {
        gap: 0;
    }
}

@media (max-width: 900px) {
    .nav-links a {
        padding: 6px 5px;
        font-size: 12px;
    }

    .site-switch {
        margin-left: 4px;
    }

    .site-switch-btn {
        padding: 5px 7px !important;
        font-size: 11.5px !important;
    }
}

@media (max-width: 1200px) {
    .footer-inner,
    .footer-container {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 40px;
    }

    .footer-col:first-child,
    .footer-section:first-child {
        grid-column: 1 / -1;
    }

    .docs-layout {
        grid-template-columns: 220px 1fr;
        gap: 24px;
    }
}

@media (max-width: 1100px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 60px 40px;
    }

    .hero-left .desc {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .action-buttons {
        justify-content: center;
    }

    .meta-info {
        justify-content: center;
    }

    .hero-right {
        max-width: 550px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .commands-list {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* -------- 响应式设计（平板端） -------- */
@media (max-width: 900px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: relative;
        top: 0;
    }

    .doc-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 14px 16px;
        cursor: pointer;
        font-size: 15px;
        color: var(--text-primary);
        font-weight: 500;
        transition: all var(--transition-fast);
    }

    .doc-nav-toggle::after {
        content: '▼';
        font-size: 10px;
        color: var(--accent-primary);
        transition: transform var(--transition-fast);
    }

    .doc-nav-toggle.active::after {
        transform: rotate(180deg);
    }

    .doc-nav {
        display: none;
        margin-top: 12px;
    }

    .doc-nav.open {
        display: block;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .docs-main {
        padding: 32px 24px;
    }
}

/* -------- 响应式设计（移动端） -------- */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
        height: 60px;
        gap: 10px;
    }

    /* 桌面端页面没有汉堡菜单，窄屏下保留可横向滚动的导航条 */
    .nav-links {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .page-hero,
    .docs-hero {
        margin-top: 60px;
        padding: 60px 24px 40px;
    }

    .section,
    .commands-section,
    .platforms-section,
    .demo-section {
        padding: 60px 24px;
    }

    .hero-section {
        padding: 80px 24px 60px;
    }

    .cta-section {
        padding: 60px 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        gap: 12px;
        padding: 30px 24px;
    }

    .stat {
        padding: 20px 12px;
    }

    .stat .num {
        font-size: 28px;
    }

    .footer {
        padding: 40px 24px 24px;
    }

    .footer-inner,
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-col:first-child,
    .footer-section:first-child {
        grid-column: 1 / -1;
    }

    .requirements-grid,
    .dependencies-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .requirement-item,
    .dependency-card {
        padding: 16px;
        min-width: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .dependency-card pre {
        padding: 12px 14px;
        margin-top: 12px;
        font-size: 12.5px;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: auto;
    }

    .dependency-card pre code {
        font-size: 12.5px;
        line-height: 1.75;
        white-space: pre-wrap;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .docs-content,
    .docs-layout {
        padding: 16px 24px 60px;
    }

    .command-grid {
        grid-template-columns: 1fr 1fr;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .guide-content {
        padding: 24px 20px;
    }

    .code-content {
        font-size: 12px;
        padding: 18px;
    }

    .code-window {
        border-radius: var(--radius-lg);
    }
}

/* -------- 响应式设计（小屏手机） -------- */
@media (max-width: 480px) {
    .hero-section {
        padding: 60px 20px 40px;
    }

    .hero-left h1 {
        font-size: 28px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons .btn {
        justify-content: center;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 15px;
    }

    .meta-info {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .features-grid,
    .commands-list,
    .command-grid,
    .platforms-grid {
        grid-template-columns: 1fr;
    }

    .section,
    .commands-section,
    .platforms-section,
    .demo-section {
        padding: 50px 20px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .footer-inner,
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .docs-main {
        padding: 24px 18px;
        border-radius: var(--radius-lg);
    }

    .doc-section h1 {
        font-size: 24px;
    }

    .doc-section h2 {
        font-size: 20px;
    }

    .guide-content {
        padding: 20px 16px;
    }

    .guide-content h1 {
        font-size: 24px;
    }

    .guide-content h2 {
        font-size: 20px;
    }
}

/* -------- 无障碍与焦点样式 -------- */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 输入框、文本域 */
input,
textarea,
select {
    font-family: inherit;
    font-size: 14.5px;
    padding: 10px 16px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(73, 177, 245, 0.15);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

/* -------- 深色模式增强 -------- */
@media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--accent-secondary), var(--accent-primary));
    }

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, var(--accent-primary), 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;
    }

    body::before,
    body::after,
    .code-window {
        animation: none !important;
    }
}

/* -------- 打印样式 -------- */
@media print {
    .navbar,
    .footer,
    .nav-toggle,
    .hero-right,
    .cta-section {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .docs-main,
    .guide-content,
    .doc-section pre {
        border: 1px solid #ccc;
        box-shadow: none;
        background: white;
    }

    a {
        color: #0366d6;
        text-decoration: underline;
    }

    .doc-section pre code,
    .guide-content pre code {
        color: #24292e;
        background: #f6f8fa;
    }
}

/* ============================================================
 * 专用组件样式（从各模板内联样式整合）
 * ============================================================ */

/* -------- 移动设备检测弹窗（桌面端降级提示） -------- */
.mobile-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 27, 38, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-alert {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 90%;
    width: 400px;
    text-align: center;
    box-shadow: var(--shadow-card-hover);
}

.mobile-alert h3 {
    color: var(--text-primary);
    font-size: 20px;
    margin-bottom: 16px;
}

.mobile-alert p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.mobile-alert button {
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-alert button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* -------- Guide 指南页 - 警告条 -------- */
.guide-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(217, 119, 6, 0.08) 100%);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-left: 4px solid var(--accent-warning);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.08);
    animation: warning-slide-in 0.4s ease-out;
}

.guide-warning-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--accent-warning);
    animation: warning-pulse 2s ease-in-out infinite;
}

.guide-warning-icon svg {
    width: 100%;
    height: 100%;
}

.guide-warning-content {
    flex: 1;
    color: var(--text-secondary);
}

.guide-warning-content strong {
    color: var(--accent-warning);
    font-weight: 600;
}

@keyframes warning-slide-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes warning-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* -------- Guide 指南页 - 统计与工具栏 -------- */
.guide-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.guide-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: var(--text-secondary);
    height: 38px;
    box-sizing: border-box;
}

.guide-stat-chip strong {
    color: var(--text-primary);
    font-weight: 600;
}

.guide-stat-chip .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.guide-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.guide-stats-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-search {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.guide-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.guide-search input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.guide-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.guide-view-switch {
    display: inline-flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.guide-view-switch button {
    background: transparent;
    color: var(--text-secondary);
    border: 0;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.guide-view-switch button.active {
    background: var(--accent-soft);
    color: var(--accent-primary);
}

.guide-view-switch button + button {
    border-left: 1px solid var(--border-color);
}

/* -------- Guide 指南页 - 分类布局（列表页） -------- */
.guide-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    min-width: 0;
}

.guide-main {
    min-width: 0;
}

.guide-sidebar {
    position: sticky;
    top: 84px;
    align-self: start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 12px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.guide-sidebar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.guide-sidebar::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.guide-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.guide-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.guide-sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.guide-sidebar-title,
.guide-sidebar h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0 8px 10px;
    margin: 0 0 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.guide-sidebar h3:not(:first-child) {
    margin-top: 20px;
}

.guide-cat-link,
.guide-sidebar a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
    margin-bottom: 2px;
}

.guide-cat-link:hover,
.guide-sidebar a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.guide-cat-link.active,
.guide-sidebar a.active {
    background: var(--accent-soft);
    color: var(--text-primary);
}

.guide-cat-link .cat-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.guide-cat-link .cat-icon {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35) 0%, transparent 55%),
                      linear-gradient(135deg, var(--cat-color, var(--accent-primary)) 0%, color-mix(in srgb, var(--cat-color, var(--accent-primary)) 60%, #111) 100%);
    box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 40%, transparent),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s, filter 0.22s;
}

.guide-cat-link .cat-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 12px 1px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 55%, transparent);
    opacity: 0;
    transition: opacity 0.22s;
    pointer-events: none;
}

.guide-cat-link:hover .cat-icon {
    transform: translateY(-1px) scale(1.08);
    filter: brightness(1.12) saturate(1.1);
    box-shadow: 0 4px 14px -3px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 55%, transparent),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.guide-cat-link:hover .cat-icon::after {
    opacity: 0.7;
}

.guide-cat-link.active .cat-icon {
    transform: scale(1.12);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 60%, transparent),
                0 3px 12px -2px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 50%, transparent),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.guide-cat-link.active .cat-icon::after {
    opacity: 0.95;
    animation: icon-pulse 1.8s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { box-shadow: 0 0 10px 1px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 55%, transparent); }
    50%      { box-shadow: 0 0 16px 2px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 75%, transparent); }
}

.guide-cat-link .cat-icon svg {
    width: 14px;
    height: 14px;
    color: #fff;
    position: relative;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
    transition: transform 0.22s;
}

.guide-cat-link:hover .cat-icon svg {
    transform: rotate(-4deg);
}

.guide-cat-link .cat-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    transition: color 0.22s;
}

.guide-cat-link:hover .cat-name {
    color: var(--cat-color, var(--accent-primary));
    font-weight: 600;
}

.guide-cat-link.active .cat-name {
    color: var(--cat-color, var(--accent-primary));
    font-weight: 600;
}

.guide-cat-link .cat-count {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    transition: all 0.22s;
    font-weight: 500;
    min-width: 32px;
    text-align: center;
}

.guide-cat-link:hover .cat-count {
    background: color-mix(in srgb, var(--cat-color, var(--accent-primary)) 18%, transparent);
    color: var(--text-primary);
    border-color: color-mix(in srgb, var(--cat-color, var(--accent-primary)) 35%, transparent);
}

.guide-cat-link.active .cat-count {
    background: color-mix(in srgb, var(--cat-color, var(--accent-primary)) 20%, transparent);
    color: var(--cat-color, var(--accent-secondary));
    border-color: color-mix(in srgb, var(--cat-color, var(--accent-primary)) 45%, transparent);
    font-weight: 600;
}

/* -------- Guide 分类区块 -------- */
.guide-content {
    min-width: 0;
}

.guide-category {
    margin-bottom: 36px;
    scroll-margin-top: 90px;
}

.guide-category.hidden,
.guide-card.hidden {
    display: none;
}

/* 分类标题（可点击折叠） */
.guide-cat-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 8px 14px 10px 10px;
    border: 1px solid transparent;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    text-align: left;
    border-radius: 10px;
    transition: background 0.22s, transform 0.22s, border-color 0.22s;
    font-family: inherit;
}

.guide-cat-header:hover {
    background: color-mix(in srgb, var(--cat-color, var(--accent-primary)) 6%, transparent);
    border-color: color-mix(in srgb, var(--cat-color, var(--accent-primary)) 25%, transparent);
}

.guide-cat-header:focus {
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 40%, transparent);
}

.guide-cat-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.22s;
}

.guide-cat-header:hover .guide-cat-title {
    color: var(--cat-color, var(--accent-primary));
}

/* 折叠箭头图标 */
.guide-cat-title .cat-chevron {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 6px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.22s, background 0.22s;
    flex-shrink: 0;
}

.guide-cat-title .cat-chevron svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.guide-category.is-folded .guide-cat-header .cat-chevron {
    color: var(--cat-color, var(--accent-primary));
    background: color-mix(in srgb, var(--cat-color, var(--accent-primary)) 18%, transparent);
}

.guide-category.is-folded .guide-cat-header .cat-chevron svg {
    transform: rotate(-90deg);
}

.guide-cat-header:hover .cat-chevron {
    color: var(--cat-color, var(--accent-primary));
    background: color-mix(in srgb, var(--cat-color, var(--accent-primary)) 12%, transparent);
}

/* 分类图标徽章（渐变色） */
.guide-cat-title .badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.4) 0%, transparent 55%),
                      linear-gradient(135deg, var(--cat-color, var(--accent-primary)) 0%, color-mix(in srgb, var(--cat-color, var(--accent-primary)) 60%, #111) 100%);
    box-shadow: 0 4px 14px -2px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 55%, transparent),
                0 0 0 1px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 35%, transparent),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s, filter 0.22s;
    animation: badge-pulse 2.8s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        box-shadow: 0 4px 14px -2px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 55%, transparent),
                    0 0 0 1px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 35%, transparent),
                    inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
    50% {
        box-shadow: 0 5px 20px -2px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 70%, transparent),
                    0 0 12px 1px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 55%, transparent),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.guide-cat-header:hover .guide-cat-title .badge {
    transform: translateY(-2px) scale(1.08) rotate(-3deg);
    filter: brightness(1.18) saturate(1.2);
    animation-play-state: paused;
    box-shadow: 0 8px 22px -2px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 70%, transparent),
                0 0 18px 2px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 65%, transparent),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.guide-cat-title .badge::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 14px 2px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 55%, transparent);
    opacity: 0;
    transition: opacity 0.22s;
    pointer-events: none;
}

.guide-cat-header:hover .guide-cat-title .badge::after {
    opacity: 0.9;
}

.guide-cat-title .badge svg {
    width: 20px;
    height: 20px;
    color: #fff;
    position: relative;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 4px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 30%, transparent));
    transition: transform 0.22s;
}

.guide-cat-header:hover .guide-cat-title .badge svg {
    transform: scale(1.1) rotate(-4deg);
}

.guide-cat-meta {
    color: var(--text-muted);
    font-size: 13px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.22s;
    font-weight: 500;
}

.guide-cat-meta strong {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 14px;
}

.guide-cat-header:hover .guide-cat-meta {
    background: color-mix(in srgb, var(--cat-color, var(--accent-primary)) 15%, transparent);
    border-color: color-mix(in srgb, var(--cat-color, var(--accent-primary)) 30%, transparent);
    color: var(--cat-color, var(--accent-secondary));
}

.guide-cat-header:hover .guide-cat-meta strong {
    color: var(--cat-color, var(--accent-primary));
}

/* 折叠内容容器（带动画） */
.guide-cat-body {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
    max-height: 5000px;
    opacity: 1;
    will-change: max-height, opacity;
}

.guide-category.is-folded .guide-cat-body {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    margin-top: 0;
}

.guide-category.is-folded {
    margin-bottom: 12px;
}

.guide-cat-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin-left: 80px;
    margin-top: -6px;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* 全部折叠/展开 工具栏按钮 */
.guide-fold-switch {
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-fold-switch button {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.guide-fold-switch button:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.guide-fold-switch button:active {
    transform: translateY(1px);
}

/* -------- Guide 指南页 - 命令卡片（带主题色装饰） -------- */
.command-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.command-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s, background 0.2s;
    overflow: hidden;
}

.command-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--cat-color, var(--accent-primary));
    opacity: 0.65;
    transition: opacity 0.2s, width 0.2s;
}

.command-card:hover {
    transform: translateY(-2px);
    border-color: rgba(73, 177, 245, 0.35);
    box-shadow: var(--shadow-card-hover);
    background: var(--bg-card-solid);
}

.command-card:hover::before {
    opacity: 1;
    width: 4px;
}

.command-card .card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.command-card .card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    transition: transform 0.22s ease, background 0.22s;
}

.command-card:hover .card-icon {
    transform: translateY(-1px) scale(1.06);
    background-image: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.3) 0%, transparent 55%),
                      linear-gradient(135deg, var(--cat-color, var(--accent-primary)) 0%, color-mix(in srgb, var(--cat-color, var(--accent-primary)) 55%, #111) 100%);
    box-shadow: 0 3px 10px -2px color-mix(in srgb, var(--cat-color, var(--accent-primary)) 45%, transparent),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.command-card .card-icon svg {
    width: 18px;
    height: 18px;
    color: var(--cat-color, var(--accent-primary));
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
    transition: color 0.22s, transform 0.22s;
}

.command-card:hover .card-icon svg {
    color: #fff;
    transform: rotate(-4deg);
}

.command-card .card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.command-card .card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    min-height: 38px;
}

.command-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.command-card .tag {
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
}

.command-card .card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.command-card .card-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.command-card .card-download-btn svg {
    width: 14px;
    height: 14px;
}

.command-card:hover .card-download-btn {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #10b981;
}

.command-card .card-download-btn:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    transform: translateY(-1px);
}

/* -------- YScript 指南页 - 目录 + 行式列表 布局 -------- */
.yscript-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* 左侧目录 */
.yscript-toc {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px;
    scrollbar-width: thin;
}

.yscript-toc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 6px;
}

.yscript-toc-head-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.yscript-toc-count {
    font-size: 12px;
    color: var(--text-muted);
}

.yscript-toc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
}

.yscript-toc-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.yscript-toc-item.active {
    background: rgba(73, 177, 245, 0.12);
    color: #49b1f5;
}

.yscript-toc-num {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
    padding: 1px 4px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    flex-shrink: 0;
}

.yscript-toc-item.active .yscript-toc-num {
    color: #49b1f5;
    background: rgba(73, 177, 245, 0.18);
}

.yscript-toc-label {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 右侧列表 */
.yscript-main {
    flex: 1;
    min-width: 0;
}

.yscript-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.yscript-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s, background 0.2s;
}

.yscript-row.hidden {
    display: none;
}

.yscript-row:hover {
    transform: translateX(3px);
    border-color: rgba(73, 177, 245, 0.35);
    box-shadow: var(--shadow-card-hover);
    background: var(--bg-card-solid);
}

.yscript-row-num {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #49b1f5;
    background: rgba(73, 177, 245, 0.1);
    border: 1px solid rgba(73, 177, 245, 0.2);
    border-radius: 7px;
    flex-shrink: 0;
}

.yscript-row-title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yscript-row-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.2s, transform 0.15s;
}

.yscript-row-download svg {
    width: 13px;
    height: 13px;
}

.yscript-row-download:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    transform: scale(1.05);
}

.yscript-row-arrow {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.yscript-row:hover .yscript-row-arrow {
    color: #49b1f5;
    transform: translateX(2px);
}

@media (max-width: 980px) {
    .yscript-layout {
        flex-direction: column;
    }

    .yscript-toc {
        width: 100%;
        position: static;
        max-height: 200px;
    }
}

/* 紧凑视图 */
.guide-content.compact .command-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.guide-content.compact .command-card {
    padding: 12px;
}

.guide-content.compact .card-desc,
.guide-content.compact .card-tags {
    display: none;
}

/* -------- Guide 指南详情页 - Markdown 内容样式 -------- */
.guide-detail-layout {
    display: flex;
    gap: 32px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.guide-detail-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    align-self: flex-start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 4px 12px 16px 4px;
    scroll-behavior: smooth;
}

.guide-detail-main {
    flex: 1;
    min-width: 0;
}

.guide-back {
    margin-bottom: 20px;
    font-size: 14px;
}

.guide-back a {
    color: var(--accent-primary);
    text-decoration: none;
}

.guide-back a:hover {
    text-decoration: underline;
}

/* ============================================================
   Markdown 渲染统一样式（由 server.js 的 renderMarkdown 生成）
   统一容器类名架构：
     .md-block           — 基础容器（代码块 / 流程图共用）
     .code-block-wrap    — 普通代码块专属
     .mermaid-wrap       — Mermaid 流程图专属
     .md-block-header    — 头部栏（语言标签 + 控制按钮）
     .md-block-lang      — 语言标签
     .md-copy-btn        — 复制按钮
     .md-mermaid-controls — 流程图缩放控制组
     .md-zoom-btn        — 缩放按钮
     .md-zoom-level      — 缩放百分比显示
     .md-mermaid         — 流程图主体容器
     .md-block-hint      — 底部提示文字
   ============================================================ */

/* ---------- 1. Markdown 基础文本样式 ---------- */
.markdown-body {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.markdown-body h1 {
    color: var(--text-primary);
    font-size: 26px;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.markdown-body h2 {
    color: var(--text-primary);
    font-size: 20px;
    margin: 32px 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.markdown-body h3 {
    color: var(--text-primary);
    font-size: 17px;
    margin: 24px 0 8px 0;
}

.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    color: var(--text-secondary);
    margin: 20px 0 6px 0;
}

.markdown-body p { margin: 0 0 14px 0; }

.markdown-body a {
    color: var(--accent-primary);
    text-decoration: none;
}
.markdown-body a:hover { text-decoration: underline; }

.markdown-body strong { color: var(--text-primary); }
.markdown-body em { color: var(--text-secondary); }
.markdown-body del { color: var(--text-muted); }

/* 行内 code：短代码片段 */
.markdown-body code {
    background: var(--accent-soft);
    color: var(--accent-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: var(--font-mono);
}

.markdown-body blockquote {
    border-left: 3px solid var(--accent-primary);
    padding: 8px 16px;
    margin: 14px 0;
    color: var(--text-secondary);
    background: var(--accent-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.markdown-body ul,
.markdown-body ol {
    margin: 10px 0;
    padding-left: 24px;
}
.markdown-body li { margin: 4px 0; }
.markdown-body li::marker { color: var(--text-muted); }

.markdown-body hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 28px 0;
}

.markdown-body table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 14px;
    display: block;
    overflow-x: auto;
    box-sizing: border-box;
}
.markdown-body th {
    background: var(--accent-soft);
    color: var(--text-primary);
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid var(--accent-primary);
    white-space: nowrap;
}
.markdown-body td {
    padding: 8px 14px;
    border-bottom: 1px solid var(--border-color);
}
.markdown-body tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.markdown-body img {
    max-width: 100%;
    border-radius: var(--radius-md);
}

.markdown-body input[type="checkbox"] {
    margin-right: 6px;
    accent-color: var(--accent-primary);
}

/* ---------- 2. 代码块 / 流程图：统一容器基础样式 ---------- */
.markdown-body .md-block {
    margin: 14px 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    transition: border-color 0.2s;
}

/* ---------- 3. 普通代码块 ---------- */
.markdown-body .code-block-wrap {
    background: var(--bg-card-solid);
}
.markdown-body .code-block-wrap:hover {
    border-color: var(--accent-primary);
}

/* 代码块 header 栏（语言标签 + 复制按钮） */
.markdown-body .md-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--border-color);
    user-select: none;
    gap: 12px;
    flex-wrap: wrap;
}

.markdown-body .md-block-lang {
    font-size: 12px;
    font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}
.markdown-body .md-block-lang::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
    display: inline-block;
}

/* 复制按钮 */
.markdown-body .md-copy-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 12px;
    font-family: inherit;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.markdown-body .md-copy-btn:hover {
    background: rgba(73, 177, 245, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
.markdown-body .md-copy-btn.copied {
    background: rgba(110, 231, 183, 0.15);
    border-color: #6ee7b7;
    color: #6ee7b7;
}

/* 代码块内部：<pre><code> — 自动换行 + 横向滚动 */
.markdown-body .code-block-wrap pre {
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 14px 16px;
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
}

/* 代码块内 code — 核心：自动换行，解决横向溢出 */
.markdown-body pre code {
    background: none;
    color: var(--text-secondary);
    padding: 0;
    font-size: 13px;
    line-height: 1.65;
    font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
    display: block;
    white-space: pre;
    overflow-x: auto;
    tab-size: 4;
}

/* 备用：未被 wrap 包裹的裸 pre（兜底样式，一般不会命中） */
.markdown-body > pre {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 22px 16px 22px;
    overflow-x: auto;
    margin: 14px 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* ---------- 4. Mermaid 流程图 ---------- */
.markdown-body .mermaid-wrap {
    background: var(--bg-card);
    margin: 18px 0;
}
.markdown-body .mermaid-wrap:hover {
    border-color: var(--accent-purple);
}

/* Mermaid 专用 header — 紫色主题 */
.markdown-body .mermaid-wrap .md-block-header {
    padding: 10px 16px;
}
.markdown-body .mermaid-wrap .md-block-lang {
    color: var(--accent-purple);
}
.markdown-body .mermaid-wrap .md-block-lang::before {
    width: 8px;
    height: 8px;
    background: var(--accent-purple);
    box-shadow: 0 0 10px var(--accent-purple);
}

/* 缩放控制按钮组 */
.markdown-body .md-mermaid-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}
.markdown-body .md-zoom-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 12px;
    font-family: inherit;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.markdown-body .md-zoom-btn:hover {
    background: rgba(157, 124, 216, 0.15);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}
.markdown-body .md-zoom-level {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 48px;
    text-align: center;
    font-family: 'SF Mono', 'Cascadia Code', monospace;
}

/* 流程图主体容器：不做 overflow（由 JS 创建的 inner 成为唯一滚动容器） */
.markdown-body .md-mermaid {
    padding: 20px 16px 24px 16px;
    text-align: left;
    min-height: 240px;
    position: relative;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}

/* mermaid-wrap：与文档内其他内容对齐，不越界 */
.markdown-body .mermaid-wrap {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* JS 创建的滚动视口：这是唯一的滚动容器 */
.markdown-body .md-mermaid-inner {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 85vh;
    min-height: 260px;
    overflow: auto !important;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

/* JS 创建的画布：容纳 SVG */
.markdown-body .md-mermaid-canvas {
    position: relative;
    cursor: grab;
    user-select: none;
    overflow: hidden;
}
.markdown-body .md-mermaid-canvas:active {
    cursor: grabbing;
}

/* SVG 不限制宽度 — 由 JS 控制实际尺寸产生正确滚动区域 */
.markdown-body .md-mermaid svg {
    max-width: none !important;
    width: auto;
    height: auto;
    display: inline-block;
    vertical-align: top;
}

/* 底部提示文字 */
.markdown-body .md-block-hint {
    text-align: center;
    padding: 4px 0 8px;
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.55;
}

/* ---------- 5. 统一滚动条样式 ---------- */

/* 代码块滚动条 */
.markdown-body pre {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}
.markdown-body pre::-webkit-scrollbar { height: 8px; }
.markdown-body pre::-webkit-scrollbar-track { background: transparent; }
.markdown-body pre::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    transition: background 0.2s;
}
.markdown-body pre::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }
.markdown-body pre::-webkit-scrollbar-corner { background: transparent; }

/* 代码块容器外层滚动条 */
.markdown-body .code-block-wrap {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}
.markdown-body .code-block-wrap::-webkit-scrollbar { height: 8px; }
.markdown-body .code-block-wrap::-webkit-scrollbar-track { background: transparent; }
.markdown-body .code-block-wrap::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
.markdown-body .code-block-wrap::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* 流程图滚动条：紫色主题，更明显 */
.markdown-body .md-mermaid {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-purple) transparent;
}
.markdown-body .md-mermaid::-webkit-scrollbar { height: 10px; }
.markdown-body .md-mermaid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 5px;
    margin: 4px 8px;
}
.markdown-body .md-mermaid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
    transition: background 0.2s;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.markdown-body .md-mermaid::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Mermaid 外层容器滚动条 */
.markdown-body .mermaid-wrap {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-purple) transparent;
}
.markdown-body .mermaid-wrap::-webkit-scrollbar { height: 10px; }
.markdown-body .mermaid-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 5px;
}
.markdown-body .mermaid-wrap::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
    transition: background 0.2s;
}
.markdown-body .mermaid-wrap::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* 表格滚动条 */
.markdown-body table::-webkit-scrollbar { height: 8px; }
.markdown-body table::-webkit-scrollbar-track { background: transparent; }
.markdown-body table::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
.markdown-body table::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* ---------- 6. 文档大纲 TOC（保留原样式，与 markdown 内容无关） ---------- */
.doc-toc .toc-h1 {
    padding-left: 12px;
    font-weight: 600;
    color: var(--text-primary);
}
.doc-toc .toc-h2 { padding-left: 12px; }
.doc-toc .toc-h3 { padding-left: 24px; font-size: 12px; }
.doc-toc .toc-h4 { padding-left: 36px; font-size: 12px; color: var(--text-muted); }
.doc-toc .toc-h5,
.doc-toc .toc-h6 { padding-left: 48px; font-size: 12px; color: var(--text-muted); }

.doc-toc a {
    display: block;
    padding: 6px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    border-radius: var(--radius-sm);
    margin-bottom: 1px;
    line-height: 1.5;
    transition: all 0.15s;
}
.doc-toc a:hover { color: var(--text-primary); background: var(--accent-soft); }
.doc-toc a.active { color: var(--accent-primary); background: var(--accent-soft); font-weight: 500; }
.doc-toc .toc-empty { color: var(--text-muted); font-size: 12px; padding: 8px 12px; font-style: italic; }

/* ---------- 7. 侧边栏 Tab 切换 ---------- */
.sidebar-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    padding: 3px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.sidebar-tab {
    flex: 1;
    padding: 6px 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}
.sidebar-tab:hover { color: var(--text-secondary); }
.sidebar-tab.active { background: var(--accent-soft); color: var(--accent-secondary); }

/* -------- 回到顶部按钮 -------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 28px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(73, 177, 245, 0.3);
    border-radius: 50%;
    background: var(--bg-card-solid);
    color: var(--accent-secondary);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s, background 0.2s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: rgba(73, 177, 245, 0.15);
    border-color: rgba(73, 177, 245, 0.6);
    color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* -------- 功能特性页 - 工具分类网格 -------- */
.tools-categories {
    padding: 60px 40px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.category-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.category-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.category-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.category-section-title .category-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--accent-soft);
}

.category-section-title .category-icon svg,
.category-section-title .category-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    transition: all 0.25s ease;
}

.tool-item:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-solid);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.tool-item .tool-name {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 6px;
}

.tool-item .tool-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 测试中分类 */
.category-section.testing .category-section-title {
    color: var(--accent-warning);
}

.category-section.testing .tool-item .tool-name {
    color: var(--accent-warning);
}

/* -------- 功能特性页 - 摘要统计条 -------- */
.features-summary {
    padding: 40px 0 60px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.summary-item {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.summary-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.summary-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* -------- 文档页分类标题 -------- */
.category-title.category-general { --cat-color: var(--accent-primary); }
.category-title.category-crypto { --cat-color: var(--accent-purple); }
.category-title.category-network { --cat-color: var(--accent-secondary); }
.category-title.category-stress { --cat-color: var(--accent-red); }
.category-title.category-web { --cat-color: var(--accent-green); }
.category-title.category-info { --cat-color: var(--accent-tertiary); }
.category-title.category-test { --cat-color: var(--accent-red); }

.category-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--cat-color, var(--text-primary));
    margin-bottom: 24px;
    padding: 12px 20px;
    background: color-mix(in srgb, var(--cat-color, var(--accent-primary)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--cat-color, var(--accent-primary)) 25%, transparent);
    border-radius: var(--radius-lg);
    position: relative;
}

.category-title .category-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
    line-height: 1;
    color: inherit;
}

.category-title .category-icon svg {
    width: 28px;
    height: 28px;
    display: block;
    vertical-align: middle;
}

.category-title .category-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* 通用 doc-section 子分类 */
.doc-section {
    margin-bottom: 40px;
}

/* 空状态 */
.guide-empty {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
}

.guide-empty svg {
    width: 48px;
    height: 48px;
    color: var(--border-color);
    margin-bottom: 12px;
}

/* -------- 响应式：Guide 页面 -------- */
@media (max-width: 980px) {
    .guide-layout,
    .guide-detail-layout {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .guide-sidebar,
    .guide-detail-sidebar {
        position: static;
        max-height: none;
        width: 100%;
    }

    .guide-detail-sidebar {
        order: 2;
        margin-top: 32px;
    }

    .guide-detail-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .tools-categories {
        padding: 40px 20px;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }

    .command-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .category-section-title {
        font-size: 18px;
    }
}

/* -------- 工具类 -------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-primary); }
.text-success { color: var(--accent-green); }
.text-warning { color: var(--accent-warning); }
.text-danger { color: var(--accent-red); }

.m-0 { margin: 0; }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-auto { margin: auto; }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-inline-flex { display: inline-flex; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-full { max-width: 100%; }
.min-w-full { min-width: 100%; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-pill); }

.shadow { box-shadow: var(--shadow-card); }
.shadow-lg { box-shadow: var(--shadow-card-hover); }
.shadow-glow { box-shadow: var(--shadow-glow); }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-mono { font-family: var(--font-mono); }

.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }

/* ============================================================
 * TLink 页面组件样式（桌面端）
 * ============================================================ */

.tlink-hero {
    padding: 80px 20px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(13, 15, 20, 0.70) 0%, rgba(18, 20, 25, 0.70) 100%),
        var(--bg-img, url('/images/1.webp'));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.tlink-hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #a4d8fa 0%, #49b1f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tlink-hero p {
    font-size: 1.25rem;
    color: #b0b0b0;
    max-width: 700px;
    margin: 0 auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.hero-buttons .btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-buttons .btn svg,
.hero-buttons .btn .btn-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.features-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(37, 37, 37, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    background: rgba(73, 177, 245, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(73, 177, 245, 0.2) 0%, rgba(73, 177, 245, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.feature-icon svg,
.feature-icon img {
    width: 40px;
    height: 40px;
}

.feature-icon img {
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: #b0b0b0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cta-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(73, 177, 245, 0.1) 0%, rgba(73, 177, 245, 0.05) 100%);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.btn-large {
    padding: 8px 20px;
    font-size: 13px;
    min-height: 38px;
}

/* ============================================================
 * TLink-Download 下载页面组件样式
 * ============================================================ */

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.download-card {
    background: rgba(37, 37, 37, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
}

.download-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    color: var(--accent-primary);
    filter: drop-shadow(0 4px 12px rgba(73, 177, 245, 0.3));
}

.download-icon svg,
.download-icon img {
    width: 48px;
    height: 48px;
}

.download-icon img {
    object-fit: contain;
}

.download-card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.download-card p {
    color: #b0b0b0;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.download-card .note {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.4;
    margin-bottom: 12px;
}

.download-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.download-actions .btn {
    padding: 6px 14px;
    min-height: 34px;
    font-size: 0.85rem;
}

.download-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
}

.download-info .version-info {
    color: #a4d8fa;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.download-info .warning-text {
    color: #fbbf24;
    font-size: 0.85rem;
    margin-top: 12px;
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.warning-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-box .warning-text {
    color: #fbbf24;
    margin: 0;
    text-align: left;
    line-height: 1.5;
}

.quick-start {
    max-width: 1000px;
    margin: 0 auto;
}

.quick-start-item {
    margin-bottom: 40px;
}

.quick-start-item h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.code-block {
    background: rgba(34, 34, 34, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.code-header {
    background: rgba(40, 40, 40, 0.9);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-title {
    color: var(--accent-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.code-block pre {
    padding: 20px;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #b0b0b0;
}

/* ============================================================
 * 错误页面组件样式 (404/403/301)
 * ============================================================ */

.error-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 60px 20px;
    background:
        linear-gradient(135deg, rgba(13, 15, 20, 0.65) 0%, rgba(18, 20, 25, 0.55) 100%),
        var(--bg-img, url('/images/1.webp'));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.error-container {
    max-width: 800px;
    text-align: center;
    padding: 60px 40px;
    background: rgba(25, 25, 30, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.error-container h1 {
    font-size: 72px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.error-container p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* ============================================================
 * 响应式适配 - 平板和移动端
 * ============================================================ */

@media (max-width: 768px) {
    .tlink-hero h1 { font-size: 2rem; }
    .tlink-hero p { font-size: 1rem; }
    .features-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }
    .btn-large { width: 100%; }
    .download-grid { grid-template-columns: 1fr; }
    .requirements-grid { grid-template-columns: 1fr; }
    .dependencies-grid { grid-template-columns: 1fr; width: 100%; box-sizing: border-box; }
    .download-actions { flex-direction: column; }
    .download-actions .btn { width: 100%; }
    .error-container { padding: 40px 20px; }
    .error-container h1 { font-size: 48px; }
}

/* -------- 系统要求与依赖（2 列） -------- */
.requirements-grid,
.dependencies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.requirement-item,
.dependency-card {
    background: rgba(25, 25, 30, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.requirement-item h4,
.dependency-card h3 {
    color: var(--accent-primary);
    margin: 0 0 10px 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.dependency-card pre {
    background: linear-gradient(135deg,
        rgba(18, 20, 25, 0.95) 0%,
        rgba(30, 33, 45, 0.92) 100%);
    border: 1px solid rgba(73, 177, 245, 0.28);
    border-left: 3px solid var(--accent-primary);
    border-right: 2px solid var(--accent-purple);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 14px 0 0 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: auto;
    position: relative;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dependency-card pre:hover {
    border-color: rgba(73, 177, 245, 0.4);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(73, 177, 245, 0.12);
}

.dependency-card pre::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: linear-gradient(180deg,
        var(--accent-primary) 0%,
        var(--accent-purple) 100%);
    border-radius: 2px;
    opacity: 0.7;
    pointer-events: none;
}

.dependency-card pre::after {
    content: '';
    position: absolute;
    right: 2px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: linear-gradient(180deg,
        var(--accent-purple) 0%,
        var(--accent-primary) 100%);
    border-radius: 2px;
    opacity: 0.45;
    pointer-events: none;
}

.dependency-card pre code {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: #e8ecf5;
    font-size: 13px;
    line-height: 1.8;
    font-family: var(--font-mono);
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* 通用 pre/code 样式 - 为没有特定类包裹的代码块添加装饰条 */
pre {
    background: linear-gradient(135deg,
        rgba(26, 27, 38, 0.95) 0%,
        rgba(30, 33, 45, 0.92) 100%);
    border: 1px solid rgba(73, 177, 245, 0.28);
    border-left: 3px solid var(--accent-primary);
    border-right: 2px solid var(--accent-purple);
    border-radius: 10px;
    padding: 14px 18px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: auto;
    position: relative;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

pre::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 14px;
    bottom: 14px;
    width: 3px;
    background: linear-gradient(180deg,
        var(--accent-primary) 0%,
        var(--accent-purple) 50%,
        var(--accent-primary) 100%);
    border-radius: 2px;
    opacity: 0.85;
}

pre::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 14px;
    bottom: 14px;
    width: 3px;
    background: linear-gradient(180deg,
        var(--accent-purple) 0%,
        var(--accent-primary) 50%,
        var(--accent-purple) 100%);
    border-radius: 2px;
    opacity: 0.6;
}

pre code {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: #e8ecf5;
    font-size: 13px;
    line-height: 1.8;
    font-family: var(--font-mono);
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* 行内 code 元素不应用装饰条样式 */
:not(pre) > code {
    font-family: var(--font-mono);
    font-size: 13.5px;
    background: rgba(73, 177, 245, 0.12);
    color: var(--accent-primary);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(73, 177, 245, 0.2);
}

/* ============= 会员订阅页面 ============= */
.subscription-hero {
    padding: 80px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.subscription-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(73, 177, 245, 0.18), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.subscription-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.subscription-eyebrow {
    display: inline-block;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-primary);
    background: rgba(73, 177, 245, 0.1);
    border: 1px solid rgba(73, 177, 245, 0.3);
    border-radius: 999px;
    margin-bottom: 18px;
}

.subscription-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin: 0 0 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-purple, #a855f7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subscription-hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 30px;
}

.subscription-billing-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 5px;
    gap: 4px;
}

.billing-toggle-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.billing-toggle-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: #fff;
    box-shadow: 0 4px 12px rgba(73, 177, 245, 0.3);
}

.billing-toggle-btn.is-disabled,
.billing-toggle-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: var(--text-muted);
    background: transparent;
    box-shadow: none;
}

.billing-toggle-btn.is-disabled:hover,
.billing-toggle-btn:disabled:hover {
    background: transparent;
    color: var(--text-muted);
}

.billing-trial-btn {
    border: 1px solid rgba(73, 177, 245, 0.35);
    color: var(--accent-primary);
    background: rgba(73, 177, 245, 0.06);
}

.billing-trial-btn .save-badge {
    background: linear-gradient(135deg, #ff7a45, #ff5e3a);
    color: #fff;
    font-weight: 700;
}

.billing-trial-btn.active {
    background: linear-gradient(135deg, #ff7a45, #ff5e3a);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 94, 58, 0.35);
}

.save-badge {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
}

.subscription-plans {
    padding: 30px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    max-width: 880px;
    margin: 0 auto;
}

.plan-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 36px 28px 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.plan-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.plan-card.plan-featured {
    border-color: rgba(73, 177, 245, 0.5);
    background: linear-gradient(180deg, rgba(73, 177, 245, 0.06), var(--bg-card));
    box-shadow: 0 10px 30px rgba(73, 177, 245, 0.12);
}

.plan-flag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: #fff;
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(73, 177, 245, 0.35);
}

.plan-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.plan-tag-pro { color: var(--accent-primary); }
.plan-tag-enterprise { color: var(--accent-secondary); }

.plan-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.plan-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 24px;
    min-height: 20px;
}

.plan-price {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--border-color);
}

.plan-amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plan-cycle {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 6px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-features li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 26px;
    position: relative;
}

.plan-features li::before {
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.feature-yes::before {
    content: '✓';
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.feature-no {
    color: var(--text-muted);
    opacity: 0.7;
}

.feature-no::before {
    content: '×';
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
}

.plan-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.plan-cta.is-current {
    background: var(--bg-elevated, rgba(255, 255, 255, 0.06));
    color: var(--text-muted, #9ca3af);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    cursor: default;
    box-shadow: none;
    opacity: 0.9;
    pointer-events: auto;
}

.plan-cta.is-current:hover {
    background: var(--bg-elevated, rgba(255, 255, 255, 0.06));
    color: var(--text-muted, #9ca3af);
    transform: none;
}

.subscription-features {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.benefit-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px 24px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(73, 177, 245, 0.15), rgba(122, 192, 240, 0.15));
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.benefit-item h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.benefit-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
}

.subscription-faq {
    padding: 30px 20px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.25s ease;
}

.faq-item[open] {
    border-color: var(--border-hover);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    color: var(--accent-primary);
    font-weight: 700;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin: 12px 0 0;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 14px;
}

.subscription-cta {
    padding: 60px 20px 80px;
}

.cta-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, rgba(73, 177, 245, 0.12), rgba(122, 192, 240, 0.08));
    border: 1px solid rgba(73, 177, 245, 0.25);
    border-radius: 20px;
}

.cta-inner h2 {
    font-size: 1.8rem;
    margin: 0 0 10px;
    color: var(--text-primary);
}

.cta-inner p {
    margin: 0 0 28px;
    color: var(--text-secondary);
}

.cta-actions {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 900px) {
    .plans-grid { grid-template-columns: 1fr; max-width: 480px; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .subscription-hero h1 { font-size: 2rem; }
}

@media (max-width: 600px) {
    .benefits-grid { grid-template-columns: 1fr; }
}

/* ============================================================
 * GYhost 介绍页
 * ============================================================ */
.gh-hero {
    position: relative;
    margin-top: 68px;
    padding: 90px 40px 70px;
    /* 背景完全沿用 body 的 fixed 背景，Hero 不再叠加任何遮罩：
       既不会与下方区域产生拼接线，也不会在页面中间压出一大片黑区；
       文字可读性改由 text-shadow 保证，不牺牲背景观感 */
    background: transparent;
    overflow: hidden;
}

.gh-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(73, 177, 245, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(73, 177, 245, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000 0%, transparent 70%);
    pointer-events: none;
}

.gh-hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.gh-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 22px;
    border: 1px solid rgba(73, 177, 245, 0.45);
    border-radius: 999px;
    background: rgba(73, 177, 245, 0.12);
    color: var(--accent-primary);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gh-hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.75));
}

.gh-hero-sub {
    font-size: clamp(17px, 2.2vw, 23px);
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 14px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8), 0 0 34px rgba(0, 0, 0, 0.5);
}

.gh-hero-desc {
    max-width: 780px;
    margin: 0 auto 32px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.85;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75), 0 0 26px rgba(0, 0, 0, 0.45);
}

.gh-hero-desc code,
.gh-mod code,
.gh-note code,
.gh-card code {
    font-family: var(--font-mono);
    font-size: 0.92em;
    color: var(--accent-primary);
    background: rgba(73, 177, 245, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
}

.gh-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.gh-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.gh-badge {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(13, 15, 20, 0.5);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.gh-badge b {
    color: var(--accent-primary);
    font-weight: 600;
}

/* -------- 区块 -------- */
.gh-section {
    padding: 70px 40px;
    position: relative;
}

.gh-section-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.gh-section-head {
    text-align: center;
    margin-bottom: 44px;
}

.gh-section-head h2 {
    font-size: clamp(26px, 3.6vw, 38px);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.gh-section-head p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* -------- 卡片网格 -------- */
.gh-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gh-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gh-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 代码块等按内容高度排列，不被拉伸 */
.gh-grid-top {
    align-items: start;
}

.gh-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    transition: all 0.3s ease;
    height: 100%;
}

.gh-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.gh-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent-primary);
}

.gh-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.gh-card p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* -------- 模块分组 -------- */
.gh-group {
    margin-bottom: 34px;
}

.gh-group:last-child {
    margin-bottom: 0;
}

.gh-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    flex-wrap: wrap;
}

.gh-group-title .gh-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
    flex-shrink: 0;
}

.gh-group-title small {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.gh-mod-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gh-mod {
    background: rgba(25, 25, 30, 0.35);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-primary);
    border-radius: 12px;
    padding: 20px 22px;
    transition: all 0.3s ease;
}

.gh-mod:hover {
    background: rgba(30, 34, 52, 0.5);
    border-color: var(--border-hover);
    border-left-color: var(--accent-primary);
}

.gh-mod-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.gh-mod-name {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-primary);
    background: rgba(73, 177, 245, 0.12);
    padding: 3px 10px;
    border-radius: 6px;
}

.gh-mod-tag {
    font-size: 13px;
    color: var(--text-muted);
}

.gh-mod-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 12px;
}

.gh-mod ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gh-mod li {
    position: relative;
    padding-left: 16px;
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.85;
}

.gh-mod li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* -------- 代码块 -------- */
.gh-code {
    background: linear-gradient(135deg, rgba(18, 20, 25, 0.96) 0%, rgba(30, 33, 45, 0.92) 100%);
    border: 1px solid rgba(73, 177, 245, 0.22);
    border-radius: 14px;
    overflow: hidden;
}

.gh-code-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(13, 15, 20, 0.5);
}

.gh-code-head .dots {
    display: flex;
    gap: 6px;
}

.gh-code-head .dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.gh-code-head .title {
    font-size: 12.5px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.gh-code pre {
    margin: 0;
    padding: 18px 20px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.85;
    color: #c9d4e8;
}

.gh-code code {
    font-family: inherit;
}

.gh-code .cm {
    color: var(--text-muted);
}

/* -------- 表格 -------- */
.gh-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.gh-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 680px;
}

.gh-table th,
.gh-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.gh-table th {
    background: rgba(13, 15, 20, 0.5);
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 13.5px;
    white-space: nowrap;
}

.gh-table td {
    color: var(--text-secondary);
}

.gh-table tr:last-child td {
    border-bottom: none;
}

.gh-table code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-primary);
}

/* -------- 提示条 -------- */
.gh-note {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.25);
    font-size: 14px;
    color: #e3d5a6;
    line-height: 1.75;
}

.gh-note code {
    background: rgba(251, 191, 36, 0.12);
    color: var(--accent-warning);
}

/* -------- GY 系列卡片 -------- */
.series-section {
    padding: 80px 40px;
    position: relative;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: var(--container-max);
    margin: 40px auto 0;
}

.series-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.series-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
}

.series-active {
    border-color: var(--border-hover);
    background: linear-gradient(135deg, rgba(73, 177, 245, 0.14), rgba(157, 124, 216, 0.08));
}

.series-tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.series-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.series-card p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 14px;
}

.series-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
}

@media (max-width: 1200px) {
    .gh-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) {
    .gh-grid,
    .gh-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .gh-mod-grid {
        grid-template-columns: 1fr;
    }

    .series-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gh-hero {
        margin-top: 60px;
        padding: 60px 20px 50px;
    }

    .gh-section {
        padding: 50px 20px;
    }

    .gh-grid,
    .gh-grid-3,
    .gh-grid-2 {
        grid-template-columns: 1fr;
    }
}
