/* ============================================
   基础样式 - base.css
   现代化冲动消费色调主题
   ============================================ */

:root {
    /* 主色调 - 橙红渐变系（冲动消费色） */
    --primary-color: #FF6B35;
    --primary-dark: #E85A24;
    --primary-light: #FF8C5A;
    --primary-gradient: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #FFCC00 100%);
    --primary-gradient-hover: linear-gradient(135deg, #E85A24 0%, #E07B00 50%, #FFB800 100%);
    
    /* 强调色 - 活力紫蓝（信任+行动） */
    --accent-color: #6C5CE7;
    --accent-light: #A29BFE;
    --accent-gradient: linear-gradient(135deg, #6C5CE7 0%, #74B9FF 100%);
    
    /* 成功色 - 翠绿（安全感） */
    --success-color: #00B894;
    --success-light: #55EFC4;
    
    /* 警示色 - 珊瑚红（紧迫感） */
    --warning-color: #FF7675;
    --danger-color: #D63031;
    
    /* 中性色 - 现代灰阶 */
    --text-dark: #2D3436;
    --text-gray: #636E72;
    --text-light: #B2BEC3;
    --text-muted: #DFE6E9;
    
    /* 背景色 */
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-gray: #F1F3F4;
    --bg-dark: #2D3436;
    --bg-gradient: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
    
    /* 边框色 */
    --border-color: #E9ECEF;
    --border-light: #F1F3F4;
    
    /* 阴影 - 柔和现代 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 8px 32px rgba(255, 107, 53, 0.3);
    --shadow-accent: 0 8px 32px rgba(108, 92, 231, 0.3);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
    
    /* 过渡 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* 重置样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--bg-gradient);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--primary-dark);
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    overflow-x: hidden;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 按钮基础样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--bg-white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4);
    color: var(--bg-white);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-accent {
    background: var(--accent-gradient);
    color: var(--bg-white);
    box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.4);
    color: var(--bg-white);
}

/* 卡片基础样式 */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--border-light);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* 徽章样式 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-hot {
    background: linear-gradient(135deg, #FF6B35, #FF4757);
    color: var(--bg-white);
    animation: pulse 2s infinite;
}

.badge-new {
    background: linear-gradient(135deg, #00B894, #55EFC4);
    color: var(--bg-white);
}

.badge-free {
    background: linear-gradient(135deg, #6C5CE7, #A29BFE);
    color: var(--bg-white);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* 标签样式 */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--bg-gray);
    color: var(--text-gray);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.tag:hover {
    background: var(--primary-light);
    color: var(--bg-white);
}

/* 响应式基础 */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    body {
        line-height: 1.9;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.05rem;
        margin-bottom: 32px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 15px;
    }
    
    body {
        line-height: 2;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .btn, .product-btn, .download-btn, .download-btn-large {
        min-height: 48px;
        min-width: 48px;
        padding: 14px 28px;
    }
    
    nav ul li a {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 12px 20px;
    }
    
    .faq-question {
        min-height: 56px;
        padding: 16px;
    }
    
    .mobile-menu-toggle {
        min-width: 48px;
        min-height: 48px;
        padding: 12px;
    }
}

/* 通用触摸目标优化 */
@media (max-width: 768px) {
    .btn, .product-btn {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .download-btn, .download-btn-large {
        min-height: 52px;
        padding: 16px 32px;
        font-size: 1.1rem;
    }
    
    .tag, .badge {
        min-height: 32px;
        padding: 6px 14px;
    }
}

/* 图片懒加载占位 */
img[data-src] {
    background: var(--bg-gray);
    min-height: 100px;
}

