/*
 * ===== 柚子衣橱/柠檬衣橱 - 主样式文件 =====
 * 
 * 文件说明：包含网站的主要样式定义
 * 创建时间：2025年
 * 最后更新：2025年8月
 * 
 * 样式组织结构：
 * 1. 基础样式重置和通用设置
 * 2. 全局动画定义
 * 3. Hero区域样式
 * 4. 品牌说明区域样式
 * 5. 数据迁移区域样式
 * 6. 功能展示区域样式
 * 7. 下载区域样式
 * 8. 页脚区域样式
 * 
 * 注意事项：
 * - 响应式样式在 responsive.css 中定义
 * - 所有颜色使用统一的品牌色彩方案
 * - 动画效果保持轻量级以确保性能
 */

/* ===== 基础样式重置和通用设置 ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
    width: 100%;
}

/* 通用容器样式 - 限制最大宽度并居中显示 */
.container {
    width: 100%;
    max-width: 1200px;  /* 最大宽度限制，保证在大屏幕上的可读性 */
    margin: 0 auto;     /* 水平居中 */
    padding: 40px 20px; /* 内边距，为内容提供呼吸空间 */
}

/* ===== 全局动画定义 ===== */

/* 浮动动画 - 用于Hero区域背景装饰 */
@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }   /* 起始和结束位置 */
    25% { transform: translateY(-10px) translateX(5px); }      /* 向上向右 */
    50% { transform: translateY(0px) translateX(-5px); }       /* 回到中间向左 */
    75% { transform: translateY(10px) translateX(5px); }       /* 向下向右 */
}

/* 弹跳动画 - 用于Hero区域标题图标 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }     /* 静止状态 */
    40% { transform: translateY(-10px); }                      /* 向上弹跳 */
    60% { transform: translateY(-5px); }                       /* 小幅回弹 */
}


/* ===== Hero区域样式 ===== */
.hero {
    position: relative;
    width: 100%;
    padding: 60px 0;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #FFE135, #FFA500, #FF6B35);
    overflow: hidden;
}

/* Hero区域装饰性背景动画 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="80" r="2.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
}

/* Hero区域标题样式 */
.hero h1 {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    word-wrap: break-word;
}

.hero h1::before {
    content: '🍋';
    font-size: 0.8em;
    margin-right: 0.3em;
    animation: bounce 2s infinite;
}

/* Hero区域描述文字样式 */
.hero p {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    margin: 0 auto;
    max-width: 90%;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    word-wrap: break-word;
}

/* ===== 品牌说明区域样式 ===== */
.brand-explanation-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #F3E5F5, #E1BEE7);
    border-top: 3px solid #9C27B0;
    border-bottom: 3px solid #9C27B0;
}

.brand-explanation-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.brand-title {
    font-size: 2rem;
    font-weight: 700;
    color: #6A1B9A;
    margin-bottom: 2rem;
}

/* 品牌卡片网格布局 */
.brand-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* 品牌卡片基础样式 */
.brand-card {
    position: relative;
    background: white;
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(156, 39, 176, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(156, 39, 176, 0.25);
}

/* 品牌卡片特定样式 */
.brand-card.ios-brand {
    border: 3px solid #FF9800;
}

.brand-card.android-brand {
    border: 3px solid #4CAF50;
}

/* 品牌图标样式 */
.brand-icon {
    display: block;
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* 品牌卡片文字样式 */
.brand-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.brand-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* 品牌徽章样式 */
.brand-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.ios-brand .brand-badge {
    background: linear-gradient(45deg, #FF9800, #F57C00);
}

.android-brand .brand-badge {
    background: linear-gradient(45deg, #4CAF50, #388E3C);
}

/* 品牌说明注释框 */
.brand-note {
    margin-top: 40px;
    padding: 25px;
    background: rgba(156, 39, 176, 0.1);
    border-radius: 15px;
    border-left: 5px solid #9C27B0;
}

.brand-note p {
    margin: 0;
    font-size: 1rem;
    color: #4A148C;
    line-height: 1.6;
}

/* ===== 数据迁移区域样式 ===== */
.migration-section {
    margin: 20px 0;
    padding: 40px 0;
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    border-top: 3px solid #FF9800;
    border-bottom: 3px solid #FF9800;
}

.migration-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* 迁移区域标题样式 */
.migration-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #E65100;
    margin-bottom: 1rem;
}

.migration-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: #BF360C;
    margin-bottom: 2rem;
}

/* 迁移步骤网格布局 */
.migration-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* 迁移步骤卡片样式 */
.migration-step {
    background: white;
    padding: 25px 20px;
    border: 2px solid #FFB74D;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.migration-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3);
}

/* 步骤头部布局 */
.step-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* 步骤编号样式 */
.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #FF9800, #F57C00);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

/* 步骤内容区域 */
.step-content {
    flex: 1;
    text-align: left;
}

/* 步骤文字样式 */
.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #E65100;
    margin-bottom: 8px;
}

.step-description {
    font-size: 0.95rem;
    color: #5D4037;
    line-height: 1.6;
}

/* 步骤操作区域 */
.step-action {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* 迁移专用下载按钮样式 */
.migration-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(45deg, #FF9800, #F57C00);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(255, 152, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.migration-download-btn.lemon-version {
    background: linear-gradient(45deg, #4CAF50, #388E3C);
    box-shadow: 0 3px 12px rgba(76, 175, 80, 0.3);
}

.migration-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(255, 152, 0, 0.4);
}

.migration-download-btn.lemon-version:hover {
    box-shadow: 0 5px 18px rgba(76, 175, 80, 0.4);
}

/* 按钮内部元素样式 */
.btn-icon {
    font-size: 1.1rem;
}

.btn-text {
    font-weight: 600;
}

.btn-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.migration-download-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* 步骤提示样式 */
.step-tip {
    padding: 8px 16px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #F57C00;
    font-weight: 500;
}

/* 步骤成功提示样式 */
.step-success {
    padding: 8px 16px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #388E3C;
    font-weight: 600;
}

/* 柚子衣橱下载按钮样式 */
.yuzu-download-btn {
    position: relative;
    display: inline-block;
    min-width: 200px;
    margin: 20px 10px;
    padding: 15px 35px;
    background: linear-gradient(45deg, #FF9800, #F57C00);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    transition: all 0.3s ease;
    overflow: hidden;
}

.yuzu-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.yuzu-download-btn:hover::before {
    left: 100%;
}

.yuzu-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
}

/* ===== 功能展示区域样式 ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 50px 0;
    width: 100%;
}

/* 功能卡片样式 */
.feature-card {
    width: 100%;
    max-width: 100%;
    padding: 25px 20px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #FFE135;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* 功能图标样式 */
.feature-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 功能卡片文字样式 */
.feature-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    word-wrap: break-word;
}

/* ===== 下载区域样式 ===== */
.download-section {
    width: 100%;
    padding: 50px 0;
    background: #f8f9fa;
    text-align: center;
}

.download-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
    word-wrap: break-word;
}

/* 下载按钮容器 */
.download-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

/* 通用下载按钮样式 */
.download-btn {
    position: relative;
    display: inline-block;
    min-width: 150px;
    padding: 15px 35px;
    background: linear-gradient(45deg, #FFE135, #FFA500);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 225, 53, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

/* 下载按钮光效动画 */
.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 225, 53, 0.4);
}

/* 安卓版下载按钮特殊样式 */
.download-btn.android {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.download-btn.android:hover {
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* ===== 页脚区域样式 ===== */
footer {
    width: 100%;
    padding: 30px 20px;
    background: #333;
    color: #fff;
    text-align: center;
}

footer p {
    margin: 8px 0;
    font-size: 0.9rem;
    word-wrap: break-word;
}

footer a {
    color: #fff;
    text-decoration: none;
}
