/* OpenClaw 中文指南 - 样式表 */

/* CSS 变量 */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.3s ease;
    /* 响应式变量 */
    --container-padding: 1.5rem;
    --section-padding: 5rem;
    --h1-size: 3.5rem;
    --h2-size: 2.25rem;
}

/* 重置样式 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* 防止水平溢出 */
html, body {
    overflow-x: hidden;
}

/* 图片自适应 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 触摸目标优化 */
a, button {
    min-height: 44px;
    min-width: 44px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* 头部 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    height: auto;
    min-height: 60px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary-color);
}

.nav a.external-link {
    color: var(--primary-color);
}

.nav a.external-link:hover {
    text-decoration: underline;
}

/* 主要区域 */
main {
    padding-top: 4rem;
}

/* Hero 区域 */
.hero {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero h1 {
    font-size: var(--h1-size);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.hero-features .feature {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-features .feature-icon {
    font-size: 1.125rem;
}

/* 章节通用样式 */
.section {
    padding: var(--section-padding) 0;
    width: 100%;
    overflow: hidden;
}

.section h2 {
    font-size: var(--h2-size);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    padding: 0 1rem;
}

/* 支持的平台 */
.platforms-section {
    background: var(--bg-primary);
}

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

.platform-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

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

.platform-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.platform-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.platform-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* 快速开始 */
.getting-started-section {
    background: var(--bg-secondary);
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.step-number {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.step-content ul {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.step-content li {
    margin-bottom: 0.25rem;
}

.step-content pre {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 1rem;
    overflow-x: auto;
    margin: 0.75rem 0;
}

.step-content code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    color: var(--primary-dark);
}

.note {
    font-size: 0.875rem;
    color: var(--accent-color);
    font-style: italic;
}

/* 安装指南 */
.installation-section {
    background: var(--bg-primary);
}

.installation-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.method {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.method h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.method pre {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 1rem;
    overflow-x: auto;
}

.method code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    color: var(--primary-dark);
}

.requirements, .daemon-install {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
}

.requirements h3, .daemon-install h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.requirements ul {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.requirements li {
    margin-bottom: 0.5rem;
}

.daemon-install pre {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 1rem;
    overflow-x: auto;
    margin: 0.75rem 0;
}

.daemon-install code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    color: var(--primary-dark);
}

/* 配置指南 */
.configuration-section {
    background: var(--bg-secondary);
}

.config-content {
    display: grid;
    gap: 2rem;
}

.config-file h3, .config-example h3, .config-commands h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.config-file, .config-example, .config-commands {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.config-file p {
    color: var(--text-secondary);
}

.config-example pre, .config-commands pre {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 1rem;
    overflow-x: auto;
}

.config-example code, .config-commands code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    color: var(--primary-dark);
}

/* 架构 */
.architecture-section {
    background: var(--bg-primary);
}

.architecture-diagram {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

.arch-layer {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 0.5rem;
}

.arch-layer.gateway {
    background: linear-gradient(135deg, var(--secondary-color), #059669);
}

.arch-layer h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.arch-layer p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.arch-items {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.arch-items span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

.arch-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0.25rem 0;
}

.network-model {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.network-model h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.network-model ul {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.network-model li {
    margin-bottom: 0.5rem;
}

/* 频道详情 */
.channels-section {
    background: var(--bg-secondary);
}

.channel-details {
    display: grid;
    gap: 2rem;
}

.channel-detail {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.channel-detail h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.channel-detail p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.channel-detail ol {
    margin-left: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.channel-detail li {
    margin-bottom: 0.25rem;
}

.channel-detail pre {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 1rem;
    overflow-x: auto;
    margin: 0.75rem 0;
}

.channel-detail code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    color: var(--primary-dark);
}

/* 高级功能 */
.features-section {
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.feature-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* 安全配置 */
.security-section {
    background: var(--bg-secondary);
}

.security-content {
    display: grid;
    gap: 2rem;
}

.security-audit, .dm-policy, .group-policy, .security-best-practices {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.security-audit h3, .dm-policy h3, .group-policy h3, .security-best-practices h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.security-audit pre, .dm-policy pre, .group-policy pre {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 1rem;
    overflow-x: auto;
    margin: 0.75rem 0;
}

.security-audit code, .dm-policy code, .group-policy code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    color: var(--primary-dark);
}

.security-audit ul, .dm-policy ul, .security-best-practices ul, .security-best-practices ol {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.security-audit li, .dm-policy li, .security-best-practices li {
    margin-bottom: 0.5rem;
}

.security-best-practices ol {
    margin-left: 1.5rem;
}

/* 故障排除 */
.troubleshooting-section {
    background: var(--bg-primary);
}

.troubleshooting-content {
    max-width: 800px;
    margin: 0 auto;
}

.troubles {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.troubles h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.trouble-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.trouble-item:last-child {
    margin-bottom: 0;
}

.trouble-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.trouble-item p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.trouble-item pre {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    overflow-x: auto;
}

.trouble-item code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.8125rem;
    color: var(--primary-dark);
}

/* CLI 参考 */
.cli-section {
    background: var(--bg-secondary);
}

.cli-commands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.cli-group {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.cli-group h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cli-group pre {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 1rem;
    overflow-x: auto;
}

.cli-group code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.8125rem;
    color: var(--primary-dark);
}

/* 页脚 */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-light);
}

.copyright {
    font-size: 0.875rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        font-size: 1.75rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav a {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 768px) {
    .header {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
    }
    
    .header-content {
        flex-wrap: wrap;
        padding: 0.625rem 0;
        gap: 0;
    }
    
    .logo {
        flex: 1;
        min-width: 0;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .logo-text {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }
    
    /* 移动端导航 */
    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        border-top: 1px solid var(--border-color);
        margin-top: 0.5rem;
        order: 3;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
        text-align: left;
        border-radius: var(--radius-sm);
        margin: 0.125rem 0;
    }
    
    .nav a:hover {
        background: var(--bg-secondary);
    }
    
    /* 汉堡菜单 - 移动端显示 */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.625rem;
        border-radius: 6px;
        transition: background 0.2s;
    }
    
    .menu-toggle:hover {
        background: rgba(0,0,0,0.05);
    }
    
    .menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: #1f2937;
        margin: 2.5px 0;
        border-radius: 1px;
        transition: all 0.25s ease;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
    
    /* Hero 区域 */
        padding: 5rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9375rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        max-width: 240px;
        justify-content: center;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .hero-features .feature {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
        gap: 0.375rem;
    }
    
    .hero-features .feature-icon {
        font-size: 1rem;
    }
    
    .feature {
        font-size: 0.875rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 0.9375rem;
    }
    
    .platforms-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    
    .step {
        flex-direction: column;
        padding: 1.25rem;
    }
    
    .step-number {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.875rem;
        flex-shrink: 0;
    }
    
    .arch-layer {
        padding: 1rem;
    }
    
    .arch-items {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .arch-items span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.875rem;
    }
    
    .logo-text {
        font-size: 0.9375rem;
        max-width: 140px;
    }
    
    .logo-icon {
        font-size: 1.375rem;
    }
    
    .hero {
        padding: 4rem 0 2.5rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
    }
    
    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.375rem;
    }
    
    .hero-features .feature {
        font-size: 0.75rem;
        padding: 0.25rem 0.625rem;
    }
    
    .hero-features .feature-icon {
        font-size: 0.875rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section h2 {
        font-size: 1.375rem;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
    }
    
    .installation-methods {
        grid-template-columns: 1fr;
    }
    
    .cli-commands {
        grid-template-columns: 1fr;
    }
    
    .platform-card,
    .method,
    .feature-item,
    .channel-detail,
    .cli-group {
        padding: 1rem;
    }
    
    .step-content {
        padding: 0;
    }
    
    pre {
        padding: 0.75rem;
        font-size: 0.8125rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* 代码高亮 */
pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1rem 0;
}

pre code {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #e2e8f0;
}

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

.hero-content > * {
    animation: fadeIn 0.6s ease-out;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

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

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ==================== 完整移动端响应式优化 ==================== */

/* 移动端基础优化 */
@media (max-width: 768px) {
    /* 整体布局 */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }
    
    /* Header 优化 */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    
    .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 0;
        min-height: 56px;
    }
    
    .logo {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        text-decoration: none;
        flex-shrink: 0;
    }
    
    .logo-icon {
        font-size: 1.5rem;
        line-height: 1;
    }
    
    .logo-text {
        font-size: 1rem;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 140px;
    }
    
    /* 汉堡菜单 */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.625rem;
        border-radius: 6px;
        transition: background 0.2s;
        flex-shrink: 0;
    }
    
    .menu-toggle:hover {
        background: rgba(0,0,0,0.05);
    }
    
    .menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: #1f2937;
        margin: 2.5px 0;
        border-radius: 1px;
        transition: all 0.25s ease;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
    
    /* 导航菜单 */
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 0.5rem;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        display: flex;
        align-items: center;
        padding: 0.875rem 1rem;
        font-size: 1rem;
        color: #374151;
        text-decoration: none;
        border-radius: 6px;
        transition: all 0.2s;
        min-height: 48px;
    }
    
    .nav a:hover {
        background: #f3f4f6;
        color: #6366f1;
    }
    
    /* Hero 区域 */
    .hero {
        padding: 5rem 0 3rem;
        min-height: auto;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.0625rem;
        line-height: 1.4;
        margin-bottom: 0.625rem;
    }
    
    .hero-description {
        font-size: 0.9375rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.625rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 260px;
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .hero-features .feature {
        font-size: 0.875rem;
    }
    
    /* Section 通用 */
    .section {
        padding: 3rem 0;
    }
    
    .section h2 {
        font-size: 1.625rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .section-description {
        font-size: 0.9375rem;
        line-height: 1.5;
        margin-bottom: 1.75rem;
        padding: 0 1rem;
    }
    
    /* 卡片网格 */
    .platforms-grid,
    .features-grid,
    .installation-methods,
    .cli-commands {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* 卡片 */
    .platform-card,
    .method,
    .feature-item,
    .channel-detail,
    .cli-group,
    .config-file,
    .config-example,
    .config-commands,
    .security-audit,
    .dm-policy,
    .group-policy,
    .security-best-practices {
        padding: 1.25rem 1rem;
    }
    
    /* 步骤 */
    .step {
        flex-direction: column;
        padding: 1.25rem 1rem;
        gap: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .step-number {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.9375rem;
        flex-shrink: 0;
    }
    
    .step-content h3 {
        font-size: 1.0625rem;
    }
    
    /* 架构图 */
    .architecture-diagram {
        padding: 0 0.25rem;
    }
    
    .arch-layer {
        padding: 1rem 0.75rem;
    }
    
    .arch-layer h4 {
        font-size: 0.9375rem;
    }
    
    .arch-layer p {
        font-size: 0.8125rem;
    }
    
    .arch-items {
        gap: 0.375rem;
    }
    
    .arch-items span {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }
    
    .arch-arrow {
        font-size: 1rem;
    }
    
    .network-model {
        padding: 1.25rem 1rem;
    }
    
    /* 列表 */
    .step-content ul,
    .channel-detail ol,
    .channel-detail ul,
    .network-model ul,
    .requirements ul,
    .security-audit ul,
    .dm-policy ul,
    .security-best-practices ul {
        padding-left: 1.25rem;
        margin: 0.5rem 0;
    }
    
    .step-content li,
    .channel-detail li,
    .network-model li,
    .requirements li,
    .security-audit li,
    .dm-policy li,
    .security-best-practices li {
        font-size: 0.9375rem;
        margin-bottom: 0.375rem;
    }
    
    /* 代码块 */
    pre {
        padding: 0.875rem;
        font-size: 0.8125rem;
        border-radius: 6px;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        white-space: pre;
        word-wrap: normal;
    }
    
    /* 故障排除 */
    .troubles {
        padding: 1.5rem 1rem;
    }
    
    .trouble-item {
        padding: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1.25rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 0 0.5rem;
    }
    
    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section li {
        margin-bottom: 0.375rem;
    }
    
    .footer-section a {
        display: inline-block;
        padding: 0.5rem;
    }
    
    .footer-bottom {
        padding-top: 1.25rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .container {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }
    
    .hero {
        padding: 4.5rem 0 2.5rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
    }
    
    .hero-buttons .btn {
        max-width: 100%;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 0.875rem;
    }
    
    .platform-card h3,
    .method h3,
    .feature-item h3 {
        font-size: 1rem;
    }
    
    .platform-card p,
    .method p,
    .feature-item p {
        font-size: 0.875rem;
    }
    
    .step {
        padding: 1rem 0.875rem;
    }
    
    .step-content h3 {
        font-size: 1rem;
    }
    
    pre {
        padding: 0.75rem;
        font-size: 0.75rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
}

/* 平板横屏优化 */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        padding: 4rem 0 2.5rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .platforms-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}
