/* ============================================================
   base.css · reset / 排版 / 按钮 / 通用件
   MIDNIGHT ROUGE：深夜暖光、柔焦光晕、细金线
   ============================================================ */

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

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

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

/* 胶片颗粒：只做质感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' 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: 200px 200px;
}

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

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

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

input {
  font-family: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: rgba(226, 87, 122, .45);
  color: #fff;
}

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

:focus-visible {
  outline: 1.5px solid var(--rouge-hi);
  outline-offset: 3px;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(247, 225, 215, .14);
  border-radius: 8px;
}

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

.section {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0;
}

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

/* ---------- 排版 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--champagne);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.eyebrow.center::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 5.2vw, 64px);
  line-height: 1.16;
  letter-spacing: .02em;
  color: var(--txt);
  margin-top: 18px;
}

.section-title em,
.em-grad {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub {
  color: var(--txt-mid);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.9;
  max-width: 34em;
  margin-top: 18px;
}

.italic {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
}

.num {
  font-family: var(--font-italic);
  font-weight: 600;
  font-variant-numeric: lining-nums;
}

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 30px;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease),
    background var(--dur-base) var(--ease), color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
  -webkit-user-select: none;
  user-select: none;
}

.btn:active {
  transform: scale(.97);
}

.btn .ico {
  font-size: 16px;
  transition: transform var(--dur-base) var(--ease);
}

.btn:hover .ico-arrow {
  transform: translateX(4px);
}

.btn-sm {
  height: 40px;
  padding: 0 20px;
  font-size: 13px;
}

.btn-lg {
  height: 58px;
  padding: 0 36px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* 胭脂主按钮：带光晕与流光 */
.btn-primary,
.btn-rouge,
.btn-ink {
  color: #fff;
  background: var(--grad-rouge);
  box-shadow: var(--glow-rouge), inset 0 1px 0 rgba(255, 255, 255, .25);
  overflow: hidden;
}

.btn-primary::after,
.btn-rouge::after,
.btn-ink::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 4.8s var(--ease) infinite;
  pointer-events: none;
}

.btn-primary:hover,
.btn-rouge:hover,
.btn-ink:hover {
  box-shadow: 0 18px 54px -12px rgba(226, 87, 122, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}

@keyframes btn-shine {

  0%,
  62% {
    left: -60%;
  }

  100% {
    left: 130%;
  }
}

/* 香槟按钮 */
.btn-gold,
.btn-bone {
  color: #2a1710;
  background: var(--grad-gold);
  box-shadow: 0 14px 40px -16px rgba(233, 203, 160, .55), inset 0 1px 0 rgba(255, 255, 255, .5);
}

/* 描边 / 幽灵 */
.btn-outline,
.btn-outline-dark,
.btn-ghost {
  color: var(--txt);
  background: rgba(247, 225, 215, .04);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-outline:hover,
.btn-outline-dark:hover,
.btn-ghost:hover {
  border-color: rgba(240, 124, 151, .6);
  background: rgba(226, 87, 122, .1);
  color: #fff;
}

/* 文字链接 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--champagne);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 6px 0;
  border-bottom: 1px solid rgba(233, 203, 160, .3);
  transition: color var(--dur-base), border-color var(--dur-base), gap var(--dur-base) var(--ease);
}

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

.link-arrow .ico {
  font-size: 15px;
}

/* ---------- 状态点 ---------- */
.dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-on {
  background: var(--online);
  box-shadow: 0 0 10px rgba(127, 224, 168, .8);
}

.dot-on::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--online);
  animation: dot-ping 2s var(--ease) infinite;
}

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

@keyframes dot-ping {
  0% {
    transform: scale(.5);
    opacity: .9;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ---------- 标签 ---------- */
.chip,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-strong);
  background: rgba(247, 225, 215, .04);
  color: var(--txt-mid);
  font-size: 12.5px;
  letter-spacing: .04em;
  white-space: nowrap;
}

.stamp {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--r-full);
  background: rgba(226, 87, 122, .16);
  border: 1px solid rgba(240, 124, 151, .45);
  color: var(--rouge-hi);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  white-space: nowrap;
}

/* ---------- 骨架 ---------- */
.skeleton {
  border-radius: var(--r-md);
  background: linear-gradient(100deg, rgba(247, 225, 215, .04) 30%, rgba(247, 225, 215, .09) 50%, rgba(247, 225, 215, .04) 70%);
  background-size: 300% 100%;
  animation: skeleton 1.6s linear infinite;
}

@keyframes skeleton {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

/* ---------- 空 / 错误态 ---------- */
.state-box {
  max-width: 460px;
  margin: 40px auto;
  padding: 48px 28px;
  text-align: center;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: radial-gradient(120% 80% at 50% 0%, rgba(226, 87, 122, .1), transparent 70%), var(--night-2);
}

.state-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(226, 87, 122, .12);
  color: var(--rouge-hi);
  font-size: 24px;
}

.state-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
}

.state-desc {
  color: var(--txt-low);
  font-size: 13.5px;
  margin: 8px 0 22px;
}

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-slow), transform .9s var(--ease-slow);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 顶部阅读进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1200;
  pointer-events: none;
}

.scroll-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-text);
  box-shadow: 0 0 12px rgba(240, 124, 151, .8);
}

/* ---------- 背景光晕 ---------- */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: .55;
  z-index: 0;
}

.glow-rouge {
  background: radial-gradient(circle, rgba(226, 87, 122, .75), rgba(168, 38, 74, 0) 70%);
}

.glow-gold {
  background: radial-gradient(circle, rgba(233, 203, 160, .5), rgba(185, 143, 94, 0) 70%);
}

@media (prefers-reduced-motion: reduce) {

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14.5px;
  }

  .btn {
    height: 48px;
    padding: 0 24px;
    font-size: 14px;
  }

  .btn-lg {
    height: 52px;
    padding: 0 28px;
    font-size: 15px;
  }

  .btn-sm {
    height: 36px;
    padding: 0 16px;
    font-size: 12.5px;
  }

  .eyebrow {
    font-size: 16px;
  }
}
