/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局变量 */
:root {
    --primary-color: #232f3e;
    --secondary-color: #0066cc;
    --accent-color: #4CAF50;
    --light-color: #f0f8ff;
    --dark-color: #0f172a;
    --border-radius: 4px;
    --box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--light-color);
    background-image: 
        linear-gradient(to bottom, rgba(240, 248, 255, 0.8), rgba(240, 248, 255, 1)),
        radial-gradient(circle at top right, rgba(102, 179, 255, 0.1), transparent 50%),
        radial-gradient(circle at bottom left, rgba(0, 102, 204, 0.05), transparent 50%);
    background-attachment: fixed;
    transition: all 0.5s ease;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 16px;
}

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

.btn-primary.btn-green {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary.btn-green:hover {
    background-color: #45a049;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.btn-large {
    padding: 12px 36px;
    font-size: 18px;
}

/* 英雄区域按钮容器 */
.hero-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* 头部样式 */
header {
    background-color: white !important;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 确保日间模式header始终为白色 */
body:not(.dark-mode) header {
    background-color: white !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.15);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo a {
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-right: 30px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #ff9900;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #0066cc 0%, #66b3ff 100%);
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text p {
    font-size: 24px;
    margin-bottom: 40px;
    text-align: left;
    color: #ccc;
}

/* 轮播图样式 */
.hero-carousel {
    flex: 1;
    max-width: 600px;
    min-height: 300px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    min-height: 300px;
    width: 100%;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

/* 轮播控制按钮 */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.carousel-control {
    background-color: rgba(255,255,255,0.8);
    color: #232f3e;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background-color: white;
    transform: scale(1.1);
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: white;
}

.indicator:hover {
    background-color: rgba(255,255,255,0.6);
}

/* 通用 section 样式 */
section {
    padding: 80px 0;
}

/* 产品展示区域特殊样式 */
.products {
    padding-top: 10px;
    margin-top: -20px;
}

/* 解决方案区域特殊样式 */
.solutions {
    padding-top: 0;
    margin-top: -20px;
}

/* 产品权益区域特殊样式 */
.benefits {
    padding-top: 40px;
}

/* 客户成功案例区域特殊样式 */
.customers {
    padding-top: 20px;
    margin-top: -50px;
    padding-bottom: 60px;
}

/* 第三方应用区域特殊样式 */
.third-party {
    padding-top: 20px;
    margin-top: -30px;
}

/* 出海服务区域特殊样式 */
.出海服务 {
    padding-top: 20px;
    margin-top: -20px;
}

/* 全球覆盖区域特殊样式 */
.global-reach {
    padding-top: 20px;
    margin-top: -50px;
}

/* 地球图样式 */
.earth-map {
    margin-top: 30px;
    text-align: center;
    width: 100%;
    height: 400px;
}

.earth-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}

section h2 {
    font-size: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

section p {
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
    color: #666;
}

/* 产品权益网格 */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.benefit-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-card p {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.product-card .learn-more {
    color: #ff9900;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product-card .learn-more:hover {
    color: #e68a00;
    text-decoration: underline;
}

/* 解决方案网格 */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.solution-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.solution-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.solution-card p {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.solution-card .learn-more {
    color: #ff9900;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.solution-card .learn-more:hover {
    color: #e68a00;
    text-decoration: underline;
}

/* 全球覆盖统计 */
.reach-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 700;
    color: #232f3e;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 16px;
    color: #666;
}

/* 行动召唤 */
.cta {
    background-color: #232f3e;
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: 40px;
}

/* 页脚 */
footer {
    background-color: #191e23;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content {
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-carousel {
        max-width: 500px;
    }

    .carousel-slide img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .main-nav ul li {
        margin-right: 0;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 18px;
        text-align: center;
    }

    .hero-carousel {
        max-width: 100%;
        margin-top: 10px;
        min-height: 250px;
        width: 100%;
    }

    .carousel-container {
        min-height: 250px;
    }

    .carousel-slide img {
        height: 250px;
        width: 100%;
    }

    section h2 {
        font-size: 28px;
    }

    section p {
        font-size: 16px;
    }

    .product-grid,
    .solution-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .benefit-card img {
        height: 150px;
    }

    .reach-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-carousel {
        min-height: 200px;
        margin-top: 10px;
    }

    .carousel-container {
        min-height: 200px;
    }

    .carousel-slide img {
        height: 200px;
        width: 100%;
    }

    section h2 {
        font-size: 24px;
    }

    section p {
        font-size: 14px;
    }

    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .benefit-card img {
        height: 120px;
    }

    .reach-stats {
        grid-template-columns: 1fr;
    }

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

/* 夜间模式样式 */
body.dark-mode {
    background: 
        linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%),
        radial-gradient(circle at 20% 20%, rgba(100, 200, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(150, 100, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 150, 100, 0.05) 0%, transparent 50%);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.5s ease;
    position: relative;
}

body.dark-mode::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(100, 200, 255, 0.03) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(150, 100, 255, 0.03) 50%, transparent 100%);
    z-index: -1;
}

body.dark-mode header {
    background: linear-gradient(135deg, #0066cc 0%, #66b3ff 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

body.dark-mode .main-nav ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.3);
}

/* 夜间模式logo白色 */
body.dark-mode .logo a {
    color: white !important;
}

body.dark-mode .logo a svg {
    stroke: white !important;
}

body.dark-mode section h2 {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 15px rgba(100, 200, 255, 0.4);
}

body.dark-mode section p {
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 5px rgba(100, 200, 255, 0.2);
}

body.dark-mode .product-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(100, 200, 255, 0.2);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(100, 200, 255, 0.1);
    transition: all 0.3s ease;
}

body.dark-mode .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(100, 200, 255, 0.2);
    border: 1px solid rgba(100, 200, 255, 0.4);
}

body.dark-mode .solution-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(150, 100, 255, 0.2);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(150, 100, 255, 0.1);
    transition: all 0.3s ease;
}

body.dark-mode .solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(150, 100, 255, 0.2);
    border: 1px solid rgba(150, 100, 255, 0.4);
}

body.dark-mode .stat-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 150, 100, 0.2);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(255, 150, 100, 0.1);
    transition: all 0.3s ease;
}

body.dark-mode .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(255, 150, 100, 0.2);
    border: 1px solid rgba(255, 150, 100, 0.4);
}

body.dark-mode .stat-item h3 {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 10px rgba(255, 150, 100, 0.3);
}

body.dark-mode .stat-item p {
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 5px rgba(255, 150, 100, 0.2);
}

body.dark-mode .benefit-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(100, 200, 255, 0.2);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(100, 200, 255, 0.1);
    transition: all 0.3s ease;
}

body.dark-mode .benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(100, 200, 255, 0.2);
    border: 1px solid rgba(100, 200, 255, 0.4);
}

/* 夜间模式hero区域 */
body.dark-mode .hero {
    background: linear-gradient(135deg, #001a33 0%, #003366 100%);
}

body.dark-mode .hero::before {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

/* 夜间模式header稍亮 */
body.dark-mode header {
    background: linear-gradient(135deg, #003366 0%, #0066cc 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* 日间模式header白色背景 */
body:not(.dark-mode) header {
    background-color: white !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.15);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

body:not(.dark-mode) .logo a {
    color: #232f3e !important;
}

body:not(.dark-mode) .logo a svg {
    stroke: #232f3e !important;
}

/* 日/夜间模式切换按钮样式 */
#theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 200% 200%;
}

#theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, rgba(100, 200, 255, 0.2), rgba(150, 100, 255, 0.2), rgba(255, 150, 100, 0.2));
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
    border: 2px solid rgba(100, 200, 255, 0.6);
}

body:not(.dark-mode) #theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) #theme-toggle:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(45deg, #f0f8ff, #e6f3ff, #f0f8ff);
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
    border: 2px solid rgba(0, 102, 204, 0.6);
}

/* 渐变动画 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 确保在所有设备上的一致体验 */
@media (max-width: 360px) {
    .hero-text h1 {
        font-size: 24px;
    }

    .carousel-slide img {
        height: 200px;
    }

    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .benefit-card img {
        height: 100px;
    }

    section h2 {
        font-size: 20px;
    }

    /* 移动设备上的主题切换按钮 */
    #theme-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
        border-radius: 50%;
    }
}