/* TronLucky 响应式样式文件 */

/* 平板设备样式 (768px以下) */
@media (max-width: 768px) {
    
    /* 导航栏响应式 */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding-top: 2rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero区域响应式 */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.28rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 1.44rem;
    }
    
    /* Section通用响应式 */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* 矿池区域响应式 */
    .experience-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .vs-divider {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto;
    }
    
    .showcase-item {
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-item .feature-icon {
        font-size: 2.5rem;
    }
    
    /* 能量池区域响应式 */
    .chart-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .chart-item {
        padding: 1.5rem;
    }
    
    .chart-bar {
        height: 150px;
    }
    
    .energy-pool-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    /* 能量租赁区域响应式 */
    .before-after {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .scenario {
        padding: 1.5rem;
    }
    
    .tx-step {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .cost-calculator {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    /* Footer响应式 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* 手机设备样式 (480px以下) */
@media (max-width: 480px) {
    
    .container {
        padding: 0 15px;
    }
    
    /* 导航栏手机适配 */
    .navbar .container {
        padding: 0.8rem 15px;
    }
    
    .brand-text {
        font-size: 1.3rem;
    }
    
    .logo {
        width: 35px;
        height: 35px;
    }
    
    /* Hero区域手机适配 */
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-title {
        font-size: 2.35rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 0.82rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Section手机适配 */
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    /* 矿池区域手机适配 */
    .experience-showcase {
        gap: 1rem;
    }
    
    .showcase-item {
        padding: 1rem;
    }
    
    .showcase-item h4 {
        font-size: 1.1rem;
    }
    
    .comparison-step {
        padding: 0.8rem;
    }
    
    .step-content h5 {
        font-size: 0.9rem;
    }
    
    .step-content p {
        font-size: 0.8rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .feature-item h4 {
        font-size: 1.1rem;
    }
    
    .feature-item p {
        font-size: 0.8rem;
    }
    
    /* 能量池区域手机适配 */
    .chart-item {
        padding: 1rem;
    }
    
    .chart-item h4 {
        font-size: 1.2rem;
    }
    
    .chart-bar {
        height: 120px;
    }
    
    .detail-item {
        font-size: 0.9rem;
        padding: 0.4rem;
    }
    
    .feature {
        padding: 1rem;
    }
    
    .feature h4 {
        font-size: 1.1rem;
    }
    
    .feature p {
        font-size: 0.8rem;
    }
    
    /* 能量租赁区域手机适配 */
    .scenario {
        padding: 1rem;
    }
    
    .scenario h4 {
        font-size: 1.2rem;
    }
    
    .tx-step {
        padding: 0.8rem;
    }
    
    .step-label {
        font-size: 0.9rem;
    }
    
    .cost {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .cost-calculator {
        padding: 1rem;
    }
    
    .cost-calculator h3 {
        font-size: 1.3rem;
    }
    
    .input-group input {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .savings-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .amount {
        font-size: 1rem;
    }
    
    /* Footer手机适配 */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 0.8rem;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    
    .social-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* 超小屏幕设备样式 (320px以下) */
@media (max-width: 320px) {
    
    .hero-title {
        font-size: 2.1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.08rem;
    }
    
    .chart-container {
        margin: 0 auto 2rem;
    }
    
    .before-after {
        margin: 0 auto 2rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* 大屏幕设备样式 (1200px以上) */
@media (min-width: 1200px) {
    
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.15rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .section-description {
        font-size: 1.2rem;
    }
    
    .partners-grid {
        max-width: 1000px;
    }
    
    .process-steps {
        max-width: 1200px;
    }
    
    .chart-container {
        max-width: 1000px;
    }
    
    .energy-pool-features {
        max-width: 1100px;
    }
}

/* 横屏设备样式 */
@media (orientation: landscape) and (max-height: 500px) {
    
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2.1rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 2rem;
    }
    
    section {
        padding: 40px 0;
    }
}

/* 高分辨率屏幕适配 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    
    .logo,
    .partner-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 打印样式 */
@media print {
    
    .header,
    .nav-toggle,
    .footer {
        display: none;
    }
    
    .hero {
        background: none;
        color: var(--text-dark);
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .section-title {
        color: var(--text-dark);
    }
    
    .chart-bar,
    .step-icon,
    .feature-icon {
        background-color: var(--text-light) !important;
    }
}

/* 无障碍功能支持 */
@media (prefers-reduced-motion: reduce) {
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    
    :root {
        --white: #1a1a1a;
        --light-gray: #2d2d2d;
        --text-dark: #ffffff;
        --text-light: #cccccc;
        --border-color: #404040;
    }
    
    .hero {
        background: linear-gradient(135deg, var(--primary-red) 0%, #cc0010 100%);
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    
    :root {
        --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        --border-color: #000000;
    }
    
    .nav-link,
    .footer-section ul li a {
        border-bottom: 1px solid transparent;
    }
    

} 