/**
 * 第六日礁岩水族 - 响应式样式
 * 适配手机、平板、电脑端
 */

/* ==================== Tablet (768px - 1024px) ==================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .section {
        padding: 4rem 0;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .article-item {
        flex-direction: column;
        gap: 1rem;
    }

    .article-item .article-image {
        width: 100%;
        height: 200px;
    }

    .quick-contact {
        right: 1rem;
    }
}

/* ==================== Mobile (< 768px) ==================== */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 1rem;
    }

    /* Navigation Mobile */
    .navbar .container {
        height: 64px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu a {
        font-size: 1.25rem;
        padding: 0.75rem 2rem;
    }

    /* Hero Section */
    .hero {
        min-height: 100vh;
        min-height: 100svh;
    }

    .hero-content .hero-title {
        font-size: 2rem;
        letter-spacing: 0.05em;
    }

    .hero-content .slogan {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

    .hero-content .brand-desc {
        font-size: 0.9rem;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
    }

    .hero-arrow-left {
        left: 1rem;
    }

    .hero-arrow-right {
        right: 1rem;
    }

    .hero-dots {
        bottom: 2rem;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Grid Layouts */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Section */
    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    /* Cards */
    .card-body {
        padding: 1.25rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

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

    .footer-links {
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    /* Detail Page */
    .detail-header {
        padding-top: 84px;
        padding-bottom: 2rem;
    }

    .detail-header h1 {
        font-size: 1.75rem;
    }

    .detail-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .detail-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .detail-tabs .tab-btn {
        white-space: nowrap;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Article List */
    .article-item {
        padding: 1.5rem 0;
    }

    .article-item .article-image {
        height: 180px;
    }

    .article-item h3 {
        font-size: 1.1rem;
    }

    /* Category Tabs */
    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        flex-wrap: nowrap;
    }

    .category-tabs a {
        white-space: nowrap;
    }

    /* Anti Counterfeit */
    .anti-input-group {
        flex-direction: column;
    }

    .anti-input-group input {
        border-right: 1px solid var(--border-light);
        border-radius: var(--radius-sm);
        margin-bottom: 0.75rem;
    }

    .anti-input-group button {
        border-radius: var(--radius-sm);
    }

    .anti-result .result-info .info-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    /* About Page */
    .about-hero {
        padding: 7rem 0 3rem;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-hero .brand-story {
        font-size: 1rem;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    /* Page Header */
    .page-header {
        padding: 7rem 0 2rem;
    }

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

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
    }

    .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    /* Quick Contact */
    .quick-contact {
        display: none;
    }

    /* Back to Top */
    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 40px;
        height: 40px;
    }

    /* Search Box */
    .search-box {
        max-width: 100%;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.8rem;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Case Cards */
    .case-card {
        aspect-ratio: 3/2;
    }

    /* Advantage Cards */
    .advantage-card {
        padding: 2rem 1.5rem;
    }

    .advantage-icon {
        width: 56px;
        height: 56px;
    }

    .advantage-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* ==================== Small Mobile (< 480px) ==================== */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 0.75rem;
    }

    .hero-content .hero-title {
        font-size: 1.75rem;
    }

    .hero-content .slogan {
        font-size: 0.9rem;
    }

    .hero-arrow {
        display: none;
    }

    .section-header h2 {
        font-size: 1.375rem;
    }

    .product-card .product-info {
        padding: 1rem;
    }

    .product-card .product-name {
        font-size: 1rem;
    }

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

    .anti-input-group input {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ==================== Large Desktop (> 1400px) ==================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero-content .hero-title {
        font-size: 4rem;
    }
}

/* ==================== Print ==================== */
@media print {
    .navbar,
    .footer,
    .back-to-top,
    .quick-contact {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        padding: 2rem 0;
    }
}
