/* 响应式设计 - 移动端优化 */

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .apply-content {
        gap: 2rem;
    }
}

/* 移动设备 (最大宽度 768px) */
@media (max-width: 768px) {
    /* 基础布局 */
    .container {
        padding: 0 20px;
    }
    
    /* 导航栏 */
    header {
        padding: 0.8rem 0;
    }
    
    .navbar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    /* 主要内容 */
    main {
        margin-top: 120px; /* 增加顶部间距适应导航栏 */
    }
    
    /* Hero区域 */
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* 统计区域 */
    .stats {
        padding: 2rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* 服务区域 */
    .services {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* 关于我们 */
    .about {
        padding: 3rem 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    /* 流程区域 */
    .process {
        padding: 3rem 0;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-step {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* 申请区域 */
    .apply {
        padding: 3rem 0;
    }
    
    .apply-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .apply-info h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .application-form {
        padding: 1.5rem;
    }
    
    /* 页脚 */
    footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    /* 文章页面 */
    .article-main .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-content h1 {
        font-size: 1.6rem;
    }
    
    .article-content h2 {
        font-size: 1.3rem;
    }
    
    .article-content h3 {
        font-size: 1.1rem;
    }
    
    /* 侧边栏 */
    .sidebar {
        gap: 1.5rem;
    }
    
    .contact-card, .service-card, .contact-info {
        padding: 1.2rem;
    }
    
    .qr-code {
        max-width: 120px;
    }
    
    /* 微信浮动按钮 */
    .wechat-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .wechat-float .wechat-icon {
        width: 25px;
        height: 25px;
    }
    
    /* 微信弹窗 */
    .wechat-modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .qrcode-placeholder img {
        max-width: 150px;
    }
}

/* 小屏幕移动设备 (最大宽度 480px) */
@media (max-width: 480px) {
    /* 基础布局 */
    .container {
        padding: 0 15px;
    }
    
    /* 导航栏 */
    .navbar {
        gap: 0.8rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    /* 主要内容 */
    main {
        margin-top: 100px;
    }
    
    /* Hero区域 */
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* 统计区域 */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* 标题 */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    /* 服务卡片 */
    .service-card {
        padding: 1.2rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    /* 关于我们 */
    .about-text h2 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 0.9rem;
    }
    
    /* 流程步骤 */
    .process-step {
        padding: 1rem;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .process-step h3 {
        font-size: 1.1rem;
    }
    
    .process-step p {
        font-size: 0.9rem;
    }
    
    /* 申请区域 */
    .apply-info h2 {
        font-size: 1.5rem;
    }
    
    .apply-info p {
        font-size: 0.9rem;
    }
    
    .benefits li {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }
    
    .application-form {
        padding: 1.2rem;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* 页脚 */
    .footer-col h4 {
        font-size: 1.1rem;
    }
    
    .footer-col p,
    .footer-links a,
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
    
    /* 文章页面 */
    .article-main {
        padding: 1.5rem 0;
    }
    
    .article-content {
        padding: 1.2rem;
    }
    
    .article-content h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .article-content h2 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.8rem;
    }
    
    .article-content h3 {
        font-size: 1rem;
        margin: 1.2rem 0 0.6rem;
    }
    
    .article-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .article-cta {
        padding: 1.5rem;
    }
    
    .article-cta h3 {
        font-size: 1.2rem;
    }
    
    .article-cta p {
        font-size: 0.9rem;
    }
    
    /* 侧边栏 */
    .contact-card, .service-card, .contact-info {
        padding: 1rem;
    }
    
    .contact-card h3, .service-card h3, .contact-info h3 {
        font-size: 1.1rem;
    }
    
    .contact-card p, .contact-info p {
        font-size: 0.9rem;
    }
    
    .qr-code {
        max-width: 100px;
    }
    
    .contact-text {
        font-size: 0.8rem;
    }
    
    .wechat-id {
        font-size: 0.9rem;
    }
    
    /* 微信弹窗 */
    .wechat-modal-content {
        padding: 1.2rem;
    }
    
    .wechat-modal h3 {
        font-size: 1.1rem;
    }
    
    .wechat-id {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .qrcode-placeholder img {
        max-width: 120px;
    }
}

/* 超小屏幕设备 (最大宽度 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .service-card,
    .process-step,
    .application-form {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .article-content h1 {
        font-size: 1.3rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stats-grid {
        gap: 0.8rem;
    }
    
    .wechat-modal-content {
        padding: 1rem;
        width: 98%;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 1.5rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .stats,
    .services,
    .about,
    .process,
    .apply {
        padding: 2rem 0;
    }
    
    .wechat-float {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .wechat-float .wechat-icon {
        width: 22px;
        height: 22px;
    }
}

/* 打印样式 */
@media print {
    .wechat-float,
    .wechat-modal,
    header,
    footer {
        display: none !important;
    }
    
    main {
        margin-top: 0 !important;
    }
    
    .article-main .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .article-content {
        box-shadow: none;
        padding: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    p, li {
        page-break-inside: avoid;
    }
}