/* 响应式样式补充 */

/* 平板设备 (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        padding: 0 40px;
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 大屏幕设备 (1024px以上) */
@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .container {
        padding: 0 40px;
    }
}

/* 打印样式 */
@media print {
    .site-header,
    .site-footer,
    .cta-button,
    .social-icons,
    .menu-toggle {
        display: none !important;
    }
    
    body {
        background-color: white !important;
        color: black !important;
        font-size: 12pt;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .hero-section {
        height: auto !important;
        background: none !important;
    }
}

/* 深色模式优化 */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-bg: #0a0e17;
        --light-bg: #1a1f2e;
        --text-color: #e0f0ff;
        --text-light: #a0c0e0;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #00a8ff;
        --secondary-color: #0097e6;
        --text-color: #ffffff;
        --text-light: #cccccc;
    }
    
    .post-card,
    .feature-card,
    .story-card {
        border: 2px solid var(--border-color);
    }
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .star {
        animation: none !important;
    }
    
    .post-card:hover,
    .feature-card:hover,
    .story-card:hover {
        transform: none !important;
    }
}

/* 小屏幕设备优化 */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
}

/* 横屏模式 */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 100px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

/* 超大屏幕 */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .main-navigation a,
    .read-more,
    .cta-button {
        padding: 15px 20px;
    }
    
    .post-card:hover,
    .feature-card:hover,
    .story-card:hover {
        transform: none;
    }
}