/* Jaykou Studio - core design system */
:root {
  --bg: #08080A;
  --bg-soft: #0E0E11;
  --panel: rgba(20,20,22,.94);
  --panel-solid: #141416;
  --line: rgba(214,178,86,.14);
  --line-strong: rgba(214,178,86,.34);
  --text: #F4F1E9;
  --text-2: #B9B2A3;
  --text-3: #A69D89;
  --brand: #D6B256;
  --brand-2: #F0DCA6;
  --brand-3: #C9A64A;
  --ok: #2fd48b;
  --warn: #ffb020;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  --grad: linear-gradient(135deg,#F7E6B4 0%,#DEBF6B 52%,#C39E3F 100%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

/* ---------- ambient background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 62vw;
  height: 62vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.34;
}
.aurora::before {
  background: radial-gradient(circle, #D6B256 0%, transparent 68%);
  top: -22vw;
  left: -12vw;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora::after {
  background: radial-gradient(circle, #F0DCA6 0%, transparent 68%);
  bottom: -28vw;
  right: -14vw;
  opacity: 0.22;
  animation: drift 28s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vw, 4vw, 0) scale(1.12); }
}

.grid-mask { display: none; }

/* ---------- brand mark ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(214,178,86, 0.9);
}
.brand-sub {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(214,178,86, 0.95);
}
.btn-primary:hover { box-shadow: 0 18px 44px -14px rgba(214,178,86, 1); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.26); }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

/* ---------- inputs ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12.5px;
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.input, .textarea, .select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  padding: 0 14px;
  height: 46px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.textarea {
  height: auto;
  min-height: 132px;
  padding: 13px 14px;
  line-height: 1.68;
  resize: vertical;
}
.input::placeholder, .textarea::placeholder { color: #A69D89; }
.input:focus, .textarea:focus, .select:focus {
  border-color: rgba(214,178,86, 0.65);
  background: rgba(214,178,86, 0.07);
  box-shadow: 0 0 0 3px rgba(214,178,86, 0.14);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a6abbd' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* ---------- misc ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
}
.chip-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--text-2); }
.tiny { font-size: 12px; color: var(--text-3); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ---------- toast ---------- */
.toast-wrap {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 11px;
  background: rgba(24,24,27, 0.96);
  border: 1px solid var(--line-strong);
  font-size: 13.5px;
  box-shadow: var(--shadow);
  animation: toastIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); }

.fade-up { animation: fadeUp 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ 全站共享组件 ============ */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px;
  background: rgba(10,10,11, 0.74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-nav .links { display: flex; align-items: center; gap: 26px; }
.site-nav .links a { font-size: 13.5px; color: var(--text-2); transition: color .16s; }
.site-nav .links a:hover, .site-nav .links a.on { color: #fff; }
.site-nav .links a.on { font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 9px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.page-hero { padding: 72px 0 40px; text-align: center; }
.page-hero .k {
  display: inline-block;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-2); font-weight: 650; margin-bottom: 14px;
}
.page-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.035em; margin: 0 0 14px; font-weight: 700;
}
.page-hero p { color: var(--text-2); font-size: 15px; max-width: 620px; margin: 0 auto; line-height: 1.75; }
.crumb { font-size: 12px; color: var(--text-3); margin-bottom: 20px; }
.crumb b { color: var(--text-2); font-weight: 500; }

/* 章节标题 */
.sec-t { margin: 60px 0 28px; }
.sec-t h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -.028em; margin: 0 0 10px; font-weight: 700;
}
.sec-t p { color: var(--text-2); font-size: 14px; margin: 0; line-height: 1.7; }

/* 视频案例卡片 */
.video-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(20,20,22,.55);
  transition: all .22s ease;
  cursor: pointer;
  display: flex; flex-direction: column;
}
.video-card:hover { border-color: rgba(214,178,86,.42); transform: translateY(-3px); box-shadow: 0 26px 60px -30px rgba(214,178,86,.6); }
.video-thumb {
  position: relative; aspect-ratio: 16/9;
  background: linear-gradient(150deg, #242015, #111113);
  display: grid; place-items: center; overflow: hidden;
}
.video-thumb .play {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  display: grid; place-items: center; font-size: 20px; color: #fff;
  transition: transform .2s ease, background .2s ease;
}
.video-card:hover .play { transform: scale(1.12); background: rgba(214,178,86,.7); }
.video-thumb .dur {
  position: absolute; right: 10px; bottom: 10px;
  font-size: 11px; color: #fff; background: rgba(0,0,0,.55);
  padding: 2px 7px; border-radius: 5px;
}
.video-body { padding: 14px 16px 16px; }
.video-tag { font-size: 10.5px; color: var(--brand-2); letter-spacing: .06em; font-weight: 650; margin-bottom: 6px; }
.video-body h3 { margin: 0 0 6px; font-size: 15px; font-weight: 650; letter-spacing: -.01em; line-height: 1.35; }
.video-body p { margin: 0; font-size: 12.3px; color: var(--text-3); line-height: 1.6; }

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

/* 分类筛选 chips */
.filter-bar { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 26px; }
.filter-chip {
  height: 38px; padding: 0 17px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-2); font-size: 13px; font-weight: 550;
  background: rgba(255,255,255,.03);
  transition: all .18s ease;
}
.filter-chip:hover { border-color: rgba(255,255,255,.28); color: #fff; }
.filter-chip.on { background: rgba(214,178,86,.16); border-color: rgba(214,178,86,.6); color: #fff; }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.step-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px;
  background: rgba(20,20,22,.45);
}
.step-card .n { font-size: 11px; font-weight: 700; color: var(--brand); letter-spacing: .1em; margin-bottom: 12px; }
.step-card h4 { margin: 0 0 8px; font-size: 14.5px; font-weight: 650; }
.step-card p { margin: 0; font-size: 12.6px; color: var(--text-3); line-height: 1.65; }

/* 下载卡片 */
.dl-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 26px;
  background: rgba(20,20,22,.55);
}
.dl-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 650; }
.dl-card .sub { font-size: 12.5px; color: var(--text-3); line-height: 1.7; margin-bottom: 18px; }
.dl-card .meta { font-size: 11.5px; color: var(--text-3); margin-top: 12px; line-height: 1.6; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 2px; }
.faq-q { font-size: 14.5px; font-weight: 650; margin-bottom: 9px; }
.faq-a { font-size: 13px; color: var(--text-2); line-height: 1.8; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 36px; margin-top: 70px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; gap: 14px;
}
.site-footer a { color: var(--text-2); }

@media (max-width: 900px) {
  .site-nav { padding: 0 18px; }
  .site-nav .links { display: none; }
  .video-grid, .video-grid.cols-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 18px; }
  .site-footer { padding: 24px 18px; }
}

/* ============ 数字人口播工作流向导 ============ */
.wf-steps {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: rgba(20,20,22,.45);
}
.wf-step {
  display: flex; gap: 18px; padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  position: relative;
}
.wf-step:last-child { border-bottom: none; }
.wf-step.done .wf-num { background: rgba(52,199,123,.18); border-color: rgba(52,199,123,.55); color: #34c77b; }
.wf-step.current { background: rgba(214,178,86,.08); }
.wf-step.current .wf-num { background: rgba(214,178,86,.22); border-color: rgba(214,178,86,.7); color: #fff; }
.wf-step.locked { opacity: .5; }
.wf-num {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
  color: var(--text-2); background: rgba(255,255,255,.03);
  margin-top: 2px;
}
.wf-body { flex: 1; min-width: 0; }
.wf-title { font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 10px; }
.wf-title .st {
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  padding: 2px 9px; border-radius: 999px;
}
.st-ready { background: rgba(52,199,123,.16); color: #34c77b; }
.st-pending { background: rgba(255,171,0,.16); color: #ffab00; }
.st-off { background: rgba(255,255,255,.08); color: var(--text-3); }
.wf-desc { font-size: 12.5px; color: var(--text-3); line-height: 1.65; margin: 7px 0 0; }
.wf-action { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wf-output {
  margin-top: 12px; font-size: 12px; color: var(--text-2);
  background: rgba(0,0,0,.28); border: 1px dashed var(--line-strong);
  border-radius: 10px; padding: 11px 14px; display: none; line-height: 1.6;
  word-break: break-all;
}
.wf-output a { color: var(--brand-2); }

.wf-progress {
  display: flex; align-items: center; gap: 10px; margin: 18px 0 22px;
}
.wf-progress .bar { flex: 1; height: 6px; background: rgba(255,255,255,.07); border-radius: 99px; overflow: hidden; }
.wf-progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 99px;  }
.wf-progress .lbl { font-size: 12px; color: var(--text-3); white-space: nowrap; }

/* Match the production workspace: black/gold surfaces, restrained entry and hover motion. */
:root { color-scheme: dark; }
body { background: radial-gradient(900px 460px at 74% -8%,rgba(214,178,86,.09),transparent 62%),var(--bg); }
::selection { background: rgba(214,178,86,.32); color: #FCF3D8; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
input,textarea { caret-color: var(--brand); }
.brand-mark,.btn-primary { color: #211B0C; }
.btn { border-radius: 999px; min-height: 44px; }
.btn-primary { box-shadow: 0 6px 22px rgba(214,178,86,.18); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(214,178,86,.24); }
.btn-ghost:hover { color: var(--brand-2); border-color: var(--line-strong); }
.brand-mark { background: linear-gradient(150deg,#241E10,#15130C); color: var(--brand-2); border: 1px solid var(--line-strong); box-shadow: none; }
.site-nav { min-height: 64px; background: rgba(10,10,11,.94); }
.site-nav .links a.on { color: var(--brand-2); }
.aurora::before,.aurora::after { filter: none; opacity: .12; }
.aurora::after { opacity: .06; }
.grid-mask { display: none; }
.fade-up { animation: fadeUp .32s cubic-bezier(.22,.9,.3,1) both; }
.video-card,.cat-link,.filter-chip { transition-property: transform,border-color,background-color,box-shadow; }
.video-thumb .play { color: var(--brand-2); }
.video-card:hover .play { background: rgba(214,178,86,.24); }
::-webkit-scrollbar-thumb { background: rgba(214,178,86,.24); }
::-webkit-scrollbar-thumb:hover { background: rgba(214,178,86,.4); }
@media (prefers-reduced-motion: reduce) {
 *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 560px) {
 .site-nav { padding: 12px 16px; height: auto; gap: 12px; flex-wrap: wrap; }
 .site-nav .brand { font-size: 15px; }
 .nav-cta { flex-wrap: wrap; gap: 8px; }
 .nav-cta .btn { font-size: 12px; padding: 0 12px; }
 .container { padding: 0 16px; }
 .toast-wrap { width: calc(100% - 32px); }
 .toast { max-width: 100%; }
}

.brand-mark img { display: block; width: 22px; height: 22px; }
