/* ============================================================
   翡金引擎 · FEIJIN ENGINE
   绿 × 金 · 胶囊设计语言 · 深色酷炫 · 双端自适应
   ============================================================ */
:root {
  --bg0: #050c09;
  --bg1: #081410;
  --bg2: #0c1c15;
  --card: rgba(13, 26, 20, 0.78);
  --card-solid: #0d1a14;
  --line: rgba(214, 178, 77, 0.16);
  --line-strong: rgba(214, 178, 77, 0.38);
  --green: #19e990;
  --green-soft: #6bf5c0;
  --green-deep: #0a9c66;
  --gold: #f0cd74;
  --gold-bright: #ffe9a6;
  --gold-deep: #c9971f;
  --text: #ecf6ef;
  --muted: #93ab9d;
  --danger: #ff6b6b;
  --grad-gold: linear-gradient(118deg, #ffe9a6 0%, #f0cd74 34%, #d9a527 68%, #b8860b 100%);
  --grad-green: linear-gradient(118deg, #7df7c7 0%, #19e990 48%, #0a9c66 100%);
  --grad-mix: linear-gradient(118deg, #19e990 0%, #7df7c7 30%, #ffe9a6 62%, #d9a527 100%);
  --shadow-gold: 0 6px 30px rgba(217, 165, 39, 0.35);
  --shadow-green: 0 6px 30px rgba(25, 233, 144, 0.25);
  --radius-card: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg0);
  color: var(--text);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: var(--text); }
::selection { background: rgba(217, 165, 39, 0.4); }

/* 背景氛围 */
.bg-fx {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(720px 480px at 82% -6%, rgba(217, 165, 39, 0.14), transparent 62%),
    radial-gradient(820px 560px at 6% 16%, rgba(25, 233, 144, 0.11), transparent 60%),
    radial-gradient(700px 700px at 50% 110%, rgba(10, 156, 102, 0.10), transparent 65%),
    var(--bg0);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(214, 178, 77, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 178, 77, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(75% 60% at 50% 34%, #000 10%, transparent 100%);
          mask-image: radial-gradient(75% 60% at 50% 34%, #000 10%, transparent 100%);
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- 顶栏 ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 12, 9, 0.72);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 26px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: 1px; }
.brand .logo-pill {
  width: 34px; height: 20px; border-radius: 999px; transform: rotate(-22deg);
  background: var(--grad-mix); box-shadow: 0 0 18px rgba(240, 205, 116, 0.55);
}
.brand b { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 7px 16px; border-radius: 999px; font-size: 14.5px; color: var(--muted);
  transition: all 0.22s;
}
.nav a:hover { color: var(--gold-bright); background: rgba(217, 165, 39, 0.08); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.code-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line-strong); color: var(--gold);
  background: rgba(217, 165, 39, 0.07); transition: all 0.22s; white-space: nowrap;
}
.code-pill:hover { box-shadow: var(--shadow-gold); }
.code-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.code-pill.ok .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ---------- 通用按钮（胶囊） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 32px; border-radius: 999px; font-size: 15.5px; font-weight: 700;
  letter-spacing: 0.5px; transition: transform 0.18s, box-shadow 0.25s, filter 0.25s;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--grad-gold); color: #26200a; box-shadow: var(--shadow-gold); }
.btn-gold:hover { filter: brightness(1.08); box-shadow: 0 8px 40px rgba(217, 165, 39, 0.5); }
.btn-green { background: var(--grad-green); color: #04241a; box-shadow: var(--shadow-green); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--gold); background: rgba(217, 165, 39, 0.05); }
.btn-ghost:hover { background: rgba(217, 165, 39, 0.12); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn-sm { padding: 8px 18px; font-size: 13.5px; }

/* ---------- 卡片 ---------- */
.card {
  border-radius: var(--radius-card); border: 1px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(140deg, rgba(25, 233, 144, 0.35), rgba(214, 178, 77, 0.08) 40%, rgba(214, 178, 77, 0.45)) border-box;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 158px 0 96px; text-align: center; overflow: hidden; }
.hero .float-pill {
  position: absolute; border-radius: 999px; filter: blur(0.5px); opacity: 0.85;
  animation: floaty 7s ease-in-out infinite;
}
.hero .p1 { width: 130px; height: 42px; left: 6%; top: 26%; transform: rotate(-24deg); background: var(--grad-green); opacity: 0.25; }
.hero .p2 { width: 90px; height: 30px; right: 9%; top: 20%; transform: rotate(18deg); background: var(--grad-gold); opacity: 0.3; animation-delay: -2.4s; }
.hero .p3 { width: 60px; height: 20px; left: 16%; bottom: 14%; transform: rotate(12deg); background: var(--grad-gold); opacity: 0.2; animation-delay: -4s; }
.hero .p4 { width: 170px; height: 54px; right: 4%; bottom: 8%; transform: rotate(-14deg); background: var(--grad-mix); opacity: 0.16; animation-delay: -1.2s; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 18px; margin-bottom: 26px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--gold); font-size: 13.5px; font-weight: 600; letter-spacing: 2px;
  background: rgba(217, 165, 39, 0.06);
}
.hero-tag .spark { color: var(--green); }
.hero h1 {
  font-size: clamp(34px, 6.2vw, 64px); line-height: 1.18; font-weight: 900; letter-spacing: 2px;
}
.hero h1 .g1 { background: var(--grad-green); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 .g2 { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .sub { margin: 20px auto 0; max-width: 640px; color: var(--muted); font-size: clamp(15px, 2.2vw, 17.5px); }
.hero-cta { margin-top: 38px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats { margin-top: 46px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.stat-pill {
  padding: 9px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line); color: var(--text); background: rgba(13, 26, 20, 0.6);
}
.stat-pill em { font-style: normal; color: var(--green); font-weight: 800; }
.stat-pill.gold em { color: var(--gold); }

/* ---------- 区块标题 ---------- */
.sec { padding: 72px 0; }
.sec-head { text-align: center; margin-bottom: 42px; }
.sec-head .kicker {
  display: inline-block; padding: 5px 16px; border-radius: 999px; font-size: 12.5px; letter-spacing: 3px;
  color: var(--green); border: 1px solid rgba(25, 233, 144, 0.35); background: rgba(25, 233, 144, 0.06);
  margin-bottom: 14px; font-weight: 700;
}
.sec-head h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 800; letter-spacing: 1px; }
.sec-head h2 span { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sec-head p { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* ---------- 创作台 ---------- */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 26px; align-items: start; }
.panel { padding: 26px 26px 30px; }
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; margin-bottom: 20px; letter-spacing: 1px; }
.panel-title .bar { width: 26px; height: 12px; border-radius: 999px; background: var(--grad-mix); }

.engine-tabs { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.engine-tab {
  padding: 10px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 700;
  border: 1px solid var(--line); color: var(--muted); transition: all 0.22s; position: relative;
}
.engine-tab .rec {
  position: absolute; top: -9px; right: -6px; font-size: 10.5px; padding: 1px 8px; border-radius: 999px;
  background: var(--grad-gold); color: #26200a; font-weight: 800; letter-spacing: 1px;
}
.engine-tab.active { color: #04241a; background: var(--grad-green); border-color: transparent; box-shadow: var(--shadow-green); }

.field { margin-bottom: 20px; }
.field > label { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; letter-spacing: 0.5px; }
.field > label .hint { font-weight: 400; font-size: 12.5px; color: var(--muted); }

textarea.input, input.input {
  width: 100%; background: rgba(5, 12, 9, 0.65); border: 1px solid var(--line);
  border-radius: 16px; padding: 13px 16px; font-size: 15px; outline: none; resize: vertical;
  transition: border 0.2s, box-shadow 0.2s;
}
textarea.input { min-height: 108px; }
textarea.input:focus, input.input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(25, 233, 144, 0.12); }
input.input { border-radius: 999px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 8px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line); color: var(--muted); transition: all 0.18s; white-space: nowrap;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.active { background: rgba(240, 205, 116, 0.14); border-color: var(--gold); color: var(--gold-bright); box-shadow: 0 0 14px rgba(217, 165, 39, 0.25); }
.chip[disabled], .chip.disabled { opacity: 0.35; pointer-events: none; }
.chip .price-tag { font-size: 11px; color: var(--muted); margin-left: 5px; }
.chip.active .price-tag { color: rgba(255, 233, 166, 0.8); }

/* 滑杆 */
.slider-row { display: flex; align-items: center; gap: 16px; }
.slider-row output {
  min-width: 62px; text-align: center; padding: 6px 0; border-radius: 999px; font-weight: 800; font-size: 14px;
  background: rgba(25, 233, 144, 0.1); color: var(--green); border: 1px solid rgba(25, 233, 144, 0.35);
}
input[type="range"] { flex: 1; appearance: none; -webkit-appearance: none; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--green-deep), var(--gold-deep)); outline: none; }
input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad-gold); border: 2px solid #26200a; box-shadow: 0 0 12px rgba(240, 205, 116, 0.7); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--grad-gold); border: 2px solid #26200a; cursor: grab;
}

/* 开关 */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.switch input { display: none; }
.switch .track { width: 46px; height: 26px; border-radius: 999px; background: rgba(147, 171, 157, 0.25); transition: background 0.2s; position: relative; }
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #dfe9e2; transition: all 0.22s;
}
.switch input:checked + .track { background: var(--grad-green); }
.switch input:checked + .track::after { left: 23px; background: #04241a; }

/* 上传 */
.uploader { display: flex; flex-wrap: wrap; gap: 10px; }
.up-thumb { position: relative; width: 72px; height: 72px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); }
.up-thumb img { width: 100%; height: 100%; object-fit: cover; }
.up-thumb .rm {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 12px; line-height: 20px; text-align: center;
}
.up-add {
  width: 72px; height: 72px; border-radius: 16px; border: 1.5px dashed var(--line-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--gold); font-size: 12px; transition: all 0.2s;
}
.up-add:hover { background: rgba(217, 165, 39, 0.08); }
.up-add .plus { font-size: 20px; line-height: 1; }

/* 估算条 + 提交 */
.estimate {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border-radius: 999px; padding: 10px 12px 10px 24px; margin-top: 26px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(90deg, rgba(25, 233, 144, 0.07), rgba(217, 165, 39, 0.1));
  flex-wrap: wrap;
}
.estimate .est-label { font-size: 13.5px; color: var(--muted); }
.estimate .est-num { font-size: 20px; font-weight: 900; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.estimate .est-num small { font-size: 12px; -webkit-text-fill-color: var(--muted); font-weight: 500; }

.gen-btn { position: relative; overflow: hidden; }
.gen-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%); animation: sheen 3.2s ease-in-out infinite;
}
@keyframes sheen { 0%, 62% { transform: translateX(-120%); } 88%, 100% { transform: translateX(120%); } }

/* ---------- 任务列表 ---------- */
.tasks-empty { text-align: center; color: var(--muted); padding: 46px 10px; font-size: 14px; }
.tasks-empty .cap { width: 74px; height: 26px; border-radius: 999px; background: var(--grad-mix); opacity: 0.35; margin: 0 auto 16px; transform: rotate(-16deg); }
.task-card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 14px; background: rgba(5, 12, 9, 0.55); }
.task-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-chip { padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.status-chip.processing { color: var(--gold-bright); border: 1px solid var(--gold); background: rgba(217, 165, 39, 0.12); animation: pulse 1.6s ease-in-out infinite; }
.status-chip.done { color: #04241a; background: var(--grad-green); }
.status-chip.fail { color: #ffd7d7; border: 1px solid var(--danger); background: rgba(255, 107, 107, 0.12); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.task-engine { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.task-time { font-size: 12px; color: var(--muted); margin-left: auto; }
.task-prompt { margin-top: 10px; font-size: 13.5px; color: var(--text); opacity: 0.9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-video { margin-top: 12px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: #000; }
.task-video video { width: 100%; max-height: 380px; }
.task-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.task-err { margin-top: 10px; font-size: 12.5px; color: var(--danger); }
.spin {
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(240, 205, 116, 0.3);
  border-top-color: var(--gold); animation: rot 0.9s linear infinite; display: inline-block; vertical-align: -2px;
}
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- 定价 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.price-card { padding: 30px 26px; text-align: center; position: relative; transition: transform 0.25s; }
.price-card:hover { transform: translateY(-6px); }
.price-card .p-name { font-size: 17px; font-weight: 800; letter-spacing: 1px; }
.price-card .p-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 3px 16px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: 2px;
  background: var(--grad-gold); color: #26200a; white-space: nowrap;
}
.price-card .p-desc { color: var(--muted); font-size: 13px; margin-top: 6px; }
.price-card ul { list-style: none; margin-top: 18px; text-align: left; }
.price-card li { display: flex; justify-content: space-between; padding: 9px 4px; border-bottom: 1px dashed rgba(214, 178, 77, 0.14); font-size: 13.5px; }
.price-card li:last-child { border-bottom: none; }
.price-card li b { color: var(--gold); font-weight: 800; }
.price-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 26px; }
.price-cta { text-align: center; margin-top: 22px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 18px; margin-bottom: 12px; background: rgba(13, 26, 20, 0.6); overflow: hidden; }
.faq summary {
  cursor: pointer; padding: 16px 22px; font-weight: 700; font-size: 14.5px; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 18px; font-weight: 400; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .fa-body { padding: 0 22px 18px; color: var(--muted); font-size: 13.5px; }

/* ---------- 页脚 ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 46px; margin-top: 30px; }
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: 1px; }
.foot-brand .logo-pill { width: 26px; height: 15px; border-radius: 999px; transform: rotate(-22deg); background: var(--grad-mix); }
.foot-note { color: var(--muted); font-size: 12.5px; max-width: 720px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(3, 8, 6, 0.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 22px;
}
.modal-mask.show { display: flex; }
.modal { width: 100%; max-width: 420px; padding: 32px 28px; text-align: center; }
.modal h3 { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.modal h3 span { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.modal p { color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.modal .input { margin-top: 20px; text-align: center; letter-spacing: 2px; font-weight: 700; }
.modal .btn { width: 100%; margin-top: 16px; }
.modal .mini { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.modal .mini a { color: var(--gold); }

/* ---------- Toast ---------- */
.toast-box { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  padding: 11px 26px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(13, 26, 20, 0.95); border: 1px solid var(--line-strong); color: var(--text);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5); animation: toastIn 0.28s ease;
  max-width: 86vw; text-align: center;
}
.toast.err { border-color: var(--danger); color: #ffd7d7; }
.toast.ok { border-color: var(--green); color: var(--green-soft); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .studio-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .head-in { height: 58px; gap: 12px; }
  .brand { font-size: 17px; }
  .hero { padding: 128px 0 70px; }
  .hero-cta .btn { padding: 12px 26px; font-size: 14.5px; }
  .sec { padding: 54px 0; }
  .panel { padding: 20px 16px 24px; }
  .estimate { padding: 10px 10px 10px 18px; }
  .estimate .gen-btn { width: 100%; }
  .chips { gap: 7px; }
  .chip { padding: 7px 14px; font-size: 12.5px; }
  .task-video video { max-height: 300px; }
  .code-pill span.label-txt { display: none; }
}
