/* ===================================
   七月科技企业网站 - 响应式样式
   Responsive Styles
   =================================== */

/* 大屏幕设备 (1200px以下) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

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

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

/* 平板设备 (992px以下) */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    /* 导航栏 */
    .nav-container {
        height: 70px;
    }

    .navbar .logo-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }

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

    /* 核心优势 - 2列布局 */
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 业务预览 - 2列布局 */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 页脚 - 2列布局 */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 关于我们页面 */
    .about-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content h2 {
        text-align: center;
    }

    .about-content h2::after {
        margin: 1rem auto 0;
    }

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

    .vision-values {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* 业务范围页面 */
    .product-detail,
    .product-detail.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-icon-large {
        max-width: 300px;
        margin: 0 auto;
    }

    .product-content {
        text-align: center;
    }

    /* 联系我们页面 */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-section h2 {
        text-align: center;
    }

    .contact-form-section h2::after {
        margin: 1rem auto 0;
    }

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

/* 小平板设备 (768px以下) */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .container {
        padding: 0 15px;
    }

    /* 导航栏 - 移动端菜单 */
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 100px 2rem 2rem;
        gap: 1.5rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 1px solid var(--border-color);
    }

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

    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 0;
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }

    /* 菜单按钮动画 */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

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

    /* Hero Section */
    .hero {
        min-height: 500px;
    }

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

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

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

    .hero-buttons .btn {
        width: 200px;
    }

    .scroll-indicator {
        display: none;
    }

    /* 标题 */
    .section-title {
        font-size: 1.8rem;
    }

    .page-header {
        padding: 120px 0 50px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* 核心优势 - 单列 */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .advantage-card {
        padding: 1.5rem;
    }

    /* 业务预览 - 单列 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

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

    /* 页脚 */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer h4 {
        margin-bottom: 1rem;
    }

    /* 时间线 */
    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1rem;
    }

    /* 团队 */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* 产品详情 */
    .product-content h2 {
        font-size: 1.5rem;
    }

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

    /* 联系表单 */
    .contact-form {
        padding: 1.5rem;
    }

    .map-container {
        margin-top: 1.5rem;
    }
}

/* 手机设备 (576px以下) */
@media (max-width: 576px) {
    /* Hero */
    .hero-title {
        font-size: 1.75rem;
    }

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

    /* 标题 */
    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* 按钮 */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

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

    .footer-bottom p {
        font-size: 0.85rem;
    }

    /* 产品 */
    .product-icon-large {
        padding: 2rem;
    }

    .product-features li {
        font-size: 0.9rem;
    }

    /* FAQ */
    .faq-item {
        padding: 1rem;
    }

    .faq-item h4 {
        font-size: 1rem;
    }

    /* 表单 */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.625rem 0.875rem;
    }
}

/* 小屏手机 (375px以下) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.5rem;
    }

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

    .advantage-icon,
    .service-icon {
        width: 60px;
        height: 60px;
    }

    .advantage-icon svg,
    .service-icon svg {
        width: 30px;
        height: 30px;
    }

    .team-avatar {
        width: 80px;
        height: 80px;
    }

    .team-avatar svg {
        width: 50px;
        height: 50px;
    }
}

/* 横屏模式 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
        padding: 80px 0;
    }

    .hero-content {
        padding-top: 40px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .scroll-indicator,
    .footer,
    .cta-section,
    .btn {
        display: none !important;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 40px 0;
        background: white !important;
        color: black !important;
    }

    .hero-title,
    .hero-subtitle {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }

    .section {
        padding: 30px 0;
        page-break-inside: avoid;
    }

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

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066CC;
        --text-primary: #000000;
    }

    .btn-primary {
        border: 2px solid black;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}
