/* ============================================================
   base.css · reset / 排版 / 通用件
   私人会所目录体系：细线、留白、无圆角、克制动效
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--txt);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 极轻胶片颗粒：只做质感，不抢内容 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
  opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--wine-2);
  color: var(--bone);
}

:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 3px;
}

[v-cloak] {
  display: none !important;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ink);
}

::-webkit-scrollbar-thumb {
  background: #2a2a2f;
  border: 2px solid var(--ink);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brass);
}

/* ---------- 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  padding: clamp(76px, 9.5vw, 136px) 0;
}

.section-paper {
  background: var(--bone);
  color: var(--paper-ink);
}

.section-paper ::selection {
  background: var(--paper-ink);
  color: var(--bone);
}

.section-paper .section-title,
.section-paper .section-sub,
.section-paper .section-mark {
  color: var(--paper-ink);
}

/* ---------- 排版 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.14;
  text-wrap: balance;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.16;
  letter-spacing: .06em;
  text-wrap: balance;
}

.section-title em,
.section-title .em {
  font-style: normal;
  color: var(--wine-2);
}

.section-sub {
  color: var(--txt-mid);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: .04em;
  max-width: 44ch;
}

.section-paper .section-sub {
  color: var(--paper-mid);
}

/* 章节标记：03 / THE LEDGER */
.section-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
}

.section-mark .section-no {
  font-family: var(--font-latin);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--brass);
}

.section-mark::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.section-paper .section-mark {
  color: var(--wine-2);
}

/* 大号拉丁数字 */
.num {
  font-family: var(--font-latin);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: .9;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
}

.section-paper .rule {
  background: var(--ink-line);
}

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 0;
  white-space: nowrap;
  user-select: none;
  transition:
    background var(--dur-base) var(--ease),
    color var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  flex: none;
}

/* 主按钮（深色底）：骨白填充 */
.btn-primary {
  background: var(--bone);
  color: var(--paper-ink);
  border-color: var(--bone);
}

.btn-primary:hover {
  background: var(--wine-2);
  border-color: var(--wine-2);
  color: var(--bone);
}

/* 描边按钮（深色底） */
.btn-outline,
.btn-ghost {
  background: transparent;
  color: var(--txt);
  border-color: var(--line-strong);
}

.btn-outline:hover,
.btn-ghost:hover {
  color: var(--brass-hi);
  border-color: var(--brass);
}

/* 墨色按钮（纸底 / 深底通用） */
.btn-ink {
  background: var(--paper-ink);
  color: var(--bone);
  border-color: var(--paper-ink);
}

.btn-ink:hover {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--bone);
}

/* 纸底描边 */
.btn-outline-dark {
  background: transparent;
  color: var(--paper-ink);
  border-color: var(--ink-line-strong);
}

.btn-outline-dark:hover {
  border-color: var(--paper-ink);
}

/* 酒红底上的骨白按钮 */
.btn-bone {
  background: var(--bone);
  color: var(--wine-deep);
  border-color: var(--bone);
}

.btn-bone:hover {
  background: transparent;
  color: var(--bone);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 11px;
  letter-spacing: .18em;
}

.btn-block {
  width: 100%;
}

/* 文字链 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  color: currentColor;
  border-bottom: 1px solid currentColor;
  transition: gap var(--dur-base) var(--ease), color var(--dur-base), border-color var(--dur-base);
}

.link-arrow svg {
  width: 13px;
  height: 13px;
  transition: transform var(--dur-base) var(--ease);
}

.link-arrow:hover {
  gap: 15px;
  color: var(--brass-hi);
  border-color: var(--brass);
}

.section-paper .link-arrow:hover {
  color: var(--wine-2);
  border-color: var(--wine-2);
}

/* ---------- 标签 ---------- */
.tag,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--txt-mid);
  border: 1px solid var(--line);
}

.chip {
  border-color: var(--ink-line);
  color: var(--paper-mid);
}

/* 类型章：详情页纸底 */
.stamp {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--wine-2);
  border: 1px solid var(--wine-2);
}

/* ---------- 状态点 ---------- */
.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex: none;
  background: var(--off);
}

.dot-on {
  background: var(--online);
  box-shadow: 0 0 0 0 rgba(142, 168, 122, .5);
  animation: dot-pulse 2.4s ease-out infinite;
}

.dot-off {
  background: var(--off);
}

.dot-free {
  background: var(--brass-hi);
  box-shadow: 0 0 0 2px rgba(201, 177, 127, .16);
}

@keyframes dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(142, 168, 122, .45);
  }

  70% {
    box-shadow: 0 0 0 5px rgba(142, 168, 122, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(142, 168, 122, 0);
  }
}

/* ---------- 骨架屏 ---------- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(242, 237, 227, .055);
}

.section-paper .skeleton,
.page-detail .skeleton {
  background: rgba(21, 19, 14, .07);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(242, 237, 227, .08), transparent);
  transform: translateX(-100%);
  animation: skeleton-sweep 1.5s ease-in-out infinite;
}

.section-paper .skeleton::after,
.page-detail .skeleton::after {
  background: linear-gradient(90deg, transparent, rgba(21, 19, 14, .06), transparent);
}

@keyframes skeleton-sweep {
  100% {
    transform: translateX(100%);
  }
}

/* ---------- 空态 / 错误 ---------- */
.state-box {
  padding: 70px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-paper .state-box,
.page-detail .state-box {
  border-color: var(--ink-line);
}

.state-icon {
  display: flex;
  justify-content: center;
  font-size: 34px;
  margin-bottom: 16px;
  color: var(--brass);
}

.section-paper .state-icon,
.page-detail .state-icon {
  color: var(--wine-2);
}

.state-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .05em;
  margin-bottom: 8px;
}

.state-desc {
  color: var(--txt-mid);
  font-size: 13px;
  margin-bottom: 22px;
}

.section-paper .state-desc,
.page-detail .state-desc {
  color: var(--paper-mid);
}

/* ---------- 图标 ---------- */
.ico {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.12em;
}

/* ---------- 入场动效 ---------- */
.reveal {
  opacity: 0;
}

.reveal.is-in {
  opacity: 1;
  animation: reveal-up .8s var(--ease-slow) backwards;
  animation-delay: calc(var(--reveal-i, 0) * 55ms);
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* ---------- 顶部滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 400;
  pointer-events: none;
  background: transparent;
}

.scroll-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brass);
  transition: width .1s linear;
}

/* ---------- 移动端 ---------- */
@media (max-width: 767px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 66px 0;
  }

  .section-title {
    font-size: clamp(27px, 8vw, 36px);
  }

  .section-sub {
    font-size: 13px;
  }

  .btn {
    padding: 14px 22px;
    letter-spacing: .16em;
  }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
