/* ======================= 移动端专业样式设计 ======================= */

/* 基础重置和通用样式 */
@media screen and (max-width: 768px) {
    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        line-height: 1.6;
        color: #333;
        background-color: #f8f9fa;
        font-size: 16px;
        overflow-x: hidden;
    }

    /* ======================= 头部样式 ======================= */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transition: transform 0.3s ease-in-out;
    }

    .top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 20px;
        background: #f8f9fa;
        font-size: 12px;
        border-bottom: 1px solid #e9ecef;
    }

    .top-bar p {
        margin: 0;
        color: #666;
        flex: 1;
        text-align: center;
    }

    .top-bar-actions {
        display: flex;
        gap: 15px;
        align-items: center;
    }

    .top-bar-actions a {
        color: #333;
        text-decoration: none;
        font-size: 12px;
        position: relative;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .cart-badge,
    .wishlist-badge {
        background: #4CAF50;
        color: white;
        border-radius: 50%;
        width: 16px;
        height: 16px;
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: -8px;
        right: -8px;
    }

    .main-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        min-height: 70px;
    }

    .logo-container {
        flex: 1;
    }

    .logo-image {
        height: 40px;
        width: auto;
        max-width: 180px;
    }

    /* 汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }

    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:focus {
        background-color: #f0f0f0;
        outline: none;
    }

    .hamburger-bar {
        display: block;
        width: 24px;
        height: 3px;
        background-color: #333;
        margin: 3px 0;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transform-origin: center;
    }

    /* 汉堡菜单动画 */
    .mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* 主导航菜单 */
    .main-navigation {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
    }

    .main-navigation.is-open {
        transform: translateX(0);
    }

    .nav-menu {
        list-style: none;
        padding: 40px 0;
        margin: 0;
        height: 100%;
        overflow-y: auto;
    }

    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        color: #fff;
        text-decoration: none;
        padding: 20px 30px;
        font-size: 18px;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
    }

    .nav-menu a:hover,
    .nav-menu a:focus {
        background-color: rgba(255, 255, 255, 0.1);
        color: #4CAF50;
        transform: translateX(10px);
    }

    .nav-menu a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 4px;
        background: #4CAF50;
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .nav-menu a:hover::before {
        transform: scaleY(1);
    }

    /* ======================= 主内容区域 ======================= */
    .site-main {
        padding: 0;
        margin-top: 0;
    }

    /* 英雄横幅 */
    .hero-banner {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
        padding: 32px 0 0 0;
        min-height: 0;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
            url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
        pointer-events: none;
        animation: backgroundMove 20s ease-in-out infinite;
    }

    @keyframes backgroundMove {
        0%, 100% { transform: translateX(0) translateY(0); }
        25% { transform: translateX(5px) translateY(-5px); }
        50% { transform: translateX(-3px) translateY(3px); }
        75% { transform: translateX(3px) translateY(5px); }
    }

    .hero-content {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        padding-bottom: 0 !important;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero-banner h1 {
        font-size: 2.2rem;
        font-weight: 800;
        margin-bottom: 8px;
        color: #fff;
        text-shadow: 0 4px 12px rgba(0,0,0,0.18);
        letter-spacing: 1px;
        background: linear-gradient(90deg, #fff 60%, #f093fb 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    @keyframes shimmer {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    .hero-banner p {
        font-size: 1.1rem;
        color: rgba(255,255,255,0.85);
        margin-bottom: 12px;
        font-weight: 400;
        padding-bottom: 0 !important;
    }

    .hero-image {
        position: relative;
        z-index: 2;
        max-width: 280px;
        width: 100%;
    }

    .hero-product-image {
        width: 100%;
        height: auto;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        transform: perspective(1000px) rotateY(-5deg);
        transition: transform 0.3s ease;
    }

    .hero-product-image:hover {
        transform: perspective(1000px) rotateY(0deg) scale(1.05);
    }


    .hero-intro-slider .intro-slides {
        position: relative;
        overflow: hidden;
        background: none;
        border: none;
        min-height: auto;
        touch-action: pan-y;
        box-shadow: none;
        transition: all 0.3s ease;
    }

    .hero-intro-slider .intro-slides:hover {
        transform: none;
        box-shadow: none;
    }

    .hero-intro-slider .intro-slide {
        display: none;
        padding: 20px;
        margin: 0 auto;
        animation: slideOut 0.3s ease-out;
        text-align: center;
        width: 100%;
    }

    .hero-intro-slider .intro-slide.active {
        display: block;
        animation: slideIn 0.5s ease-in;
    }

    .hero-intro-slider .intro-slide h2 {
        color: #ffffff;
        font-size: 22px;
        font-weight: 700;
        margin: 0 auto 12px auto;
        padding: 0;
        line-height: 1.2;
        text-shadow: 0 3px 6px rgba(0,0,0,0.5);
        text-align: center;
        width: 100%;
    }

    .hero-intro-slider .intro-slide p {
        color: rgba(255, 255, 255, 0.95);
        font-size: 16px;
        line-height: 1.5;
        margin: 0 auto;
        text-shadow: 0 2px 4px rgba(0,0,0,0.4);
        font-weight: 400;
        max-width: 100%;
        padding: 0;
        text-align: center;
        width: 100%;
    }

    .hero-intro-slider .intro-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin: 15px 0 0 0;
        padding: 0;
    }

    .hero-intro-slider .intro-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border: 2px solid rgba(255, 255, 255, 0.2);
        position: relative;
    }

    .hero-intro-slider .intro-dot::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.8);
        transform: translate(-50%, -50%) scale(0);
        transition: transform 0.3s ease;
    }

    .hero-intro-slider .intro-dot.active {
        background: rgba(76, 175, 80, 0.8);
        border-color: rgba(76, 175, 80, 0.6);
        transform: scale(1.3);
        box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
    }

    .hero-intro-slider .intro-dot.active::after {
        transform: translate(-50%, -50%) scale(1);
        background: #ffffff;
    }

    /* 产品展示区域 */
    .product-showcase {
        padding: 30px 20px;
        background: #f8f9fa;
        margin-top: -5px;
    }

    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }

    .product-item {
        background: white;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .product-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

    .product-image {
        width: 100%;
        height: 140px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .product-item:hover .product-image {
        transform: scale(1.1);
    }

    .product-info {
        padding: 15px;
        text-align: center;
    }

    .product-info h3 {
        font-size: 16px;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 8px;
    }

    .product-info p {
        font-size: 13px;
        color: #666;
        margin: 0;
        line-height: 1.4;
    }

    /* 品牌介绍区域 */
    .brand-intro {
        padding: 40px 0;
        background: #fff;
    }

    .intro-slider {
        position: relative;
        max-width: 100%;
        margin: 0 auto;
    }

    .intro-slides {
        position: relative;
        overflow: hidden;
        border-radius: 15px;
        margin: 0 20px;
        background: #f8f9fa;
        min-height: 200px;
        touch-action: pan-y;
    }

    .intro-slide {
        display: none;
        padding: 30px 25px;
        border-left: 4px solid #4CAF50;
        animation: slideOut 0.3s ease-out;
    }

    .intro-slide.active {
        display: block;
        animation: slideIn 0.5s ease-in;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes slideOut {
        from {
            opacity: 1;
            transform: translateX(0);
        }
        to {
            opacity: 0;
            transform: translateX(-30px);
        }
    }

    .intro-slide h2 {
        color: #2c3e50;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .intro-slide p {
        color: #555;
        font-size: 15px;
        line-height: 1.6;
        margin: 0;
    }

    /* 滑动指示器 */
    .intro-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
        padding: 0 20px;
    }

    .intro-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #ddd;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .intro-dot.active {
        background: #4CAF50;
        transform: scale(1.2);
    }

    /* 文本内容区域 */
    .text-content {
        padding: 30px 20px;
        background: #fff;
        margin-top: -20px;
        border-radius: 20px 20px 0 0;
        position: relative;
        z-index: 2;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    }

    .text-slider-container {
        max-width: 100%;
        margin: 0 auto;
    }

    .slider-slides {
        position: relative;
        overflow: hidden;
        border-radius: 15px;
        background: #f8f9fa;
        min-height: 300px;
        touch-action: pan-y;
        user-select: none;
    }

    .slide {
        display: none;
        padding: 30px 25px;
        animation: fadeOut 0.3s ease-out;
    }

    .slide.active-slide {
        display: block;
        animation: fadeIn 0.5s ease-in;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeOut {
        from {
            opacity: 1;
            transform: translateY(0);
        }
        to {
            opacity: 0;
            transform: translateY(-20px);
        }
    }

    .slide h1,
    .slide h2 {
        color: #2c3e50;
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    .slide p {
        color: #555;
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 0;
    }

    /* 幻灯片指示器 */
    .slider-indicators {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .slider-dot.active {
        background: #4CAF50;
        transform: scale(1.2);
    }

    /* 幻灯片导航 */
    .slider-navigation {
        display: flex;
        justify-content: space-between;
        margin-top: 25px;
        gap: 15px;
    }

    .prev-btn,
    .next-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 20px;
        background: #4CAF50;
        color: white;
        border: none;
        border-radius: 25px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        flex: 1;
        justify-content: center;
        max-width: 140px;
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    }

    .prev-btn:hover,
    .next-btn:hover {
        background: #45a049;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    }

    .prev-btn:active,
    .next-btn:active {
        transform: translateY(0);
    }

    .prev-btn svg,
    .next-btn svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    /* ======================= 页脚样式 ======================= */
    .site-footer {
        background: #2c3e50;
        color: #ecf0f1;
        margin-top: 40px;
    }

    .footer-main {
        padding: 40px 20px 30px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        text-align: center;
    }

    .footer-column h4 {
        color: #4CAF50;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 15px;
        padding-bottom: 8px;
        border-bottom: 2px solid #4CAF50;
        display: inline-block;
    }

    .footer-column p {
        margin-bottom: 10px;
        line-height: 1.6;
    }

    .footer-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-column ul li {
        margin-bottom: 8px;
    }

    .footer-column a {
        color: #bdc3c7;
        text-decoration: none;
        transition: color 0.3s ease;
        display: inline-block;
    }

    .footer-column a:hover {
        color: #4CAF50;
        transform: translateX(5px);
    }

    .footer-bottom {
        background: #1a252f;
        padding: 20px;
        text-align: center;
        border-top: 1px solid #34495e;
    }

    .footer-bottom p {
        margin-bottom: 15px;
        font-size: 14px;
        color: #95a5a6;
    }

    .footer-payment-methods {
        max-width: 200px;
        height: auto;
        opacity: 0.8;
        border-radius: 8px;
    }

    /* ======================= 辅助工具类 ======================= */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    /* 触摸优化 */
    .mobile-menu-toggle,
    .prev-btn,
    .next-btn,
    .nav-menu a {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* 平滑滚动 */
    html {
        scroll-behavior: smooth;
    }

    /* 性能优化 */
    .main-navigation {
        will-change: transform;
    }

    .slide {
        will-change: opacity, transform;
    }

    /* 暗色模式支持 */
    @media (prefers-color-scheme: dark) {
        body {
            background-color: #1a1a1a;
            color: #e0e0e0;
        }

        .site-header {
            background: #2d2d2d;
            border-bottom: 1px solid #404040;
        }

        .text-content {
            background: #2d2d2d;
        }

        .slider-slides {
            background: #3a3a3a;
        }

        .slide h1,
        .slide h2 {
            color: #ffffff;
        }

        .slide p {
            color: #b0b0b0;
        }
    }
}

/* 小屏幕优化 (iPhone SE等) */
@media screen and (max-width: 375px) {
    .main-header {
        padding: 12px 15px;
    }

    .logo-image {
        height: 35px;
    }

    .hero-banner {
        padding: 50px 15px 30px;
    }

    .hero-banner h1 {
        font-size: 24px;
    }

    .text-content {
        padding: 25px 15px;
    }

    .slide {
        padding: 25px 20px;
    }

    .slide h1,
    .slide h2 {
        font-size: 20px;
    }

    .footer-main {
        padding: 30px 15px 25px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-column h4 {
        font-size: 15px;
    }
}

/* 超小屏幕 */
@media screen and (max-width: 320px) {
    .hero-banner h1 {
        font-size: 22px;
    }

    .slide h1,
    .slide h2 {
        font-size: 18px;
    }

    .prev-btn,
    .next-btn {
        padding: 10px 15px;
        font-size: 13px;
        max-width: 120px;
    }
}

.hero-intro-slider {
    width: 94%;
    margin: 0 auto 10px auto;
    background: rgba(255,255,255,0.55);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none;
    padding: 14px 8px 14px 8px;
    position: relative;
    z-index: 2;
    border: 1.5px solid rgba(255,255,255,0.25);
}

.hero-intro-slider .intro-slide {
    color: #222;
    text-align: center;
    padding: 0;
    margin: 0;
}

.hero-intro-slider .intro-slide h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #764ba2;
    letter-spacing: 0.5px;
    text-shadow: none;
}

.hero-intro-slider .intro-slide p {
    font-size: 0.98rem;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

.hero-intro-slider .intro-dots {
    margin-top: 8px;
}

.hero-intro-slider .intro-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1c4e9;
    margin: 0 3px;
    transition: background 0.3s;
    border: none;
}

.hero-intro-slider .intro-dot.active {
    background: #764ba2;
}