:root {
  --ink: #0a0604;
  --red: #9b1b1b;
  --gold: #e8c36a;
  --gold-dim: #b8943d;
  --paper: #f3e6c4;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

#zhao-loader {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: #080403;
  transition: opacity .7s ease, visibility .7s ease;
}
#zhao-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-seal {
  width: 88px; height: 88px; border-radius: 50%;
  border: 3px solid var(--gold);
  display: grid; place-items: center;
  font-family: "Noto Serif SC", serif;
  font-size: 42px; color: var(--gold);
  box-shadow: 0 0 40px rgba(232, 195, 106, .35);
  animation: pulse 1.4s ease-in-out infinite;
}
.loader-text {
  margin-top: 16px; letter-spacing: .45em; font-size: 13px; color: var(--gold);
}
@keyframes pulse { 50% { transform: scale(1.06); box-shadow: 0 0 60px rgba(232,195,106,.55); } }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: linear-gradient(to bottom, rgba(8,4,3,.85), transparent);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: "Noto Serif SC", serif; font-size: 22px; color: var(--gold); }
.brand img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--gold); }
.nav-links { display: flex; gap: 10px; }
.nav-links a {
  padding: 8px 16px; font-size: 14px; color: var(--paper);
  border: 1px solid rgba(232,195,106,.25); border-radius: 999px;
  background: rgba(0,0,0,.25);
}
.nav-links a:hover { border-color: var(--gold); color: var(--gold); }

.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; overflow: hidden;
}
.hero video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(8,4,3,.55), rgba(8,4,3,.2) 40%, rgba(8,4,3,.88)),
    radial-gradient(circle at 50% 40%, transparent 0 30%, rgba(155,27,27,.18) 100%);
}
.hero-copy { position: relative; z-index: 2; text-align: center; padding: 120px 24px 80px; max-width: 920px; }
.seal {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; margin-bottom: 18px;
  border: 2px solid var(--gold); color: var(--gold);
  font-family: "Noto Serif SC", serif; font-size: 32px;
  box-shadow: inset 0 0 0 3px rgba(232,195,106,.25);
}
.hero h1 {
  font-family: "Noto Serif SC", serif;
  font-weight: 600;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.25;
  letter-spacing: .08em;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { margin: 22px auto 0; max-width: 560px; color: rgba(243,230,196,.82); font-size: 18px; }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 2px;
  font-size: 15px; letter-spacing: .12em;
  border: 1px solid var(--gold);
}
.btn.gold { background: var(--gold); color: #2a1608; }
.btn.gold:hover { background: #fff1c2; }
.btn.ghost { color: var(--gold); background: rgba(0,0,0,.35); cursor: pointer; font: inherit; }
.btn.ghost:hover { background: var(--gold); color: #2a1608; }
.ca-line { margin-top: 28px; font-size: 12px; letter-spacing: .28em; color: var(--gold); }
.ca-card {
  margin: 10px auto 0; display: inline-block; max-width: 92vw;
  padding: 12px 16px; background: rgba(0,0,0,.45);
  border: 1px solid rgba(232,195,106,.35); color: var(--gold);
  font-family: ui-monospace, monospace; font-size: 13px;
  word-break: break-all; cursor: pointer;
}
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90;
  transform: translateX(-50%) translateY(16px);
  background: var(--gold); color: #2a1608;
  padding: 10px 18px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.couplets {
  position: absolute; z-index: 2; top: 28%;
  writing-mode: vertical-rl;
  font-family: "Noto Serif SC", serif;
  letter-spacing: .4em; color: var(--gold); font-size: 18px;
  text-shadow: 0 2px 12px #000;
  opacity: .9;
}
.couplets.left { left: 28px; }
.couplets.right { right: 28px; }

.faces { padding: 80px 0 40px; background: #0a0604; }
.faces h2 {
  text-align: center;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--gold); letter-spacing: .2em; margin-bottom: 36px;
}
.marquee { overflow: hidden; position: relative; }
.row { display: flex; gap: 16px; width: max-content; }
.row.left { animation: left 42s linear infinite; }
.row.right { animation: right 48s linear infinite; margin-top: 16px; }
.row:hover { animation-play-state: paused; }
@keyframes left { to { transform: translateX(-50%); } }
@keyframes right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.card {
  position: relative; flex: 0 0 auto;
  width: min(260px, 70vw); height: 190px;
  overflow: hidden; border: 1px solid rgba(232,195,106,.3);
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.card .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px; font-size: 13px; color: var(--gold);
  background: linear-gradient(transparent, rgba(0,0,0,.88));
}
.hint { text-align: center; color: rgba(243,230,196,.4); font-size: 13px; margin-top: 20px; }

footer {
  border-top: 1px solid rgba(232,195,106,.2);
  padding: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: rgba(243,230,196,.45); font-size: 13px;
}

.form-wrap { min-height: 100svh; padding: 110px 20px 40px; }
.form-card {
  max-width: 420px; margin: 0 auto; padding: 32px;
  background: rgba(10,6,4,.7); border: 1px solid rgba(232,195,106,.3);
}
.form-card h1 { font-family: "Noto Serif SC", serif; color: var(--gold); text-align: center; margin-bottom: 22px; }
.form-card label { display: block; font-size: 13px; color: rgba(243,230,196,.65); margin-bottom: 6px; }
.form-card input {
  width: 100%; padding: 12px 14px; margin-bottom: 14px;
  background: rgba(0,0,0,.4); border: 1px solid rgba(232,195,106,.25); color: #fff;
}
.form-card button {
  width: 100%; padding: 12px; margin-top: 6px; cursor: pointer;
  background: var(--gold); color: #2a1608; border: 0; font: inherit; letter-spacing: .2em;
}
.form-card .hint { margin-top: 14px; }
.form-card .hint a { color: var(--gold); }

@media (max-width: 800px) {
  .couplets { display: none; }
  .nav-links a:first-child { display: none; }
}
