/* =========================================================
   CrestQuay · 暗色高级感主题（覆盖层，最后加载）
   纸墨 + 暖金 + 深色游戏厅
   ========================================================= */

:root {
  --bg: #08090d;
  --bg-soft: #0c0e14;
  --panel: #11141b;
  --panel-2: #161a23;
  --text: #f3efe6;
  --muted: #a19c92;
  --faint: #6f6b63;
  --line: rgba(226, 190, 128, 0.15);
  --line-strong: rgba(226, 190, 128, 0.32);
  --gold: #e2be80;
  --gold-2: #c49a55;
  --gold-soft: rgba(226, 190, 128, 0.12);
  --jade: #9ed3c2;
  --primary: #d8b274;
  --primary-2: #b98d4c;
  --accent: #9ed3c2;
  --grad: linear-gradient(120deg, #f3d9a4 0%, #d5aa65 55%, #b98d4c 100%);
  --radius: 20px;
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html { background: #08090d; }
body {
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(216, 178, 116, 0.10), transparent 62%),
    radial-gradient(900px 520px at 4% 8%, rgba(120, 96, 180, 0.10), transparent 60%),
    #08090d;
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: 0.01em;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

h1, h2, h3, .brand-word { font-family: var(--serif); font-weight: 700; letter-spacing: 0.015em; }
h1 { line-height: 1.08; }
p { color: var(--muted); }
a { color: var(--text); }
.eyebrow {
  color: var(--gold);
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

/* 顶栏 */
.site-header {
  background: rgba(8, 9, 13, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
}
.site-header .brand, .brand {
  color: var(--text);
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.02em;
}
.brand-mark, .logo-mark {
  background: var(--grad);
  color: #17110a;
  box-shadow: 0 6px 22px rgba(216, 178, 116, 0.28);
}
.nav-links a { color: #cfc9bd; font-size: 14px; }
.nav-links a:hover, .nav-links a.is-active { color: var(--gold); }
.header-actions .btn-ghost { border-color: var(--line-strong); color: var(--gold); }

/* 按钮 */
.btn {
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--grad);
  color: #17110a !important;
  border: 1px solid rgba(255, 236, 196, 0.45);
  box-shadow: 0 8px 26px rgba(196, 154, 85, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(196, 154, 85, 0.3); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { min-height: 50px; padding: 0 26px; }

/* 首页 Hero */
.hero-game { padding: 88px 0 72px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-game-inner { display: grid; grid-template-columns: 1.08fr 0.82fr; gap: 64px; align-items: center; }
.hero-game-copy h1 {
  font-size: clamp(42px, 4.7vw, 64px);
  margin: 18px 0 24px;
  letter-spacing: -0.005em;
  line-height: 1.12;
}
.hero-game-copy h1 .grad-text { white-space: nowrap; }
.hero-game-copy h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-game-copy > p { font-size: 16px; line-height: 1.9; max-width: 540px; color: #b5afa3; }
.hero-game-actions { display: flex; gap: 12px; margin: 32px 0 30px; flex-wrap: wrap; }
.hero-game-stats { display: flex; gap: 30px; color: var(--faint); font-size: 13px; flex-wrap: wrap; }
.hero-game-stats b { color: var(--gold); font-family: var(--serif); font-size: 19px; margin-right: 5px; }

.hero-game-cover {
  position: relative;
  min-height: 420px;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 90% at 70% 10%, hsla(var(--gh), 70%, 60%, 0.34), transparent 60%),
    linear-gradient(160deg, #141019, #0b0d12 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  transition: border-color 0.25s ease;
}
.hero-game-cover:hover { border-color: var(--gold); }
.hero-game-cover::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  pointer-events: none;
}
.hero-cover-emoji {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 104px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-cover-glyph {
  position: absolute;
  right: -18px;
  top: -60px;
  font-family: var(--serif);
  font-size: 300px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
}
.hero-game-cover:hover .hero-cover-emoji { transform: translate(-50%, -54%) scale(1.06); }
.hero-cover-title { font-family: var(--serif); font-size: 30px; color: var(--text); position: relative; }
.hero-cover-desc { color: var(--muted); font-size: 13px; margin-top: 8px; position: relative; }
.hero-cover-play {
  margin-top: 20px;
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-cover-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  top: 8%;
  right: -10%;
  background: radial-gradient(circle, hsla(var(--gh), 80%, 62%, 0.28), transparent 70%);
  filter: blur(6px);
}

/* section */
.section { padding: 76px 0; }
.section-tight { padding: 62px 0; }
.container { max-width: 1200px; }
.section-head h2, .section-heading h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 10px 0 12px; }
.section-head p, .section-heading p { color: var(--muted); max-width: 620px; line-height: 1.8; }
.link-arrow { color: var(--gold); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }

/* 游戏卡片 */
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.game-grid-featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.game-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #12151d, #0e1118);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  overflow: hidden;
  color: var(--text);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
}
.game-cover {
  position: relative;
  min-height: 208px;
  overflow: hidden;
  background:
    radial-gradient(90% 90% at 78% 8%, hsla(var(--gh), 66%, 56%, 0.34), transparent 58%),
    radial-gradient(120% 120% at 10% 100%, hsla(var(--gh), 60%, 30%, 0.35), transparent 70%),
    #0d0f15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.game-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 9, 13, 0.75));
  pointer-events: none;
}
.game-cover.lg { min-height: 0; border-radius: 18px; border: 1px solid var(--line-strong); }
.cover-glyph {
  position: absolute;
  right: -10px;
  top: -34px;
  font-family: var(--serif);
  font-size: 210px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.055);
  pointer-events: none;
  user-select: none;
}
.game-cover.lg .cover-glyph { font-size: 330px; top: -50px; }
.cover-halo {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  top: 16%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, hsla(var(--gh), 80%, 64%, 0.26), transparent 68%);
  filter: blur(2px);
}
.game-cover-emoji {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  font-size: 64px;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.5));
  transition: transform 0.35s ease;
}
.game-card:hover .game-cover-emoji { transform: translate(-50%, -56%) scale(1.08); }
.cover-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #1b140a;
  background: rgba(240, 214, 164, 0.94);
  backdrop-filter: blur(4px);
}
.cover-badge.is-member { background: rgba(158, 211, 194, 0.92); color: #0b1b16; }
.cover-type {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
}
.cover-enter {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--gold);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.25s ease;
}
.game-card:hover .cover-enter { opacity: 1; transform: translateY(0); }
.game-card-body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.game-card-title { font-size: 21px; margin: 0; color: var(--text); }
.game-card-desc { font-size: 13px; line-height: 1.6; color: #8f8a80; margin: 0; min-height: 42px; }
.game-card-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--faint); padding-top: 8px; }
.game-card-arrow { color: var(--gold); }

/* 分类 */
.category-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.category-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(17, 20, 27, 0.7);
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.category-chip:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.category-chip-icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; color: var(--gold); background: var(--gold-soft);
}
.category-chip b { display: block; font-size: 15px; }
.category-chip small { color: var(--faint); font-size: 11px; }

/* 会员横幅 */
.membership-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0a0c11; }
.membership-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 54px 0; }
.membership-band h2 { font-size: clamp(28px, 3vw, 40px); margin: 10px 0; }
.membership-band p { max-width: 620px; line-height: 1.8; }
.membership-band-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.band-note { color: var(--faint); font-size: 12px; }

/* 三步 */
.how-it-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.how-step { border-top: 1px solid var(--line); padding-top: 22px; }
.how-step-num { font-family: var(--serif); font-size: 42px; color: var(--gold); opacity: 0.85; }
.how-step h3 { font-size: 20px; margin: 10px 0 8px; }
.how-step p { font-size: 13px; line-height: 1.8; }

/* 游戏馆页 */
.page-head { padding: 70px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.page-head h1 { font-size: clamp(42px, 5vw, 64px); margin: 12px 0 14px; }
.page-head p { color: var(--muted); }
.filter-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(17, 20, 27, 0.75); margin-bottom: 30px;
}
.search-field { flex: 1; min-width: 260px; display: flex; align-items: center; gap: 10px; color: var(--faint); }
.search-field input {
  flex: 1; background: transparent; border: 0; outline: 0; color: var(--text);
  font-size: 14px; padding: 8px 0;
}
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 8px 14px; border-radius: 999px; font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09); color: #b9b3a7; background: transparent;
}
.pill:hover { border-color: var(--line-strong); color: var(--gold); }
.pill.is-active { background: var(--gold-soft); border-color: var(--line-strong); color: var(--gold); }

/* 详情 */
.game-hero { padding: 54px 0 50px; border-bottom: 1px solid var(--line); background: radial-gradient(900px 420px at 20% 0%, hsla(var(--gh), 55%, 46%, 0.16), transparent 65%); }
.game-hero-inner { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: center; }
.game-hero-cover .game-cover { min-height: 0; }
.game-hero-info h1 { font-size: clamp(42px, 5vw, 64px); margin: 14px 0; }
.game-hero-intro { font-size: 15px; line-height: 1.85; max-width: 640px; }
.game-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.1); font-size: 11.5px; color: #c7c0b3; }
.tag-member { border-color: rgba(158, 211, 194, 0.35); color: var(--jade); }
.game-hero-meta { display: flex; gap: 22px; flex-wrap: wrap; color: var(--faint); font-size: 12.5px; margin: 20px 0 26px; }
.game-hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-note, .member-hint { color: var(--faint); font-size: 12px; }
.member-hint a { color: var(--gold); }
.game-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; padding: 40px 0 0; }
.panel {
  background: rgba(16, 19, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 26px;
}
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 24px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.panel h3 { font-size: 17px; margin: 0 0 12px; }
.panel-tight { padding: 20px; }
.how-list { margin: 0; padding-left: 20px; color: var(--muted); line-height: 2; font-size: 14px; }
.ending-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ending-item { display: flex; gap: 12px; padding: 14px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, 0.1); }
.ending-item.is-got { border-style: solid; border-color: var(--line-strong); background: var(--gold-soft); }
.ending-icon { color: var(--faint); }
.ending-item.is-got .ending-icon { color: var(--gold); }
.ending-item b { font-size: 13.5px; display: block; }
.ending-item small { color: var(--faint); font-size: 11px; }
.related-game { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.related-emoji { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: hsla(var(--gh), 50%, 50%, 0.14); }
.related-game b { display: block; font-size: 13px; }
.related-game small { color: var(--faint); font-size: 11px; }
.session-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.session-row b { font-size: 13px; display: block; }
.session-row small { color: var(--faint); }

/* 评论 */
.comments-wrap { padding: 40px 0 80px; }
.comments-panel { background: rgba(16, 19, 26, 0.78); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 20px; padding: 28px; }
.comments-head h2 { font-size: 30px; margin: 10px 0; }
.comments-head em { font-style: normal; color: var(--gold); font-size: 18px; margin-left: 6px; }
.comments-head p { font-size: 13px; }
.comment-form { display: flex; gap: 12px; align-items: flex-end; margin: 22px 0 10px; }
.comment-form textarea {
  flex: 1; resize: vertical; min-height: 64px; padding: 14px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0f15; color: var(--text); font-family: inherit; font-size: 14px;
}
.comment-form textarea:focus { outline: 0; border-color: var(--line-strong); }
.comment-login { margin: 20px 0; padding: 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); color: var(--muted); font-size: 13px; }
.comment-login a { color: var(--gold); }
.comment-item { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.comment-avatar {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif);
  background: var(--gold-soft); border: 1px solid var(--line); color: var(--gold);
}
.comment-body { flex: 1; }
.comment-meta { display: flex; align-items: center; gap: 12px; }
.comment-meta b { font-size: 13px; }
.comment-meta time { color: var(--faint); font-size: 11px; }
.comment-body p { color: #cfc8ba; font-size: 14px; line-height: 1.75; margin: 6px 0 0; }
.comment-del button { background: transparent; border: 0; color: var(--faint); cursor: pointer; padding: 4px; }
.comment-del button:hover { color: #e08b7a; }
.comment-empty { color: var(--faint); font-size: 13px; padding: 20px 0; }

/* 对局页 */
.play-shell { min-height: 80vh; padding-bottom: 60px; }
.play-topbar { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 18px; }
.play-back { color: var(--muted); font-size: 13px; display: inline-flex; gap: 8px; align-items: center; }
.play-back:hover { color: var(--gold); }
.play-topmeta { display: flex; gap: 8px; }
.badge-soft { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.1); font-size: 11.5px; color: #b9b3a7; background: rgba(255, 255, 255, 0.02); }
.play-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
.play-main { min-width: 0; }
.play-transcript {
  background: rgba(13, 16, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 420px;
}
.msg { display: flex; gap: 12px; }
.msg-user { justify-content: flex-end; }
.msg-user .msg-bubble {
  background: linear-gradient(150deg, rgba(226, 190, 128, 0.18), rgba(226, 190, 128, 0.08));
  border: 1px solid rgba(226, 190, 128, 0.28);
  border-radius: 18px 18px 4px 18px;
  max-width: 76%;
  padding: 14px 18px;
}
.msg-ai .msg-bubble {
  background: #12161e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px 18px 18px 18px;
  padding: 18px 20px;
  line-height: 1.95;
  font-size: 14.5px;
  color: #e6e0d3;
}
.msg-bubble p { color: inherit; margin: 0 0 8px; }
.msg-bubble p:last-child { margin-bottom: 0; }
.msg-avatar {
  width: 32px; height: 32px; flex: none; border-radius: 10px;
  display: grid; place-items: center; color: var(--gold);
  background: var(--gold-soft); border: 1px solid var(--line);
}
.msg-changes { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.msg-changes span { font-size: 11px; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); }
.msg-changes .up { color: var(--jade); }
.msg-changes .down { color: #e0917f; }
.msg-ending {
  margin-top: 14px; padding: 16px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--gold-soft); color: var(--gold);
}
.msg-ending p { color: #d9cdb8; font-size: 13px; line-height: 1.8; margin-top: 8px; }
.play-composer { margin-top: 20px; background: rgba(16, 19, 26, 0.85); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 18px; padding: 18px; }
.play-choices { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.choice-btn {
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: rgba(226, 190, 128, 0.04);
  color: #d8d1c3; font-size: 13px; font-family: inherit;
  transition: all 0.2s ease;
}
.choice-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.play-form { display: flex; gap: 12px; align-items: flex-end; }
.play-form textarea {
  flex: 1; min-height: 56px; resize: vertical; padding: 14px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0e14; color: var(--text); font-family: inherit; font-size: 14px;
}
.play-form textarea:focus { outline: 0; border-color: var(--line-strong); }
.play-hint { color: var(--faint); font-size: 11.5px; margin-top: 10px; }
.play-ended { margin-top: 20px; padding: 24px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--gold-soft); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.play-ended-icon { color: var(--gold); }
.play-ended b { font-family: var(--serif); font-size: 20px; }
.play-ended p { font-size: 13px; margin: 4px 0 0; }
.play-ended form { margin-left: auto; }
.play-side .panel { margin-bottom: 16px; }
.stat-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; }
.stat-row > span:first-child { width: 34px; color: var(--muted); }
.stat-track { flex: 1; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.stat-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.ending-mini { display: flex; flex-wrap: wrap; gap: 8px; }
.ending-mini-item { font-size: 11px; color: var(--faint); border: 1px dashed rgba(255, 255, 255, 0.12); padding: 5px 9px; border-radius: 8px; }
.ending-mini-item.is-got { color: var(--gold); border-style: solid; border-color: var(--line-strong); }
.demo-banner { margin-bottom: 16px; padding: 12px 16px; border-radius: 12px; background: rgba(226, 190, 128, 0.1); border: 1px solid var(--line-strong); color: var(--gold); font-size: 13px; }

/* 弹幕 */
.danmaku-layer { position: fixed; top: 96px; left: 0; right: 0; height: 220px; pointer-events: none; overflow: hidden; z-index: 3; }
.danmaku-item {
  position: absolute; left: 100%; white-space: nowrap;
  font-size: 13px; color: rgba(240, 230, 210, 0.5);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
  animation-name: danmaku-fly; animation-timing-function: linear; animation-fill-mode: forwards;
}
@keyframes danmaku-fly { to { transform: translateX(calc(-100vw - 100%)); } }

/* 我的主页 */
.account-head { padding: 44px 0 26px; }
.account-avatar { background: var(--gold-soft); border: 1px solid var(--line-strong); color: var(--gold); font-family: var(--serif); }
.account-head h1 { font-size: 34px; }
.account-nav { background: rgba(16, 19, 26, 0.7); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 16px; padding: 12px; }
.account-nav a { border-radius: 10px; color: var(--muted); font-size: 13px; }
.account-nav a:hover, .account-nav a.is-active { background: var(--gold-soft); color: var(--gold); }
.membership-card { background: radial-gradient(120% 130% at 0% 0%, rgba(226, 190, 128, 0.16), transparent 60%), #11141b; border: 1px solid var(--line); border-radius: 18px; }
.membership-card h2 { font-family: var(--serif); }
.membership-pill { border: 1px solid var(--line); color: var(--gold); }
.membership-pill.is-on { border-color: var(--line-strong); background: var(--gold-soft); }
.membership-actions .btn-primary { min-width: 120px; }
.redeem-row { border-top: 1px solid rgba(255, 255, 255, 0.06); margin-top: 18px; padding-top: 18px; }
.redeem-form input { background: #0b0e14; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; color: var(--text); padding: 10px 14px; }
.session-card { background: #0f1219; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 14px; color: var(--text); }
.session-card:hover { border-color: var(--line-strong); }
.session-cover { border-radius: 12px; background: hsla(var(--gh), 50%, 50%, 0.14); }
.ending-cloud-item { background: var(--gold-soft); border: 1px solid var(--line); color: var(--gold); }
.checkin-panel { background: radial-gradient(120% 150% at 100% 0%, rgba(226, 190, 128, 0.12), transparent 55%), #10131a; }
.checkin-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.checkin-row h2 { font-size: 26px; margin: 8px 0; }
.checkin-row p { font-size: 13px; }
.checkin-done { color: var(--jade); border: 1px solid rgba(158, 211, 194, 0.3); border-radius: 999px; padding: 9px 16px; font-size: 12.5px; }
.quota-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); margin: 18px 0 10px; overflow: hidden; }
.quota-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); border-radius: inherit; }
.checkin-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--faint); font-size: 11.5px; }

/* 定价 & 认证 & 页脚 */
.pricing-hero h1, .auth-card h1, .auth-aside h2 { font-family: var(--serif); }
.plan-card, .auth-card, .checkout-card, .compare-table, .faq-item { background: #10131a; border: 1px solid rgba(255, 255, 255, 0.07); }
.plan-card.is-featured { border-color: var(--line-strong); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4); }
.plan-card .plan-name, .plan-price { font-family: var(--serif); }
.compare-table th { background: #0c0f15; }
.plan-card .btn-primary { width: 100%; }
.auth-aside { background: radial-gradient(120% 130% at 0% 0%, rgba(226, 190, 128, 0.16), transparent 60%), #0d1016; }
.faq-item + .faq-item { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.site-footer { border-top: 1px solid var(--line); background: #07080c; color: var(--muted); }

@media (max-width: 1080px) {
  .hero-game-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-game-cover { min-height: 320px; }
  .game-grid, .game-grid-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-hero-inner { grid-template-columns: 320px 1fr; gap: 30px; }
  .category-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .play-grid, .game-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-game { padding: 54px 0 44px; }
  .hero-game-copy h1 { font-size: 44px; }
  .hero-game-cover { min-height: 280px; padding: 24px; }
  .game-grid, .game-grid-featured { grid-template-columns: 1fr; gap: 16px; }
  .game-hero { padding: 32px 0; }
  .game-hero-inner { grid-template-columns: 1fr; }
  .game-hero-cover .game-cover { min-height: 240px; }
  .section, .section-tight { padding: 44px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .membership-band-inner { flex-direction: column; align-items: flex-start; }
  .membership-band-actions { align-items: flex-start; }
  .how-it-works { grid-template-columns: 1fr; }
  .category-row { grid-template-columns: 1fr 1fr; }
  .ending-list { grid-template-columns: 1fr; }
  .comment-form { flex-direction: column; align-items: stretch; }
  .comment-form .btn { width: 100%; }
  .play-transcript { padding: 18px; }
  .msg-ai .msg-bubble { font-size: 14px; padding: 14px 16px; }
  .play-form { flex-direction: column; align-items: stretch; }
  .danmaku-layer { display: none; }
  .account-head { padding-top: 28px; }
}

/* 修正：详情页英雄区网格与状态条 */
.game-hero-inner { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 44px; }
.game-hero-cover { max-width: none; width: 100%; }
.game-hero-info { min-width: 0; }
.game-hero-info h1 { font-size: clamp(40px, 4.4vw, 58px); }

.stat-bar { margin-bottom: 12px; }
.stat-bar-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.stat-bar-top b { color: var(--text); font-weight: 600; }
.stat-bar-track { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.stat-bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }

/* 弹幕避开顶栏与正文 */
.danmaku-layer { position: absolute; top: 132px; height: 160px; z-index: 2; opacity: 0.55; }
.play-shell { position: relative; }

@media (max-width: 1080px) {
  .game-hero-inner { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 720px) {
  .hero-game-copy h1 { font-size: 36px; }
  .game-hero-inner { grid-template-columns: 1fr; }
  .game-hero-cover .game-cover { min-height: 220px; }
  .danmaku-layer { display: none; }
}

/* 移动端细节 */
@media (max-width: 720px) {
  .announce-inner { font-size: 11px; line-height: 1.5; align-items: flex-start; padding: 6px 12px; }
  .announce-inner span { white-space: normal; }
  .hero-game-stats { gap: 8px 16px; font-size: 12px; }
  .hero-game-stats span { white-space: nowrap; }
  .hero-game-cover { min-height: 250px; padding: 22px; }
  .hero-cover-title { font-size: 26px; line-height: 1.25; }
  .hero-cover-desc { margin: 6px 0 12px; }
  .hero-cover-emoji { top: 36%; font-size: 78px; }
  .section-head .link-arrow { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 12px; }
}

/* 弹幕限制在正文面板顶部 */
.play-main { position: relative; }
.danmaku-layer { top: 10px; left: 10px; right: 10px; height: 120px; z-index: 2; opacity: 0.4; border-radius: 14px; }
.msg:first-child { padding-top: 26px; }

@media (max-width: 720px) {
  .announce-inner { flex-wrap: wrap; justify-content: center; text-align: center; white-space: normal; overflow: visible; height: auto; gap: 4px 6px; }
  .announce-inner span { white-space: normal; overflow: visible; text-overflow: clip; }
}

@media (max-width: 720px) {
  .announce-inner { display: block; padding: 7px 14px; line-height: 1.55; }
  .announce-inner svg { display: inline-block; vertical-align: -2px; margin-right: 4px; }
  .announce-inner span { display: inline; }
}
