/* 全局变量 */
:root {
    --primary-color: #333;
    --text-color: #666;
    --light-text: #999;
    --white: #fff;
    
    /* 产品卡片背景色 */
    --purple-bg: #f0e6ff;
    --green-bg: #e6ffe6;
    --pink-bg: #ffe6f0;
    --gray-bg: #f5f5f5;
    --dark-bg: #333333;
    --orange-bg: #fff2e6;
    --blue-bg: #e6f0ff;
    
    /* 布局相关 */
    --max-content-width: 2000px;
    --header-height: 80px;
    --section-spacing: 100px;
}

/* 通用容器 */
.container {
    width: 100%;
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    height: 100px;
}

.logo img {
    height: 100%;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-item {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s;
}

.nav-item:hover,
.nav-item.active {
    color: #007bff;
}

/* 主视觉区域布局调整 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 120px; /* 增加顶部间距 */
    position: relative;
    height: 100%;
    transform: none; /* 移除之前的transform */
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-title {
    font-size: 120px;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.wave-emoji {
    display: inline-block;
    animation: wave 2s infinite;
}

.hero-subtitle {
    font-size: 60px;
    color: var(--text-color);
    margin-bottom: 200px; /* 增加与下方滚动提示的距离 */
    position: relative;
    z-index: 1;
}


.scroll-hint {
    position: absolute;
    bottom: 100px; /* 调整底部距离 */
    left: 50%;
    transform: translateX(-50%);
    color: var(--light-text);
    font-size: 18px; /* 增大字体 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* 增大旋转文本区域 */
.rotating-text {
    position: relative;
    width: 300px; /* 增大尺寸 */
    height: 300px; /* 增大尺寸 */
}

.rotating-text svg {
    width: 300px; /* 确保SVG也相应增大 */
    height: 300px;
    position: absolute;
    top: 0;
    left: 0;
    animation: rotate 10s linear infinite;
}

.rotating-text text {
    fill: #1a237e;
    font-size: 7px; /* 增大字体 */
    letter-spacing: 2px; /* 增加字间距 */
    font-weight: 500;
}

.arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px; /* 增大箭头 */
    color: #1a237e;
}

/* 产品卡片样式 */
.product-card {
    padding: 30px 0;
    margin-bottom: 25px;
}

.product-card:last-child {
    margin-bottom: 0;
}

/* 卡片基础样式 */
.card {
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* 卡片内容布局 */
.card-content {
    width: 100%;
    display: flex;
    min-height: 800px;
}

/* 产品信息区域 */
.product-info {
    flex: 0 0 50%;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: inherit;
}

/* 产品头部样式 */
.product-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.product-icon {
    width: 60px;
    height: 60px;
}

.product-title {
    font-size: 50px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

/* 标签样式 */
.product-tags {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tag {
    padding: 12px 28px; /* 增加内边距，原来是8px 20px */
    border-radius: 24px; /* 增加圆角，原来是20px */
    font-size: 24px; /* 增大字体，原来是15px */
    background: rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* 描述文本样式 */
.product-desc {
    font-size: 26px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 40px;
    flex-grow: 1;
}

/* 下载按钮组 */
.download-buttons {
    display: flex;
    gap: 20px;
    margin-top: auto;
}

.download-btn {
    padding: 16px 36px; /* 增加内边距，原来是12px 30px */
    border-radius: 12px; /* 增加圆角，原来是8px */
    font-size: 18px; /* 增大字体，原来是16px */
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.2s;
}

/* 按钮样式 */
.download-btn.ios {
    background: linear-gradient(45deg, #007AFF, #5856D6);
}

.download-btn.android {
    background: linear-gradient(45deg, #34C759, #30B956);
}

.download-btn:hover {
    transform: translateY(-2px);
}

/* 产品预览区域 */
.product-preview {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}

/* 预览图片样式 */
.preview-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
}

/* 卡片背景色 */
.card.purple-bg { background: #f8f0ff; }
.card.green-bg { background: #f0fff0; }
.card.pink-bg { background: #fff0f5; }
.card.gray-bg { background: #f8f8f8; }
.card.dark-bg { 
    background: #333333; 
    color: #fff;
}
.card.orange-bg { background: #fff2e6; }
.card.blue-bg { background: #f0f8ff; }

/* 深色背景卡片的特殊样式 */
.card.dark-bg .product-desc {
    color: rgba(255, 255, 255, 0.8);
}

.card.dark-bg .tag {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.card.dark-bg .download-btn.ios {
    background: linear-gradient(45deg, #0A84FF, #6C63FF);
}

.card.dark-bg .download-btn.android {
    background: linear-gradient(45deg, #30D158, #34C759);
}

/* 页脚 */
.footer {
    background: #f8f9fa;
    padding: 60px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
}

.footer-logo {
    height: 100px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section p {
    margin-bottom: 10px;
    color: var(--text-color);
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #007bff;
}

.footer-beian {
    text-align: center;
    padding: 15px 0;
    color: #999;
    font-size: 14px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.footer-beian p {
    margin: 0;
    line-height: 1.5;
}

/* 动画 */
@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 可选：鼠标悬停时暂停动画 */
.rotating-text:hover svg {
    animation-play-state: paused;
}

/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 50px auto;
    position: relative;
    text-align: center;
}

.section-title:before,
.section-title:after {
    content: '';
    height: 1px;
    background: #e5e5e5;
    flex: 1;
    position: relative;
}

.section-title:before {
    margin-right: 25px;
}

.section-title:after {
    margin-left: 25px;
}

.section-title .title-icon {
    width: 32px;
    height: 32px;
    
}

.section-title h2 {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}