/* ============================================================
   TEMPLATE 06 — Noir Lounge
   深炭+玫瑰+勃艮第,会所私评感,衬线大标题。
   适用:成熟向 / dating / roleplay / voice 等品类。
   字体:Cormorant Garamond(display)+ Jost(body)。
   ============================================================ */

:root {
  --bg: #16120f;
  --bg-panel: #1e1915;
  --bg-panel-2: #241e18;
  --line: #3a2f28;
  --line-bright: #54453a;
  --ink: #f0e9e2;
  --muted: #b3a497;
  --faint: #8a7b6e;
  --rose: #d98e8a;
  --rose-dim: #a56560;
  --burgundy: #7a2e35;
  --gold: #c9a86a;
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 84px; }
body {
  font-family: var(--font-body); background: var(--bg); color: var(--ink);
  line-height: 1.7; font-size: 16.5px; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--rose); text-decoration: none; }
a:hover { color: #eba9a5; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: 0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: 1.9rem; }
.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 740px; }

/* ---------- 顶栏:居中会所风 ---------- */
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.brand { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; color: var(--ink); letter-spacing: 0.04em; }
.brand:hover { color: #fff; }
.brand .amp { color: var(--rose); font-style: italic; }
.topnav { display: flex; gap: 26px; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.topnav a { color: var(--muted); }
.topnav a:hover { color: var(--rose); }
@media (max-width: 720px) { .topnav { display: none; } }

/* ---------- Hero:居中仪式感 ---------- */
.hero { text-align: center; padding: 72px 0 56px; border-bottom: 1px solid var(--line); position: relative; }
.hero::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 56px; background: linear-gradient(180deg, var(--gold), transparent);
}
.hero .over { font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--rose); }
.hero .lede { color: var(--muted); max-width: 56ch; margin: 18px auto 0; font-size: 1.08rem; }
.hero-meta { margin-top: 26px; font-size: 0.82rem; color: var(--faint); letter-spacing: 0.08em; }
.hero-meta b { color: var(--muted); font-weight: 500; }

/* ---------- 排名:优雅行卡 ---------- */
.vault { padding: 20px 0 40px; display: grid; gap: 14px; }
.seal {
  display: grid; grid-template-columns: 88px 1fr 170px;
  border: 1px solid var(--line); background: var(--bg-panel);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.seal:hover { border-color: var(--rose-dim); transform: translateY(-2px); box-shadow: 0 16px 40px -20px rgba(217, 142, 138, 0.25); }
@media (max-width: 860px) { .seal { grid-template-columns: 64px 1fr; } .seal .s-grade { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); } }
.s-no {
  display: grid; place-items: center; border-right: 1px solid var(--line);
  font-family: var(--font-head); font-size: 2rem; color: var(--gold); background: var(--bg-panel-2);
}
.s-body { padding: 22px 26px; }
.s-body h3 { font-size: 1.6rem; margin-bottom: 6px; }
.s-body h3 .laurel { font-size: 0.72rem; font-family: var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-left: 12px; }
.s-body p { color: var(--muted); font-size: 0.96rem; max-width: 64ch; }
.s-notes { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.s-notes li { font-size: 0.78rem; letter-spacing: 0.05em; color: var(--muted); border: 1px solid var(--line); padding: 3px 12px; border-radius: 999px; }
.s-grade {
  border-left: 1px solid var(--line); padding: 22px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px;
  font-family: var(--font-head);
}
.s-grade .score { font-size: 2.4rem; color: var(--rose); line-height: 1; }
.s-grade .lbl { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.s-grade a { font-family: var(--font-body); font-size: 0.82rem; }

/* ---------- 表格 ---------- */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 24px 0; font-variant-numeric: tabular-nums; }
.compare-table th, .compare-table td { border: 1px solid var(--line); padding: 11px 15px; text-align: left; }
.compare-table th { background: var(--bg-panel-2); font-family: var(--font-head); font-size: 1.02rem; letter-spacing: 0.04em; color: var(--gold); }
.compare-table td:first-child { color: var(--muted); }

/* ---------- 正文 ---------- */
.prose { padding: 52px 0 68px; }
.prose h2 { margin: 38px 0 14px; }
.prose p { margin-bottom: 16px; color: #ddd2c6; }
.verdict { border: 1px solid var(--burgundy); background: linear-gradient(180deg, rgba(122, 46, 53, 0.12), transparent); padding: 20px 24px; margin: 28px 0; }
.verdict .v-label { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rose); margin-bottom: 8px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 48px; background: #120e0c; font-size: 0.86rem; }
.footer-inner { padding: 36px 0; display: grid; gap: 12px; color: var(--muted); }
.related-note { border-top: 1px solid var(--line); padding-top: 12px; font-size: 0.8rem; color: var(--faint); }

/* ---- R7 micro-interactions / a11y / motion ---- */
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
::selection { background: rgba(217, 142, 138, 0.25); }
a { text-underline-offset: 3px; }
.back-top { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(122, 46, 53, 0.9); color: #fff; font-size: 1.05rem;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 18px; font-weight: 600; }
.skip-link:focus { left: 8px; }
[data-animate] { opacity: 0; transform: translateY(14px); transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1); transition-delay: inherit; will-change: opacity, transform; }
[data-animate].in { opacity: 1; transform: none; }
.col-link a::after, .s-grade a::after { display: inline-block; transition: transform 0.2s ease; content: " →"; }
.s-grade a:hover::after { transform: translateX(4px); }
.topbar.scrolled { box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.6); transition: box-shadow 0.25s ease; }
.topbar { transition: box-shadow 0.25s ease; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* R2 hero specialization */
.hero::before { transform: translateX(-50%) scaleY(0); transform-origin: top; animation: thread 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards; }
@keyframes thread { to { transform: translateX(-50%) scaleY(1); } }
.hero h1 { animation: tracking 1.1s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
@keyframes tracking { from { letter-spacing: 0.06em; opacity: 0; } to { letter-spacing: 0.01em; opacity: 1; } }
.hero .over { animation: fadein 0.8s ease 0.1s backwards; }
@keyframes fadein { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero h1, .hero .over { animation: none; transform: translateX(-50%); opacity: 1; } }

/* R8 score underline growth */
.s-grade .score { position: relative; display: inline-block; margin-bottom: 8px; }
.s-grade .score::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s; }
[data-animate].in .s-grade .score::after, .in .s-grade .score::after { transform: scaleX(1); }

/* R9 tables on narrow screens */
@media (max-width: 640px) {
  .compare-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table tbody { display: table; width: 100%; min-width: 480px; }
}

/* R10 mobile rhythm */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .sheet { padding: 28px 22px; }
  .hero { padding-top: 48px; }
}

/* R11 hover signature */
.seal:hover .s-no { color: var(--rose); transition: color 0.3s ease; }

/* R1 typography features */
body { font-feature-settings: "kern" 1, "liga" 1, "calt" 1; -webkit-tap-highlight-color: transparent; }

/* R2 editorial measure */
.prose p { text-wrap: pretty; orphans: 3; widows: 3; }
.prose { hyphens: auto; }

/* R5 hover inner response */
.seal:hover .s-no { letter-spacing: 0.1em; } .s-no { transition: letter-spacing 0.3s ease; }

/* R6 prose link underline grow */
.prose p a {
  background: linear-gradient(currentColor, currentColor) bottom left / 0% 1px no-repeat;
  transition: background-size 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: 2px;
}
.prose p a:hover { background-size: 100% 1px; }

/* R7 themed scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #a5656055; border-radius: 5px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #a56560; border: 2px solid transparent; background-clip: content-box; }

/* R8 touch feedback */
.seal:active { transform: scale(0.995); }

/* R9 back-top smooth elevator */
.back-top { transform: translateY(10px); transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.back-top[style*="opacity: 1"], .back-top:hover { transform: translateY(0); }
.back-top:active { transform: translateY(2px); }

/* R3 footer two-column */
@media (min-width: 860px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer-inner > div:first-child { order: 1; }
  .related-note { order: 2; max-width: 56ch; border-top: 0; padding-top: 0; text-align: right; }
}

/* R4 current page nav state */
.topnav a[aria-current='page'] { color: var(--rose); }
