/* 响应式设计 */

/* 平板设备 (768px 及以下) */
@media screen and (max-width: 768px) {
    /* 导航栏响应式 */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        margin: 15px 0;
        display: block;
        padding: 10px 0;
    }

    .nav-toggle {
        display: flex;
    }

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

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* 主横幅响应式 */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* 公司简介响应式 */
    .intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .intro-features {
        justify-content: center;
    }

    /* 服务领域响应式 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* 核心技术响应式 */
    .tech-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

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

    /* 新闻动态响应式 */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* CTA按钮响应式 */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* 页脚响应式 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 30px;
    }

    .social-links {
        justify-content: center;
    }
}

/* 产品页面响应式样式 */
@media screen and (max-width: 768px) {
    .product-intro {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .product-highlights {
        flex-direction: column;
        gap: 20px;
    }

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

    .process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .effects-comparison {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

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

    .demo-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .demo-screenshots {
        flex-direction: column;
        gap: 20px;
    }

    /* 成功案例页面响应式 */
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .case-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .case-header h2 {
        font-size: 2rem;
    }

    .advantages-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

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

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

    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media screen and (max-width: 480px) {
    .product-hero h2 {
        font-size: 2rem;
    }

    .product-tagline {
        font-size: 1rem;
    }

    .highlight-number {
        font-size: 2rem;
    }

    .tech-features h2,
    .tech-process h2,
    .protection-effects h2,
    .security-metrics h2,
    .service-areas h2,
    .service-scope h2,
    .product-demo h2 {
        font-size: 2rem;
    }

    .feature-card,
    .step-item,
    .metric-card,
    .area-card,
    .service-item {
        padding: 30px 20px;
    }

    /* 产品页面响应式 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-areas .data-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .data-card {
        padding: 25px 15px;
    }

    .data-value {
        font-size: 2rem;
    }

    .data-label {
        font-size: 1rem;
    }

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

    .logo-item {
        padding: 10px;
    }

    .client-logo {
        width: 70px;
        height: 40px;
    }

    /* 成功案例页面响应式 */
    .overview-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-item {
        padding: 30px 15px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .case-header h2 {
        font-size: 1.8rem;
    }

    .case-info h3 {
        font-size: 1.5rem;
    }

    .data-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }

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

    .data-value {
        font-size: 2.5rem;
    }

    .data-label {
        font-size: 1.1rem;
    }

    .logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 30px;
    }

    .logo-item {
        padding: 15px;
    }

    .client-logo {
        width: 80px;
        height: 50px;
    }

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

    .feedback-card {
        padding: 30px 20px;
    }
}
        gap: 30px;
        text-align: center;
    }

    /* 字体大小调整 */
    .section-title {
        font-size: 2rem;
    }

    .tech-text h2 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    /* 内边距调整 */
    .container {
        padding: 0 15px;
    }

    .company-intro,
    .services,
    .core-technology,
    .news,
    .contact-cta {
        padding: 60px 0;
    }

    .service-item,
    .news-content {
        padding: 30px 15px;
    }
}

/* 手机设备 (576px 及以下) */
@media screen and (max-width: 576px) {
    /* 导航栏 */
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }

    .company-name {
        font-size: 14px;
    }

    .logo {
        height: 30px;
    }

    .nav-menu {
        top: 60px;
    }

    /* 主横幅 */
    .hero {
        height: 80vh;
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    /* 装饰元素隐藏 */
    .hero-decorations {
        display: none;
    }

    /* 特性项目 */
    .intro-features {
        flex-direction: column;
        gap: 20px;
    }

    .feature-number {
        font-size: 1.5rem;
    }

    /* 服务项目 */
    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-item {
        padding: 30px 15px;
    }

    /* 技术特性列表 */
    .tech-features li {
        font-size: 0.9rem;
        padding: 8px 0;
    }

    /* 新闻项目 */
    .news-image {
        height: 150px;
    }

    .news-content {
        padding: 20px 15px;
    }

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

    /* 字体大小进一步调整 */
    .section-title {
        font-size: 1.8rem;
    }

    .intro-text h2,
    .tech-text h2,
    .cta-content h2 {
        font-size: 1.8rem;
    }

    .tech-text h3 {
        font-size: 1.2rem;
    }

    .intro-description,
    .tech-description,
    .section-subtitle {
        font-size: 1rem;
    }

    /* 内边距进一步调整 */
    .company-intro,
    .services,
    .core-technology,
    .news,
    .contact-cta {
        padding: 40px 0;
    }

    .footer {
        padding: 40px 0 15px;
    }

    .footer-content {
        gap: 20px;
    }
}

/* 大屏幕设备 (1200px 及以上) */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(5, 1fr);
    }

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

/* 超大屏幕设备 (1400px 及以上) */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }

    .hero {
        height: 100vh;
    }

    .company-intro,
    .services,
    .core-technology,
    .news,
    .contact-cta {
        padding: 120px 0;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .hero-decorations,
    .cta-buttons,
    .footer {
        display: none;
    }

    .hero {
        height: auto;
        padding: 50px 0;
        background: white;
        color: black;
    }

    .hero-content {
        color: black;
    }

    .btn {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .section-title {
        font-size: 18pt;
        color: black;
    }

    .container {
        max-width: none;
        padding: 0;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .hero {
        background: #000;
        color: #fff;
    }

    .btn-primary {
        background: #fff;
        color: #000;
        border-color: #fff;
    }

    .btn-secondary {
        background: #000;
        color: #fff;
        border-color: #fff;
    }

    .service-item,
    .news-item {
        border: 2px solid #000;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-decorations {
        display: none;
    }
}

/* 横屏模式调整 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 50px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* 联系我们页面响应式样式 */
@media screen and (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .form-container {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-header h2 {
        font-size: 2rem;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .support-item {
        padding: 30px 20px;
    }
    
    .map-section h2,
    .service-support h2,
    .faq-section h2 {
        font-size: 2rem;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
}

@media screen and (max-width: 576px) {
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .contact-card {
        padding: 25px 15px;
    }
    
    .contact-card h3 {
        font-size: 1.3rem;
    }
    
    .form-container {
        padding: 25px 15px;
        margin: 0 15px;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .support-item {
        padding: 25px 15px;
    }
    
    .support-item h3 {
        font-size: 1.3rem;
    }
    
    .map-section h2,
    .service-support h2,
    .faq-section h2 {
        font-size: 1.8rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}