/* ===== 响应式样式 - 优化版 ===== */

/* 平板设备 */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .navbar-menu {
        gap: 0.5rem;
    }
    
    .navbar-menu a {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }
}

/* 移动设备 */
@media (max-width: 768px) {
    /* 导航栏 */
    .navbar-container {
        height: 60px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        height: 28px;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.25rem;
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-menu li {
        width: 100%;
    }
    
    .navbar-menu a {
        display: block;
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    /* 容器 */
    .container {
        padding: 0 1rem;
    }
    
    /* 按钮 */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* 返回顶部 */
    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 3rem;
        height: 3rem;
    }
    
    .back-to-top svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    /* 统计数据 */
    .stat-item {
        padding: 1.75rem 1.25rem;
    }
    
    .stat-icon {
        font-size: 2.25rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    /* 特性卡片 */
    .feature-card {
        padding: 1.75rem;
    }
    
    .feature-icon {
        font-size: 2.25rem;
    }
    
    .feature-card h3 {
        font-size: 1.0625rem;
    }
    
    .feature-card p {
        font-size: 0.875rem;
    }
    
    /* 文档卡片 */
    .docs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .doc-card {
        padding: 1.75rem;
    }
    
    /* 分类卡片 */
    .category-card {
        padding: 1.75rem;
    }
    
    /* 步骤卡片 */
    .step-card {
        padding: 2rem 1.5rem;
    }
    
    /* 页脚 */
    .site-footer {
        padding: 2.5rem 1rem 1.5rem;
    }
    
    .footer-content .copyright {
        font-size: 0.8125rem;
    }
}

/* 小屏幕移动设备 */
@media (max-width: 480px) {
    /* 英雄区 */
    .hero {
        padding: 3rem 0 2.5rem;
    }
    
    .hero h1 {
        font-size: 1.875rem;
    }
    
    .hero .subtitle {
        font-size: 1.0625rem;
        margin-bottom: 2rem;
    }
    
    .hero-actions {
        gap: 0.875rem;
    }
    
    /* 区块标题 */
    .features h2,
    .about-content h2 {
        font-size: 1.875rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    /* 卡片 */
    .feature-card h3,
    .step-card h3,
    .category-card h3 {
        font-size: 1rem;
    }
    
    /* 统计数据 */
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.875rem;
    }
    
    .stat-label {
        font-size: 0.8125rem;
    }
    
    /* 返回顶部 */
    .back-to-top {
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .hero-actions,
    .back-to-top,
    .theme-toggle {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        background: none !important;
        color: black;
        padding: 2rem 0;
    }
    
    .hero h1,
    .hero .subtitle {
        color: black;
    }
    
    .stat-number {
        background: none !important;
        -webkit-text-fill-color: black;
        color: black;
    }
}
