/* 酒桌人格测试 · 样式
 * 与「全国酒量地图」同一套品牌语言：赭红 #8C3B2E / 鎏金 #C9A24D / 宣纸米 #F7F4EE
 */

:root {
  --red: #8C3B2E;
  --red-dark: #6E2C21;
  --red-soft: #A85A46;
  --gold: #C9A24D;
  --paper: #F7F4EE;
  --card: #FFFFFF;
  --ink: #2B2621;
  --ink-2: #6B6259;
  --ink-3: #9A9187;
  --line: #E4DCD1;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(43, 38, 33, .05), 0 8px 24px rgba(43, 38, 33, .06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper); color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 15px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部 ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap-wide {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-seal {
  width: 34px; height: 34px; border-radius: 8px; background: var(--red);
  color: #F7E9C8; display: grid; place-items: center;
  font-size: 17px; font-weight: 700; flex: 0 0 auto;
}
.brand-name { font-size: 16.5px; font-weight: 600; letter-spacing: .5px; }
.brand-sub { font-size: 12px; color: var(--ink-3); margin-left: 6px; font-weight: 400; }
.head-link { font-size: 13px; color: var(--ink-2); }
.head-link:hover { color: var(--red); }

/* ---------- 屏幕切换 ---------- */
.screen { display: none; }
.screen.on { display: block; }

/* ---------- 封面 ---------- */
.cover { padding: 56px 0 20px; text-align: center; }
.cover h1 {
  font-size: 40px; line-height: 1.25; margin: 0 0 16px;
  letter-spacing: 2px; font-weight: 600;
}
.cover h1 em { font-style: normal; color: var(--red); }
.cover .lead {
  font-size: 16px; color: var(--ink-2); max-width: 480px;
  margin: 0 auto 10px;
}
.cover .meta {
  font-size: 12.5px; color: var(--ink-3); margin: 18px 0 0;
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.cover .meta span { position: relative; }
.cover .meta span + span::before {
  content: ''; position: absolute; left: -8px; top: 50%;
  width: 3px; height: 3px; border-radius: 50%; background: var(--gold);
}

.btn {
  border: 0; cursor: pointer; font: inherit; font-size: 15px;
  padding: 12px 28px; border-radius: 10px;
  background: var(--red); color: #FBF1E4; transition: all .18s;
}
.btn:hover { background: var(--red-dark); }
.btn.ghost { background: transparent; color: var(--red); border: 1px solid rgba(140, 59, 46, .3); }
.btn.ghost:hover { background: rgba(140, 59, 46, .07); }
.btn.gold { background: var(--gold); color: #4A3410; }
.btn.gold:hover { filter: brightness(.94); }
.btn.lg { padding: 15px 46px; font-size: 17px; letter-spacing: 1px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 题鉴 ---------- */
.gallery { padding: 40px 0 30px; }
.gallery-title {
  font-size: 14px; font-weight: 600; margin: 0 0 4px;
  display: flex; align-items: center; gap: 8px;
}
.gallery-title::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--gold); }
.gallery-note { font-size: 12.5px; color: var(--ink-3); margin: 0 0 16px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; cursor: pointer; transition: all .18s;
}
.gcard:hover { border-color: rgba(140, 59, 46, .45); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(140, 59, 46, .1); }
.gcard .code { font-size: 11px; letter-spacing: 1.5px; color: var(--gold); font-weight: 600; }
.gcard .nm { font-size: 14.5px; font-weight: 500; margin-top: 3px; }

/* ---------- 答题 ---------- */
.quiz { padding: 40px 0 60px; min-height: 58vh; }
.quiz-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 13px; color: var(--ink-3); }
.quiz-head b { color: var(--red); font-size: 15px; }
.bar { height: 6px; border-radius: 3px; background: #EDE6DC; overflow: hidden; margin-bottom: 34px; }
.bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--red)); transition: width .3s; }

.q-text {
  font-size: 23px; font-weight: 500; line-height: 1.5;
  margin: 0 0 26px; letter-spacing: .3px;
}
.opts { display: grid; gap: 12px; }
.opt {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; cursor: pointer; font: inherit; font-size: 16px;
  color: var(--ink); transition: all .18s; width: 100%;
}
.opt:hover { border-color: var(--red-soft); background: #FDFAF6; transform: translateX(3px); }
.opt .mk {
  flex: 0 0 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center;
  font-size: 13px; color: var(--ink-3); font-weight: 600;
}
.opt:hover .mk { border-color: var(--red); color: var(--red); }
.opt.picked { border-color: var(--red); background: #FBF3EE; }
.opt.picked .mk { background: var(--red); border-color: var(--red); color: #FBF1E4; }

.quiz-foot { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; }
.linkish { border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--ink-3); cursor: pointer; }
.linkish:hover { color: var(--red); }

/* ---------- 结果 ---------- */
.result { padding: 34px 0 40px; }
.result-hero {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 34px 30px 30px; text-align: center; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.result-hero::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--red));
}
.r-code {
  font-size: 12px; letter-spacing: 5px; color: var(--gold);
  font-weight: 600; text-indent: 5px;
}
.r-name {
  font-size: 42px; font-weight: 600; color: var(--red);
  letter-spacing: 3px; line-height: 1.25; margin: 8px 0 6px;
}
.r-rarity { font-size: 13px; color: var(--ink-3); }
.r-rarity b { color: var(--red); font-size: 15px; }
.r-desc {
  font-size: 15.5px; color: var(--ink-2); line-height: 1.9;
  max-width: 560px; margin: 20px auto 0; text-align: left;
}
.r-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.r-tags span {
  font-size: 12.5px; padding: 5px 14px; border-radius: 20px;
  background: #FBF3EE; color: var(--red); border: 1px solid #EFE0D8;
}

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  margin-top: 16px;
}
.card-title {
  font-size: 14px; font-weight: 600; margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.card-title::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--gold); }

.motto {
  padding: 14px 18px; background: #FBF6EE; border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0; font-size: 15px; color: #5E4A32;
}
.motto small { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; letter-spacing: .5px; }

.dims { display: grid; gap: 14px; }
.dim-row { display: grid; grid-template-columns: 82px 1fr 82px; gap: 14px; align-items: center; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.dim-row .left { text-align: right; }
.dim-row .right { text-align: left; }
.dim-bar { height: 8px; border-radius: 4px; background: #F0EAE1; overflow: hidden; position: relative; }
.dim-bar i { display: block; height: 100%; border-radius: 4px; background: var(--red); transition: width .5s cubic-bezier(.2,.8,.3,1); }
.dim-row.win .left, .dim-row.win .right { color: var(--ink-3); }
.dim-row.win .left b, .dim-row.win .right b { color: var(--red); font-weight: 600; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair-card {
  border-radius: 10px; padding: 15px 16px; border: 1px solid var(--line); background: #FDFBF8;
}
.pair-card small { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 5px; }
.pair-card .pc-code { font-size: 11px; letter-spacing: 1.5px; color: var(--gold); font-weight: 600; }
.pair-card .pc-nm { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: 1px; }
.pair-card.rv { background: #FCF6F4; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.next-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.next-link {
  display: block; padding: 16px 18px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line);
  text-decoration: none; transition: all .18s;
}
.next-link:hover { border-color: rgba(140, 59, 46, .45); transform: translateY(-2px); text-decoration: none; }
.next-link strong { display: block; font-size: 15px; color: var(--red); font-weight: 600; }
.next-link span { font-size: 12.5px; color: var(--ink-3); }

.poster-holder { margin-top: 18px; display: none; }
.poster-holder.on { display: block; }
#poster { max-width: 100%; border-radius: 12px; box-shadow: var(--shadow); display: block; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: var(--card);
  padding: 26px 0 34px; margin-top: 30px;
  font-size: 13px; color: var(--ink-2);
}
.site-footer .notice {
  background: #FBF6EE; border: 1px solid #EFE2CC; border-radius: 10px;
  padding: 12px 16px; margin-bottom: 18px; color: #6B5433; font-size: 12.5px;
}
.friend-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.friend-links a {
  display: inline-block; padding: 6px 14px; border-radius: 6px;
  border: 1px solid rgba(140, 59, 46, .22); background: rgba(140, 59, 46, .04);
  color: var(--red); font-size: 13px; text-decoration: none; transition: all .18s;
}
.friend-links a:hover { background: var(--red); color: #FBF1E4; border-color: var(--red); text-decoration: none; }
.footer-meta { margin-top: 16px; color: var(--ink-3); font-size: 12px; line-height: 1.9; }

/* ---------- 移动端 ---------- */
@media (max-width: 720px) {
  .wrap, .wrap-wide { padding: 0 16px; }
  .cover { padding: 36px 0 14px; }
  .cover h1 { font-size: 29px; letter-spacing: 1px; }
  .cover .lead { font-size: 14.5px; }
  .q-text { font-size: 19px; }
  .opt { font-size: 15px; padding: 15px 16px; }
  .r-name { font-size: 32px; }
  .result-hero { padding: 26px 18px 24px; }
  .r-desc { font-size: 14.5px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .pair, .next-links { grid-template-columns: 1fr; }
  .dim-row { grid-template-columns: 60px 1fr 60px; font-size: 11.5px; }
  .brand-sub { display: none; }
}
