﻿/* ========================================================
   移动端 & 平板响应式样式
   - 保留原有背景颜色和品牌视觉
   - 重点调整排版自适应与间距
   ======================================================== */

/* ---------- 平板（≤1024px）---------- */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 24px;
    }

    .header .container {
        padding: 0 24px;
    }

    .logo {
        background-size: 240px 44px;
        width: 240px;
        height: 44px;
    }

    .nav-menu {
        gap: 28px;
    }

    .nav-menu a {
        font-size: 1rem;
    }

    .nav-cta {
        padding: 8px 18px;
        font-size: 1.05rem;
    }

    /* Hero */
    .hero {
        min-height: 620px;
    }

    .hero .container {
        padding-left: 40px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero p {
        font-size: 1.1rem;
        max-width: 560px;
    }

    /* 区块间距 */
    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.3rem;
    }

    .section-subtitle {
        font-size: 1.05rem;
        margin-bottom: 44px;
    }

    /* 网格降为两列 */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .cities-wrapper {
        padding: 32px 20px;
    }

    .faq-list {
        max-width: 100%;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }
}

/* ---------- 手机 / 小平板（≤768px）---------- */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 16px;
    }

    /* 头部 */
    .header {
        background: rgba(255, 255, 255, 0.9);
    }

    .header.scrolled {
        background: rgba(255, 255, 255, 0.6);
    }

    .header .container {
        padding: 0 12px;
    }

    .nav {
        height: 66px;
    }

    .logo {
        background-size: 250px 45px;
        width: 250px;
        height: 45px;
    }

    .nav-right {
        gap: 10px;
    }

    .nav-cta {
        padding: 7px 14px;
        font-size: 0.95rem;
        border-radius: 16px;
    }

    /* 移动端菜单抽屉 */
    .nav-menu {
        position: fixed;
        top: 66px;
        left: 0;
        right: 0;
        background: rgba(25, 37, 25, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 26px 24px;
        gap: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-130%);
        transition: transform 0.3s ease;
        z-index: 999;
        box-shadow: var(--shadow-md);
        max-height: calc(100vh - 66px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu a {
        color: #ffffff;
        font-size: 1.05rem;
        display: block;
        width: 100%;
        text-align: center;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        color: var(--green);
    }

    .nav-menu a::after {
        background: var(--green);
        left: 50%;
        transform: translateX(-50%);
    }

    .hamburger {
        display: flex;
    }

    .hamburger span {
        background: #33333;
    }

    /* Hero */
    .hero {
        min-height: 520px;
        background-attachment: scroll;
        background-position: center;
    }

    .hero .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-content {
        padding: 100px 0 70px;
        max-width: 100%;
    }

    .hero-badge {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }

    .hero h1 {
        font-size: 2.25rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 0.98rem;
        line-height: 1.9;
        margin-bottom: 35px;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn-primary,
    .btn-outline {
        padding: 12px 20px;
        font-size: 1rem;
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    /* 通用区块 */
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .section-title::after {
        width: 44px;
        margin-top: 10px;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 34px;
        padding: 0 6px;
    }

    /* 所有网格 → 单列 */
    .services-grid,
    .why-grid,
    .process-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* 服务卡片 */
    .service-card {
        padding: 26px 22px;
    }

    .service-card.featured {
        padding: 28px 22px;
    }

    .service-card.featured .service-icon {
        font-size: 2.6rem;
    }

    .service-icon {
        font-size: 2.4rem;
        margin-bottom: 12px;
    }

    .service-card h3,
    .service-card.featured h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .service-card p,
    .service-card.featured p {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    /* 报名资格标签 */
    .cities-wrapper {
        padding: 12px 0;
    }

    .cities-grid {
        gap: 10px;
    }

    .city-tag {
        font-size: 0.88rem;
        padding: 8px 16px;
        white-space: normal;
    }

    /* 报名流程 */
    .process-step {
        padding: 28px 22px;
    }

    .step-number {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .process-step h4 {
        font-size: 1.15rem;
    }

    .process-step p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* 复读路径 */
    .why-item {
        padding: 22px 20px;
        gap: 14px;
    }

    .why-text h4 {
        font-size: 1.1rem;
    }

    .why-text p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* 推荐学校 */
    .blog-img {
        height: 180px;
    }

    .blog-body {
        padding: 20px 22px;
    }

    .blog-body .blog-tag {
        font-size: 0.8rem;
    }

    .blog-body h3 {
        font-size: 1.15rem;
    }

    .blog-body p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .blog-buttons {
        padding-top: 32px;
    }

    /* FAQ */
    .faq-list {
        max-width: 100%;
    }

    .faq-item {
        padding: 20px 22px;
        margin-bottom: 12px;
    }

    .faq-question {
        font-size: 1.05rem;
        gap: 8px;
    }

    .faq-question .faq-icon {
        font-size: 1.25rem;
    }

    .faq-answer {
        font-size: 0.95rem;
        line-height: 1.75;
        padding-left: 24px;
    }

    /* Footer */
    .footer {
        padding: 50px 0;
    }

    .footer .container {
        gap: 14px;
    }

    .footer-links {
        gap: 14px;
        flex-direction: column;
        align-items: center;
    }

    .footer-links a {
        font-size: 0.92rem;
    }
}

/* ---------- 小屏手机（≤480px）---------- */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 14px;
    }

    .header .container {
        padding: 0 10px;
    }

    .nav {
        height: 70px;
    }

    .logo {
        background-size: 250px 45px;
        width: 250px;
        height: 45px;
    }

    .nav-cta {
        padding: 6px 15px;
        font-size: 0.95rem;
        border-radius: 14px;
    }

    .nav-menu {
        top: 60px;
        padding: 22px 18px;
        gap: 16px;
    }

    .nav-menu a {
        font-size: 1rem;
    }

    /* Hero */
    .hero {
        min-height: 500px;
    }

    .hero-content {
        padding: 120px 0 80px;
    }

    .hero-badge {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .hero h1 {
        font-size: 2.25rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 0.98rem;
        line-height: 2.2;
        margin-bottom: 60px;
    }

    .btn-primary,
    .btn-outline {
        padding: 11px 16px;
        font-size: 1.25rem;
        border-radius: 16px;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 1.0rem;
        margin-bottom: 28px;
    }

    /* 卡片内边距进一步紧凑 */
    .service-card,
    .service-card.featured {
        padding: 30px 18px 35px 18px;
    }

    .service-icon {
        font-size: 2.1rem;
    }

    .service-card h3,
    .service-card.featured h3 {
        font-size: 1.2rem;
    }

    .service-card p,
    .service-card.featured p {
        font-size: 1.0rem;
        line-height: 1.9;
    }

    /* 标签 */
    .city-tag {
        font-size: 0.95rem;
        padding: 7px 20px;
    }

    /* 流程 */
    .process-step {
        padding: 30px 18px 35px 18px;
    }

    .step-number {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .process-step h4 {
        font-size: 1.25rem;
    }

    .process-step p {
        font-size: 1.0rem;
    }

    /* 路径 */
    .why-item {
        padding: 20px 18px;
    }

    .why-text h4 {
        font-size: 1.22rem;
    }

    .why-text p {
        font-size: 1.0rem;
    }

    /* 学校卡片 */
    .blog-img {
        height: 160px;
    }

    .blog-body {
        padding: 18px 18px;
    }

    .blog-body h3 {
        font-size: 1.05rem;
    }

    .blog-body p {
        font-size: 0.9rem;
    }

    /* FAQ */
    .faq-item {
        padding: 30px 18px 35px 18px;
    }

    .faq-question {
        font-size: 1.2rem;
    }

    .faq-question .faq-icon {
        font-size: 1.25rem;
    }

    .faq-answer {
        font-size: 1.0rem;
        line-height: 1.9;
        padding-left: 20px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 60px 0;
    }

    .footer p,
    .footer-links a {
        font-size: 0.95rem;
    }
}