/* ============================================
   响应式设计 - 平板设备
   ============================================ */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
        padding: 3rem 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .nav-card {
        min-height: auto;
    }

    .preview-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-item {
        grid-template-columns: 100px 1fr;
    }

    .marker-year {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

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

/* ============================================
   响应式设计 - 手机设���
   ============================================ */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
    }

    .nav-container {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

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

    /* 首页 */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    /* 导航卡片 */
    .grid-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* 页面标题 */
    .page-header {
        padding: 2rem 1.5rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    /* 内容 */
    .content-wrapper {
        padding: 1.5rem 1rem;
    }

    .content-wrapper h2 {
        font-size: 1.5rem;
    }

    .content-wrapper h3 {
        font-size: 1.1rem;
    }

    /* 表格 */
    .comparison-table th,
    .comparison-table td {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }

    /* 时间线 */
    .timeline-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }

    .timeline-item.reverse {
        grid-template-columns: 1fr 80px;
    }

    .timeline-marker::after {
        height: calc(100% + 1rem);
    }

    .marker-year {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    /* 图库 */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .image-wrapper {
        height: 200px;
    }

    /* 统计 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* 预览卡片 */
    .preview-card {
        padding: 1.5rem 1rem;
    }

    .preview-image .image-placeholder {
        height: 200px;
    }

    /* 导航按钮 */
    .navigation-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .navigation-buttons .btn {
        width: 100%;
    }

    /* 表单 */
    .story-form {
        padding: 1.5rem 1rem;
    }

    .story-header {
        flex-direction: column;
    }

    .story-meta {
        flex-direction: column;
        gap: 0.3rem;
    }

    /* 页脚 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-grid {
        padding: 0 1rem;
    }

    .feature-preview {
        padding: 0 1rem;
    }

    .statistics {
        padding: 2rem 1rem;
        margin: 2rem 1rem;
    }
}

/* ============================================
   响应式设计 - 小手机
   ============================================ */

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .nav-container {
        padding: 0.6rem 0.8rem;
    }

    .logo {
        font-size: 1rem;
    }

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

    /* 首页 */
    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header .page-subtitle {
        font-size: 0.9rem;
    }

    .content-wrapper h2 {
        font-size: 1.3rem;
        padding-left: 0.8rem;
    }

    .content-wrapper h3 {
        font-size: 1rem;
    }

    .content-wrapper p {
        font-size: 0.95rem;
    }

    .timeline-item {
        grid-template-columns: 70px 1fr;
        gap: 0.8rem;
    }

    .marker-year {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .timeline-content {
        padding: 0.8rem;
    }

    .timeline-content h3 {
        font-size: 1rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

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

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

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

    .image-wrapper {
        height: 250px;
    }

    .story-card {
        padding: 1rem;
    }

    .story-title {
        font-size: 1rem;
    }

    .story-content {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }

    .feature-box {
        padding: 1rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* 防止iOS缩放 */
    }

    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }
}

/* ============================================
   特殊设备优化
   ============================================ */

@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: auto;
        padding: 2rem;
    }

    .page-header {
        padding: 1.5rem;
    }
}

/* ============================================
   打印样式
   ============================================ */

@media print {
    .header,
    .footer,
    .navigation-buttons,
    .filter-container,
    .load-more {
        display: none;
    }

    .content-wrapper {
        padding: 0;
    }

    a {
        text-decoration: underline;
    }

    .page-break {
        page-break-after: always;
    }
}



img.image-auto-fit {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
