/* ============================================================
   分镜工坊 — 样式表
   改配色只需要动 :root 里的变量
   ============================================================ */

:root {
  --bg:        #0b0e13;
  --bg-alt:    #0e131b;
  --card:      #141a24;
  --card-2:    #1a2230;
  --line:      #242e3d;
  --text:      #e6eaf0;
  --text-dim:  #8b97a8;
  --gold:      #d4af37;
  --gold-soft: #e8c96a;
  --gold-bg:   rgba(212, 175, 55, .10);
  --radius:    14px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
          system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 背景微光，增加质感又几乎零成本 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px 400px at 15% 0%, rgba(212,175,55,.07), transparent 70%),
    radial-gradient(700px 500px at 85% 10%, rgba(60,110,200,.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  width: min(1120px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.wrap.narrow { width: min(820px, 92%); }

h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; font-weight: 700; }

a { color: var(--gold-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 14, 19, .82);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  background: linear-gradient(135deg, var(--gold), #a5822a);
  color: #10141a;
  font-weight: 800;
  font-size: 13px;
  padding: 5px 9px;
  border-radius: 7px;
  letter-spacing: 1px;
}
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: .5px; }

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav a {
  color: var(--text-dim);
  font-size: 14.5px;
  text-decoration: none;
  transition: color .18s;
}
.nav a:hover { color: var(--gold-soft); }

.btn-vip {
  background: var(--gold-bg);
  border: 1px solid rgba(212,175,55,.4);
  color: var(--gold-soft);
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.btn-vip:hover { background: rgba(212,175,55,.2); }

/* ---------- 首屏 ---------- */
.hero {
  padding: 72px 0 44px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 4.4vw, 46px);
  letter-spacing: -.5px;
  background: linear-gradient(180deg, #fff 30%, #b9a26a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 24px;
}
.hero-sub strong { color: var(--gold-soft); font-weight: 600; }
.hero-tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-tags span {
  font-size: 13px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 14px;
  background: rgba(255,255,255,.02);
}

/* ---------- 卡片通用 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- 工具区 ---------- */
.tool { padding: 12px 0 56px; }
.tool-card { padding: 28px; }

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 9px;
  letter-spacing: .3px;
}

textarea, input[type="text"], select {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 13px 15px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
textarea { resize: vertical; line-height: 1.75; min-height: 180px; }
textarea:focus, input:focus, select:focus {
  border-color: rgba(212,175,55,.55);
  box-shadow: 0 0 0 3px rgba(212,175,55,.10);
}
select { cursor: pointer; }
select option { background: var(--card); }

.field-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 9px;
}
.link-btn {
  background: none;
  border: none;
  color: var(--gold-soft);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.counter { font-size: 13px; color: var(--text-dim); }

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

/* ---------- 主按钮 ---------- */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), #b8912b);
  color: #12161d;
  border: none;
  border-radius: 11px;
  padding: 16px;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(212,175,55,.28);
  filter: brightness(1.05);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-sub { font-size: 12px; font-weight: 500; opacity: .72; }
.btn-sm { padding: 12px; font-size: 15px; }

.btn-ghost {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 12px;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: all .18s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- 输出区 ---------- */
.output { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }

.output-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.output-head h3 { margin: 0; font-size: 16px; }
.output-head .meta { font-size: 13px; color: var(--text-dim); }

.shot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color .2s;
  animation: fadeUp .35s ease both;
}
.shot:hover { border-color: rgba(212,175,55,.35); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.shot-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.shot-no {
  font-size: 12px;
  font-weight: 700;
  color: #10141a;
  background: var(--gold-soft);
  border-radius: 6px;
  padding: 3px 9px;
  letter-spacing: .5px;
  flex-shrink: 0;
}
.shot-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shot-type {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2px 10px;
  flex-shrink: 0;
}

.shot-block { margin-top: 13px; }
.shot-block-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.shot-block-label span {
  font-size: 12.5px;
  color: var(--gold-soft);
  font-weight: 600;
  letter-spacing: .4px;
}
.copy-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .16s;
}
.copy-btn:hover { border-color: var(--gold); color: var(--gold-soft); }
.copy-btn.done { border-color: #3ba55d; color: #5fd07f; }

.shot-block p {
  margin: 0;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 14px;
  color: #c6cedb;
  line-height: 1.75;
  word-break: break-word;
}

/* ---------- 通用 section ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section h2 {
  font-size: clamp(22px, 3vw, 30px);
  text-align: center;
  margin-bottom: 40px;
}

/* ---------- 步骤 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step-no {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-dim); margin: 0; }

/* ---------- 价格 ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 22px;
  justify-content: center;
}
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.price-card.featured {
  border-color: rgba(212,175,55,.55);
  box-shadow: 0 0 40px rgba(212,175,55,.10);
}
.price-badge {
  position: absolute;
  top: -11px;
  right: 20px;
  background: var(--gold);
  color: #10141a;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
}
.price-card h3 { font-size: 16px; color: var(--text-dim); font-weight: 600; }
.price-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--gold-soft);
  margin: 6px 0 18px;
}
.price-num span { font-size: 15px; font-weight: 500; color: var(--text-dim); }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.price-card li {
  font-size: 14.5px;
  color: var(--text-dim);
  padding: 6px 0 6px 22px;
  position: relative;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 4px 20px;
  margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  padding: 15px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 20px;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-dim);
}
.site-footer p { margin: 4px 0; }
.foot-links a { color: var(--text-dim); }
.foot-links a:hover { color: var(--gold-soft); }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(4px);
}
.modal-box {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  width: min(420px, 100%);
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
  animation: pop .22s ease both;
}
@keyframes pop {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-box h3 { font-size: 20px; margin-bottom: 6px; }
.modal-desc { font-size: 14px; color: var(--text-dim); margin: 0 0 20px; }
.modal-box .field { margin-bottom: 14px; }
.modal-error { color: #ff6b6b; font-size: 13.5px; margin: 0 0 12px; }
.modal-tip {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin: 16px 0 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 820px) {
  .nav { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .tool-card { padding: 20px; }
  .hero { padding: 48px 0 30px; }
  .shot { padding: 16px; }
  .shot-type { display: none; }
}

/* 尊重用户的减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
