/* 响应式设计 */

/* 大屏幕 (1200px以上) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-animation {
        width: 500px;
        height: 500px;
    }
}

/* 中等屏幕 (992px - 1199px) */
@media (max-width: 1199px) {
    .hero {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-animation {
        width: 350px;
        height: 350px;
    }
    
    .floating-card {
        padding: 1.2rem;
    }
    
    .floating-card i {
        font-size: 1.8rem;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
    
    .shopping-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .shopping-info {
        grid-template-columns: 1fr 1fr;
    }
}

/* 平板设备 (768px - 991px) */
@media (max-width: 991px) {
    .nav-container {
        justify-content: space-between;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

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

    .nav-item {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

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

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 6rem 1rem 2rem;
        min-height: auto;
        height: auto;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-animation {
        width: 300px;
        height: 300px;
    }
    
    .floating-card {
        padding: 1rem;
    }
    
    .floating-card i {
        font-size: 1.5rem;
    }
    
    .floating-card span {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-card {
        padding: 2rem;
    }
    
    .shopping-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .platform-card {
        padding: 1.5rem;
    }
    
    .social-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .company-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .mission-values {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* 手机设备 (576px - 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-logo h2 {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        gap: 1.2rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.95rem;
    }
    
    .hero {
        padding: 5rem 1rem 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
        min-width: 200px;
    }
    
    .hero-animation {
        width: 250px;
        height: 250px;
    }
    
    .floating-card {
        padding: 0.8rem;
    }
    
    .floating-card i {
        font-size: 1.3rem;
    }
    
    .floating-card span {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .content-section,
    .shopping-section,
    .social-section,
    .about-section,
    .contact-section {
        padding: 3rem 0;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .content-card h3 {
        font-size: 1.3rem;
    }
    
    .platform-card {
        padding: 1.2rem;
    }
    
    .platform-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .platform-logo {
        width: 50px;
        height: 50px;
    }
    
    .platform-header h3 {
        font-size: 1.2rem;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    .rebate-calculator {
        padding: 1.5rem;
    }
    
    .calculator-form {
        gap: 0.8rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 1.2rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .feature-details li {
        font-size: 0.85rem;
    }
    
    .social-demo {
        padding: 1.5rem;
    }
    
    .demo-post {
        padding: 1rem;
    }
    
    .about-text h3,
    .about-mission h3 {
        font-size: 1.5rem;
    }
    
    .about-text p,
    .about-mission p {
        font-size: 0.9rem;
    }
    
    .company-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-item h4 {
        font-size: 1.5rem;
    }
    
    .contact-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form h3 {
        font-size: 1.3rem;
    }
    
    .contact-form .form-group input,
    .contact-form .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section h3,
    .footer-section h4 {
        margin-bottom: 0.8rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* 小屏幕手机 (小于 576px) */
@media (max-width: 575px) {
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .nav-logo h2 {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
}

/* 超小屏幕 (小于 400px) */
@media (max-width: 400px) {
    .nav-logo h2 {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.3rem 0.4rem;
        font-size: 0.8rem;
    }
}

/* 导航菜单空间不足时的特殊处理 */
@media (max-width: 1100px) and (min-width: 992px) {
    .nav-menu {
        gap: 0.8rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.9rem;
    }
}
    
    .hero {
        padding: 4rem 0.5rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-animation {
        width: 200px;
        height: 200px;
    }
    
    .floating-card {
        padding: 0.6rem;
    }
    
    .floating-card i {
        font-size: 1.1rem;
    }
    
    .floating-card span {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        min-width: 180px;
    }
    
    .content-card {
        padding: 1.2rem;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .content-card h3 {
        font-size: 1.2rem;
    }
    
    .content-card p {
        font-size: 0.9rem;
    }
    
    .feature-list li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
    
    .platform-card {
        padding: 1rem;
    }
    
    .platform-header h3 {
        font-size: 1.1rem;
    }
    
    .platform-features {
        gap: 0.8rem;
    }
    
    .feature-item {
        font-size: 0.85rem;
    }
    
    .feature-item i {
        width: 18px;
    }
    
    .rebate-calculator {
        padding: 1.2rem;
    }
    
    .rebate-calculator h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .calculator-form {
        gap: 0.6rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .calculation-result {
        padding: 0.8rem;
        margin-top: 0.8rem;
    }
    
    .calculation-result p {
        font-size: 1rem;
    }
    
    .calculation-result span {
        font-size: 1.1rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .feature-details {
        font-size: 0.8rem;
    }
    
    .feature-details li {
        padding: 0.25rem 0;
    }
    
    .social-demo {
        padding: 1rem;
    }
    
    .demo-post {
        padding: 0.8rem;
    }
    
    .post-header {
        margin-bottom: 0.8rem;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
    }
    
    .user-info h4 {
        font-size: 0.9rem;
    }
    
    .user-info span {
        font-size: 0.75rem;
    }
    
    .post-content p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .post-actions {
        padding-top: 0.8rem;
    }
    
    .action-btn {
        padding: 0.4rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    
    .about-text h3,
    .about-mission h3 {
        font-size: 1.3rem;
    }
    
    .about-text p,
    .about-mission p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .company-stats {
        gap: 0.8rem;
    }
    
    .stat-item {
        padding: 0.8rem;
    }
    
    .stat-item h4 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .stat-item p {
        font-size: 0.8rem;
    }
    
    .value-item {
        padding: 1rem;
    }
    
    .value-item i {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .value-item h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .value-item p {
        font-size: 0.8rem;
    }
    
    .contact-item {
        padding: 0.8rem;
        gap: 0.6rem;
    }
    
    .contact-item i {
        font-size: 1.3rem;
    }
    
    .contact-item h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .contact-item p {
        font-size: 0.8rem;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
    
    .contact-form h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .contact-form form {
        gap: 0.8rem;
    }
    
    .contact-form .form-group input,
    .contact-form .form-group textarea {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .footer-section p {
        font-size: 0.85rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.3rem;
    }
    
    .footer-section ul li a {
        font-size: 0.85rem;
    }
    
    .social-links {
        gap: 0.8rem;
        margin-top: 0.8rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding-top: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }
}

/* 超小屏幕 (小于 375px) */
@media (max-width: 374px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-animation {
        width: 180px;
        height: 180px;
    }
    
    .floating-card {
        padding: 0.5rem;
    }
    
    .floating-card i {
        font-size: 1rem;
    }
    
    .floating-card span {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-width: 160px;
    }
    
    .content-card {
        padding: 1rem;
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .platform-card {
        padding: 0.8rem;
    }
    
    .rebate-calculator {
        padding: 1rem;
    }
    
    .feature-card {
        padding: 0.8rem;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .social-demo {
        padding: 0.8rem;
    }
    
    .demo-post {
        padding: 0.6rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
}

/* 横屏模式 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        height: auto;
        padding: 4rem 1rem 2rem;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-animation {
        width: 220px;
        height: 220px;
    }
    
    .floating-card {
        padding: 0.7rem;
    }
    
    .floating-card i {
        font-size: 1.2rem;
    }
    
    .floating-card span {
        font-size: 0.8rem;
    }
}

/* 平板横屏 */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-animation {
        width: 320px;
        height: 320px;
    }
    
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shopping-info {
        grid-template-columns: 1fr 1fr;
    }
    
    .social-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 高分辨率屏幕 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title {
        font-weight: 600;
    }
    
    .section-title {
        font-weight: 700;
    }
    
    .btn {
        font-weight: 500;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .hero-buttons,
    .btn,
    .nav-toggle {
        display: none !important;
    }
    
    .hero {
        background: none !important;
        color: black !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    .hero-title {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 18pt;
        color: black !important;
    }
    
    .content-card,
    .platform-card,
    .feature-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
}