/**
 * 捷云鲸网络验证系统 - 响应式样式
 * 
 * @author 捷云鲸团队
 * @version 1.0
 * @copyright 2013-2026 捷云鲸 Cloud. All Rights Reserved.
 */

/* ========================================
   1. 大屏幕适配 (1400px+)
   ======================================== */
@media screen and (min-width: 1400px) {
    :root {
        --container-max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
}

/* ========================================
   2. 桌面端适配 (1200px - 1399px)
   ======================================== */
@media screen and (max-width: 1399px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr 350px;
        gap: 50px;
    }
}

/* ========================================
   3. 平板横屏适配 (992px - 1199px)
   ======================================== */
@media screen and (max-width: 1199px) {
    :root {
        --container-max-width: 960px;
        --section-padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* ========================================
   4. 平板竖屏适配 (768px - 991px)
   ======================================== */
@media screen and (max-width: 991px) {
    :root {
        --container-max-width: 720px;
        --header-height: 60px;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(26, 29, 33, 0.98);
        backdrop-filter: blur(20px);
        margin: 0;
        transition: left var(--transition-normal);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 40px 20px;
        gap: 0;
    }
    
    .nav-list li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-list a {
        display: block;
        padding: 15px 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .tabs-nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .warning-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cs-widget {
        right: 20px;
        bottom: 20px;
    }
    
    .cs-panel {
        width: 280px;
        right: -10px;
    }
    
    .back-to-top {
        right: 20px;
        bottom: 90px;
    }
}

/* ========================================
   5. 手机横屏适配 (576px - 767px)
   ======================================== */
@media screen and (max-width: 767px) {
    :root {
        --container-max-width: 540px;
        --section-padding: 50px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .warning-text h3 {
        font-size: 1.3rem;
    }
    
    .warning-text p {
        font-size: 1rem;
    }
    
    .cs-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.1rem;
    }
    
    .cs-panel {
        width: 260px;
        bottom: 75px;
    }
    
    .cs-header {
        padding: 15px;
    }
    
    .cs-body {
        padding: 20px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* ========================================
   6. 手机竖屏适配 (480px - 575px)
   ======================================== */
@media screen and (max-width: 575px) {
    :root {
        --container-max-width: 100%;
    }
    
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .feature-grid {
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px 15px;
    }
    
    .specs-grid {
        gap: 25px;
    }
    
    .spec-category h3 {
        font-size: 1.1rem;
    }
    
    .spec-items {
        gap: 8px;
    }
    
    .spec-item {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .warning-section {
        padding: 40px 0;
    }
    
    .warning-icon {
        font-size: 2.5rem;
    }
    
    .main-footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-bottom {
        padding-top: 20px;
    }
    
    .beian-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .beian-separator {
        display: none;
    }
    
    .cs-widget {
        right: 15px;
        bottom: 15px;
    }
    
    .cs-toggle {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .cs-panel {
        width: 240px;
        bottom: 70px;
        right: -5px;
    }
    
    .cs-text {
        font-size: 0.6rem;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 80px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ========================================
   7. 小屏手机适配 (320px - 479px)
   ======================================== */
@media screen and (max-width: 479px) {
    :root {
        --header-height: 55px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-title::after {
        width: 40px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .feature-card {
        padding: 20px 12px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .feature-card h3 {
        font-size: 1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .tabs-nav {
        gap: 8px;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .cs-toggle {
        width: 48px;
        height: 48px;
        font-size: 0.95rem;
    }
    
    .cs-panel {
        width: 220px;
        bottom: 65px;
    }
    
    .cs-body {
        padding: 15px;
    }
    
    .cs-info p {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .cs-qrcode img {
        width: 100px;
        height: 100px;
    }
    
    .back-to-top {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
}

/* ========================================
   8. 高分辨率屏幕适配
   ======================================== */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    .logo-img,
    .hero-shield,
    .feature-icon,
    .cs-toggle {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ========================================
   9. 横屏模式适配
   ======================================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 120vh;
    }
    
    .cs-widget {
        bottom: 10px;
        right: 10px;
    }
    
    .cs-panel {
        bottom: 55px;
    }
    
    .back-to-top {
        bottom: 60px;
    }
}

/* ========================================
   10. 打印样式
   ======================================== */
@media print {
    .main-nav,
    .cs-widget,
    .back-to-top,
    .scroll-progress,
    .hero-background {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-section,
    .features-section,
    .specs-section,
    .warning-section {
        padding: 20px 0 !important;
    }
    
    .section-title {
        color: black !important;
    }
}
