/* 布局：手机优先单栏，电脑端首屏左答题右卡牌扇面；暗红花纹底纹 + 金色玫瑰窗 + 罪卡，单一深色风格 */
:root {
  --bg: #1c090c;
  --surface: #2a0f12;
  --raised: #3a1519;
  --line: #5a2b30;
  --ink: #f6e9dc;
  --ink-2: #dcc6b0;
  --gold: #e3b55f;
  --gold-hi: #f2d38f;
  --gold-lo: #b8862f;
  --on-gold: #1c090c;
  --font-display: "IM Fell English SC", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 17px/1.65 var(--font-body);
  background-color: var(--bg);
  background-image: radial-gradient(120% 70% at 50% -8%, rgba(150, 38, 50, .45), transparent 62%), url(/img/bg.webp);
  background-size: 100% 1000px, 320px 320px;
  background-repeat: no-repeat, repeat;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.wrap {
  max-width: 760px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.ic { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 {
  font-size: clamp(2.6rem, 11.5vw, 4.4rem); letter-spacing: .01em;
  background: linear-gradient(180deg, #fff4de 0%, #f2d38f 55%, #c9953f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 14px rgba(227, 181, 95, .22));
}
h2 { font-size: clamp(1.65rem, 6.5vw, 2.25rem); margin-bottom: .7rem; color: var(--ink); }
h3 { font-size: 1.35rem; margin: 1.4rem 0 .4rem; }
p { margin: 0 0 1rem; }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 .5rem; }
.lede { font-size: 1.06rem; color: var(--ink-2); max-width: 38em; margin-top: .7rem; }

/* 花饰分隔 */
.orn { display: flex; align-items: center; gap: 10px; color: var(--gold); margin-bottom: 10px; }
.orn span { width: 44px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.orn span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.orn-star { width: 15px; height: 15px; animation: twinkle 5s ease-in-out infinite; }
.foot .orn { justify-content: center; }

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(24, 7, 10, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(227, 181, 95, .18); padding-top: env(safe-area-inset-top, 0px); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; max-width: 1120px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 1.22rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-seal { width: 26px; height: 26px; color: var(--gold); transition: transform .8s var(--ease); }
.brand:hover .brand-seal { transform: rotate(103deg); }
.nav { display: flex; gap: 18px; font-size: .92rem; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 12px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover { color: var(--gold-hi); }
.nav a:hover::after { transform: scaleX(1); }

/* 按钮 */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--radius);
  background: linear-gradient(180deg, #f3d184 0%, #dba548 100%); color: var(--on-gold);
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 22px rgba(227, 181, 95, .22), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .15s, box-shadow .25s;
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); transform: translateX(-130%); transition: transform .8s var(--ease); }
.btn:hover { color: var(--on-gold); box-shadow: 0 10px 28px rgba(227, 181, 95, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn:hover::after { transform: translateX(130%); }
.btn:active { transform: scale(.98); }
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn.ghost { background: rgba(28, 9, 12, .6); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost::after { display: none; }
.btn.ghost:hover { color: var(--gold-hi); box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn.ghost:hover .ic { transform: none; }

/* 首屏 */
.hero { position: relative; overflow: hidden; padding-block: 20px 6px; }
.hero-grid { display: grid; gap: 24px; max-width: 1120px; }
.hero-main { position: relative; min-width: 0; }
.rose { position: absolute; z-index: 0; pointer-events: none; width: 560px; max-width: none; aspect-ratio: 1 / 1; background: url(/img/rose.webp) center / contain no-repeat; opacity: .17; right: -300px; top: -150px; animation: spin 240s linear infinite; }
.hero-text, .quiz { position: relative; z-index: 1; }
.hero-text { animation: rise .7s var(--ease) both; }
.fan { display: none; }
@media (min-width: 960px) {
  .hero { padding-block: 40px 10px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: center; gap: 48px; }
  .rose { width: 760px; right: -520px; top: -120px; opacity: .2; }
  .fan { display: block; position: relative; height: 540px; }
  .fan-card {
    position: absolute; left: 50%; top: 50px; width: 230px; margin-left: -115px; border-radius: 14px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(227, 181, 95, .4);
    transform-origin: 50% 115%; animation: float 7s ease-in-out infinite alternate;
  }
  .fan-card.c1 { --r: -15deg; --x: -54px; animation-delay: -2s; }
  .fan-card.c2 { --r: 0deg; --x: 0px; z-index: 2; animation-delay: -4s; }
  .fan-card.c3 { --r: 15deg; --x: 54px; animation-delay: -6s; }
}

/* 答题框 */
.quiz {
  margin-top: 18px; padding: 18px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(60, 22, 27, .94), rgba(38, 13, 17, .94));
  border: 1px solid rgba(227, 181, 95, .38);
  box-shadow: inset 0 0 0 5px rgba(24, 7, 10, .55), inset 0 0 0 6px rgba(227, 181, 95, .16), 0 22px 50px rgba(0, 0, 0, .38);
  animation: rise .7s .1s var(--ease) both;
}
.quiz-bar { display: none; align-items: center; gap: 10px; margin-bottom: 16px; }
.qbtn { display: grid; place-items: center; min-height: 44px; min-width: 48px; border: 1px solid var(--line); border-radius: 12px; background: rgba(28, 9, 12, .6); color: var(--ink-2); cursor: pointer; transition: border-color .2s, color .2s, transform .15s; }
.qbtn .ic { width: 22px; height: 22px; }
.qbtn:hover { border-color: var(--gold); color: var(--gold-hi); }
.qbtn:active { transform: scale(.94); }
.prog { flex: 1; display: grid; gap: 7px; font-size: .85rem; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: center; }
.prog-track { display: block; height: 6px; border-radius: 3px; background: rgba(90, 43, 48, .6); overflow: hidden; }
.prog-track i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--gold-lo), var(--gold), #fbe6b0); box-shadow: 0 0 10px rgba(227, 181, 95, .55); transition: width .35s var(--ease); }
.q { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.q legend { display: grid; gap: 6px; padding: 0; margin-bottom: 16px; }
.qn::before { content: attr(data-qn); }
.qn { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.qt { font-family: Georgia, "Times New Roman", serif; font-size: 1.34rem; line-height: 1.36; }
.opts { display: grid; gap: 9px; }
.opt { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: rgba(24, 7, 10, .72); font-size: 1rem;
  transition: border-color .2s, background .2s, box-shadow .25s, transform .12s;
}
.opt .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #8a5a4a; flex: none; transition: border-color .2s, background .2s, transform .25s var(--ease); }
.opt .tick { margin-left: auto; width: 20px; height: 20px; color: var(--gold-hi); opacity: 0; transform: scale(.5) rotate(-20deg); transition: opacity .2s, transform .35s var(--ease); }
.opt:hover span { border-color: rgba(227, 181, 95, .7); background: rgba(58, 21, 25, .8); }
.opt:active span { transform: scale(.985); }
.opt input:checked + span { border-color: var(--gold); background: linear-gradient(90deg, rgba(227, 181, 95, .16), rgba(58, 21, 25, .9)); color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(227, 181, 95, .12), 0 0 22px rgba(227, 181, 95, .16); }
.opt input:checked + span .dot { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 0 42%, transparent 48%); transform: scale(1.1); }
.opt input:checked + span .tick { opacity: 1; transform: none; }
.opt input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.quiz-note { font-size: .88rem; color: var(--ink-2); margin: 4px 0 0; }

/* 要点 */
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px 18px; font-size: .95rem; color: var(--ink-2); }
.facts li { display: flex; align-items: center; gap: 11px; }
.facts .ic { width: 36px; height: 36px; padding: 8px; border-radius: 50%; color: var(--gold); background: rgba(227, 181, 95, .09); border: 1px solid rgba(227, 181, 95, .3); }
@media (min-width: 960px) { .hero > .wrap:last-child { max-width: 1120px; } }

/* 一次只显示一题 */
.js .q { display: none; }
.js .q.cur { display: block; animation: qin .3s var(--ease); }
.js .going-back .q.cur { animation-name: qback; }
.js .quiz-on .quiz-bar { display: flex; }

/* 专注答题模式 */
.quiz-on .nav, .quiz-on .hero-text, .quiz-on .facts, .quiz-on .content, .quiz-on .foot, .quiz-on .quiz-note, .quiz-on .fan, .quiz-on .qn { display: none; }
.quiz-on .hero { padding-top: 12px; }
.quiz-on .hero-grid { grid-template-columns: minmax(0, 760px); justify-content: center; }
.quiz-on .quiz { margin-top: 0; min-height: calc(100svh - 96px); }
.quiz-on .qt { font-size: 1.5rem; }
.quiz-on .rose { top: auto; bottom: -260px; right: -260px; }
.result-on .hero { display: none; }

/* 结果 */
.result { padding-block: 24px 10px; }
.result .wrap { max-width: 980px; }
.res-head { display: grid; gap: 2px; }
.res-name { font-size: clamp(2.8rem, 14vw, 4.6rem); background: none; color: var(--sin, var(--ink)); -webkit-background-clip: initial; background-clip: initial; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--sin) 45%, transparent)); animation: rise .8s var(--ease) both; }
.res-name:focus { outline: none; }
.res-name span { font-family: var(--font-body); font-size: .48em; color: var(--ink); font-variant-numeric: tabular-nums; margin-left: .3em; }
.res-grid { display: grid; gap: 22px; margin-top: 14px; }
@media (min-width: 760px) { .res-grid { grid-template-columns: 300px minmax(0, 1fr); align-items: start; } }
.flip { position: relative; width: min(290px, 74vw); justify-self: center; perspective: 1400px; }
.flip::before { content: ""; position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--sin) 40%, transparent), transparent 65%); animation: pulse 4s ease-in-out infinite; }
.flip-in { position: relative; aspect-ratio: 2 / 3; transform-style: preserve-3d; animation: flip 1.2s .25s var(--ease) both; }
.face { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(227, 181, 95, .45); }
.face.back { transform: rotateY(180deg); }
.res-virtue { display: flex; gap: 12px; align-items: flex-start; background: rgba(42, 15, 18, .85); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; font-size: .98rem; }
.res-virtue .ic { width: 26px; height: 26px; color: var(--gold); margin-top: 1px; }
.bars { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 22px 78px minmax(0, 1fr) 46px; align-items: center; gap: 9px; font-size: .95rem; }
.bars li > .ic { width: 20px; height: 20px; color: var(--c); }
.bars .bt { display: block; height: 12px; border-radius: 6px; background: rgba(90, 43, 48, .55); overflow: hidden; }
.bars .bt i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #000), var(--c)); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 45%, transparent); animation: grow 1s var(--ease) both; animation-delay: calc(var(--k, 0) * 80ms + .5s); }
.bars .pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.bars .top-one { color: var(--gold-hi); font-weight: 600; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 8px; }
.actions .btn { width: 100%; padding: 0 12px; }
.actions .wide { grid-column: 1 / -1; }
.res-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; margin: 12px 0 0; }
.res-links a { display: inline-flex; align-items: center; gap: 7px; }
.toast { min-height: 1.4em; font-size: .9rem; color: var(--gold-hi); margin: 4px 0 0; }
.compare { margin-top: 18px; background: rgba(42, 15, 18, .85); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.compare table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.compare th, .compare td { text-align: left; padding: 5px 4px; border-bottom: 1px solid var(--line); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: right; }

/* 正文区块 */
.content { position: relative; }
.sec { padding-block: 40px 14px; }
.sec.alt { background: linear-gradient(180deg, rgba(42, 15, 18, .62), rgba(42, 15, 18, .3)); border-block: 1px solid rgba(90, 43, 48, .55); }
.calc { position: relative; background: rgba(24, 7, 10, .7); border: 1px solid rgba(227, 181, 95, .3); border-radius: 14px; padding: 15px 16px; margin: 0 0 1rem; }
.calc p { margin: 0 0 8px; }
.calc .calc-h { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.calc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0 !important; font-variant-numeric: tabular-nums; }
.calc-row span { display: grid; place-items: center; min-width: 30px; height: 36px; color: var(--ink-2); }
.calc-row span:nth-child(odd) { min-width: 36px; border: 1px solid var(--line); border-radius: 9px; background: rgba(58, 21, 25, .8); color: var(--ink); font-weight: 600; }
.calc-row b { padding: 6px 11px; border-radius: 9px; background: rgba(227, 181, 95, .14); border: 1px solid rgba(227, 181, 95, .45); color: var(--gold-hi); }

/* 七张卡 */
.deck { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(16px, env(safe-area-inset-left, 0px)) 22px; scrollbar-width: none; }
.deck::-webkit-scrollbar { display: none; }
.deck-card { flex: 0 0 136px; scroll-snap-align: start; display: grid; gap: 9px; color: var(--ink); text-decoration: none; transition: transform .35s var(--ease); }
.deck-card img { width: 100%; border-radius: 10px; box-shadow: 0 12px 26px rgba(0, 0, 0, .5), 0 0 0 1px rgba(227, 181, 95, .28); transition: box-shadow .35s; }
.deck-card span { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--font-display); font-size: 1.12rem; }
.deck-card .ic { color: var(--sin); width: 18px; height: 18px; }
.deck-card:hover { transform: translateY(-8px) rotate(-1.5deg); color: var(--ink); }
.deck-card:hover img { box-shadow: 0 18px 34px rgba(0, 0, 0, .55), 0 0 0 1px var(--sin), 0 0 26px color-mix(in srgb, var(--sin) 50%, transparent); }
@media (min-width: 960px) { .deck { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); max-width: 1120px; margin-inline: auto; overflow: visible; } }

/* 七宗罪列表 */
.sin-list { list-style: none; padding: 0; margin: 16px 0 10px; display: grid; gap: 12px; }
@media (min-width: 700px) { .sin-list { grid-template-columns: 1fr 1fr; } .sin-row:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.sin-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; background: rgba(42, 15, 18, .78); border: 1px solid var(--line); border-radius: 14px; transition: border-color .3s, transform .3s var(--ease); }
.sin-row:hover { border-color: color-mix(in srgb, var(--sin) 70%, transparent); transform: translateY(-3px); }
.emblem { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--sin); background: color-mix(in srgb, var(--sin) 14%, transparent); border: 1px solid color-mix(in srgb, var(--sin) 55%, transparent); }
.emblem .ic { width: 26px; height: 26px; }
.sin-row:hover .emblem .ic { animation: wiggle .6s var(--ease); }
.sin-row h3 { margin: 2px 0 2px; font-size: 1.45rem; color: var(--sin); }
.sin-row p { margin: 0 0 4px; font-size: .97rem; }
.sin-row .virtue { color: var(--ink-2); font-size: .92rem; }

/* 结果说明 */
.shows { list-style: none; padding: 0; margin: 14px 0 1rem; display: grid; gap: 16px; }
@media (min-width: 700px) { .shows { grid-template-columns: 1fr 1fr; gap: 18px 26px; } }
.shows li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 13px; align-items: start; }
.ic.big { width: 46px; height: 46px; padding: 11px; border-radius: 13px; color: var(--gold); background: rgba(227, 181, 95, .08); border: 1px solid rgba(227, 181, 95, .28); }
.ticks { padding-left: 1.2em; margin: 0 0 1rem; display: grid; gap: 8px; }
.ticks li::marker { color: var(--gold); }
.steps { padding-left: 1.4em; display: grid; gap: 8px; }
.steps li::marker { color: var(--gold); font-weight: 600; }

/* 时间线 */
.timeline { list-style: none; padding: 0; margin: 6px 0 1rem 8px; border-left: 1px solid rgba(227, 181, 95, .45); }
.timeline li { position: relative; display: grid; gap: 2px; padding: 0 0 16px 22px; }
.tl-star { position: absolute; left: -10px; top: .2em; width: 19px; height: 19px; color: var(--gold); background: var(--bg); border-radius: 50%; }
.timeline .when { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* 常见问题 */
.faq { border: 1px solid var(--line); border-radius: 14px; background: rgba(24, 7, 10, .62); margin-bottom: 10px; transition: border-color .25s; }
.faq[open] { border-color: rgba(227, 181, 95, .5); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding: 14px 16px; font-weight: 600; min-height: 54px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-ic { color: var(--gold); transition: transform .3s var(--ease); }
.faq[open] .faq-ic { transform: rotate(45deg); }
.faq-a { padding: 0 16px 6px; color: var(--ink-2); }
.faq[open] .faq-a { animation: rise .35s var(--ease); }
.faq-a ul { margin: 0 0 1rem; padding-left: 1.2em; }
.sources ol { padding-left: 1.2em; font-size: .92rem; display: grid; gap: 6px; }
.byline { font-size: .9rem; color: var(--ink-2); margin-top: 1rem; }

/* 单个罪页 */
.sin-hero { padding-block: 26px 22px; overflow: hidden; }
.sin-hero-in { display: grid; gap: 22px; max-width: 980px; }
@media (min-width: 760px) { .sin-hero-in { grid-template-columns: 320px minmax(0, 1fr); align-items: center; } }
.sin-card-wrap { position: relative; justify-self: center; width: min(300px, 74vw); }
.rose-sm { width: 170%; right: auto; left: -35%; top: -18%; opacity: .2; }
.sin-card { position: relative; z-index: 1; width: 100%; border-radius: 14px; box-shadow: 0 24px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(227, 181, 95, .45), 0 0 40px color-mix(in srgb, var(--sin) 30%, transparent); animation: bob 6s ease-in-out infinite alternate; }
.sin-page h1 { display: flex; align-items: center; gap: 14px; background: none; color: var(--sin); filter: drop-shadow(0 0 18px color-mix(in srgb, var(--sin) 40%, transparent)); }
.emblem.big { width: 58px; height: 58px; }
.emblem.big .ic { width: 30px; height: 30px; }
.virtue-big { font-size: 1.05rem; }
.others { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.others a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; min-height: 44px; background: rgba(24, 7, 10, .6); transition: border-color .25s, color .25s, transform .25s var(--ease); }
.others a .ic { color: var(--sin); width: 18px; height: 18px; }
.others a:hover { border-color: var(--sin); color: var(--sin); transform: translateY(-2px); }
.friend { padding-block: 18px 6px; }
.friend .box { background: rgba(42, 15, 18, .88); border: 1px solid rgba(227, 181, 95, .4); border-radius: 16px; padding: 16px; animation: rise .6s var(--ease) both; }

/* 普通页面 */
.page { padding-block: 30px 20px; }
.prose { max-width: 680px; }
.prose h1 { font-size: clamp(2.3rem, 9vw, 3.2rem); margin-bottom: 1rem; }
.prose h2 { margin-top: 1.6rem; }
.contact { display: grid; gap: 8px; max-width: 520px; }
.contact label { font-size: .92rem; color: var(--ink-2); }
.contact input, .contact textarea { font: inherit; color: var(--ink); background: rgba(24, 7, 10, .75); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; min-height: 48px; transition: border-color .2s, box-shadow .2s; }
.contact input:focus, .contact textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(227, 181, 95, .15); }
.contact .btn { margin-top: 8px; justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.5em; color: var(--gold-hi); }

/* 页脚 */
.foot { border-top: 1px solid rgba(227, 181, 95, .18); margin-top: 34px; padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; color: var(--ink-2); text-align: center; background: rgba(18, 5, 8, .55); }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-bottom: 10px; }
.foot-nav a { color: var(--ink-2); padding: 6px 0; }

/* 手机菜单 */
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .ic { width: 22px; height: 22px; }
.menu[open] summary { border-color: var(--gold); color: var(--gold-hi); }
.menu-pop { position: absolute; right: 0; top: 52px; min-width: 250px; display: grid; padding: 8px; border-radius: 14px; background: rgba(28, 9, 12, .98); border: 1px solid rgba(227, 181, 95, .35); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); animation: rise .25s var(--ease); }
.menu-pop a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.menu-pop a .ic { color: var(--gold); }
.menu-pop a:hover { background: rgba(227, 181, 95, .1); color: var(--gold-hi); }
@media (max-width: 760px) { .nav { display: none; } .menu { display: block; } }
.glance { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: rgba(24, 7, 10, .62); border: 1px solid rgba(227, 181, 95, .28); font-size: .97rem; color: var(--ink-2); }
.glance b { color: var(--gold-hi); }
.glance p { margin: 0 0 8px; }
.glance p:last-child { margin: 0; }
.alt-link { display: flex; align-items: center; gap: 9px; margin: 16px 0 0; font-size: .97rem; color: var(--ink-2); }
.alt-link .ic { color: var(--gold); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bars-note { margin: 14px 0 -6px; font-size: .92rem; color: var(--ink-2); }
.friend-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* 分享面板 */
.share { margin: 8px 0 0; padding: 14px; border-radius: 16px; background: rgba(24, 7, 10, .72); border: 1px solid rgba(227, 181, 95, .3); }
.share-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.sn { display: grid; justify-items: center; gap: 6px; padding: 10px 4px 8px; min-height: 72px; border: 1px solid var(--line); border-radius: 12px; background: rgba(58, 21, 25, .55); color: var(--ink); font: 500 .76rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: border-color .2s, transform .2s var(--ease), color .2s, background .2s; }
.sn .ic { width: 24px; height: 24px; color: var(--gold-hi); transition: transform .3s var(--ease); }
.sn:hover { border-color: var(--gold); color: var(--gold-hi); background: rgba(227, 181, 95, .1); transform: translateY(-2px); }
.sn:hover .ic { transform: scale(1.12); }
.sn:active { transform: scale(.96); }
.net-row { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.net-row li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(24, 7, 10, .6); font-size: .88rem; color: var(--ink-2); }
.net-row .ic { width: 18px; height: 18px; color: var(--gold); }

/* 对比表、七对表 */
.table-wrap { overflow-x: auto; margin: 6px 0 1rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(24, 7, 10, .7); }
.cmp, .pairs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cmp th, .cmp td, .pairs th, .pairs td { padding: 11px 14px; text-align: left; border-bottom: 1px solid rgba(90, 43, 48, .7); vertical-align: top; }
.cmp thead th, .pairs thead th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.cmp tbody th { color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.cmp tr:last-child > *, .pairs tr:last-child > * { border-bottom: 0; }
.pairs caption { caption-side: top; text-align: left; padding: 12px 14px 0; font-size: .85rem; color: var(--ink-2); }
.pair-sin { display: inline-flex; align-items: center; gap: 8px; color: var(--sin); font-family: var(--font-display); font-size: 1.2rem; white-space: nowrap; }
.pair-virtue { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold-hi); white-space: nowrap; }
.pair-virtue small { font-family: var(--font-body); font-size: .75rem; color: var(--ink-2); }
.pairs tbody tr { transition: background .2s; }
.pairs tbody tr:hover { background: color-mix(in srgb, var(--sin) 10%, transparent); }
@media (max-width: 560px) { .pairs td:last-child, .pairs th:last-child { display: none; } }
.v-hero .hero-text { position: relative; z-index: 1; }
.v-hero .table-wrap { position: relative; z-index: 1; margin-top: 18px; animation: rise .7s .1s var(--ease) both; }

/* 七对详解 */
.pairs-list { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 760px) { .pairs-list { grid-template-columns: 1fr 1fr; } .pairs-list .pair:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.pair { padding: 16px; border-radius: 14px; background: rgba(42, 15, 18, .78); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.pair:hover { border-color: color-mix(in srgb, var(--sin) 70%, transparent); transform: translateY(-3px); }
.pair h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1.4rem; }
.pair h3 .emblem { width: 44px; height: 44px; }
.pair h3 .emblem .ic { width: 22px; height: 22px; }
.pair h3 > span:nth-child(2) { color: var(--sin); }
.pair-arrow { color: var(--ink-2); width: 18px; height: 18px; }
.pair h3 .v { color: var(--gold-hi); }
.pair p { font-size: .98rem; }
.pair-card { float: right; width: 92px; margin: 0 0 8px 14px; border-radius: 8px; box-shadow: 0 10px 22px rgba(0, 0, 0, .45), 0 0 0 1px rgba(227, 181, 95, .3); transition: transform .35s var(--ease); }
.pair:hover .pair-card { transform: rotate(-3deg) translateY(-3px); }
.pair .more-link { margin: 10px 0 0; font-size: .92rem; clear: both; }
.try { display: flex; gap: 9px; align-items: flex-start; margin: 0; color: var(--ink-2); }
.try .ic { color: var(--gold); margin-top: 3px; }

/* 配对小游戏 */
.match { margin-top: 14px; }
.match-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-col { display: grid; gap: 8px; align-content: start; }
.m-h { margin: 0 0 2px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.m-btn { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: rgba(24, 7, 10, .75); color: var(--ink); font: 500 1rem var(--font-body); cursor: pointer; text-align: left; transition: border-color .2s, background .2s, transform .15s, box-shadow .25s; }
.m-btn .ic { color: var(--sin, var(--gold)); width: 20px; height: 20px; }
.m-btn:hover { border-color: rgba(227, 181, 95, .7); }
.m-btn:active { transform: scale(.97); }
.m-btn.on { border-color: var(--gold); background: rgba(227, 181, 95, .14); box-shadow: 0 0 0 3px rgba(227, 181, 95, .14); }
.m-btn.ok { border-color: rgba(227, 181, 95, .55); background: linear-gradient(90deg, rgba(227, 181, 95, .18), rgba(42, 15, 18, .8)); color: var(--gold-hi); cursor: default; animation: pop .45s var(--ease); }
.m-btn.ok::after { content: counter(p); counter-reset: p var(--pair); margin-left: auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: var(--gold); color: var(--on-gold); }
.m-btn.no { animation: shake .4s; border-color: #c23b2e; }
.match-status { min-height: 1.5em; margin: 12px 0 0; color: var(--gold-hi); font-size: .95rem; }
.match-result { margin-top: 16px; padding: 16px; border-radius: 16px; border: 1px solid rgba(227, 181, 95, .4); background: rgba(42, 15, 18, .88); animation: rise .5s var(--ease) both; }
.score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 0 0 6px; }
.score b { font-size: 3.2rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.score span { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold-hi); }

/* 罪页：打分陈述、快测样例、艺术形象 */
.answer { font-size: 1.06rem; padding: 14px 16px; border-left: 0; border-radius: 14px; background: rgba(227, 181, 95, .08); border: 1px solid rgba(227, 181, 95, .3); }
.answer b { color: var(--sin, var(--gold-hi)); }
.facts-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 1px; margin: 6px 0 1rem; padding: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(227, 181, 95, .3); background: rgba(90, 43, 48, .6); }
.facts-box div { padding: 12px 14px; background: rgba(24, 7, 10, .85); }
.facts-box dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.facts-box dd { margin: 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.stmts { list-style: none; margin: 8px 0 1rem; padding: 6px 14px; border-radius: 14px; background: rgba(24, 7, 10, .7); border: 1px solid rgba(227, 181, 95, .3); }
.stmts li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgba(90, 43, 48, .6); font-family: Georgia, "Times New Roman", serif; font-size: 1.04rem; }
.stmts li:last-child { border-bottom: 0; }
.stmt-n { flex: none; min-width: 34px; font-family: var(--font-body); font-size: .8rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.samples, .art-list { list-style: none; padding: 0; margin: 10px 0 1rem; display: grid; gap: 10px; }
.samples li, .art-list li { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: rgba(42, 15, 18, .78); border: 1px solid var(--line); }
.sq { font-size: .88rem; color: var(--ink-2); }
.sa { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sa .ic { color: var(--sin); }
.art-list b { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--sin); }
@media (min-width: 760px) { .art-list { grid-template-columns: repeat(3, 1fr); } }

/* 滚动出现：只做轻微上移，不把内容藏起来 */
@supports (animation-timeline: view()) {
  .sec .wrap > * { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
}

@keyframes rise { from { transform: translateY(14px); opacity: .7; } to { transform: none; opacity: 1; } }
@keyframes qin { from { transform: translateX(22px); opacity: .25; } to { transform: none; opacity: 1; } }
@keyframes qback { from { transform: translateX(-22px); opacity: .25; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { transform: rotate(0) scale(1); opacity: 1; } 50% { transform: rotate(26deg) scale(.86); opacity: .75; } }
@keyframes float { from { transform: translateX(var(--x)) rotate(var(--r)) translateY(0); } to { transform: translateX(var(--x)) rotate(var(--r)) translateY(-12px); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes flip { from { transform: rotateY(180deg) scale(.9); } 60% { transform: rotateY(-8deg) scale(1.02); } to { transform: rotateY(0) scale(1); } }
@keyframes pulse { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes grow { from { width: 0; } }
@keyframes pop { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-14deg); } 65% { transform: rotate(10deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 面包屑导航与首页卖点标题 */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 .8rem; font-size: .85rem; color: var(--ink-2); }
.crumbs a { color: var(--gold); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }
.facts-h { margin: 22px 0 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.facts-h + .facts { margin-top: 10px; }
