/* ===== 华盛证件制作中心 - 响应式样式 ===== */
/* 断点：768px（平板）和 480px（手机） */

/* ===== 平板 (≤768px) ===== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        padding-bottom: 64px;
    }

    .container {
        padding: 0 16px;
    }

    /* 顶部栏 */
    .topbar .container {
        justify-content: center;
        text-align: center;
        font-size: 12px;
    }

    .topbar .top-contact span {
        margin-right: 10px;
    }

    /* 导航 - 汉堡菜单 */
    .header .container {
        height: 60px;
    }

    .logo {
        font-size: 17px;
    }

    .logo .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 10px 16px 20px;
        gap: 4px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.35s ease, visibility 0.35s ease, padding 0.35s ease;
        padding-top: 0;
        padding-bottom: 0;
        z-index: 999;
    }

    .nav.active {
        max-height: 80vh;
        overflow-y: auto;
        visibility: visible;
        padding: 10px 16px 20px;
    }

    .nav a {
        padding: 12px 14px;
        border-radius: var(--radius-sm);
        font-size: 15px;
        display: block;
    }

    .nav a.active::after {
        display: none;
    }

    .nav a.active {
        background: var(--secondary);
    }

    /* 轮播图 */
    .banner-slide {
        height: 300px;
    }

    .banner-caption {
        left: 6%;
        max-width: 88%;
    }

    .banner-caption h2 {
        font-size: 24px;
    }

    .banner-caption p {
        font-size: 14px;
    }

    .banner-btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .banner-btn-group button {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    /* 区块 */
    .section {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-header p {
        font-size: 14px;
    }

    .page-hero {
        padding: 36px 0;
    }

    .page-hero h1 {
        font-size: 24px;
    }

    /* 瀑布流 - 2列 */
    .masonry {
        column-count: 2;
        column-gap: 16px;
    }

    .masonry-item {
        margin-bottom: 16px;
    }

    /* 网格 */
    .preview-grid,
    .stats-grid,
    .feature-grid,
    .grid-3,
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* 关于 */
    .about-wrap,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-img img {
        height: 260px;
    }

    /* 数据统计 */
    .stats-item .num {
        font-size: 32px;
    }

    /* 文章 */
    .article-header h1 {
        font-size: 22px;
    }

    .article-body {
        font-size: 15px;
    }

    .article-body h2 {
        font-size: 19px;
    }

    .article-nav {
        flex-direction: column;
        gap: 10px;
    }

    .article-nav a.next {
        text-align: left;
    }

    /* 页脚 */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    /* 返回顶部 */
    .back-top {
        right: 16px;
        bottom: 80px;
        width: 42px;
        height: 42px;
    }
}

/* ===== 手机 (≤480px) ===== */
@media (max-width: 480px) {
    body {
        font-size: 13px;
        padding-bottom: 60px;
    }

    .container {
        padding: 0 12px;
    }

    .topbar {
        font-size: 11px;
    }

    .topbar .top-contact span {
        display: block;
        margin: 2px 0;
    }

    /* 导航 */
    .header .container {
        height: 56px;
    }

    .logo {
        font-size: 15px;
    }

    .logo .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .logo .logo-text small {
        font-size: 10px;
    }

    .nav {
        top: 56px;
    }

    /* 轮播图 */
    .banner-slide {
        height: 240px;
    }

    .banner-caption {
        left: 5%;
        max-width: 90%;
    }

    .banner-caption h2 {
        font-size: 19px;
        margin-bottom: 10px;
    }

    .banner-caption p {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .banner-btn {
        padding: 9px 20px;
        font-size: 13px;
    }

    .banner-btn-group button {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .banner-dots li {
        width: 9px;
        height: 9px;
    }

    .banner-dots li.active {
        width: 24px;
    }

    /* 区块 */
    .section {
        padding: 30px 0;
    }

    .section-header {
        margin-bottom: 26px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .section-header p {
        font-size: 13px;
    }

    .page-hero {
        padding: 28px 0;
    }

    .page-hero h1 {
        font-size: 21px;
    }

    .page-hero p {
        font-size: 13px;
    }

    /* 瀑布流 - 1列 */
    .masonry {
        column-count: 1;
        column-gap: 0;
    }

    .masonry-item {
        margin-bottom: 18px;
    }

    /* 网格 - 1列 */
    .preview-grid,
    .stats-grid,
    .feature-grid,
    .grid-3,
    .links-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* 卡片 */
    .card-img {
        height: 180px;
    }

    .card-body {
        padding: 16px;
    }

    .card-body h3 {
        font-size: 16px;
    }

    .card-body p {
        font-size: 13px;
    }

    .preview-card {
        padding: 22px 18px;
    }

    .preview-card .icon {
        width: 54px;
        height: 54px;
        font-size: 26px;
    }

    .preview-card h3 {
        font-size: 16px;
    }

    /* 数据统计 */
    .stats {
        padding: 36px 0;
    }

    .stats-item .num {
        font-size: 28px;
    }

    .stats-item .label {
        font-size: 13px;
    }

    /* 关于 */
    .about-img img {
        height: 200px;
    }

    .about-text h2 {
        font-size: 22px;
    }

    .feature-item {
        padding: 22px 18px;
    }

    /* 文章 */
    .article-header {
        padding: 24px 0 18px;
    }

    .article-header h1 {
        font-size: 19px;
        line-height: 1.5;
    }

    .article-meta {
        font-size: 12px;
    }

    .article-meta span {
        margin: 0 6px;
        display: inline-block;
    }

    .article-body {
        font-size: 14px;
    }

    .article-body h2 {
        font-size: 17px;
    }

    .article-body h3 {
        font-size: 16px;
    }

    /* FAQ */
    .faq-question {
        padding: 14px 16px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 0 16px;
    }

    .faq-item.active .faq-answer {
        padding: 0 16px 14px;
    }

    /* 联系 */
    .contact-info-card,
    .contact-form {
        padding: 22px 18px;
    }

    .contact-info-card h3,
    .contact-form h3 {
        font-size: 18px;
    }

    .map-wrap img {
        height: 220px;
    }

    /* 友情链接 */
    .link-card {
        padding: 14px 16px;
    }

    /* CTA */
    .cta {
        padding: 40px 0;
    }

    .cta h2 {
        font-size: 22px;
    }

    .cta p {
        font-size: 14px;
    }

    /* 页脚 */
    .footer {
        padding: 36px 0 16px;
    }

    .footer-col h3 {
        font-size: 15px;
    }

    .footer-col p,
    .footer-col ul a {
        font-size: 13px;
    }

    .footer-bottom {
        font-size: 12px;
    }

    /* 返回顶部 */
    .back-top {
        right: 12px;
        bottom: 72px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* 表单按钮 */
    .btn {
        padding: 11px 24px;
        font-size: 14px;
    }
}

/* ===== 大屏优化 (≥1200px) ===== */
@media (min-width: 1200px) {
    .container {
        padding: 0 24px;
    }
}
