/* 安徽网谷智能技术有限公司 - 响应式补充样式 */

/* 平板设备 */
@media (max-width: 1024px) and (min-width: 769px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .honors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-item.reverse {
        direction: ltr;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* 手机设备 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-wrapper {
        height: 70px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo img {
        height: 36px;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 32px;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .hero-desc {
        font-size: 14px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        padding: 12px 28px;
        font-size: 14px;
    }
    
    .stats {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-desc {
        font-size: 14px;
    }
    
    .solutions,
    .products,
    .about,
    .honors,
    .contact {
        padding: 60px 0;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .solution-card {
        padding: 30px 20px;
    }
    
    .solution-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .solution-card h3 {
        font-size: 18px;
    }
    
    .products-wrapper {
        gap: 50px;
    }
    
    .product-icon-large {
        width: 180px;
        height: 180px;
        font-size: 60px;
    }
    
    .product-content h3 {
        font-size: 22px;
    }
    
    .product-content p {
        font-size: 14px;
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        flex-direction: column;
        gap: 12px;
    }
    
    .about-feature {
        padding: 10px 16px;
    }
    
    .honors-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .honor-card {
        padding: 30px 20px;
    }
    
    .partners-slider {
        gap: 16px;
    }
    
    .partner-logo {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .contact-info {
        gap: 20px;
    }
    
    .contact-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 18px;
    }
    
    .contact-detail h4 {
        font-size: 16px;
    }
    
    .contact-detail p {
        font-size: 14px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .footer {
        padding: 60px 0 0;
    }
    
    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-logo {
        height: 36px;
    }
    
    .footer-links h4 {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-bottom {
        padding: 16px 0;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .back-to-top {
        width: 44px !important;
        height: 44px !important;
        font-size: 16px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    .stat-number {
        font-size: 30px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .product-icon-large {
        width: 150px;
        height: 150px;
        font-size: 50px;
    }
    
    .product-content h3 {
        font-size: 20px;
    }
}

/* 横屏手机 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* 高分辨率屏幕 */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 64px;
    }
    
    .section-title {
        font-size: 40px;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --text: #e0e0e0;
        --text-light: #a0a0a0;
        --text-lighter: #707070;
        --gray: #1a1a2e;
        --gray-dark: #16213e;
        --border: #2a2a4a;
        --white: #0f0f23;
    }
    
    .navbar {
        background: rgba(15, 15, 35, 0.95);
    }
    
    .nav-menu {
        background: rgba(15, 15, 35, 0.98);
    }
    
    .solution-card,
    .honor-card,
    .contact-form-wrapper {
        background: #1a1a2e;
    }
    
    .stats {
        background: #0f0f23;
    }
    
    .products {
        background: #0f0f23;
    }
    
    .partners {
        background: #0f0f23;
    }
    
    .partner-logo {
        background: #1a1a2e;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .hero-bg,
    .scroll-indicator,
    .back-to-top,
    .footer-social,
    .contact-form-wrapper {
        display: none !important;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        padding: 40px 0;
        background: white !important;
    }
    
    .hero-content {
        color: black !important;
    }
    
    .hero-title .highlight {
        -webkit-text-fill-color: var(--primary) !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* 减少动画 */
@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;
    }
}

/* 触摸设备优化 */
@media (hover: none) {
    .solution-card:hover {
        transform: none;
    }
    
    .solution-card:hover::before {
        transform: scaleX(0);
    }
    
    .honor-card:hover {
        transform: none;
    }
    
    .partner-logo:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* 焦点样式 - 无障碍 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 选择文本颜色 */
::selection {
    background: rgba(0, 102, 204, 0.2);
    color: var(--primary-dark);
}

/* 加载占位符 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}
