/**
 * 系统名称：传息网
 * 主网址：https://www.ipholo.com
 * 开发者：星球软件CEWWW
 * 本页为：响应式样式 /assets/css/responsive.css
 */

/* ============================================
   大屏幕（桌面）
   ============================================ */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* ============================================
   中等屏幕（笔记本）
   ============================================ */
@media screen and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-layout {
        grid-template-columns: 1fr 260px;
    }
}

/* ============================================
   小屏幕（平板）
   ============================================ */
@media screen and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-layout {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-item-image {
        width: 100%;
        height: 200px;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-search {
        display: none;
    }
}

/* ============================================
   超小屏幕（手机）
   ============================================ */
@media screen and (max-width: 767px) {
    .container {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .hero-section {
        padding: 40px 20px;
        border-radius: var(--radius-sm);
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 15px;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .news-detail {
        padding: 20px;
    }
    
    .news-detail-header h1 {
        font-size: 22px;
    }
    
    .news-detail-meta {
        gap: 10px;
        font-size: 12px;
    }
    
    .news-interactions {
        gap: 10px;
    }
    
    .interaction-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .top-bar-content {
        flex-direction: column;
        text-align: center;
        padding: 4px 0;
    }
    
    .top-bar-links {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .top-bar-links a {
        font-size: 12px;
    }
    
    .auth-card {
        padding: 24px;
    }
    
    .auth-header h2 {
        font-size: 22px;
    }
    
    .category-nav-tabs {
        gap: 6px;
    }
    
    .category-nav-tabs a {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .news-item-content h2 {
        font-size: 16px;
    }
    
    .news-item-meta {
        gap: 10px;
        font-size: 12px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .pagination-container {
        flex-direction: column;
        align-items: center;
    }
    
    .pagination .page-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 16px;
        right: 16px;
    }
    
    .comment-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .filter-options {
        width: 100%;
    }
    
    .filter-options a {
        flex: 1;
        text-align: center;
        min-width: 50px;
    }
}

/* ============================================
   极小型屏幕（小手机）
   ============================================ */
@media screen and (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-info {
        padding: 10px 12px 14px;
    }
    
    .product-info h3 {
        font-size: 13px;
    }
    
    .product-price .price {
        font-size: 16px;
    }
    
    .news-item-image {
        height: 160px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 16px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .hero-content h1 {
        font-size: 20px;
    }
    
    .hero-section {
        padding: 30px 16px;
    }
    
    .btn {
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .auth-card {
        padding: 20px 16px;
    }
    
    .news-detail {
        padding: 16px;
    }
    
    .news-detail-header h1 {
        font-size: 18px;
    }
    
    .news-detail-content {
        font-size: 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
}

/* ============================================
   打印样式
   ============================================ */
@media print {
    .top-bar,
    .main-header,
    .breadcrumb,
    .news-interactions,
    .comment-section,
    .related-news,
    .main-footer,
    .back-to-top,
    .category-nav {
        display: none !important;
    }
    
    .main-content {
        padding: 0 !important;
    }
    
    .news-detail {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }
    
    .news-detail-content {
        font-size: 14px !important;
    }
}