:root {
    --primary: #000000;
    --secondary: #E60000;
    --gold: #FFD700;
    --accent: #FF3333;
    --bg-light: #F8F8F8;
    --text-dark: #333333;
    --text-light: #ffffff;
}

/* 基础样式 */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Roboto', sans-serif;
    color: var(--primary);
}

p {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary);
}

.btn {
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--accent);
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* 固定导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 3%;
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* 了解更多按钮样式 */
.btn-about-more {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-about-more:hover {
    transform: translateY(-3px);
    background: var(--accent);
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.3);
}

.logo {
    height: 40px;
    margin-right: 15px;
}

.nav-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* 导航栏中的品牌标语 */
.brand-tagline-nav {
    margin-right: 20px;
}

.tagline-content-nav h1 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
    white-space: nowrap;
}

.tagline-divider {
    color: var(--accent);
    margin: 0 8px;
    font-weight: 300;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    flex-grow: 1;
    margin-right: 5%;
}

.nav-menu {
    display: flex;
    margin-right: 20px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    padding: 8px 12px;
    font-size: 15px;
    position: relative;
    white-space: nowrap;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover:after {
    width: 70%;
}

/* 激活状态的导航链接 - 增强优先级确保显示红色 */
.nav-menu .nav-link.active {
    color: #FF3333 !important;
    font-weight: bold;
    opacity: 1;
}

.nav-menu .nav-link.active:after {
    width: 100%;
    background: #FF3333;
}

/* 确保logo透明显示 */
.logo {
    height: 40px;
    margin-right: 15px;
    background: transparent;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    font-size: 22px;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 15px;
}

/* 导航控制区域 */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* 语言切换 */
.lang-switch {
    border: 1px solid var(--text-light);
    padding: 7px 15px;
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
    outline: none;
    transition: all 0.3s;
    min-width: 70px;
    width: 70px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="%23003366"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.lang-switch:hover {
    border-color: var(--secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 购物车按钮 */
.cart-btn {
    position: relative;
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.cart-btn:hover {
    background: var(--gold);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cart-btn i {
    font-size: 18px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--cta);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    line-height: 1;
    padding: 0;
    margin: 0;
    text-align: center;
    transform: translateZ(0);
}

.app-download-btn {
    /* background: var(--cta); */
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    height: 22.5px;
    text-decoration: none;
}

.app-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    color: white;
    text-decoration: none;
}

.app-download-btn img {
    height: 50px;
    width: auto;
}

/* 品牌标语区 */
.brand-tagline {
    background: linear-gradient(to right, var(--primary), #004b8c);
    color: white;
    padding: 25px 0;
    margin-top: 75px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tagline-content {
    text-align: center;
}

.tagline-content h1 {
    color: white;
    font-size: 2rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.tagline-content p {
    margin: 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 主轮播图 */
.hero-swiper {
    height: 65vh;
    margin-top: 60px;
}

.swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

/* 物流地图覆盖 */
.logistics-overlay {
    position: absolute;
    bottom: 50px;
    left: 50px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 450px;
}

.logistics-overlay h2 {
    margin-top: 0;
    color: var(--primary);
    font-size: 2rem;
}

.countdown {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 15px;
}

.countries {
    margin-top: 15px;
    font-size: 1.1rem;
}

/* 促销内容 */
.promo-content {
    text-align: center;
    color: var(--primary);
    width: 100%;
    padding: 0 20px;
}

.promo-content h2 {
    color: var(--primary);
    font-size: 3rem;
    margin-bottom: 20px;
}

.promo-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--primary);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}
@media (max-width: 768px) {
    .promo-badge {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

@media (max-width: 576px) {
    .promo-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 375px) {
    .promo-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
}

/* APP下载轮播 */
.app-slide {
    background: linear-gradient(135deg, #003366, #001a33);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
    margin-left: -8%; /* 向左移动更多 */
}

.app-info {
    max-width: 68%;
    padding-right: 0;
    text-align: left;
    width: 100%;
    padding: 0 20px;
}

.app-info h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.app-mockup-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    max-height: 50vh;
    width: 100%; /* 确保容器占满整个宽度 */
    margin: 0 auto;
}

.app-mockup {
    max-height: 50vh;
    width: auto;
    height: auto;
    max-width: 85%; /* 控制图片最大宽度 */
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    margin: 0 auto; /* 居中显示 */
}

.app-badge {
    display: flex;
    align-items: center;
    margin-top: 25px;
    text-align: center;
    gap: 15px;
}

.app-download-btn {
    display: block;
    transition: transform 0.3s;
}

.app-download-btn:hover {
    transform: scale(1.05);
}

.app-download-btn img {
    height: 50px;
    width: auto;
}

/* 响应式设计优化 */
@media (min-width: 1200px) {
    .app-mockup-container {
        max-height: 50vh;
    }
    
    .app-mockup {
        max-height: 50vh;
    }
    
    .app-slide-content {
        margin-left: -8%; /* 大屏幕向左移动 */
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .app-mockup-container {
        max-height: 45vh;
    }
    
    .app-mockup {
        max-height: 45vh;
    }
    
    .app-slide-content {
        margin-left: -6%; /* 中等屏幕向左移动 */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .app-mockup-container {
        max-height: 40vh;
    }
    
    .app-mockup {
        max-height: 40vh;
    }
    
    .app-slide-content {
        margin-left: -5%; /* 小屏幕向左移动 */
    }
}

@media (max-width: 767px) {
    .app-slide-content {
        padding: 15px 10px;
        margin-left: -10%; /* 移动设备向左移动更多 */
    }
    
    .app-mockup-container {
        width: 100%;
        max-height: 300px;
        margin-top: 0;
    }
    
    .app-mockup {
        max-height: 300px;
        max-width: 80%;
        margin: 0 auto;
    }
    
    .app-store-badge {
        height: 30px;
    }
    
    .app-download-buttons {
        gap: 10px;
        max-width: 80%; /* 与app-mockup保持一致 */
        margin-top: 5px; /* 减少顶部间距 */
    }
}

@media (max-width: 576px) {
    .app-mockup-container {
        max-height: 250px;
    }
    
    .app-mockup {
        max-height: 250px;
        max-width: 75%;
    }
    
    .app-slide-content {
        margin-left: -12%; /* 超小屏幕向左移动更多 */
        padding: 12px 10px;
    }
    
    .app-store-badge {
        height: 28px;
    }
    
    .app-download-buttons {
        gap: 8px;
        max-width: 75%;
        margin-top: 3px; /* 进一步减少顶部间距 */
    }
}

@media (max-width: 480px) {
    .app-mockup {
        max-width: 70%;
    }
    
    .app-slide-content {
        margin-left: -45%; /* 极小屏幕向左移动更多 */
        padding: 10px 8px;
    }
    
    .app-store-badge {
        height: 25px;
    }
    
    .app-download-buttons {
        gap: 5px;
        max-width: 70%;
        margin-top: 1px; /* 极小屏幕上最小化顶部间距 */
    }
}

/* 添加超小屏幕的额外样式 */
@media (max-width: 375px) {
    .app-mockup {
        max-width: 65%;
    }
    
    .app-slide-content {
        margin-left: -55%; /* 超小屏幕向左移动更极端 */
    }
    
    .app-download-buttons {
        max-width: 65%;
    }
}

/* 添加最小屏幕的极端样式 */
@media (max-width: 320px) {
    .app-mockup {
        max-width: 60%;
    }
    
    .app-slide-content {
        margin-left: -65%; /* 最小屏幕极端向左移动 */
    }
    
    .app-download-buttons {
        max-width: 60%;
    }
}

.google-play-badge {
    height: 60px;
    cursor: pointer;
    transition: transform 0.3s;
}

.google-play-badge:hover {
    transform: scale(1.05);
}

/* 商品展示区域 */
.products-section {
    padding: 80px 0;
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-weight: bold;
    margin: 0 0 10px 0;
    color: var(--primary);
}
.product-category-name {
    font-weight: bold;
    margin: 0 0 10px 0;
    color: var(--primary);
    text-align: center;
}

.product-price {
    color: var(--cta);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.add-to-cart {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart:hover {
    background: var(--gold);
    color: var(--primary);
}

/* 购物车弹窗 */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 2000;
}

.cart-modal {
    background: white;
    width: 90%;
    max-width: 600px;
    padding: 30px;
    border-radius: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
}

.cart-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--cta);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: #f5f5f5;
}

.cart-item-quantity {
    width: 40px;
    text-align: center;
}

.remove-item {
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 10px;
}

.remove-item:hover {
    color: var(--cta);
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 2px solid #eee;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: bold;
}

.checkout-btn {
    background: var(--cta);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.checkout-btn:hover {
    background: #e55a2a;
    transform: translateY(-3px);
}

.empty-cart {
    text-align: center;
    padding: 30px 0;
    color: #999;
}

/* 支付方式弹窗 */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 2100;
}

.payment-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.payment-title {
    color: var(--primary);
    margin-bottom: 20px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover {
    border-color: var(--primary);
    background: #f9f9f9;
}

.payment-method-icon {
    font-size: 24px;
    margin-right: 15px;
    color: var(--primary);
}

.payment-method-details {
    flex: 1;
    text-align: left;
}

.payment-method-name {
    font-weight: bold;
}

.payment-method-description {
    font-size: 0.9rem;
    color: #666;
}

/* 确保选中状态的样式优先级更高 */
.payment-method.selected {
    border-color: var(--primary);
    background: rgba(0, 51, 102, 0.05) !important; /* 添加!important确保优先级 */
    box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.2); /* 添加外部阴影增强视觉效果 */
}

.payment-method.selected .payment-method-icon {
    color: var(--primary);
}

.payment-method.selected .payment-method-name {
    color: var(--primary);
    font-weight: 700; /* 增强字体粗细 */
}

.confirm-payment {
    background: var(--cta);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.confirm-payment:hover {
    background: #e55a2a;
    transform: translateY(-3px);
}

/* 核心功能区 */
.core-features {
    padding: 80px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

/* 信任背书区 */
.trust-section {
    padding: 80px 0;
}

.partner-wall {
    display: flex;
    overflow-x: auto;
    gap: 40px;
    padding: 30px 0;
    justify-content: center;
    flex-wrap: nowrap;
    position: relative;
    /* 隐藏滚动条但保持功能 */
    scrollbar-width: none; /* Firefox */
}

.partner-wall::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.partner-logo {
    height: 80px;
    min-width: 180px;
    max-width: 220px;
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    /* filter: grayscale(100%); */
    border: 1px solid #e0e0e0;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonials {
    margin-top: 60px;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.testimonials-slider {
    padding: 20px 5px 60px;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

/* 当只有一个或两个评价时的特殊样式 */
.testimonials-slider.single-testimonial .testimonial-card,
.testimonials-slider.double-testimonial .testimonial-card {
    margin: 0 auto;
    max-width: 100%;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%; /* 确保所有卡片高度一致 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto; /* 居中显示 */
    max-width: 500px; /* 限制单个卡片的最大宽度 */
}

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

.testimonial-avatar {
    margin-bottom: 15px;
    text-align: center;
}

.testimonial-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.testimonial-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-rating {
    margin-bottom: 10px;
    color: #FFD700; /* 金色星星 */
    display: flex;
    justify-content: center; /* 星星居中 */
}

.testimonial-text {
    font-style: italic;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    flex-grow: 1;
    text-align: center; /* 文本居中 */
}

.testimonial-author {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 10px;
    text-align: center; /* 作者信息居中 */
}

.testimonial-author h4 {
    margin: 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.testimonial-date {
    font-size: 0.85rem;
    color: #999;
}

/* 客户评价轮播控制 */
.testimonial-pagination {
    bottom: 0;
}

.testimonial-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
}

.testimonial-pagination .swiper-pagination-bullet-active {
    background: var(--primary);
}

/* 客户评价导航按钮 */
.testimonial-button-next,
.testimonial-button-prev {
    color: var(--primary);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.testimonial-button-next:after,
.testimonial-button-prev:after {
    font-size: 18px;
}

/* 响应式调整 - 客户评价 */
@media (min-width: 992px) {
    .testimonial-card {
        /* 大屏幕上水平布局 */
        flex-direction: row;
        text-align: left;
        max-width: 100%;
    }
    
    .testimonial-avatar {
        margin-right: 20px;
        margin-bottom: 0;
    }
    
    .testimonial-content {
        text-align: left;
    }
    
    .testimonial-rating {
        justify-content: flex-start;
    }
    
    .testimonial-text {
        text-align: left;
    }
    
    .testimonial-author {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .testimonial-button-next,
    .testimonial-button-prev {
        display: none; /* 在移动设备上隐藏导航按钮 */
    }
}

/* 虚拟导览 */
.virtual-tour-section {
    padding: 80px 0;
    background: linear-gradient(to right, #f5f5f5, #e0e0e0);
}

.virtual-tour {
    height: 500px;
    background: #f0f0f0;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tour-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: 50px;
    z-index: 10;
}

.warehouse-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.warehouse-btn {
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 30px;
    background: white;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s;
}

.warehouse-btn.active {
    background: var(--primary);
    color: white;
}

/* 弹窗样式 */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 2000;
}

.contact-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    transition: all 0.3s;
}

.close-btn:hover {
    background: #e0e0e0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.cta-button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #e55a2a;
}

/* 页脚 */
    footer {
        background-color: var(--primary);
        color: white;
        padding: 60px 0 30px;
    }

    .footer-content {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 40px;
    }

    .footer-logo {
        height: 60px;
        margin-bottom: 20px;
        filter: brightness(1.5);
    }

    .footer-about p {
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 20px;
    }

    .social-links {
        display: flex;
        gap: 15px;
        margin-top: 20px;
    }

    .social-icon {
        color: white;
        background-color: rgba(255, 255, 255, 0.1);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
    }

    .social-icon:hover {
        background-color: var(--accent);
        color: var(--primary);
        transform: translateY(-3px);
    }

    .footer-links h4 {
        color: white;
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 10px;
    }

    .footer-links h4:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background-color: var(--accent);
    }

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

    .footer-links li {
        margin-bottom: 10px;
        display: flex; /* 让图标与内容同一行 */
        align-items: center;
        gap: 10px;
        overflow-wrap: anywhere; /* 超长内容在图标后面换行 */
        word-break: break-word; /* 兼容性 */
    }

    .footer-links li i {
        flex: 0 0 auto; /* 图标不被压缩换行 */
        min-width: 18px;
        text-align: center;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: color 0.3s;
    }

    .footer-links a:hover {
        color: var(--accent);
    }

    .footer-app-download {
        margin-top: 20px;
    }

    .footer-app-download .app-download-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    .copyright {
        text-align: center;
        margin-top: 50px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.6);
    }

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold);
    color: var(--primary);
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 20px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .tagline-content-nav h1 {
        font-size: 0.95rem;
    }
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-menu {
        margin-right: 15px;
    }

    .nav-link {
        padding: 8px 8px;
        font-size: 14px;
    }

    .tagline-content-nav h1 {
        font-size: 0.85rem;
    }

    .tagline-divider {
        margin: 0 5px;
    }
}

@media (max-width: 768px) {
    .hero-swiper {
        height: 60vh;
        margin-top: 60px;
    }

    .navbar {
        padding: 10px 3%;
    }

    .logistics-overlay {
        bottom: 30px;
        left: 30px;
        padding: 20px;
    }

    .app-slide {
        flex-direction: column;
        padding: 30px 3%;
        gap: 15px;
    }

    .app-info {
        max-width: 100%;
        width: 100%;
        text-align: left;
        padding-right: 0;
        margin-bottom: 15px;
    }

    .app-mockup-container {
        width: 100%;
        max-height: 300px;
        margin-top: 0;
    }

    .app-mockup {
        max-height: 100%;
        max-width: 95%;
        margin: 0 auto;
    }

    .app-badge {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tagline-content h1 {
        font-size: 1.5rem;
    }

    .tagline-content p {
        font-size: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-right {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
    }

    .nav-controls {
        gap: 10px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--primary);
        padding: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        margin-right: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid;
        width: 100%;
        text-align: center;
        font-size: 15px;
    }


    .lang-switch {
        padding: 6px 12px;
        min-width: 60px;
        width: 60px;
    }

    .cart-btn {
        margin-left: 0;
    }

    .brand-tagline-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .lang-switch {
        padding: 5px 8px;
        font-size: 12px;
        min-width: 50px;
        width: 50px;
    }

    .nav-controls {
        gap: 8px;
    }

    .cart-btn {
        width: 35px;
        height: 35px;
    }

    .cart-btn i {
        font-size: 16px;
    }

    .navbar {
        padding: 8px 2%;
    }

    .logo {
        height: 35px;
    }

    .hero-swiper {
        margin-top: 55px;
    }

    .app-slide {
        padding: 20px 3%;
    }

    .app-info h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .app-info p {
        font-size: 0.95rem;
    }

    .app-mockup-container {
        height: 250px;
        margin-top: 20px;
    }

    .app-badge {
        margin-top: 15px;
        justify-content: center;
    }

    .logistics-overlay {
        bottom: 20px;
        left: 20px;
        right: 20px;
        padding: 15px;
    }

    .logistics-overlay h2 {
        font-size: 1.5rem;
    }

    .tagline-content h1 {
        font-size: 1.2rem;
    }

    .tagline-divider {
        margin: 0 8px;
    }

    .tagline-content p {
        font-size: 0.9rem;
    }

    .brand-tagline {
        padding: 15px 0;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}


.menu-open {
    overflow: hidden;
}

.nav-link.active {
    color: var(--primary);
    font-weight: bold;
}

.nav-link.active:after {
    width: 70%;
    background: var(--gold);
}

.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 15px;
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary);
    background-color: transparent;
    color: var(--primary);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    outline: none;
}

.category-btn:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-btn.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}


/* 服务瞬间部分 */
.service-snapshots {
    padding: 60px 0;
    /* background-color: #f8f9fa; */
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.snapshots-slider {
    padding: 20px 5px 60px;
    position: relative;
}

.snapshot-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.snapshot-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.snapshot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.snapshot-card:hover .snapshot-image img {
    transform: scale(1.05);
}

.snapshot-info {
    padding: 20px;
}

.snapshot-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.snapshot-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.snapshots-slider .swiper-pagination {
    bottom: 20px;
}

.snapshots-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
}

.snapshots-slider .swiper-pagination-bullet-active {
    background: var(--primary);
}

.snapshots-slider .swiper-button-next,
.snapshots-slider .swiper-button-prev {
    color: var(--primary);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.snapshots-slider .swiper-button-next:after,
.snapshots-slider .swiper-button-prev:after {
    font-size: 18px;
}

@media (max-width: 768px) {
    .snapshots-slider .swiper-button-next,
    .snapshots-slider .swiper-button-prev {
        display: none;
    }
    
    .snapshot-image {
        height: 180px;
    }
    
    .snapshot-info h3 {
        font-size: 1.1rem;
    }
    
    .snapshot-info p {
        font-size: 0.9rem;
    }
} 

.country-selector {
    margin: 30px 0;
}

.country-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.country-tab {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.country-tab .flag-icon {
    width: 24px;
    height: 16px;
    margin-right: 8px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.country-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.country-tab:hover:not(.active) {
    background: #e9e9e9;
    transform: translateY(-2px);
}

.country-content {
    display: none;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 22px;
    color: var(--primary);
    width: 45px;
    height: 45px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.contact-item h3 {
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}


/* 客户评价部分 */
.testimonial-pagination {
    bottom: 0;
}

.testimonial-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
}

.testimonial-pagination .swiper-pagination-bullet-active {
    background: var(--primary);
}

/* 服务瞬间部分的额外样式 */
.swiper-slide {
    height: auto; /* 确保每个幻灯片高度自适应 */
}

/* 图片占位符样式，当真实图片无法加载时应用 */
.snapshot-image {
    position: relative;
}

.snapshot-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f1f1, #e0e0e0);
    z-index: 0;
}

.snapshot-image::after {
    content: '\f03e'; /* FontAwesome图片图标代码 */
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: #bbb;
    z-index: 1;
}

.snapshot-image img {
    position: relative;
    z-index: 2;
}

/* 确保Swiper导航按钮在自定义样式下仍然正常工作 */
.snapshots-slider .swiper-button-next::after,
.snapshots-slider .swiper-button-prev::after {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* 加载中的动画效果 */
.snapshots-slider.swiper-container-initialized .swiper-wrapper {
    transition-timing-function: ease-out;
}

/* 可见性控制 */
.snapshots-slider:not(.swiper-container-initialized) .swiper-button-next,
.snapshots-slider:not(.swiper-container-initialized) .swiper-button-prev,
.snapshots-slider:not(.swiper-container-initialized) .swiper-pagination {
    display: none;
}

/* 响应式调整 */
@media (min-width: 768px) {
    .testimonial-card {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .testimonial-avatar {
        margin-right: 20px;
        margin-bottom: 0;
    }
    
    .testimonial-content {
        text-align: left;
    }
}

@media (max-width: 1200px) {
    .snapshots-slider {
        max-width: 100%;
    }
    
    .snapshot-card {
        width: calc(100% - 20px); /* 确保卡片不会超出容器 */
    }
}

@media (max-width: 992px) {
    .snapshot-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .snapshots-slider .swiper-button-next,
    .snapshots-slider .swiper-button-prev {
        display: none;
    }
    
    .snapshot-image {
        height: 180px;
    }
    
    .snapshot-info h3 {
        font-size: 1.1rem;
    }
    
    .snapshot-info p {
        font-size: 0.9rem;
    }
    
    .service-snapshots {
        padding: 40px 0;
    }
    
    .section-subtitle {
        margin-bottom: 20px;
        font-size: 1rem;
    }
    
    .testimonial-card {
        text-align: center;
    }
    
    .testimonial-rating {
        justify-content: center;
        display: flex;
    }
}

@media (max-width: 576px) {
    .snapshot-image {
        height: 160px;
    }
    
    .snapshot-info {
        padding: 15px;
    }
    
    .snapshot-info h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .snapshot-info p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .snapshots-slider {
        padding: 10px 5px 50px;
    }
    
    .section-subtitle {
        padding: 0 15px;
    }
}

/* 悬浮客服按钮 */
.floating-social {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
    opacity: 0; /* 初始不可见 */
    transition: opacity 0.5s ease, transform 0.3s ease; /* 添加过渡效果 */
}

.social-float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    position: relative; /* 为工具提示添加定位 */
}

/* 按钮工具提示 */
.social-float-btn::before {
    content: attr(title);
    position: absolute;
    right: 60px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(10px);
}

.social-float-btn::after {
    content: '';
    position: absolute;
    right: 55px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(10px);
}

.social-float-btn:hover::before,
.social-float-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 移动设备上隐藏工具提示 */
@media (max-width: 768px) {
    .social-float-btn::before,
    .social-float-btn::after {
        display: none;
    }
}

.social-float-btn i {
    font-size: 24px;
}

.social-float-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.social-float-btn.tiktok {
    background: linear-gradient(45deg, #000000, #25F4EE, #FE2C55);
    background-size: 300% 300%;
    animation: tiktok-gradient 3s ease infinite;
}

.social-float-btn.facebook {
    background: #1877F2;
}

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

/* 媒体查询 - 针对移动设备调整悬浮按钮样式 */
@media (max-width: 768px) {
    .floating-social {
        right: 10px;
        top: auto;
        bottom: 70px; /* 避免与返回顶部按钮冲突 */
        transform: none;
        flex-direction: column;
        gap: 10px;
    }
    
    .social-float-btn {
        width: 40px;
        height: 40px;
    }
    
    .social-float-btn i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .floating-social {
        bottom: 60px;
    }
    
    .social-float-btn {
        width: 35px;
        height: 35px;
    }
    
    .social-float-btn i {
        font-size: 18px;
    }
}

.social-float-btn.clicked {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% {transform: scale(1);}
    50% {transform: scale(1.2);}
    100% {transform: scale(1);}
}

.app-download-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center; /* 居中显示两个按钮 */
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    width: 100%; /* 使容器宽度为100% */
    max-width: 85%; /* 设置最大宽度与app-mockup相同 */
    margin-left: auto;
    margin-right: auto;
}

.app-download-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    flex: 1; /* 让两个按钮平均分配空间 */
    width: 50%; /* 各占50%空间 */
}

.google-link, .apple-link {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* 居中显示图片 */
    height: 40px;
    width: 100%; /* 占满父容器 */
}

.app-store-badge {
    height: 40px;
    width: auto;
    max-width: 100%; /* 限制最大宽度 */
    object-fit: contain;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .app-download-buttons {
        max-width: 95%; /* 移动端增加最大宽度 */
    }
    
    .app-download-link,
    .google-link,
    .apple-link {
        height: 35px;
        width: 50%; /* 保持50%宽度 */
    }
    
    .app-store-badge {
        height: 35px;
    }
}

@media (max-width: 576px) {
    .app-download-link,
    .google-link,
    .apple-link {
        height: 30px;
    }
    
    .app-store-badge {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .app-download-buttons {
        gap: 8px;
    }
}
