/* ==========================================================================
   映山红酒店 R·HOTEL — 官网主样式
   设计基调：中式高端酒店 / 暖白底 + 映山红正红点缀 / 衬线标题
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --brand: #DA2233;
  --brand-deep: #B01A29;
  --ink: #171615;
  --ink-2: #55514D;
  --ink-3: #948E88;
  --line: #E4DED7;
  --cream: #FAF7F3;
  --white: #FFFFFF;

  --serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", Georgia,
    "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --nav-h: 76px;
  --wrap: 1240px;
  --gutter: 5vw;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 0.84, 0.44, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

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

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 10px 18px;
  font-size: 14px;
  color: #fff;
  background: var(--brand);
  border-radius: 2px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color 0.45s var(--ease), box-shadow 0.45s var(--ease),
    height 0.35s var(--ease);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-logo {
  flex: 0 0 auto;
  display: block;
}

.nav-logo img {
  height: 34px;
  width: auto;
  transition: opacity 0.3s;
}

/* 叠加在首页大图之上时：白字透明底 */
.site-nav:not(.is-solid):not(.is-open) {
  color: #fff;
}

.site-nav:not(.is-solid):not(.is-open) .nav-logo img {
  /* logo 是红色图形，深色场景下加一点投影保证可辨识 */
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
}

.site-nav.is-solid {
  background: rgba(255, 255, 255, 0.93);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
}

.site-nav__links > ul {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 6px 0;
  transition: color 0.25s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.nav-link:hover::after,
.nav-link[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav.is-solid .nav-link:hover,
.site-nav.is-solid .nav-link[aria-current="true"] {
  color: var(--brand);
}

.nav-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border: 1px solid currentColor;
  border-radius: 2px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.nav-tel svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.nav-tel:hover {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

/* 汉堡按钮 */
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  position: relative;
  z-index: 130;
}

.nav-burger span {
  position: absolute;
  left: 9px;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), opacity 0.25s;
}

.nav-burger span:nth-child(1) {
  top: 15px;
}
.nav-burger span:nth-child(2) {
  top: 21px;
}
.nav-burger span:nth-child(3) {
  top: 27px;
}

.site-nav.is-open .nav-burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-nav.is-open .nav-burger span:nth-child(2) {
  opacity: 0;
}
.site-nav.is-open .nav-burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: min(100svh, 880px);
  min-height: 560px;
  overflow: hidden;
  background: #12100F;
  isolation: isolate;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s var(--ease);
  will-change: opacity;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.06);
  will-change: transform;
}

.hero__slide--1 img {
  object-position: center 52%;
}
.hero__slide--3 img {
  object-position: center 58%;
}

/* 缓慢推近，增强沉浸感 */
.hero__slide.is-active img {
  animation: heroZoom 7.5s linear forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.065);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      to bottom,
      rgba(10, 8, 7, 0.55) 0%,
      rgba(10, 8, 7, 0.18) 32%,
      rgba(10, 8, 7, 0.32) 62%,
      rgba(10, 8, 7, 0.72) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-top: calc(var(--nav-h) + 10px);
  padding-bottom: 110px;
  text-align: center;
  color: #fff;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: rgba(255, 255, 255, 0.82);
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.hero__title {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.hero__sub {
  margin-top: 14px;
  font-size: clamp(0.72rem, 1.5vw, 0.85rem);
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  color: rgba(255, 255, 255, 0.9);
}

.hero__rule {
  width: 1px;
  height: 46px;
  margin: 30px 0 22px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff, rgba(255, 255, 255, 0));
  opacity: 0.7;
}

.hero__tagline {
  max-width: 22em;
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: rgba(255, 255, 255, 0.94);
}

/* 入场上浮：用 keyframe 定义起始态，动画未触发时元素默认可见（不会隐形） */
.hero__content > * {
  animation: heroUp 1s var(--ease-out) both;
}

.hero__content > :nth-child(1) {
  animation-delay: 0.2s;
}
.hero__content > :nth-child(2) {
  animation-delay: 0.34s;
}
.hero__content > :nth-child(3) {
  animation-delay: 0.46s;
}
.hero__content > :nth-child(4) {
  animation-delay: 0.56s;
}
.hero__content > :nth-child(5) {
  animation-delay: 0.66s;
}

@keyframes heroUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 轮播指示点：靠右下，把正中底部让给「向下滚动」引导 */
.hero__dots {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero__dot {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.hero__dot::before {
  content: "";
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.38);
  transition: background-color 0.3s, width 0.4s var(--ease-out),
    transform 0.4s var(--ease-out);
}

.hero__dot.is-active::before {
  background: #fff;
  transform: scaleY(1.5);
}

/* 首屏行动按钮 */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 132px;
  height: 48px;
  padding: 0 26px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  color: #fff;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
    color 0.35s var(--ease), transform 0.35s var(--ease);
}

.hero__btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.hero__btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  transform: translateY(-2px);
}

.hero__btn--primary {
  background: var(--brand);
  border-color: var(--brand);
}

.hero__btn--primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

/* 向下滚动引导 */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  transform: translateX(-50%);
  opacity: 0;
  animation: heroUp 1s var(--ease-out) 1.1s both;
  transition: color 0.3s;
}

.hero__scroll:hover {
  color: #fff;
}

.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 40%;
  background: #fff;
  animation: scrollDown 2.1s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(250%);
  }
}

.hero__scroll-text {
  font-size: 9px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
}

/* ==========================================================================
   Section
   ========================================================================== */
.section {
  position: relative;
  padding-block: clamp(68px, 8.5vw, 118px);
  scroll-margin-top: var(--nav-h);
}

/* 板块顶部的居中细线：让 cream / white 的硬切边界有个呼吸，
   同时避免滚动时光秃秃地换底色 */
.section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(23, 22, 21, 0) 0%,
    rgba(23, 22, 21, 0.09) 20%,
    rgba(23, 22, 21, 0.09) 80%,
    rgba(23, 22, 21, 0) 100%
  );
}

/* 巨大的衬线章节序号，作为极淡的排版水印。
   top 要大于导航高度，否则板块顶边贴住视口时会被固定导航切掉上半截 */
.section::after {
  content: attr(data-idx);
  position: absolute;
  z-index: 0;
  right: clamp(16px, 4vw, 60px);
  top: clamp(56px, 6vw, 92px);
  font-family: var(--serif);
  font-size: clamp(88px, 12vw, 176px);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.03em;
  color: var(--ink);
  opacity: 0.045;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* 水印在内容之下，正文不受干扰 */
.section > .wrap {
  position: relative;
  z-index: 1;
}

.section--cream {
  background: var(--cream);
}

.section--white {
  background: var(--white);
}

/* 分区标题 */
.sec-head {
  max-width: 720px;
  margin: 0 auto clamp(38px, 4.6vw, 58px);
  text-align: center;
}

.sec-head__idx {
  display: block;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  color: var(--brand);
}

.sec-head__line {
  width: 34px;
  height: 1px;
  margin: 14px auto 20px;
  background: var(--brand);
  opacity: 0.55;
}

.sec-head__title {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
}

.sec-head__en {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.sec-head__desc {
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-2);
  text-align: justify;
  text-align-last: center;
}

/* ---------- 图片卡片网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 26px);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--wide {
  grid-template-columns: 1fr;
}

.card {
  display: block;
  position: relative;
  transition: transform 0.5s var(--ease-out);
}

.card:hover,
.card:focus-visible {
  transform: translateY(-5px);
}

.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #E9E4DD;
  border-radius: 4px;
  /* 图片本身的细内描边：cream 底上图片边界更干净，不靠阴影 */
  box-shadow: inset 0 0 0 1px rgba(23, 22, 21, 0.05);
  transition: box-shadow 0.5s var(--ease);
}

/* 整张卡片一起上浮，图片与文字不会脱开 */
.card:hover .card__media,
.card:focus-visible .card__media {
  box-shadow: inset 0 0 0 1px rgba(23, 22, 21, 0.04),
    0 22px 44px -26px rgba(23, 22, 21, 0.5);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter 0.6s;
}

.card:hover .card__media img,
.card:focus-visible .card__media img {
  transform: scale(1.07);
}

/* 悬停时压暗 + 出现 360 标识 */
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 12, 11, 0.5), rgba(15, 12, 11, 0) 55%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.card:hover .card__media::after,
.card:focus-visible .card__media::after {
  opacity: 1;
}

.card__badge {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(218, 34, 51, 0.92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translate(-50%, -42%) scale(0.94);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease-out);
  pointer-events: none;
}

.card__badge svg {
  width: 13px;
  height: 13px;
}

.card:hover .card__badge,
.card:focus-visible .card__badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card__body {
  padding: 18px 2px 0;
}

.card__title {
  position: relative;
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
  transition: color 0.3s;
}

.card__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}

.card:hover .card__title,
.card:focus-visible .card__title {
  color: var(--brand);
}

.card:hover .card__title::after,
.card:focus-visible .card__title::after {
  transform: scaleX(1);
  transform-origin: left;
}

.card__en {
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* 普通卡片的信息列表（原先只有 .card--wide 有样式，导致 b/span 粘连） */
.card__meta {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}

.card__meta li {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.card__meta b {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.card__meta span {
  flex: 1 1 auto;
}

/* ---------- 宽卡片（图文左右分栏）----------
   必须定义在 .card 之后，否则同特异性下 display:block 会覆盖 display:grid */
.card--wide {
  display: grid;
  grid-template-columns: 1.62fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(14px, 1.6vw, 20px);
  background: #F7F3EE;
  border: 1px solid rgba(23, 22, 21, 0.055);
  border-radius: 4px;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.5s var(--ease);
}

.card--wide:hover {
  background: #F3EDE5;
  border-color: rgba(218, 34, 51, 0.16);
  box-shadow: 0 24px 54px -34px rgba(23, 22, 21, 0.5);
}

/* 宽卡片整块已经不轻，上浮幅度收敛一些，避免和内部 gap 打架 */
.card--wide:hover,
.card--wide:focus-visible {
  transform: translateY(-3px);
}

.card--wide .card__media {
  aspect-ratio: 16 / 9;
}

.card--wide:hover .card__media img {
  transform: scale(1.04);
}

.card--wide .card__body {
  padding: 0 clamp(4px, 1vw, 12px) 0 0;
}

.card--wide .card__title {
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  letter-spacing: 0.07em;
}

.card--wide .card__en {
  margin-top: 10px;
}

/* 宽卡片信息列表 */
.card--wide .card__meta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.card--wide .card__meta li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(23, 22, 21, 0.08);
}

.card--wide .card__meta li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.card--wide .card__meta b {
  flex: 0 0 4.2em;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.card--wide .card__meta span {
  flex: 1 1 auto;
}

/* 宽卡片 360 标识常显在右上角，不遮挡主体 */
.card--wide .card__badge {
  left: auto;
  right: 12px;
  top: 12px;
  opacity: 1;
  transform: none;
  font-size: 11px;
  padding: 7px 13px;
}

.card--wide:hover .card__badge {
  transform: none;
}

/* 行动提示 */
.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.card__cta svg {
  width: 15px;
  height: 15px;
  transition: transform 0.4s var(--ease-out);
}

.card--wide:hover .card__cta svg {
  transform: translateX(5px);
}

/* ==========================================================================
   预订引导（CTA）
   ========================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  /* 下沿比上沿略紧：下面是页脚，本身还有一段留白 */
  padding-block: clamp(72px, 9vw, 128px) clamp(58px, 7vw, 96px);
  background: #171615;
  color: #fff;
  text-align: center;
  isolation: isolate;
}

/* 层级从下到上：背景图(0) → 渐变遮罩(1) → 内容(2)。
   注意不能都给负 z-index：负值子元素按 DOM 顺序绘制，
   背景图会盖住 ::before 的渐变遮罩 */
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.24;
  transform: scale(1.04);
}

/* 双层渐变：上缘与上一板块柔和衔接，中部保证文字对比度 */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      to bottom,
      rgba(23, 22, 21, 0.9) 0%,
      rgba(23, 22, 21, 0.68) 24%,
      rgba(23, 22, 21, 0.76) 66%,
      rgba(23, 22, 21, 0.96) 100%
    ),
    radial-gradient(ellipse at 50% 44%, rgba(218, 34, 51, 0.18), transparent 60%);
}

.cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__eyebrow {
  font-size: 11px;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  color: rgba(255, 255, 255, 0.5);
}

.cta__title {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.6vw, 2.55rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
}

/* 标题下方一道短红线，呼应板块标题的视觉语言 */
.cta__title::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  margin: 24px auto 0;
  background: var(--brand);
  opacity: 0.8;
}

.cta__desc {
  margin-top: 22px;
  max-width: 40em;
  font-size: 14.5px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.68);
  /* 万一需要折行，让两行长度均匀，避免末尾只剩一两个字 */
  text-wrap: balance;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}

.cta__tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 30px;
  font-family: var(--serif);
  font-size: 1.24rem;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 2px;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
    transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.cta__tel svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.cta__tel:hover,
.cta__tel:focus-visible {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -18px rgba(218, 34, 51, 0.95);
}

.cta__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 26px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
    color 0.35s var(--ease), transform 0.35s var(--ease);
}

.cta__link svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  transition: transform 0.4s var(--ease-out);
}

.cta__link:hover,
.cta__link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  transform: translateY(-2px);
}

.cta__link:hover svg {
  transform: translateX(4px);
}

.cta__addr {
  margin-top: 38px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.38);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  padding-block: clamp(52px, 6vw, 76px) 0;
  color: rgba(255, 255, 255, 0.72);
  background: #171615;
}

.site-footer__top {
  display: grid;
  /* 页脚已去掉「快速导航」块，只剩品牌区 + 联系我们两栏 */
  grid-template-columns: minmax(260px, 1.6fr) minmax(220px, 1fr);
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 60px);
}

.footer-brand img {
  height: 40px;
  width: auto;
  /* logo 里的红色文字在近黑底上对比度偏低（约 3.7:1），提亮一档 */
  filter: brightness(1.3) saturate(1.08);
}

.footer-brand p {
  margin-top: 16px;
  max-width: 26em;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.5);
}

.footer-block h4 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.footer-block ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.footer-block a {
  transition: color 0.25s;
}

.footer-block a:hover {
  color: #fff;
}

.footer-tel {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: #fff;
  transition: color 0.25s;
}

.footer-tel:hover {
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s;
}

.to-top:hover {
  color: #fff;
}

.to-top svg {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   滚动进场动画
   ========================================================================== */
/* 仅在 JS 可用（html 带 .js 类）时才隐藏，避免脚本失效导致正文空白 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-tel {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --nav-h: 64px;
  }

  /* 移动端抽屉导航 */
  .nav-burger {
    display: block;
  }

  .nav-logo img {
    height: 30px;
  }

  .site-nav__links {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: block;
    padding: 0 10vw;
    margin: 0;
    overflow-y: auto;
    background: #171615;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.45s var(--ease), transform 0.5s var(--ease-out),
      visibility 0.45s;
  }

  .site-nav__links > ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    gap: 0;
  }

  .site-nav.is-open .site-nav__links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav__links li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link {
    display: block;
    padding: 22px 0;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.14em;
  }

  .nav-link::after {
    display: none;
  }

  /* 抽屉里恢复电话按钮，手机用户可直接拨打 */
  .nav-tel {
    display: inline-flex;
    margin-top: 30px;
    height: 48px;
    padding: 0 26px;
    font-size: 14px;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
  }

  .nav-tel:hover {
    background: var(--brand);
    border-color: var(--brand);
  }

  .site-nav__links li:last-child {
    border-bottom: 0;
    display: flex;
    justify-content: center;
  }

  .site-nav.is-open .nav-logo {
    position: relative;
    z-index: 130;
  }

  .site-nav.is-open .nav-logo img {
    filter: none;
  }

  .nav-burger {
    color: #fff;
  }

  .site-nav.is-solid:not(.is-open) .nav-burger {
    color: var(--ink);
  }

  .hero {
    height: 76svh;
    min-height: 440px;
  }

  .hero__content {
    padding-bottom: 90px;
  }

  .hero__title {
    margin-top: 20px;
    letter-spacing: 0.1em;
    text-indent: 0.1em;
  }

  .hero__rule {
    height: 34px;
    margin: 22px 0 18px;
  }

  .hero__tagline {
    font-size: 0.9rem;
  }

  .hero__dots {
    bottom: 24px;
    right: 14px;
  }

  /* 手机端纵向空间紧张，隐藏滚动引导与次要按钮 */
  .hero__scroll {
    display: none;
  }

  .hero__actions {
    margin-top: 26px;
    gap: 10px;
  }

  .hero__btn {
    height: 44px;
    min-width: 116px;
    padding: 0 20px;
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .grid,
  .grid--2,
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* 宽卡片占满整行，不能被上面的 2 列规则覆盖 */
  .grid--wide,
  .grid--wide > .card--wide {
    grid-template-columns: 1fr;
  }

  .card--wide {
    gap: 16px;
    padding: 12px;
  }

  .card--wide .card__body {
    padding: 0 4px 6px;
  }

  .card__body {
    padding-top: 12px;
  }

  .card__title {
    font-size: 0.95rem;
  }

  .card__en {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  /* 移动端不显示悬停效果；角标常显但收窄，避免遮挡小图 */
  .card__badge {
    left: auto;
    right: 6px;
    top: 6px;
    padding: 3px 7px;
    font-size: 9px;
    letter-spacing: 0;
    opacity: 1;
    transform: none;
    border-color: transparent;
    background: rgba(218, 34, 51, 0.85);
  }

  .card__badge svg {
    display: none;
  }

  .card:hover .card__badge {
    transform: none;
  }

  .sec-head__desc {
    font-size: 14px;
    text-align: left;
    text-align-last: left;
  }

  /* CTA：手机上按钮全宽堆叠，更好点按（断点单独放在下方，平板保持并排） */
  .cta__desc {
    font-size: 13.5px;
    text-align: center;
  }

  .cta__addr {
    margin-top: 28px;
    font-size: 11.5px;
    line-height: 1.9;
  }

  /* 水印在窄屏上缩小，避免压到标题 */
  .section::after {
    right: 10px;
    top: 44px;
    font-size: clamp(64px, 20vw, 96px);
    opacity: 0.05;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 560px) {
  /* 窄屏才堆叠：平板（768）保持并排，按钮拉满整行会显得笨重 */
  .cta__actions {
    flex-direction: column;
    align-self: stretch;
    gap: 12px;
    margin-top: 28px;
  }

  .cta__tel,
  .cta__link {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    justify-content: center;
    height: 50px;
  }

  .cta__tel {
    font-size: 1.15rem;
  }

  /* 500 以下两列太挤，展厅卡片改为单列 */
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .hero__eyebrow {
    font-size: 11px;
    letter-spacing: 0.3em;
  }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero__slide img {
    transform: none;
  }
}
