/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #6C5CE7;
  --primary-dark: #5A4BD1;
  --primary-light: #A29BFE;
  --text: #2D3436;
  --text-light: #636E72;
  --bg: #FFFFFF;
  --bg-gray: #F8F9FA;
  --border: #DFE6E9;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 12px;
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; color: var(--text); line-height: 1.6; background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== Header ========== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; height: 64px; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; }
.logo-icon { font-size: 24px; }
.logo-text { color: var(--text); }
.nav { display: flex; gap: 32px; }
.nav-item { color: var(--text-light); font-size: 15px; font-weight: 500; transition: color 0.2s; padding: 8px 0; }
.nav-item:hover, .nav-item.active { color: var(--primary); }
.header-right { display: flex; gap: 12px; }

/* ========== Buttons ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(108,92,231,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 16px; font-size: 13px; }

/* ========== Hero ========== */
.hero { position: relative; min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 20px 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); opacity: 0.05; }
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-title { font-size: 56px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-title .highlight { background: linear-gradient(135deg, var(--primary), #E17055); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 18px; color: var(--text-light); margin-bottom: 40px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; justify-content: center; }

/* ========== Sections ========== */
.section { padding: 100px 20px; }
.section-gray { background: var(--bg-gray); }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.section-title p { color: var(--text-light); font-size: 16px; }

/* ========== Create Panel ========== */
.create-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1000px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.form-input { width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: 8px; font-size: 14px; transition: border-color 0.2s; outline: none; }
.form-input:focus { border-color: var(--primary); }
.form-textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: 8px; font-size: 14px; resize: vertical; min-height: 140px; transition: border-color 0.2s; outline: none; font-family: inherit; line-height: 1.8; }
.form-textarea:focus { border-color: var(--primary); }
.char-count { text-align: right; font-size: 12px; color: var(--text-light); margin-top: 6px; }
.cost-estimate { margin-left: 16px; color: var(--primary); font-weight: 600; }

/* Voice Select */
.voice-select { position: relative; }
.voice-select-current { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border: 2px solid var(--border); border-radius: 8px; cursor: pointer; transition: border-color 0.2s; }
.voice-select-current:hover { border-color: var(--primary); }
.arrow { transition: transform 0.2s; }
.voice-dropdown { position: absolute; top: 100%; left: 0; right: 0; z-index: 50; background: #fff; border: 2px solid var(--border); border-radius: 8px; margin-top: 4px; box-shadow: var(--shadow); max-height: 300px; overflow: hidden; }
.voice-search { padding: 8px; }
.voice-search .form-input { padding: 8px 12px; }
.voice-list { max-height: 240px; overflow-y: auto; }
.voice-item { padding: 10px 16px; cursor: pointer; transition: background 0.2s; display: flex; justify-content: space-between; align-items: center; }
.voice-item:hover { background: var(--bg-gray); }
.voice-item.active { background: rgba(108,92,231,0.1); }
.voice-item-name { font-weight: 500; }
.voice-item-info { font-size: 12px; color: var(--text-light); }

/* Speed Control */
.speed-control { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.speed-control span { font-size: 12px; color: var(--text-light); }
.speed-control input[type="range"] { flex: 1; accent-color: var(--primary); }
.speed-value { font-weight: 600; color: var(--primary); font-size: 14px; min-width: 40px; }

/* ========== Player ========== */
.player-panel { background: var(--bg-gray); border-radius: var(--radius); padding: 24px; }
.player-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.player-info { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 13px; color: var(--text-light); }
.player-waveform { height: 60px; background: #fff; border-radius: 8px; margin-bottom: 16px; display: flex; align-items: center; padding: 0 10px; overflow: hidden; }
.waveform-bar { display: flex; align-items: center; gap: 2px; width: 100%; height: 40px; }
.waveform-bar span { flex: 1; background: var(--primary-light); border-radius: 2px; animation: waveAnim 0.5s ease-in-out; }
@keyframes waveAnim { 0%, 100% { height: 10%; } 50% { height: 80%; } }
.player-controls { display: flex; gap: 12px; }
.player-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border); background: #fff; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.player-btn:hover { border-color: var(--primary); color: var(--primary); }
.player-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 300px; background: var(--bg-gray); border-radius: var(--radius); }
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-text { font-size: 14px; color: var(--text-light); text-align: center; }

/* ========== Voice Grid ========== */
.voice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.voice-card { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); transition: all 0.2s; cursor: pointer; }
.voice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.voice-card-tag { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 8px; background: rgba(108,92,231,0.1); color: var(--primary); }
.voice-card-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.voice-card-style { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.voice-card-desc { font-size: 13px; color: var(--text-light); }
.btn-voice-demo { margin-top: 12px; font-size: 13px; padding: 6px 16px; border-radius: 20px; border: 1px solid var(--primary-light); background: transparent; color: var(--primary); cursor: pointer; transition: all 0.2s; }
.btn-voice-demo:hover { background: var(--primary); color: #fff; }

/* ========== Price ========== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 900px; margin: 0 auto; }
.price-card { background: #fff; border-radius: var(--radius); border: 2px solid var(--border); overflow: hidden; transition: all 0.2s; position: relative; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card-hot { border-color: var(--primary); }
.price-hot-tag { position: absolute; top: 12px; right: 12px; background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.price-card-header { padding: 32px 24px; text-align: center; }
.price-card-header h3 { font-size: 20px; margin-bottom: 16px; }
.price-amount { font-size: 48px; font-weight: 800; color: var(--primary); }
.price-amount small { font-size: 16px; font-weight: 400; color: var(--text-light); }
.price-card-body { padding: 0 24px 32px; }
.price-features { list-style: none; margin-bottom: 24px; }
.price-features li { padding: 8px 0; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border); }
.price-features li:last-child { border-bottom: none; }

/* ========== Footer ========== */
.footer { background: #2D3436; color: #B2BEC3; padding: 60px 20px 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-desc { font-size: 14px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col a { display: block; color: #B2BEC3; padding: 6px 0; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 14px; padding: 4px 0; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; }

/* ========== Modal ========== */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal-content { position: relative; background: #fff; border-radius: var(--radius); padding: 32px; width: 400px; max-width: 90vw; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-light); }
.modal-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.modal-tip { text-align: center; margin-top: 16px; font-size: 14px; color: var(--text-light); }
.modal-tip a { color: var(--primary); font-weight: 600; }

/* ========== Loader ========== */
.loader { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .create-panel { grid-template-columns: 1fr; }
  .hero-title { font-size: 36px; }
  .nav { display: none; }
  .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
