/* 基础重置与全局样式 (合并通用选择器) */
*,
body,
a,
ul,
img {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #334155;
    background-color: #f8fafc;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 变量定义 */
:root {
    --primary: #165DFF;
    --secondary: #36D399;
    --accent: #FF6B35;
    --dark: #1E293B;
    --light: #F8FAFC;
    --gray: #64748B;
    --gray-light: #F1F5F9;
    --gray-dark: #334155;
}

/* 容器通用样式 */
.container {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 按钮样式 (合并通用按钮属性，减少重复) */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 按钮不同变体 (提取hover通用效果) */
.button-primary { background-color: var(--primary); color: white; }
.button-secondary { background-color: var(--secondary); color: white; }
.button-accent { background-color: #045dcc; color: white; }
.button-white { background-color: white; color: var(--primary); }

/* 所有按钮hover效果合并 */
.button-primary:hover,
.button-secondary:hover,
.button-accent:hover,
.button-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 各按钮hover独有的背景色 */
.button-primary:hover { background-color: #0D47A1; }
.button-secondary:hover { background-color: #10B981; }
.button-accent:hover { background-color: #045dcc; } /* 原代码值未变，保留 */
.button-white:hover { background-color: #f1f5f9; }

/* 头部样式 */
header {
    background: linear-gradient(178deg, #178bbb 50%, #385fb8 100%);
    color: white;
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.header-bg, .video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.header-bg {
    background-image: url('/download/images/header-bg.jpg');
    background-size: cover;
    background-position: center;
}

.header-content, .product-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 280px; 
}

.product-content { gap: 48px; }

.header-image img {
    width: 460px;
    float: right;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.header-logo img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-desc {
    font-size: 18px;
    margin-bottom: 24px;
    color: #f1f5f9;
}

.header-notice {
    color: #fde68a;
    margin-bottom: 16px;
    font-weight: 500;
}

/* 信息网格通用样式 (header-info + product-info) */
.header-info, .product-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

/* 信息项通用样式 */
.header-info-item, .product-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-info-item { color: #e2e8f0; }
.product-info-item { color: var(--gray-dark); }
.product-info-item i { color: var(--primary); }

/* 按钮容器通用样式 */
.header-buttons, .product-buttons, .download-list, .social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* social-list用24，download-list用24，单独覆盖 */
}

.social-list {
    gap: 24px;
    justify-content: center;
    margin-top: 48px;
}

.download-list {
    gap: 24px;
    align-items: center;
}

/* 功能区块样式 */
.features {
    padding: 64px 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.feature-card {
    background-color: #f8fafc;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    /*text-align: center;*/
}

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

.feature-icon, .badge-icon {
    width: 56px; 
    height: 56px;
    background-color: rgba(22, 93, 255, 0.1); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.badge-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(22, 93, 255, 0.2);
    margin-bottom: 0; 
}

.feature-icon i, .badge-icon i {
    color: var(--primary);
}

.feature-icon i { font-size: 35px; }

.feature-info i {
    margin-right: 10px;
}

.feature-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.feature-desc {
    color: var(--gray);
}

/* 产品区块样式 */
.product-section {
    padding: 80px 0;
    background-color: white;
}

.product-section.gray-bg {
    background-color: #f8fafc;
}

.product-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 24px;
}

.product-desc {
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--gray-dark);
}

.product-notice {
    font-size: 18px;
    margin-bottom: 32px;
    color: #ef4444;
    font-weight: 500;
}

.product-image {
    position: relative;
}

.product-image img {
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    bottom: -16px;
    left: -16px;
    background-color: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-section:nth-child(even) .product-badge {
    left: auto;
    right: -16px;
}

.badge-text h4 {
    font-weight: bold;
}

.badge-text p {
    font-size: 14px;
    color: var(--gray);
}

/* 视频区块样式 */
.video-section {
    background: linear-gradient(135deg, #165DFF 0%, #0A2463 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.video-bg {
    
}

.video-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.video-title, .faq-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 16px; /* faq用48，单独覆盖 */
}

.faq-title {
    margin-bottom: 48px;
    text-align: center;
}

.video-subtitle {
    font-size: 20px;
    color: #e2e8f0;
    margin-bottom: 48px;
}

.video-block {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background-color: black;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.video-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-play-button:hover {
    background-color: #0D47A1;
    transform: translate(-50%, -50%) scale(1.05);
}

.video-play-button i {
    font-size: 24px;
}

/* 社交/下载区块样式 */
.social-item, .download-item {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-item {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 12px;
    border-radius: 10px;
}

.social-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-item i {
    font-size: 20px;
}

.download-links {
    padding: 48px 0;
    background-color: white;
}

.download-container {
    background-color: #f8fafc;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.download-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
}

.download-item {
    color: var(--gray-dark);
}

.download-item:hover {
    color: var(--primary);
}

/* 页脚样式 */
footer {
    background-color: var(--dark);
    color: white;
    padding: 48px 0;
    text-align: center;
}

/* 语言选择器 */
.language-selector {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 20;
}

.language-selector select {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    outline: none;
    cursor: pointer;
}

.language-selector option {
    background: #1d1d1b;
}

/* FAQ区块样式 */
.faq-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.faq-question {
    background-color: white;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f1f5f9;
}

.faq-question h4 {
    font-size: 18px;
    font-weight: 600;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    background-color: white;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--gray-dark);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* 动画样式 (合并重复的@keyframes) */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.waves {
    position: relative;
    width: 100%;
    height: 0vh;
    margin-bottom: -70px;
    min-height: 60px;
    max-height: 60px;
}

.parallax>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.parallax>use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.parallax>use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
.parallax>use:nth-child(4) { animation-delay: -5s; animation-duration: 20s; }

@keyframes move-forever {
    0% { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

/* 媒体查询 (合并相同断点的规则) */
@media (min-width:768px) {
    .header-content, .product-content {
        flex-direction: row;
        align-items: center;
    }

    .header-text, .product-text, .product-image {
        width: 50%;
    }

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

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

    .product-section:nth-child(even) .product-content {
        flex-direction: row-reverse;
    }
}

@media (min-width:1024px) {
    .features-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media (max-width:767px), (max-width:768px) {
    .header-logo, .header-text, .product-text, .product-buttons {
        justify-content: center;
    }
    .header-image {
        display: none;
    }
    .header-buttons {
        justify-content: center;
    }
    .product-badge, .product-section:nth-child(even) .product-badge {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: -24px;
    }

    .product-info {
        text-align: left;
    }

    .social-item span {
        display: none;
    }

    .waves {
        height: 40px;
        min-height: 40px;
    }

    .content {
        height: 30vh;
    }

    h1 {
        font-size: 24px;
    }
}