/* A8之路 members area — pure black + 鎏金, same tokens as the main site. */

:root {
  --ground: #070706;
  --surface: #14110A;
  --gold: #C9A227;
  --gold-hi: #EBCB73;
  --gold-dim: rgba(201, 162, 39, 0.35);
  --gold-faint: rgba(201, 162, 39, 0.14);
  --ink: #EDE6D3;
  --muted: #90887A;
  --line: rgba(160, 148, 120, 0.16);
  --danger: #D98383;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --latin-display: "Cinzel", "Times New Roman", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(201, 162, 39, 0.06), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(201, 162, 39, 0.04), transparent 60%),
    var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #0A0903; }
a { color: var(--gold-hi); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 2px; }

.eyebrow {
  font-family: var(--latin-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
}

.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--gold); border-radius: 9px;
  background: linear-gradient(135deg, #E8C766 0%, #C9A227 55%, #9A7A1C 100%);
  color: #171205;
  font-family: var(--serif); font-weight: 900; font-size: 13px;
  line-height: 1.1; text-align: center; flex: none;
}

.btn {
  display: inline-block;
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  letter-spacing: 0.08em;
  padding: 13px 30px; border-radius: 3px; cursor: pointer;
  position: relative; overflow: hidden;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { text-decoration: none; }
.btn-gold { color: var(--gold-hi); background: var(--gold-faint); border: 1px solid var(--gold); }
.btn-gold:hover:not(:disabled) {
  background: var(--gold); color: #171205;
  box-shadow: 0 0 30px rgba(201, 162, 39, 0.35);
}
.btn-gold::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(245, 225, 164, 0.35) 50%, transparent 58%);
  transform: translateX(-130%);
}
.btn-gold:hover:not(:disabled)::after { animation: sheen-sweep 0.9s ease; }
.btn-gold:disabled { opacity: 0.55; cursor: wait; }
.btn-ghost { color: var(--muted); background: transparent; border: 1px solid rgba(160, 148, 120, 0.35); }
.btn-ghost:hover { color: var(--ink); border-color: var(--muted); }
.btn-small { padding: 8px 18px; font-size: 13px; }

/* ---------- login gate ---------- */

.gate-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 20px;
  position: relative;
  overflow: hidden;
}

.fx-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.gate {
  width: min(460px, 100%);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(28, 24, 16, 0.85), rgba(10, 9, 6, 0.7));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 60px rgba(201, 162, 39, 0.07);
  padding: 44px 40px 38px;
  position: relative;
  text-align: center;
  z-index: 1;
}
.gate::after {
  content: "";
  position: absolute; inset: 7px;
  border: 1px solid var(--gold-faint);
  border-radius: 5px;
  pointer-events: none;
}
.gate .seal { width: 54px; height: 54px; font-size: 16px; border-radius: 12px; margin-bottom: 22px; }

.gate h1 { font-family: var(--serif); font-weight: 900; font-size: 30px; letter-spacing: 0.06em; }
.gate .gate-latin {
  font-family: var(--latin-display);
  font-size: 12px; font-weight: 600; letter-spacing: 0.4em;
  color: var(--gold); margin: 6px 0 22px;
}
.gate .lead { color: var(--muted); font-size: 14.5px; margin-bottom: 30px; }

.gate-actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }

.status {
  min-height: 26px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.status.err { color: var(--danger); }
.status.ok { color: var(--gold-hi); }

.gate-note {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.gate-foot { margin-top: 30px; font-size: 13px; color: var(--muted); text-align: center; position: relative; z-index: 1; }
.gate-foot .lang-toggle { margin-left: 14px; }

.lang-toggle {
  font-family: var(--latin-display);
  font-size: 12px; letter-spacing: 0.15em;
  color: var(--muted);
  background: none; border: 1px solid transparent; border-radius: 4px;
  padding: 5px 9px; cursor: pointer;
}
.lang-toggle:hover { color: var(--gold-hi); border-color: var(--gold-dim); }

/* ---------- dashboard ---------- */

.dash-head {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 9, 6, 0.8);
}
.dash-head .wrap {
  display: flex; align-items: center; gap: 14px;
  max-width: 1020px; margin: 0 auto;
  padding: 16px 24px;
}
.dash-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.dash-brand:hover { text-decoration: none; }
.dash-brand .name { font-family: var(--serif); font-weight: 700; font-size: 17px; }
.head-spacer { flex: 1; }

.tier-badge {
  font-family: var(--latin-display);
  font-weight: 700; font-size: 12px; letter-spacing: 0.26em;
  color: #171205;
  background: linear-gradient(110deg, #E8C766 20%, #F5E1A4 38%, #C9A227 55%, #E8C766 80%);
  background-size: 220% 100%;
  border-radius: 3px;
  padding: 5px 12px 4px;
}
.addr {
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
}

.dash-main { max-width: 1020px; margin: 0 auto; padding: 46px 24px 80px; }

.dash-title { margin-bottom: 38px; }
.dash-title h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 4vw, 34px); margin-top: 8px; }
.dash-title p { color: var(--muted); font-size: 15px; }

.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.panel {
  border: 1px solid var(--line);
  border-top: 1px solid var(--gold-dim);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(28, 24, 16, 0.6), rgba(20, 17, 10, 0.15));
  padding: 28px 30px 30px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.panel:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(201, 162, 39, 0.07);
  transform: translateY(-3px);
}
.panel.wide { grid-column: 1 / -1; }
.panel.vvip-only { border-color: var(--gold-dim); box-shadow: 0 0 40px rgba(201, 162, 39, 0.06); }

.panel h2 {
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  display: flex; align-items: baseline; gap: 12px;
  margin: 6px 0 18px;
}
.panel h2 .tag {
  font-family: var(--latin-display); font-size: 10px; font-weight: 700;
  letter-spacing: 0.24em; color: var(--gold); border: 1px solid var(--gold-dim);
  border-radius: 3px; padding: 3px 8px 2px; white-space: nowrap;
}

.post { padding: 14px 0; border-top: 1px solid var(--line); }
.post:first-of-type { border-top: none; }
.post time { font-family: var(--mono); font-size: 12px; color: var(--muted); display: block; }
.post .t { font-weight: 500; }
.post p { color: var(--muted); font-size: 14.5px; }

.link-list { list-style: none; }
.link-list li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.link-list li:first-child { border-top: none; }
.link-list .diamond { width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid var(--gold); flex: none; }
.link-list .soon { margin-left: auto; font-size: 12px; color: var(--muted); letter-spacing: 0.1em; white-space: nowrap; }

.placeholder-box {
  border: 1px dashed rgba(160, 148, 120, 0.35);
  border-radius: 4px;
  padding: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}

.dash-foot {
  max-width: 1020px; margin: 0 auto;
  padding: 26px 24px 46px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 30px;
  font-size: 13px; color: var(--muted);
}

/* ---------- motion ---------- */

@keyframes sheen-sweep { to { transform: translateX(130%); } }
@keyframes rise-in { to { opacity: 1; transform: none; } }
@keyframes seal-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(201, 162, 39, 0.25); }
  50% { box-shadow: 0 0 30px rgba(201, 162, 39, 0.55); }
}
@keyframes badge-shimmer {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .gate { opacity: 0; transform: translateY(20px); animation: rise-in 0.9s ease 0.1s forwards; }
  .gate .seal { animation: seal-glow 4s ease-in-out infinite; }
  .tier-badge { animation: badge-shimmer 5s ease-in-out infinite; }
  .dash-title, .panel {
    opacity: 0; transform: translateY(20px);
    animation: rise-in 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  }
  .dash-title { animation-delay: 0.05s; }
  .panel:nth-child(1) { animation-delay: 0.15s; }
  .panel:nth-child(2) { animation-delay: 0.27s; }
  .panel:nth-child(3) { animation-delay: 0.39s; }
  .panel:nth-child(4) { animation-delay: 0.51s; }
  .panel:nth-child(5) { animation-delay: 0.63s; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-canvas { display: none; }
  .btn-gold::after { display: none; }
}

@media (max-width: 800px) {
  .panel-grid { grid-template-columns: 1fr; }
  .dash-head .wrap { flex-wrap: wrap; }
  .addr { display: none; }
}
