/* 响应式样式文件 */

/* 大屏幕 (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
    }
}

/* 中等屏幕 (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

/* 小屏幕 (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 var(--spacing-md);
    }
    
    /* 导航栏响应式 */
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        padding: var(--spacing-lg) 0;
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .nav-item {
        margin: var(--spacing-sm) 0;
        width: 100%;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--background-light);
        margin-top: var(--spacing-sm);
    }
    
    /* Hero区域 */
    .hero-title {
        font-size: 3rem;
    }

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



    .core-capabilities {
        gap: var(--spacing-md);
    }

    .capability-item {
        min-width: 120px;
        padding: var(--spacing-md);
    }

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

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-nav {
        padding: 0 var(--spacing-md);
    }

    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
    }

    /* 页面Hero响应式 */
    .page-hero .hero-content-wrapper {
        padding-top: 100px;
    }

    .page-hero .hero-title {
        font-size: var(--text-3xl);
    }

    .page-hero .hero-subtitle {
        font-size: var(--text-lg);
    }

    /* Hero变体响应式 */
    .page-hero.hero-compact .hero-content-wrapper {
        min-height: 40vh;
    }

    .page-hero.hero-compact .hero-title {
        font-size: var(--text-2xl);
    }

    .page-hero.hero-product .hero-content-wrapper {
        min-height: 50vh;
    }

    .page-hero.hero-service .hero-content-wrapper {
        min-height: 55vh;
    }
    
    /* 网格系统 */
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    /* 统计数据 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .stat-item {
        padding: var(--spacing-lg);
    }
    
    .stat-number {
        font-size: var(--text-4xl);
    }
    
    /* 技术优势 */
    .tech-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* 页脚 */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
}

/* 超小屏幕 (576px - 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 var(--spacing-sm);
    }
    
    /* 字体大小调整 */
    h1 {
        font-size: var(--text-4xl);
    }
    
    h2 {
        font-size: var(--text-3xl);
    }
    
    h3 {
        font-size: var(--text-2xl);
    }
    
    /* Hero区域 */
    .hero {
        padding: var(--spacing-3xl) 0;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

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

    .hero-description {
        font-size: var(--text-base);
    }



    .core-capabilities {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .capability-item {
        width: 100%;
        max-width: 250px;
        flex-direction: row;
        justify-content: center;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .capability-item i {
        font-size: var(--text-xl);
        margin-bottom: 0;
        margin-right: var(--spacing-sm);
    }

    .hero-nav {
        display: none;
    }

    .hero-indicators {
        bottom: var(--spacing-lg);
    }

    /* 页面Hero移动端 */
    .page-hero .hero-content-wrapper {
        padding-top: 90px;
    }

    .page-hero .hero-title {
        font-size: var(--text-2xl);
    }

    .page-hero .hero-subtitle {
        font-size: var(--text-base);
    }

    .page-hero .hero-description {
        font-size: var(--text-base);
    }

    /* Hero变体移动端 */
    .page-hero.hero-compact .hero-content-wrapper {
        min-height: 35vh;
        padding-top: 85px;
    }

    .page-hero.hero-compact .hero-title {
        font-size: var(--text-xl);
    }

    .page-hero.hero-compact .hero-subtitle {
        font-size: var(--text-sm);
    }

    .page-hero.hero-product .hero-content-wrapper {
        min-height: 45vh;
    }

    .page-hero.hero-service .hero-content-wrapper {
        min-height: 50vh;
    }
    
    /* 按钮 */
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--text-sm);
    }
    
    /* 卡片 */
    .card {
        padding: var(--spacing-lg);
    }
    
    .product-card .product-content {
        padding: var(--spacing-lg);
    }
    
    .product-title {
        font-size: var(--text-xl);
    }
    
    /* 统计数据 */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: var(--spacing-md);
    }
    
    .stat-number {
        font-size: var(--text-3xl);
    }
    
    /* 技术图标 */
    .tech-icon {
        width: 60px;
        height: 60px;
        font-size: var(--text-2xl);
    }
    
    .tech-item {
        padding: var(--spacing-lg);
    }
    
    /* 页脚 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* 间距调整 */
    .py-12 {
        padding-top: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }
    
    .mt-12,
    .mb-12 {
        margin-top: var(--spacing-xl);
        margin-bottom: var(--spacing-xl);
    }
}

/* 极小屏幕 (最大575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* 导航栏 */
    .navbar-container {
        padding: var(--spacing-sm) 0;
    }
    
    .navbar-brand img {
        height: 32px;
    }
    
    /* Hero区域 */
    .hero-title {
        font-size: 2rem;
    }

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

    .hero-content {
        padding: 0 var(--spacing-sm);
    }



    .hero-description {
        font-size: var(--text-sm);
    }

    .capability-item {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .capability-item i {
        font-size: var(--text-lg);
    }

    .capability-item span {
        font-size: var(--text-sm);
    }

    .btn-large {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--text-base);
        min-width: 150px;
    }

    .hero-indicators {
        bottom: var(--spacing-md);
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    /* 页面Hero超小屏幕 */
    .page-hero .hero-content-wrapper {
        padding-top: 80px;
    }

    .page-hero .hero-title {
        font-size: var(--text-xl);
    }

    .page-hero .hero-subtitle {
        font-size: var(--text-sm);
    }

    .page-hero .hero-description {
        font-size: var(--text-sm);
        max-width: 100%;
    }

    /* Hero变体超小屏幕 */
    .page-hero.hero-compact .hero-content-wrapper {
        min-height: 30vh;
        padding-top: 75px;
    }

    .page-hero.hero-compact .hero-title {
        font-size: var(--text-lg);
    }

    .page-hero.hero-compact .hero-subtitle {
        font-size: var(--text-xs);
    }

    .page-hero.hero-compact .hero-description {
        font-size: var(--text-xs);
    }

    .page-hero.hero-product .hero-content-wrapper {
        min-height: 40vh;
    }

    .page-hero.hero-service .hero-content-wrapper {
        min-height: 45vh;
    }
    
    /* 产品图片 */
    .product-image {
        height: 200px;
    }
    
    /* 技术优势 */
    .tech-icon {
        width: 50px;
        height: 50px;
        font-size: var(--text-xl);
    }
    
    /* 回到顶部按钮 */
    .back-to-top {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        width: 45px;
        height: 45px;
    }
    
    /* 间距进一步压缩 */
    .py-8 {
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }
    
    .py-12 {
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }
}

/* 横屏手机优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-description {
        font-size: var(--text-sm);
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-buttons {
        gap: var(--spacing-md);
    }
    
    .btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--text-sm);
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .back-to-top,
    .mobile-menu-btn {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title,
    .hero-subtitle {
        color: black !important;
    }
    
    .card,
    .product-card {
        box-shadow: none !important;
        border: 1px solid var(--border-color) !important;
    }
    
    .tech-advantages {
        background: white !important;
        color: black !important;
    }
    
    .footer {
        background: white !important;
        color: black !important;
        border-top: 1px solid var(--border-color);
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    .btn {
        border: 1px solid var(--primary-color) !important;
        background: white !important;
        color: var(--primary-color) !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #000000;
        --text-light: #333333;
        --border-color: #000000;
    }
    
    .card,
    .product-card {
        border: 2px solid var(--border-color);
    }
    
    .btn-secondary {
        border-width: 3px;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .fade-in,
    .slide-in-left,
    .slide-in-right {
        opacity: 1 !important;
        transform: none !important;
    }
}
