/**
 * AI视频生成系统 - 主样式文件 v2.0
 * 
 * 专业级PC端设计，兼容主流浏览器
 */

/* ========== CSS变量 ========== */
:root {
    /* 主色调 */
    --primary-color: #5b5fc7;
    --primary-hover: #4a4eb8;
    --primary-light: #e8e9fc;
    --primary-dark: #3d40a8;
    
    /* 辅助色 */
    --accent-color: #f97316;
    --accent-hover: #ea580c;
    --success-color: #22c55e;
    --warning-color: #eab308;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-dark: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --gradient-gold: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    
    /* 文字颜色 */
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    /* 背景 */
    --bg-body: #f1f5f9;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    
    /* 边框 */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 40px rgba(91, 95, 199, 0.3);
    
    /* 过渡 */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 容器宽度 */
    --container-max: 1400px;
    --container-lg: 1200px;
    --container-md: 960px;
}

/* ========== 全局重置 ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    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', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

ul, ol {
    list-style: none;
}

/* ========== 布局容器 ========== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

.container-lg {
    max-width: var(--container-lg);
}

.container-md {
    max-width: var(--container-md);
}

/* ========== 头部导航 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scrolled {
    height: 64px;
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-text span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

.nav-menu a.active {
    color: var(--primary-color);
    background: var(--primary-light);
}

/* 头部操作区 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-panel {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 8px 8px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.user-balance {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-balance .icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.user-balance .amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.user-balance .unit {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 2px;
}

.user-phone {
    font-size: 14px;
    color: var(--text-secondary);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.user-avatar:hover {
    transform: scale(1.05);
}

/* ========== 按钮系统 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.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;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), #fb923c);
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 17px;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ========== Hero区域 ========== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 100px;
    background: var(--gradient-dark);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(118, 75, 162, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(240, 147, 251, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* 装饰元素 */
.hero-decoration {
    position: absolute;
    pointer-events: none;
}

.hero-decoration-1 {
    top: 15%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-decoration-2 {
    top: 60%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.hero-decoration-3 {
    bottom: 10%;
    left: 15%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* 网格背景 */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: calc(100vh - 240px);
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    opacity: 0.6;
    z-index: -1;
    border-radius: 4px;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #f6d365 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

/* 统计数据 */
.hero-stats {
    display: flex;
    gap: 48px;
}

.hero-stat {
    position: relative;
    padding-left: 20px;
}

.hero-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.hero-stat-value {
    font-size: 36px;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 6px;
}

.hero-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Hero右侧预览 */
.hero-preview {
    position: relative;
}

.hero-preview-card {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-2xl);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.preview-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: var(--radius-md);
}

.preview-tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.preview-tab.active {
    background: white;
    color: var(--text-primary);
}

.preview-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #22c55e;
}

.preview-status .dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
}

.preview-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
    min-height: 120px;
}

.preview-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.preview-option {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}

.preview-option-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.preview-option-value {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.preview-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

/* 浮动卡片 */
.floating-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatCard 3s ease-in-out infinite;
}

.floating-card-1 {
    top: -30px;
    right: -40px;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 60px;
    left: -60px;
    animation-delay: 1.5s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-card .icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.floating-card .icon.purple { background: #ede9fe; }
.floating-card .icon.green { background: #dcfce7; }
.floating-card .icon.orange { background: #ffedd5; }

.floating-card .info {
    line-height: 1.3;
}

.floating-card .label {
    font-size: 12px;
    color: var(--text-muted);
}

.floating-card .value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ========== 功能介绍区 ========== */
.features-section {
    padding: 100px 0;
    background: var(--bg-white);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    position: relative;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    transition: all var(--transition-normal);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.feature-icon.text { background: linear-gradient(135deg, #ddd6fe, #c4b5fd); }
.feature-icon.image { background: linear-gradient(135deg, #bbf7d0, #86efac); }
.feature-icon.template { background: linear-gradient(135deg, #fed7aa, #fdba74); }

.feature-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '✓';
    width: 20px;
    height: 20px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== 创建视频区域 ========== */
.create-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.create-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* 左侧导航 */
.create-sidebar {
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
    padding: 32px 24px;
}

.create-sidebar-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-left: 12px;
}

.create-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.create-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.create-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.create-nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.create-nav-item .icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.create-nav-item.active .icon {
    background: var(--gradient-primary);
}

.create-nav-item .text {
    flex: 1;
}

.create-nav-item .title {
    font-size: 15px;
    margin-bottom: 2px;
}

.create-nav-item .desc {
    font-size: 12px;
    opacity: 0.6;
}

/* 右侧内容 */
.create-main {
    padding: 40px;
}

.create-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.create-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
}

.create-help {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Tab内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

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

/* 文本输入区 */
.text-input-wrapper {
    position: relative;
    margin-bottom: 32px;
}

.text-input-area {
    width: 100%;
    min-height: 200px;
    padding: 24px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    resize: vertical;
    transition: all var(--transition-fast);
}

.text-input-area::placeholder {
    color: var(--text-muted);
}

.text-input-area:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.text-input-footer {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.text-tips {
    display: flex;
    gap: 16px;
}

.text-tip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.char-counter {
    font-size: 13px;
    color: var(--text-muted);
}

.char-counter .current {
    color: var(--primary-color);
    font-weight: 600;
}

/* 图片上传区 */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-light);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: var(--shadow-md);
}

.upload-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.upload-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.image-preview-item:hover .remove {
    opacity: 1;
}

/* 模板选择 */
.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.template-card {
    position: relative;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.template-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.template-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.template-preview {
    aspect-ratio: 16/9;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.template-info {
    padding: 16px;
}

.template-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.template-meta {
    font-size: 13px;
    color: var(--text-muted);
}

/* 配置选项区 */
.config-section {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 32px;
}

.config-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.config-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 时长选择器 */
.duration-selector {
    display: flex;
    gap: 8px;
}

.duration-btn {
    flex: 1;
    padding: 12px 8px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.duration-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.duration-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 下拉选择器 */
.select-wrapper {
    position: relative;
}

.select-input {
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: var(--text-muted);
    pointer-events: none;
}

.select-input:focus {
    border-color: var(--primary-color);
}

/* 开关 */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle {
    position: relative;
    width: 52px;
    height: 28px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-color);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.toggle-track::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.toggle input:checked + .toggle-track {
    background: var(--primary-color);
}

.toggle input:checked + .toggle-track::before {
    transform: translateX(24px);
}

.toggle-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 生成按钮区 */
.generate-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.generate-info {
    display: flex;
    align-items: center;
    gap: 40px;
}

.generate-cost {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.generate-cost .label {
    font-size: 14px;
    color: var(--text-secondary);
}

.generate-cost .value {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.generate-cost .unit {
    font-size: 16px;
    color: var(--text-secondary);
}

.generate-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.generate-balance .icon {
    font-size: 18px;
}

.generate-balance .text {
    font-size: 14px;
    color: var(--text-secondary);
}

.generate-balance .amount {
    font-weight: 700;
    color: var(--success-color);
}

.generate-btn {
    padding: 18px 48px;
    font-size: 17px;
}

/* ========== 套餐区域 ========== */
.packages-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

/* 新版套餐一排显示 */
.packages-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 20px 0;
}

.package-item {
    flex: 0 0 220px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
}

.package-item:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.15);
}

.package-item.featured {
    border-color: var(--primary-color);
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.package-hot {
    position: absolute;
    top: -10px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 10px;
}

.package-icon-sm {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.package-item.featured .package-icon-sm {
    background: var(--primary-light);
}

.package-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.package-main-price {
    margin-bottom: 8px;
}

.package-main-price .price-symbol {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    vertical-align: top;
}

.package-main-price .price-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.package-main-price .price-custom {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}

.package-get {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.package-get strong {
    color: var(--primary-color);
    font-weight: 700;
}

.package-tip {
    font-size: 12px;
    color: #10b981;
    background: #d1fae5;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 16px;
}

.package-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.qty-input {
    width: 56px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 36px;
    padding: 0;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.package-buy-btn {
    width: 100%;
    padding: 10px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.package-buy-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.package-item.featured .package-buy-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.package-buy-btn.custom {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
}

.packages-note {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-light);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.packages-section .section-header {
    margin-bottom: 32px;
}

/* ========== 优惠券区域 ========== */
.coupon-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.coupon-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
    border-radius: 20px;
    padding: 28px 36px;
    color: white;
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.3);
}

.coupon-banner-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.coupon-icon {
    font-size: 48px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.coupon-info h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}

.coupon-info p {
    font-size: 14px;
    opacity: 0.9;
}

.coupon-rules-preview {
    display: flex;
    gap: 16px;
}

.coupon-rule-item {
    background: rgba(255, 255, 255, 0.2);
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 12px 20px;
    text-align: center;
}

.rule-condition {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.rule-reward {
    font-size: 14px;
}

.rule-reward strong {
    font-size: 20px;
    font-weight: 800;
}

.coupon-btn {
    background: white;
    color: #dc2626;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.coupon-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.coupon-progress-wrap {
    margin-top: 24px;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.coupon-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.coupon-progress-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.coupon-progress-amount {
    font-size: 14px;
    color: #6b7280;
}

.coupon-progress-amount strong {
    color: #dc2626;
    font-size: 18px;
}

.coupon-progress-bar {
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.coupon-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #dc2626);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.coupon-progress-tip {
    font-size: 13px;
    color: #6b7280;
}

.coupon-progress-tip strong {
    color: #dc2626;
}

/* 优惠券列表样式 */
.coupon-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coupon-item {
    display: flex;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.coupon-item-left {
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
    color: white;
    padding: 20px 24px;
    text-align: center;
    min-width: 100px;
}

.coupon-amount {
    font-size: 32px;
    font-weight: 800;
}

.coupon-amount small {
    font-size: 14px;
}

.coupon-min {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

.coupon-item-right {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coupon-name {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.coupon-expires {
    font-size: 12px;
    color: #9ca3af;
}

.coupon-empty {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.coupon-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.coupon-go-btn {
    margin-top: 16px;
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
}

.package-card {
    position: relative;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-normal);
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.package-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.package-card.featured:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.25);
}

.package-card.featured::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 3px 3px;
}

.package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--gradient-primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.package-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.package-card.featured .package-icon {
    background: var(--primary-light);
}

.package-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.package-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 40px;
}

.package-price {
    margin-bottom: 8px;
}

.package-price .currency {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    vertical-align: top;
}

.package-price .amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.package-seconds {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.package-seconds strong {
    color: var(--text-primary);
    font-weight: 700;
}

.package-features {
    text-align: left;
    margin-bottom: 24px;
    padding: 0 8px;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li::before {
    content: '✓';
    width: 18px;
    height: 18px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.package-btn {
    width: 100%;
}

.package-card.featured .package-btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ========== 计费说明 ========== */
.pricing-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.pricing-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.pricing-info {
    padding-right: 40px;
}

.pricing-list {
    margin-top: 40px;
}

.pricing-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-item:last-child {
    border-bottom: none;
}

.pricing-item .icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.pricing-item .content h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.pricing-item .content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pricing-table-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.pricing-table-header {
    background: var(--gradient-primary);
    padding: 24px 32px;
    color: white;
}

.pricing-table-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pricing-table-header p {
    font-size: 14px;
    opacity: 0.8;
}

.pricing-table {
    width: 100%;
}

.pricing-table th,
.pricing-table td {
    padding: 18px 32px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.pricing-table th {
    background: var(--bg-light);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-table td {
    font-size: 15px;
    color: var(--text-primary);
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-highlight {
    color: var(--primary-color);
    font-weight: 700;
}

/* ========== 合规说明 ========== */
.compliance-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.compliance-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-normal);
}

.compliance-card:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
}

.compliance-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.compliance-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.compliance-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== 页脚 ========== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 24px;
    color: white;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-contact h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 24px;
    color: white;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.contact-item .icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ========== 弹窗 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-2xl);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 32px;
}

/* ========== 表单 ========== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    background: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-input {
    flex: 1;
}

.sms-btn {
    padding: 14px 24px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.sms-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.sms-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-color);
}

.form-checkbox a {
    color: var(--primary-color);
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ========== 支付弹窗 ========== */
.payment-methods {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.payment-method {
    flex: 1;
    padding: 20px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.payment-method:hover {
    background: var(--bg-white);
    border-color: var(--border-color);
}

.payment-method.selected {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.payment-method .icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.payment-method .name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-summary {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 28px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-secondary);
    border-bottom: 1px dashed var(--border-color);
}

.payment-row:last-child {
    border-bottom: none;
}

.payment-row.total {
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--border-color);
    border-bottom: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-row.total .value {
    color: var(--primary-color);
    font-size: 24px;
}

/* ========== Toast通知 ========== */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--bg-white);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 320px;
    max-width: 450px;
    animation: toastIn 0.4s ease;
}

@keyframes toastIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast .icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.toast.success .icon {
    background: #dcfce7;
    color: #16a34a;
}

.toast.error .icon {
    background: #fee2e2;
    color: #dc2626;
}

.toast.warning .icon {
    background: #fef3c7;
    color: #d97706;
}

.toast.info .icon {
    background: #dbeafe;
    color: #2563eb;
}

.toast .message {
    flex: 1;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.4;
}

/* ========== 加载状态 ========== */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn .loading-spinner {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: white;
}

/* ========== 响应式 ========== */
@media (max-width: 1400px) {
    .packages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        max-width: 700px;
        margin: 0 auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-preview {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-content {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .create-container {
        grid-template-columns: 1fr;
    }
    
    .create-sidebar {
        display: none;
    }
    
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .compliance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .config-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .compliance-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ========== Hero Picker 样式 ========== */
.hero-picker-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.hero-picker-option {
    padding: 12px 16px;
    text-align: center;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.hero-picker-option:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-picker-option.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Preview区域可编辑样式 */
.preview-input[contenteditable="true"] {
    outline: none;
    cursor: text;
}

.preview-input[contenteditable="true"]:focus {
    background: rgba(255, 255, 255, 0.15);
}

.preview-input[contenteditable="true"]:empty:before {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, 0.4);
}

/* Preview选项hover效果 */
.preview-option {
    transition: all 0.2s ease;
}

.preview-option:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* 数字滚动动画 */
.counter {
    display: inline-block;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

/* ========== 漂浮客服按钮 ========== */
.floating-service {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 999;
}

.service-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 12px 10px;
    min-width: 56px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
}

.service-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.45);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.service-btn:active {
    transform: translateY(0) scale(0.98);
}

.service-icon {
    font-size: 22px;
    line-height: 1;
}

.service-text {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ========== 在线聊天框 ========== */
.chat-box {
    position: fixed;
    right: 20px;
    bottom: 160px;
    width: 360px;
    height: 500px;
    max-height: calc(100vh - 180px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.chat-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.chat-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.chat-status {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-close {
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #f8fafc;
    min-height: 0;
}

.chat-message {
    display: flex;
    gap: 10px;
    max-width: 85%;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-text {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.chat-message.bot .message-text {
    background: white;
    color: #1a1a2e;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chat-message.user .message-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: #94a3b8;
    padding: 0 4px;
}

.chat-message.user .message-time {
    text-align: right;
}

.chat-quick-replies {
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: white;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.chat-quick-replies button {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 16px;
    font-size: 12px;
    color: #6366f1;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.chat-quick-replies button:hover {
    background: #f0f0ff;
    border-color: #6366f1;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    background: white;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.chat-input-area input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-area input:focus {
    border-color: #6366f1;
}

.chat-send {
    padding: 10px 18px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.chat-send:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* 聊天框响应式 */
@media (max-width: 768px) {
    .floating-service {
        right: 16px;
        bottom: 80px;
    }
    
    .service-btn {
        padding: 10px 8px;
        min-width: 52px;
    }
    
    .service-icon {
        font-size: 20px;
    }
    
    .service-text {
        font-size: 10px;
    }
    
    .chat-box {
        right: 16px;
        bottom: 140px;
        width: calc(100% - 32px);
        max-width: 360px;
        height: 480px;
        max-height: calc(100vh - 160px);
    }
}

@media (max-width: 480px) {
    .floating-service {
        right: 12px;
        bottom: 70px;
    }
    
    .chat-box {
        right: 12px;
        left: 12px;
        bottom: 120px;
        width: auto;
        height: calc(100vh - 140px);
        max-height: 450px;
    }
}

/* ========== 返回顶部按钮 ========== */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 170px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* 返回顶部按钮响应式 */
@media (max-width: 768px) {
    .back-to-top {
        right: 16px;
        bottom: 155px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        right: 12px;
        bottom: 145px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}
