:root {
    --primary: #6c63ff;
    --primary-dark: #5752d4;
    --secondary: #00d4aa;
    --accent: #ff6b6b;
    --text: #e0e0e0;
    --text-light: #a0a0a0;
    --text-lighter: #7a7a7a;
    --bg: #121212;
    --bg-card: #1e1e1e;
    --bg-card-hover: #252525;
    --border: #333;
    --border-light: #444;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --sidebar-width: 280px;
    --header-height: 70px;

    /* 明亮模式变量 */
    --light-bg: #f8f9fa;
    --light-text: #212529;
    --light-text-light: #6c757d;
    --light-bg-card: #ffffff;
    --light-border: #dee2e6;
}

/* === 基础重置和通用样式 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

img {
    max-width: 100%;
}

body.light-mode {
    --bg: var(--light-bg);
    --text: var(--light-text);
    --text-light: var(--light-text-light);
    --bg-card: var(--light-bg-card);
    --border: var(--light-border);
    --bg-card-hover: #f8f9fa;
}

/* === 滚动条样式 === */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* === 动画定义 === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(108, 99, 255, 0.3);
    }

    50% {
        box-shadow: 0 2px 15px rgba(108, 99, 255, 0.6);
    }

    100% {
        box-shadow: 0 2px 8px rgba(108, 99, 255, 0.3);
    }
}


/* === 头部导航样式 === */
.header {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.light-mode .header {
    background: rgba(255, 255, 255, 0.95);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.light-mode .logo {
    color: var(--text-primary);
}

.light-mode .logo i {
    color: #fff;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-main {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-main a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}

.nav-main a:hover,
.nav-main a.active {
    color: var(--primary);
    background: rgba(108, 99, 255, 0.1);
}

/* === 移动端菜单切换按钮 === */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    position: relative;
}

.mobile-menu-toggle span:nth-child(1) {
    transform: translateY(0) rotate(0deg);
}

.mobile-menu-toggle span:nth-child(2) {
    opacity: 1;
    transform: scaleX(1);
}

.mobile-menu-toggle span:nth-child(3) {
    transform: translateY(0) rotate(0deg);
}

/* 激活状态动画 */
.mobile-menu-toggle.active {
    transform: rotate(180deg);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
    background: var(--primary);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
    background: var(--primary);
}

/* 悬停效果 */
.mobile-menu-toggle:hover span {
    background: var(--primary);
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.4);
}

.mobile-menu-toggle:hover span:nth-child(1) {
    transform: translateY(-1px);
}

.mobile-menu-toggle:hover span:nth-child(3) {
    transform: translateY(1px);
}

.mobile-menu-toggle.active:hover span {
    background: var(--primary-dark);
}

/* 点击涟漪效果 */
.mobile-menu-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:active::before {
    transform: translate(-50%, -50%) scale(1);
}

/* 明亮模式适配 */
.light-mode .mobile-menu-toggle span {
    background: var(--light-text);
}

.light-mode .mobile-menu-toggle:hover span {
    background: var(--primary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    /* 当菜单打开时，隐藏滚动条 */
    body.menu-open {
        overflow: hidden;
    }

    /* 移动端菜单容器 */
    .mobile-menu-container {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-card);
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        padding: 20px;
        border-top: 1px solid var(--border);
    }

    .mobile-menu-container.active {
        transform: translateX(0);
    }

    /* 移动端导航链接 */
    .mobile-nav-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-links li {
        margin-bottom: 8px;
    }

    .mobile-nav-links a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 20px;
        color: var(--text);
        text-decoration: none;
        border-radius: 12px;
        transition: all 0.3s ease;
        font-weight: 500;
        border: 1px solid transparent;
    }

    .mobile-nav-links a:hover,
    .mobile-nav-links a.active {
        background: rgba(108, 99, 255, 0.1);
        color: var(--primary);
        border-color: var(--primary);
        transform: translateX(8px);
    }

    .mobile-nav-links a i {
        width: 20px;
        text-align: center;
        font-size: 18px;
    }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
    .mobile-menu-toggle {
        width: 28px;
        height: 21px;
    }

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

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

    .mobile-menu-container {
        padding: 15px;
    }

    .mobile-nav-links a {
        padding: 14px 16px;
        font-size: 15px;
    }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .mobile-menu-toggle span {
        background: var(--text);
        height: 4px;
    }

    .mobile-menu-toggle.active span {
        background: var(--primary);
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {

    .mobile-menu-toggle,
    .mobile-menu-toggle span,
    .mobile-menu-container {
        transition: none;
    }

    .mobile-menu-toggle:hover span {
        transform: none;
    }
}

/* === 主布局 === */
.main-layout {
    display: flex;
    max-width: 1200px;
    margin: var(--header-height) auto 0;
    min-height: calc(100vh - var(--header-height));
}

/* === 侧边栏样式 === */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 30px 0;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 30px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-nav a i {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.3s;
    width: 18px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.sidebar-nav a:hover i,
.sidebar-nav a.active i {
    transform: scale(1.1);
    color: var(--primary);
}

.sidebar-nav a.active:before {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* === 内容区域样式 === */
.content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    /* max-height: calc(100vh - var(--header-height)); */
}

.doc-section {
    margin-bottom: 60px;
    display: none;
    animation: fadeIn 0.5s ease;
}

.doc-section.active {
    display: block;
}

/* === 通用组件样式 === */
.section-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.section-header h1 {
    font-size: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
}

h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: var(--text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

h3 {
    font-size: 22px;
    color: var(--text);
    font-weight: 600;
}

p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.7;
}

/* === 模块盒子样式 === */
.doc-box {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.doc-box:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

/* === 特性网格 === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px; 
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
}

/* === 代码块样式 === */
.code-block {
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.light-mode .code-block {
    background: #f8f9fa;
}

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

.light-mode .code-header {
    background: #e9ecef;
}

.code-filename {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: var(--text-light);
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.code-content {
    padding: 20px;
    overflow-x: auto;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
}

.light-mode .code-content {
    color: #212529;
}

.code-content .keyword {
    color: #ff79c6;
}

.code-content .string {
    color: #50fa7b;
}

.code-content .comment {
    color: #6272a4;
    font-style: italic;
}

.code-content .function {
    color: #8be9fd;
}

.code-content .variable {
    color: #f1fa8c;
}

.code-content .number {
    color: #bd93f9;
}

/* === 警告框样式 === */
.alert {
    padding: 24px;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid;
    border-left: 6px solid;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: -1;
}

.alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.alert-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.alert:hover .alert-icon {
    transform: scale(1.1);
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-message {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

.alert-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.alert-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.alert-btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.alert-btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.alert-btn-outline {
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
}

.alert-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* 警告类型样式 */
.alert-warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 152, 0, 0.05) 100%);
    border-color: var(--warning);
    color: var(--warning);
}

.alert-warning::before {
    background: var(--warning);
}

.alert-warning .alert-icon {
    background: rgba(255, 152, 0, 0.2);
    color: var(--warning);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15) 0%, rgba(244, 67, 54, 0.05) 100%);
    border-color: var(--error);
    color: var(--error);
}

.alert-danger p {
    margin: 0;
    color: var(--error);
}

.alert-danger::before {
    background: var(--error);
}

.alert-danger .alert-icon {
    background: rgba(244, 67, 54, 0.2);
    color: var(--error);
}

.alert-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.05) 100%);
    border-color: var(--success);
    color: var(--success);
}

.alert-success::before {
    background: var(--success);
}

.alert-success .alert-icon {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.alert-info {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15) 0%, rgba(108, 99, 255, 0.05) 100%);
    border-color: var(--primary);
    color: var(--primary);
}

.alert-info::before {
    background: var(--primary);
}

.alert-info .alert-icon {
    background: rgba(108, 99, 255, 0.2);
    color: var(--primary);
}

/* === 安装指南样式 === */
.env-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.env-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.env-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.env-title {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.env-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-right: 15px;
}

.step-list {
    list-style: none;
    counter-reset: step-counter;
}

.step-list li {
    counter-increment: step-counter;
    margin-bottom: 25px;
    padding-left: 50px;
    position: relative;
}

.step-list li:before {
    content: counter(step-counter);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    font-size: 16px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

/* 安装提示 */
.installation-tips {
    margin: 40px 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tip-item {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--primary);
}

.tip-item h4 {
    margin-bottom: 10px;
    color: var(--text);
}

.tip-item p {
    margin: 0;
    font-size: 14px;
}

/* 技术支持横幅 */
.tech-support-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    color: white;
}

.support-content h3 {
    color: white;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* === 使用说明样式 === */
.prerequisites {
    margin: 40px 0;
}

.prereq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.prereq-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.prereq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.prereq-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.prereq-icon {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.prereq-card h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text);
    font-size: 20px;
}

.prereq-card ul {
    list-style: none;
    padding: 0;
}

.prereq-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-light);
    position: relative;
    padding-left: 20px;
    text-align: left;
}

.prereq-card li:before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.prereq-card li:last-child {
    border-bottom: none;
}

/* === 版本信息样式 === */
.version-info {
    margin: 25px 0;
}

.version-badge {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.version-tag {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.version-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.version-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.5);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.version-tag:hover::before {
    left: 100%;
}

.version-tag:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(108, 99, 255, 0.4);
}

.version-tag a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.version-tag:hover a {
    gap: 8px;
}

.version-tag i {
    transition: transform 0.3s ease;
}

.version-tag:hover i {
    transform: scale(1.1);
}

.version-tag.pulse {
    animation: pulse 2s infinite;
}

.version-tag:hover.pulse {
    animation: none;
}

/* === 部署选择样式 === */
.deployment-options {
    margin: 50px 0;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.option-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.option-card.featured {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(108, 99, 255, 0.2);
}

.option-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.option-header h3 {
    margin: 0;
    font-size: 24px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
}

.option-features {
    margin-bottom: 25px;
}

.option-features ul {
    list-style: none;
    padding: 0;
}

.option-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-features li:last-child {
    border-bottom: none;
}

.option-action {
    text-align: center;
}

/* === 快速开始样式 === */
.quick-start {
    margin: 50px 0;
}

.quick-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.quick-step {
    text-align: center;
    padding: 25px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.quick-step:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step-content h4 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 18px;
}

.step-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

/* === 目录详情样式 === */
.directory-detail {
    padding: 30px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 20px 0;
}

.directory-detail h3 {
    margin-bottom: 25px;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.detail-card {
    background: rgba(108, 99, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

.detail-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.detail-card h4 {
    margin: 0 0 15px;
    color: var(--text);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-card p {
    margin: 0 0 15px;
    font-size: 14px;
    color: var(--text-light);
}

.detail-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-card li {
    padding: 5px 0;
    font-size: 13px;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-card li:last-child {
    border-bottom: none;
}

.detail-card code {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
}

/* === 后台模块样式 === */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.module-card {
    background: rgba(108, 99, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
    text-align: center;
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.module-icon {
    font-size: 32px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.module-card h4 {
    margin: 0 0 15px;
    color: var(--text);
    font-size: 16px;
}

.module-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-card li {
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.module-card li:last-child {
    border-bottom: none;
}

.module-card strong {
    color: var(--primary);
}

/* === 控制器表格样式 === */
.controller-detail {
    padding: 30px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 20px 0;
}

.controller-detail h3 {
    margin-bottom: 20px;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.controller-table-container {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.controller-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.controller-table th {
    background: rgba(108, 99, 255, 0.1);
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
}

.controller-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-light);
}

.controller-table tr:hover {
    background: rgba(108, 99, 255, 0.05);
}

.controller-table code {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

/* === 模板文件详情样式 === */
.template-files-detail {
    padding: 30px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 20px 0;
}

.template-files-detail h3 {
    margin-bottom: 20px;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.template-table-container {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.template-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.template-table th {
    background: rgba(108, 99, 255, 0.1);
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
}

.template-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-light);
}

.template-table tr:hover {
    background: rgba(108, 99, 255, 0.05);
}

.template-table code {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

/* === 静态资源样式 === */
.static-resources {
    padding: 30px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 20px 0;
}

.static-resources h3 {
    margin-bottom: 25px;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.resource-card {
    background: rgba(108, 99, 255, 0.05);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

.resource-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.resource-icon {
    font-size: 36px;
    margin-bottom: 15px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.resource-card h4 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 18px;
    text-align: center;
}

.resource-card p {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
}

.resource-files {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.3s;
}

.file-item:hover {
    background: rgba(108, 99, 255, 0.1);
    transform: translateX(5px);
}

.file-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.file-name {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: var(--primary);
    flex: 1;
}

.file-desc {
    font-size: 12px;
    color: var(--text-light);
}

/* === 框架详情样式 === */
.framework-detail {
    padding: 30px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 20px 0;
}

.framework-detail h3 {
    margin-bottom: 25px;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.framework-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(108, 99, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

.framework-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.framework-info {
    flex: 1;
}

.framework-info h4 {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.framework-info p {
    margin: 0 0 10px;
    color: var(--text-light);
    font-size: 14px;
}

.framework-features {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(108, 99, 255, 0.2);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.framework-desc {
    font-size: 13px !important;
    line-height: 1.5;
    margin: 0;
}

/* === 文件结构表格样式 === */
.file-structure {
    padding: 30px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 20px 0;
}

.file-structure h3 {
    margin-bottom: 20px;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.structure-table-container {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.structure-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.structure-table th {
    background: rgba(108, 99, 255, 0.1);
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
}

.structure-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-light);
}

.structure-table tr:hover {
    background: rgba(108, 99, 255, 0.05);
}

.structure-table code {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

/* === 标签库样式 === */
.tag-badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 0.8em;
    margin-right: 5px;
}

.tag-badge.sing {
    background: var(--success);
}

.tag-badge.lists {
    background: var(--warning);
}

.tag-example {
    background: rgba(108, 99, 255, 0.05);
    border-left: 4px solid var(--primary);
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 6px 6px 0;
}

/* === 版权声明样式 === */
.license-content {
    margin-top: 30px;
}

.license-overview {
    text-align: center;
    margin-bottom: 40px;
}

.license-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.license-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
}

.license-info h3 {
    margin: 0 0 5px;
    font-size: 28px;
    color: var(--text);
}

.license-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 16px;
}

.license-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.license-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.license-badge.free {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.license-badge.modify {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
    border: 1px solid #2196f3;
}

.license-badge.distribute {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.license-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 允许和禁止行为样式 */
.permissions-section,
.restrictions-section {
    margin: 50px 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid;
    font-size: 24px;
}

.section-title.allowed {
    color: var(--success);
    border-bottom-color: var(--success);
}

.section-title.restricted {
    color: var(--error);
    border-bottom-color: var(--error);
}

.permissions-grid,
.restrictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.permission-card,
.restriction-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    border: 2px solid;
    transition: all 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.permission-card {
    border-color: rgba(76, 175, 80, 0.3);
}

.restriction-card {
    border-color: rgba(244, 67, 54, 0.3);
}

.permission-card:hover,
.restriction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.permission-card:hover {
    border-color: var(--success);
}

.restriction-card:hover {
    border-color: var(--error);
}

.permission-icon,
.restriction-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.permission-icon {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

.restriction-icon {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error);
}

.permission-content h4,
.restriction-content h4 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--text);
}

.permission-content p,
.restriction-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

/* === 免责声明样式 === */
.disclaimer-section {
    margin-bottom: 2.5rem;
}

.disclaimer-section h3 {
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.disclaimer-section h3 i {
    margin-right: 10px;
    color: var(--primary);
}

.disclaimer-section p {
    margin-bottom: 1rem;
    text-align: justify;
}

.third-party {
    background: rgba(108, 99, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.third-party h4 {
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.third-party h4 i {
    margin-right: 10px;
    color: var(--primary);
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 1rem;
}

.tech-item {
    background: var(--bg-card);
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.tech-item i {
    margin-right: 8px;
    color: var(--primary);
}

/* === 后台截图样式 === */
.backend-screenshots {
    margin: 40px 0;
}

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

.screenshot-item {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.screenshot-img {
    overflow: hidden;
    cursor: pointer;
    height: 240px;
    position: relative;
}

.screenshot-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: all 5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    cursor: zoom-in;
}

.screenshot-img:hover img {
    transform: translateY(calc(-100% + 200px));
}

.screenshot-info {
    padding: 15px;
}

.screenshot-info h4 {
    margin-bottom: 5px;
}

.screenshot-info p {
    margin: 0;
    font-size: 14px;
}

/* === 演示站点样式 === */
.demo-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.demo-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.demo-content {
    display: none;
}

.demo-content.active {
    display: block;
}

/* 访问卡片样式 */
.demo-access {
    margin: 50px 0 30px;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.access-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(108, 99, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
    text-align: center;
}

.access-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.access-icon {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.access-card h3 {
    margin: 0 0 15px;
    color: var(--text);
    font-size: 20px;
}

.access-card p {
    margin: 0 0 20px;
    color: var(--text-light);
    font-size: 14px;
}

.qrcode {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: white;
    padding: 10px;
    border-radius: 8px;
}

.qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 凭证信息样式 */
.demo-credentials {
    background: rgba(108, 99, 255, 0.05);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--border-light);
}

.demo-credentials h4 {
    margin: 0 0 15px;
    color: var(--text);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.credentials-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.credential-item strong {
    color: var(--text);
    min-width: 120px;
}

.credential-item code {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
}

/* === 目录截图样式 === */
.dir-screenshot {
    overflow: hidden;
    transition: all 0.3s;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid var(--border);
}

.dir-screenshot:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.dir-screenshot img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
    cursor: zoom-in;
}

/* === 右侧浮动按钮 === */
.floating-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.floating-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: none;
    position: relative;
    overflow: hidden;
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    border-radius: 50%;
}

.floating-btn i {
    position: relative;
    z-index: 2;
}

/* 主题切换按钮 */
.theme-toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.theme-toggle-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* 技术支持按钮 */
.floating-btn.support {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.floating-btn.support:hover {
    background: linear-gradient(135deg, #3a9bf5 0%, #00d9e6 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(79, 172, 254, 0.3);
}

/* 捐赠按钮 */
.floating-btn.donate {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.floating-btn.donate:hover {
    background: linear-gradient(135deg, #e084f0 0%, #e04c62 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(240, 147, 251, 0.3);
}

/* 返回顶部按钮 */
.floating-btn.to-top {
    background: linear-gradient(135deg, #13baa9 0%, #00c9ff 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.floating-btn.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-btn.to-top:hover {
    background: linear-gradient(135deg, #10a797 0%, #00b8e6 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(19, 186, 169, 0.3);
}

/* 夜间模式适配 */
body.light-mode .floating-btn {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

body.light-mode .floating-btn.theme-toggle-btn {
    background: linear-gradient(135deg, #7c90ff 0%, #8a5bc4 100%);
}

body.light-mode .floating-btn.support {
    background: linear-gradient(135deg, #6bb5ff 0%, #2defff 100%);
}

body.light-mode .floating-btn.donate {
    background: linear-gradient(135deg, #ffa6e6 0%, #ff7b8d 100%);
}

body.light-mode .floating-btn.to-top {
    background: linear-gradient(135deg, #2bd4c4 0%, #4ae1ff 100%);
}

/* 按钮悬停动画增强 */
.floating-btn:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* 按钮点击效果 */
.floating-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 按钮顺序调整 */
.floating-buttons .floating-btn:nth-child(1) {
    order: 1;
}

/* 主题切换 */
.floating-buttons .floating-btn:nth-child(2) {
    order: 2;
}

/* 技术支持 */
.floating-buttons .floating-btn:nth-child(3) {
    order: 3;
}

/* 捐赠 */
.floating-buttons .floating-btn:nth-child(4) {
    order: 4;
}

/* 返回顶部 */
/* === 弹窗样式 === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-header {
    padding: 20px 30px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border-radius: 16px 16px 0 0;
    position: sticky;
    /* 改为粘性定位 */
    top: 0;
    /* 固定在顶部 */
    z-index: 101;
    /* 确保在内容之上 */
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title i {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-btn {
    background: rgba(108, 99, 255, 0.1);
    border: none;
    color: var(--text-light);
    font-size: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    /* 恢复默认定位 */
}

.close-btn:hover {
    background: rgba(108, 99, 255, 0.2);
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    width: auto;
    max-width: 90vw;
    min-width: 300px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    animation: slideUp 0.4s ease;
    position: relative;
    margin: 20px;
}

.modal-body {
    padding: 30px;
}


.service-intro {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05) 0%, rgba(255, 101, 132, 0.05) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.service-intro h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.service-intro p {
    color: var(--text-light);
    line-height: 1.6;
}

.service-list {
    margin-top: 30px;
}

.service-list h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(108, 99, 255, 0.03);
    border-radius: 10px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.service-item:hover {
    background: rgba(108, 99, 255, 0.08);
    border-left-color: var(--primary);
    transform: translateX(5px);
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    font-size: 18px;
}

.service-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text);
}

.service-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.contact-section {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05) 0%, rgba(255, 101, 132, 0.05) 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-top: 25px;
    border: 1px dashed var(--primary);
}

.contact-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.qr-code {
    width: 180px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
 
/* 特性网格布局 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.feature-icon.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.feature-icon.success {
    background: linear-gradient(135deg, var(--success) 0%, #2e7d32 100%);
}

.feature-icon.warning {
    background: linear-gradient(135deg, var(--warning) 0%, #ef6c00 100%);
}

.feature-icon.danger {
    background: linear-gradient(135deg, var(--error) 0%, #c62828 100%);
}

.feature-card h3 {
    margin: 0.5rem 0;
    color: var(--text);
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* 设计理念样式 */
.philosophy-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.philosophy-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.philosophy-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.philosophy-item h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.philosophy-item h3 i {
    color: var(--primary);
    width: 24px;
    text-align: center;
}

.philosophy-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    padding-left: 2.5rem;
}

/* 架构特点样式 */
.architecture-layers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.layer {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
}

.layer:nth-child(1)::before {
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.layer:nth-child(2)::before {
    background: linear-gradient(to bottom, var(--success), #2e7d32);
}

.layer:nth-child(3)::before {
    background: linear-gradient(to bottom, var(--warning), #ef6c00);
}

.layer h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.layer h4 i {
    color: var(--primary);
}

.layer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.layer li {
    padding: 0.4rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.layer li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* 多应用模式 */
.multi-app {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.app-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.app-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.app-item h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.app-item h4 i {
    color: var(--primary);
}

.app-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* 技术优势样式 */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.advantage-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.advantage-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.advantage-header i {
    font-size: 1.5rem;
}

.advantage-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.advantage-body {
    padding: 1.5rem;
}

.advantage-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advantage-body li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
}

.advantage-body li:last-child {
    border-bottom: none;
}

.advantage-body strong {
    color: var(--text);
    font-weight: 600;
}

/* 应用场景样式 */
.scenario-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.category h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.category h3 i {
    color: var(--primary);
}

.category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category li {
    padding: 0.35rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.category li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.2rem;
    line-height: 1;
}

/* 获取方式样式 */
.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.download-option {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.download-option:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.2);
    transform: translateY(-3px);
}

.option-header {
    margin-bottom: 1rem;
}

.option-header i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.option-header h3 {
    margin: 0.5rem 0;
    color: var(--text);
    font-size: 1.25rem;
}

.option-body {
    margin-top: 1rem;
}

.option-body p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.text-muted {
    color: var(--text-lighter) !important;
    font-style: italic;
    font-size: 0.9rem;
}

/* 系统对比表格样式 */
.comparison-table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-card);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th {
    background: rgba(108, 99, 255, 0.1);
    color: var(--text);
    font-weight: 600;
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 2px solid var(--primary);
}

.comparison-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 0.95rem;
}

.comparison-table tr:hover {
    background: rgba(108, 99, 255, 0.05);
}

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

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge.success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.badge.warning {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

/* 核心优势总结样式 */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.summary-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
    font-size: 1.25rem;
}

.summary-card h3 i {
    color: var(--primary);
}

.summary-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-card li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.summary-card li i {
    color: var(--success);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* 开始使用横幅样式 */
.get-started-banner {
    margin: 2.5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    padding: 2.5rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.get-started-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.get-started-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: white;
}

.banner-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.banner-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.banner-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
}

.banner-actions .btn:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .features-grid,
    .architecture-layers,
    .advantage-grid,
    .scenario-categories,
    .download-options,
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .comparison-table-container {
        margin: 1rem -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .get-started-banner {
        padding: 1.5rem;
        margin: 1.5rem -1rem;
        border-radius: 0;
    }
    
    .banner-content h3 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .banner-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .banner-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .philosophy-item p {
        padding-left: 1.5rem;
    }
}

/* 明亮主题适配 */
body.light-mode .feature-card,
body.light-mode .philosophy-content,
body.light-mode .layer,
body.light-mode .app-item,
body.light-mode .advantage-card,
body.light-mode .category,
body.light-mode .download-option,
body.light-mode .comparison-table-container,
body.light-mode .summary-card {
    background: var(--light-bg-card);
    border-color: var(--light-border);
}

body.light-mode .comparison-table th {
    background: rgba(108, 99, 255, 0.08);
    border-color: var(--light-border);
}

body.light-mode .comparison-table td {
    border-color: var(--light-border);
}

body.light-mode .comparison-table tr:hover {
    background: rgba(108, 99, 255, 0.05);
}

body.light-mode .philosophy-item {
    border-color: var(--light-border);
}

body.light-mode .advantage-body li {
    border-color: var(--light-border);
}

body.light-mode .badge.success {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
}

body.light-mode .badge.warning {
    background: rgba(255, 152, 0, 0.15);
    border-color: rgba(255, 152, 0, 0.3);
}

body.light-mode .text-muted {
    color: var(--light-text-light) !important;
}
 

.feature-card,
.philosophy-item,
.layer,
.app-item,
.advantage-card,
.category,
.download-option,
.summary-card {
    animation: slideUp 0.4s ease-out;
}

/* 延迟动画 */
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.3s; }

.philosophy-item:nth-child(2) { animation-delay: 0.1s; }
.philosophy-item:nth-child(3) { animation-delay: 0.2s; }

.layer:nth-child(2) { animation-delay: 0.1s; }
.layer:nth-child(3) { animation-delay: 0.2s; }

.advantage-card:nth-child(2) { animation-delay: 0.1s; }
.advantage-card:nth-child(3) { animation-delay: 0.2s; }

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .feature-card,
    .advantage-card,
    .summary-card {
        border-width: 2px;
    }
    
    .comparison-table th,
    .comparison-table td {
        border-width: 2px;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .philosophy-item,
    .layer,
    .app-item,
    .advantage-card,
    .category,
    .download-option,
    .summary-card {
        animation: none;
        transition: none;
    }
    
    .banner-actions .btn:hover {
        transform: none;
    }
}
/* === 响应式设计 === */
@media (max-width: 992px) {
    .nav-main {
        display: none;
    }

    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        top: 40px;
        display: none;
        z-index: 999;
    }

    .sidebar.active {
        display: block;
    }

    .content {
        max-height: none;
    }

    .env-container {
        grid-template-columns: 1fr;
    }

    .floating-buttons {
        right: 20px;
        bottom: 20px;
    }


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

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

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

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

@media (max-width: 992px) {
    .header-container {
        flex-direction: row;
        height: auto;
        padding: 15px 20px;
    }

    .nav-main {
        display: none;
    }


    .mobile-menu-toggle {
        display: flex;
    }

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

    .content {
        padding: 20px 20px;
    }

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

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

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: column;
    }

    .sidebar-nav li {
        margin: 0;
    }

    .sidebar-nav a {
        border-left: none;
        border-bottom: 1px solid var(--border-light);
        padding: 20px;
    }

    .sidebar-nav a.active {
        border-left: none;
        border-bottom: 3px solid var(--primary);
    }

    .version-badge {
        justify-content: center;
    }

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

    .access-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .demo-access {
        padding: 30px 20px;
    }

    .credentials-info {
        gap: 8px;
    }

    .credential-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .credential-item strong {
        min-width: auto;
    }

    .controller-table th,
    .controller-table td {
        padding: 10px 15px;
        font-size: 14px;
    }

    .controller-table th:nth-child(3),
    .controller-table td:nth-child(3) {
        display: none;
    }

    .template-table th,
    .template-table td {
        padding: 10px 15px;
        font-size: 14px;
    }

    .template-table th:nth-child(3),
    .template-table td:nth-child(3) {
        display: none;
    }

    .structure-table th,
    .structure-table td {
        padding: 10px 15px;
        font-size: 14px;
    }

    .structure-table th:nth-child(4),
    .structure-table td:nth-child(4) {
        display: none;
    }
}

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

    .option-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .demo-img {
        height: 180px;
    }

    .access-card {
        padding: 25px 15px;
    }

    .qrcode {
        width: 100px;
        height: 100px;
    }

    .controller-table th,
    .controller-table td {
        padding: 8px 12px;
        font-size: 13px;
    }

    .controller-table th:nth-child(2),
    .controller-table td:nth-child(2) {
        display: none;
    }

    .template-table th,
    .template-table td {
        padding: 8px 12px;
        font-size: 13px;
    }

    .template-table th:nth-child(2),
    .template-table td:nth-child(2) {
        display: none;
    }

    .structure-table th,
    .structure-table td {
        padding: 8px 12px;
        font-size: 13px;
    }

    .structure-table th:nth-child(3),
    .structure-table td:nth-child(3) {
        display: none;
    }

    .directory-detail,
    .backend-modules,
    .controller-detail,
    .template-files-detail,
    .static-resources,
    .framework-detail,
    .file-structure {
        padding: 20px;
    }

    .resource-card {
        padding: 20px;
    }

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

    .modal-content {
        max-width: 95%;
    }

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

    .modal-body {
        padding: 20px;
    }

    .service-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .service-icon {
        align-self: center;
    }
}