/* ========================================
   家政到家服务 - 移动端样式
   响应式适配
   ======================================== */

/* ===== 平板适配 (<= 992px) ===== */
@media screen and (max-width: 992px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    .about-anchor-nav{
        top: 63px;
    }
    .section {
        padding: 70px 0;
    }

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

    /* 导航栏 */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 22, 40, 0.97);
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1001;
        padding: 40px 20px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
        padding: 12px;
    }

    .menu-toggle {
        display: flex;
        z-index: 1002;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* 遮罩层 */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Hero 区域 */
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 25px;
    }

    .hero-visual {
        max-width: 100%;
    }

    /* 服务特色 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* 服务详情 */
    .service-row {
        flex-direction: column;
        gap: 30px;
    }

    .service-row.reverse {
        flex-direction: column;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .service-swiper .swiper-button-next,
    .service-swiper .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .service-slide {
        font-size: 4rem;
    }

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

    /* 服务流程 */
    .process-timeline {
        flex-direction: column;
        gap: 24px;
    }

    .process-timeline::before {
        display: none;
    }

    .process-step {
        display: grid;
        grid-template-columns: 50px 1fr;
        grid-template-rows: auto auto;
        column-gap: 16px;
        row-gap: 6px;
        text-align: left;
        align-items: center;
    }

    .process-step .step-number {
        margin: 0;
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
        grid-row: 1 / span 2;
        flex-shrink: 0;
    }

    .process-step h4 {
        font-size: 1rem;
        margin: 0;
        line-height: 1.3;
        white-space: nowrap;
    }

    .process-step p {
        font-size: 0.88rem;
        line-height: 1.55;
        margin: 0;
        color: var(--text-gray);
    }

    /* 合作优势 */
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* 合作流程 */
    .franchise-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* 合作条件 */
    .conditions-grid {
        grid-template-columns: 1fr;
    }

    /* 新闻 */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
        gap: 16px;
    }

    .news-item .news-thumb {
        width: 100%;
        height: 160px;
    }

    /* 新闻详情 */
    .article-header,
    .article-body,
    .article-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .article-title {
        font-size: 1.4rem;
    }

    .article-meta {
        gap: 14px;
        font-size: 0.82rem;
    }

    .article-body p {
        font-size: 0.98rem;
        line-height: 1.9;
    }

    .article-body h3 {
        font-size: 1.2rem;
    }

    .article-nav {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .article-nav-item.next {
        text-align: left;
        align-items: flex-start;
    }

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

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

    .article-share {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    /* 联系我们 */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    /* 页脚 */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* CTA */
    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .cta-buttons .btn {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        padding: 10px 12px;
        font-size: 0.85rem;
        text-align: center;
        white-space: nowrap;
        justify-content: center;
    }

    /* 页面横幅 */
    .page-banner h1 {
        font-size: 2.2rem;
    }
}

/* ===== 手机适配 (<= 768px) ===== */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

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

    .section-title p {
        font-size: 0.9rem;
    }

    /* 导航栏 */
    .logo {
        font-size: 1.2rem;
    }

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

    /* Hero */
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

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

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

    .hero-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        gap: 10px;
    }

    .hero-buttons .btn {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        padding: 10px 12px;
        font-size: 0.85rem;
        text-align: center;
        white-space: nowrap;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

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

    .hero-card {
        padding: 30px 20px;
    }

    /* 按钮 */
    .btn {
        padding: 12px 28px;
        font-size: 0.85rem;
    }

    /* 服务特色 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    /* 服务详情 */
    .service-row {
        margin-bottom: 50px;
    }

    .service-content h3 {
        font-size: 1.4rem;
    }

    /* 统计 */
    .stats-section {
        padding: 50px 0;
    }

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

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

    .stat-item .stat-suffix {
        font-size: 1.1rem;
    }

    /* 流程 */
    .process-step {
        column-gap: 12px;
        row-gap: 4px;
    }

    .process-step .step-number {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .process-step h4 {
        font-size: 0.95rem;
    }

    .process-step p {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    /* 合作优势 */
    .advantage-grid {
        grid-template-columns: 1fr;
    }

    .advantage-card {
        padding: 30px 20px;
    }

    /* 合作流程 */
    .franchise-steps {
        grid-template-columns: 1fr;
    }

    .franchise-step {
        padding: 25px 20px;
    }

    /* 新闻 */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* 二维码弹窗 */
    .qr-modal-content {
        padding: 30px 22px;
    }

    .qr-code {
        width: 160px;
        height: 160px;
        font-size: 4rem;
    }

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

    .news-card .news-body {
        padding: 22px;
    }

    .news-card h3 {
        font-size: 1.05rem;
    }

    /* 联系我们 */
    .contact-info-block {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 30px 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    /* 地图 */
    .map-section {
        height: 250px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand .logo {
        font-size: 1.3rem;
    }

    .footer-qr {
        justify-content: center;
    }

    /* CTA */
    .cta-section {
        padding: 50px 0;
    }

    .cta-section h2 {
        font-size: 1.6rem;
    }

    .cta-section p {
        font-size: 0.9rem;
    }

    /* 页面横幅 */
    .page-banner {
        min-height: 40vh;
        padding-top: 80px;
    }

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

    .page-banner .breadcrumb {
        font-size: 0.8rem;
    }

    /* 返回顶部 */
    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 20px;
        font-size: 1.1rem;
    }

    /* 导航菜单 */
    .nav-links {
        width: 100%;
    }
}

/* ===== 小手机适配 (<= 480px) ===== */
@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

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

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

    .hero-stats {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

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

    .cta-buttons {
        width: 100%;
        gap: 8px;
    }

    .cta-buttons .btn {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        padding: 8px 10px;
        font-size: 0.8rem;
        white-space: nowrap;
        justify-content: center;
    }

    .hero-card-tags span {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
}
