/* 导入字体和动画库 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
@import 'https://unpkg.com/aos@next/dist/aos.css';

/* 全局变量 */
:root {
    /* 主题颜色 - 完全匹配原网站 */
    --primary-color: #0a0f2c;
    --secondary-color: #4a90e2;
    --accent-color: #7b68ee;
    --text-color: #ffffff;
    --dark-bg: #060818;
    
    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #2c3e50;
    --text-secondary: #666666;
    --border-color: #eee;
    
    /* 卡片样式 */
    --card-bg: #ffffff;
    --card-shadow: 0 5px 20px rgba(0,0,0,0.08);
    --section-bg: #f8f9fa;
    --gradient-bg: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --stats-bg: rgba(255, 255, 255, 0.9);
    
    /* 间距 */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --container-padding: 20px;
    --grid-gap: 20px;

    /* 响应式排版 */
    --h1-size: 28px;
    --h2-size: 24px;
    --h3-size: 20px;
    --body-size: 16px;

    /* 基础缩放设置 */
    --design-width: 1920;  /* 设计稿宽度 */
    --scale-ratio: calc(100vw / var(--design-width));
}

/* 基础布局优化 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    position: relative;
}

/* 优化缩放容器定位 */
.scale-wrapper {
    width: 1920px;
    margin: 0 auto;
    transform-origin: top center;
    position: relative;
    left: 50%;
    transform: translateX(-50%) scale(var(--scale-ratio));
}

/* 修改滚动容器样式 */
.container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 60px;
    box-sizing: border-box;
    position: relative;
}

/* 添加全局滚动控制 */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏 Webkit 滚动条 */
*::-webkit-scrollbar {
    display: none;
}

/* 确保内容可以正常滚动 */
.scale-wrapper {
    min-height: 100vh;
    height: auto;
}

/* 修复 footer 定位 */
footer {
    position: relative;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background: white;
}

/* 平板设备 (768px 及以上) */
@media (min-width: 768px) {
    :root {
        --container-padding: 40px;
        --grid-gap: 30px;
        --h1-size: 32px;
        --h2-size: 28px;
        --h3-size: 24px;
        --body-size: 16px;
    }
}

/* 小型桌面设备 (992px 及以上) */
@media (min-width: 992px) {
    :root {
        --container-padding: 60px;
        --h1-size: 40px;
        --h2-size: 32px;
        --h3-size: 28px;
        --body-size: 18px;
    }
}

/* 大型桌面设备 (1200px 及以上) */
@media (min-width: 1200px) {
    :root {
        --container-padding: 80px;
        --h1-size: 40px;
        --h2-size: 32px;
        --h3-size: 28px;
        --body-size: 18px;
    }
}

/* 超大屏幕 (1400px 及以上) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

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

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* 导航栏样式优化 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 15px 0; /* 修改padding */
}

.navbar .container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo 区域样式优化 */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    margin-left: -20px;
    cursor: pointer;
}

.logo img {
    height: 45px;
    transition: transform 0.3s ease;
}

/* Sailing Spark 文字样式优化 */
.logo-text {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(120deg, 
        #0a0f2c 0%,
        #4a90e2 50%,
        #7b68ee 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding: 0 5px;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* 如果需要 logo 点击效果 */
.logo:hover img {
    transform: scale(1.05);
}

.logo:hover .logo-text {
    transform: scale(1.02);
    background: linear-gradient(120deg, 
        #4a90e2 0%,
        #7b68ee 50%,
        #0a0f2c 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 导航栏图标样式优化 */
.nav-links {
    display: flex;  /* 始终显示导航链接 */
    align-items: center;
    gap: 45px;
    list-style: none;
    margin: 0;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

/* 语言切换按钮样式优化 */
.language-switch {
    position: relative;
    margin-left: 20px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(74, 144, 226, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.lang-btn i {
    font-size: 14px;
    color: var(--secondary-color);
}

.lang-btn .globe-icon {
    color: var(--secondary-color);
    margin-right: 4px;
}

.lang-btn .fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-switch.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* 确保下拉菜单正确显示 */
.language-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 120px;
    border: 1px solid rgba(74, 144, 226, 0.1);
    z-index: 1000;  /* 确保下拉菜单显示在其他元素上方 */
}

.language-switch.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.language-dropdown a:hover {
    background: rgba(74, 144, 226, 0.1);
    color: var(--secondary-color);
    padding-left: 20px;
}

.language-dropdown a.active {
    color: var(--secondary-color);
    background: rgba(74, 144, 226, 0.1);
    font-weight: 500;
}

.language-dropdown a img {
    width: 20px;
    height: 20px;
    border-radius: 2px;  /* 稍微调整圆角 */
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .language-switch {
        margin-left: 10px;
    }

    .lang-btn {
        padding: 6px 12px;
    }

    .lang-btn span {
        display: none;
    }

    .lang-btn i.globe-icon {
        margin-right: 0;
    }
}

/* 移动端菜单按钮样式 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(74, 144, 226, 0.1);
    }

    .menu-toggle:hover {
        background: rgba(74, 144, 226, 0.2);
    }

    .menu-toggle i {
        color: var(--secondary-color);
        font-size: 20px;
    }
}

/* 移动端导航菜单 */
.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav .nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav .nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

/* 主题切换按钮 */
#themeToggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

/* 登录按钮 */
.nav-login-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.nav-login-btn:hover {
    background: #357abd;
}

/* 首页动态效果 */
.home {
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.space-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/space-bg.jpg') center/cover;
    opacity: 0.3;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('../images/stars.png');
    animation: starMove 50s linear infinite;
}

/* 行星动画 */
.planets-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.planet {
    position: absolute;
    border-radius: 50%;
    opacity: 0.7;
    box-shadow: 0 0 50px rgba(255,255,255,0.2);
}

.mercury {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #ff6b6b, #ee5253);
    top: 20%;
    left: 15%;
    animation: planetOrbit 20s linear infinite;
}

.venus {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #4ecdc4, #45b7af);
    top: 50%;
    right: 10%;
    animation: planetOrbit 30s linear infinite reverse;
}

.mars {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #ffd93d, #ffc41d);
    bottom: 15%;
    left: 30%;
    animation: planetOrbit 25s linear infinite;
}

/* 动画关键帧 */
@keyframes starMove {
    from { background-position: 0 0; }
    to { background-position: 0 1000px; }
}

@keyframes planetOrbit {
    from { transform: rotate(0deg) translateX(50px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(50px) rotate(-360deg); }
}

/* 首页内容样式 */
.home-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 25px;
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: titleGlow 2s ease-in-out infinite;
}

.home-content p {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.home-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

/* 添加文字发光动画 */
@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255,255,255,0.2);
    }
    50% {
        text-shadow: 0 0 30px rgba(255,255,255,0.4);
    }
}

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

/* 首页红框部分优化 */
.home-highlight {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.home-highlight h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 25px;
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.home-highlight p {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* 按钮样式 */
.btn-primary, .btn-secondary {
    padding: 18px 45px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-primary {
    background: linear-gradient(45deg, #4a90e2, #7b68ee);
    color: white;
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(74, 144, 226, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

/* 轮播图部分调整 */
.banner-section {
    position: relative;
    overflow: hidden;
    height: 700px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    margin-bottom: -100px;
}

.banner-section .container {
    height: 100%;
    max-width: 100%;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.banner-wrapper {
    display: flex;
    position: relative;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: white;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.banner-btn.prev {
    left: 20px;
}

.banner-btn.next {
    right: 20px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
    padding: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: white;
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.8);
}

/* 数据统计部分样式调整 */
.stats-section {
    padding: 0;
    position: relative;
    z-index: 2;
    margin-bottom: 50px;
    margin-top: 120px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* 始终保持4列 */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    transform: translateY(-70px);
}

.stat-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #4A90E2;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* 深色主题 */
[data-theme="dark"] {
    --bg-primary: #1a1f35;
    --bg-secondary: #2c3e50;
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --border-color: #3a3a3a;
    --card-bg: #2c3e50;
    --card-shadow: 0 5px 20px rgba(0,0,0,0.2);
    --section-bg: #1a1f35;
}

/* 标题样式 */
.section-title {
    font-size: var(--h2-size);
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: calc(var(--grid-gap) * 2);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #4a90e2;
}

/* 我们的使命 */
.mission-section {
    padding: 80px 0;
    background: #fff;
    text-align: center;
}

/* 我们的产品 */
.products-section {
    padding: 100px 0;
    background: #f8f9fa;
}

/* 新闻动态 */
.news-section {
    padding: 100px 0;
    background: #f8f9fa;
}

/* 全球市场布局 */
.markets-section {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

/* 关于我们 */
.about-section {
    padding: 80px 0;
    background: #fff;
    text-align: center;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 20px;
}

/* 联系我们 */
.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

/* 合作伙伴 */
.partners-section {
    padding: 80px 0;
    background: #fff;
}

/* 合作伙伴网格布局 */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 移动端两列 */
    gap: 15px;
}

@media (min-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);  /* 平板四列 */
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(6, 1fr);  /* 桌面六列 */
        gap: 30px;
    }
}

.partner-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.partner-item img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.partner-item span {
    font-size: 14px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* 页脚样式 */
footer {
    padding: 20px 0;
    background: #f8f9fa;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* 登录模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

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

.modal-content button {
    width: 100%;
    padding: 10px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
}

/* 使命模块样式 */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.mission-item {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.mission-item:hover {
    transform: translateY(-10px);
}

.mission-icon {
    font-size: 40px;
    color: #4a90e2;
    margin-bottom: 20px;
}

.mission-item h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.mission-item p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* 产品展示优化 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: var(--container-padding);
}

/* 产品卡片样式优化 */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 产品图片容器样式优化 */
.product-image {
    width: 120px;
    height: 120px;
    position: relative;
    overflow: hidden;
    margin: 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    padding: 0;
}

/* 产品卡片内容样式优化 */
.product-content {
    padding: 0 20px 20px;
    text-align: center;
    width: 100%;
}

.product-content h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.product-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 产品卡片悬停效果 */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card:hover .product-image img {
    transform: scale(1.15);
}

/* 产品元信息区域 */
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* 产品分类标签 */
.product-category {
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-card:hover .product-category {
    background: rgba(74, 144, 226, 0.2);
    color: #357abd;
}

/* 下载按钮样式 */
.download-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #357abd;
    transform: translateY(-2px);
}

/* 下载选项菜单 - 改为向上弹出 */
.store-options {
    position: absolute;
    bottom: calc(100% + 5px);  /* 改为从底部计算位置 */
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);  /* 调整阴影方向 */
    padding: 10px;
    margin-bottom: 5px;  /* 改为底部间距 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);  /* 改为向上位移 */
    transition: all 0.3s ease;
    z-index: 1001;
    min-width: 160px;
    border: 1px solid rgba(74, 144, 226, 0.2);
    backdrop-filter: blur(10px);
}

/* 激活状态动画 - 改为向上弹出 */
.download-container.active .store-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);  /* 复位到原位置 */
}

/* 调整按钮容器定位 */
.download-container {
    position: relative;
    z-index: 2;
}

/* 确保激活状态时菜单在最上层 */
.download-container.active {
    z-index: 1000;
}

/* 优化菜单项动画方向 */
.store-option:hover {
    background: rgba(74, 144, 226, 0.1);
    color: var(--secondary-color);
    transform: translateX(5px);
}

.store-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 8px;
    white-space: nowrap;
    font-weight: 500;
}

.store-option:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.store-option i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* 新闻动态样式 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.news-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

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

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.news-date {
    color: #4a90e2;
    font-size: 14px;
    font-weight: 500;
}

/* 市场布局样式 */
.markets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.market-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.market-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(123, 104, 238, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.market-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12);
}

.market-card:hover::after {
    opacity: 1;
}

.market-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.1);
    transition: all 0.4s ease;
}

.market-icon i {
    font-size: 2.5em;
    color: #4A90E2;
    transition: all 0.4s ease;
}

.market-card:hover .market-icon {
    transform: rotateY(180deg);
    background: rgba(74, 144, 226, 0.2);
}

.market-card:hover .market-icon i {
    transform: rotateY(180deg);
    color: #2196F3;
}

.market-card h3 {
    font-size: 24px;
    color: #2c3e50;
    margin: 15px 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.market-card:hover h3 {
    color: #4A90E2;
}

.market-card p {
    color: #666;
    font-size: 18px;
    transition: all 0.3s ease;
}

.market-card:hover p {
    color: #4A90E2;
}

/* 修改渐入动画 */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.market-card {
    animation: fadeInScale 0.6s ease forwards;
    opacity: 0;
}

/* 为每个卡片设置不同的动画延迟 */
.markets-grid .market-card:nth-child(1) { animation-delay: 0.1s; }
.markets-grid .market-card:nth-child(2) { animation-delay: 0.2s; }
.markets-grid .market-card:nth-child(3) { animation-delay: 0.3s; }
.markets-grid .market-card:nth-child(4) { animation-delay: 0.4s; }
.markets-grid .market-card:nth-child(5) { animation-delay: 0.5s; }
.markets-grid .market-card:nth-child(6) { animation-delay: 0.6s; }

/* 联系我们卡片样式优化 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-item i {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.contact-item h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-item p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    padding: 0 20px;
    word-break: break-word;
}

/* 下载模态框样式 */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.download-modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.download-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.download-option:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: var(--secondary-color);
}

.download-option i {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.close-modal {
    padding: 8px 20px;
    border: none;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--accent-color);
}

/* 下载按钮组样式 */
.download-buttons {
    display: flex;
    gap: 8px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 144, 226, 0.3);
    color: var(--text-primary);
}

.store-btn i {
    font-size: 14px;
}

.store-btn span {
    display: none; /* 默认隐藏文字 */
}

.store-btn:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.store-btn:hover span {
    display: inline; /* 悬停时显示文字 */
}

/* 不同商店的图标颜色 */
.ios-store i {
    color: #000000;
}

.android-store i {
    color: #3DDC84;
}

.huawei-store i {
    color: #CF0A2C;
}

/* 响应式调整 */
@media (min-width: 768px) {
    .store-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .store-btn span {
        display: inline; /* 大屏幕始终显示文字 */
    }
}

/* 调整产品卡片布局以适应新的按钮组 */
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.product-category {
    color: #4a90e2;
    font-size: 14px;
    font-weight: 500;
}

/* 硬件厂商平台部分 */
.platform-section {
    padding: 80px 0;
    background: var(--section-bg);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 始终保持3列 */
    gap: var(--grid-gap);
}

.platform-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.platform-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.platform-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.platform-card h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.platform-info p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.platform-info strong {
    color: var(--text-primary);
    font-weight: 500;
}

.platform-info-combined {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.platform-item {
    padding: 20px;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 15px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }
}

/* 响应式图片 */
img {
    max-width: 100%;
    height: auto;
}

.product-image img,
.platform-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 语言切换按钮样式优化 */
.language-dropdown a[data-lang="zh"] img {
    content: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAChSURBVHja7JK9CsJAEIRnL8khIHrIGUihoH+FlpaW9j6JD+cT+Ey+gU1AiCBoYWMhgthYWAQCKZKQK2JEkFzlFjvFfjM7O6uklBhSIwypP4Ds6b6YrW7j8WQ6LfJ8BzHvEPwB6HQiey+YL9ZxkiSRUoqUUhBCQCkFrTW01mitIYQAYwxKKTDGEEURGGPvC7TWiOMY+wNDa/3zZ/wYwGkANQqZ9yqIgYgAAAAASUVORK5CYII=');
}

.language-dropdown a[data-lang="en"] img {
    content: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAHASURBVHja1JNNaxNRFIafO3NnJpOZSWJtPhqCIWBRqKBYV7oQhO66ErQFwZ/QnStRcOtCf0B/QEEQXAi6E0GKuBLUbkTQRaUNJG2SJvnqfNzruEhShBAQXHrgwIXDe877nPfcI6y1/M9y+cfVH1jzF+sH4GZ3Bj0J2Xn8gkL+DDcu5rm0uIhhxL8BIK017N1/wIO1Eh+2duiNIpxU4Nz0CfJzBW7fvPR3gLWWh4+f8WJ9k+2PPaIoQkpJKiU5fnSK2RMzrKzcQUr5B8Bay+rqGutv3vJxp0UYhkgpEUIgpUQgeu6TExkOTl7nGvLV3Fdd2yBtZaHj9ZYf/2Oz60OQRAgpRwDhBBYaxFCEEURu90eE5kMhcIc1+9e/w6o1Wo8e/6ST+0vdHsBQgiMMVhrxwBjDMYYrLVEUUSn26Pf7zM9NUl5eYl0Oj0G1D/t4vs+QRCMDa21GGPQWmOtJQxDtNb0ej2CIKDVapHNZlkslZBSjgF7e3vE4zG01mNArVYjCAJSqRRBEBDHMZ7n4TgOWmtc18XzPDzPQ0pJo9Eg/eP2K5UKxWKRer1OvV5HSonnebiuS7lcZn5+/nAf/XsAQWr8P9V4kxsAAAAASUVORK5CYII=');
}

/* 语言切换按钮样式 */
.language-dropdown a img {
    width: 20px;
    height: 20px;
    border-radius: 2px;  /* 稍微调整圆角 */
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

/* 公司形象展示区样式 */
.company-showcase {
    width: 100%;
    height: 600px;
    overflow: hidden;
    position: relative;
}

.showcase-image {
    width: 1920px;
    height: 600px;
    margin: 0 auto;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 公司信息卡片样式 */
.company-info-card {
    position: absolute;
    top: 50%;
    left: 1110px;  /* 修改这里，从120px改为1110px */
    transform: translateY(-50%);
    width: 675px;
    height: 500px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.company-info-card h2 {
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-weight: 600;
}

.info-content {
    height: calc(100% - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.info-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
    text-indent: 2em;  /* 添加首行缩进 */
}

/* 回到首页按钮样式 */
.back-home {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

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

.back-home:hover {
    transform: translateY(-5px);
    background: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 语言切换按钮样式 */
.lang-switch {
    position: fixed;
    bottom: 90px; /* 在回到首页按钮上方 */
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.lang-switch i {
    font-size: 20px;
}

.lang-switch:hover {
    transform: translateY(-5px);
    background: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 在小屏幕上隐藏顶部导航栏的语言切换 */
@media (max-width: 768px) {
    .language-switch {
        display: none;
    }
}


