@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Josefin+Sans:wght@300;400;500;600;700&display=swap');

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

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

body {
  margin: 0;
  background: #F8F1E5;
  color: #14213D;
  font-family: 'Josefin Sans', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.68;
  letter-spacing: .012em;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: 'Cinzel', 'Josefin Sans', system-ui, 'PingFang SC', 'Microsoft YaHei', serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .03em;
}

p { margin: 0 0 16px; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid #FF6B6B;
  outline-offset: 3px;
}

/* ---------- 左侧固定竖排栏 ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 252px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 18px 22px;
  background: #14213D;
  color: #F8F1E5;
  border-right: 5px solid #FF6B6B;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding-bottom: 12px;
  border-bottom: 3px solid #FF6B6B;
  font-family: 'Cinzel', serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: .2em;
  color: #F8F1E5;
  text-decoration: none;
}

.rail-h {
  margin: 2px 0 0;
  font-size: 16px;
  letter-spacing: .18em;
  color: rgba(248, 241, 229, .62);
}

.rail-h > span {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(255, 107, 107, .7);
}

.jump { min-width: 0; }

.jump ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jump a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 15px;
  border: 2px solid rgba(248, 241, 229, .32);
  border-radius: 999px;
  font-size: 16px;
  text-decoration: none;
  color: #F8F1E5;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.jump a:hover,
.jump a:focus-visible {
  background: #FF6B6B;
  border-color: #FF6B6B;
  color: #14213D;
}

.call {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #FF6B6B;
  color: #14213D;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.call:hover,
.call:focus-visible {
  background: #F8F1E5;
  color: #14213D;
}

/* ---------- 主体 ---------- */
main { margin-left: 252px; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  min-height: 70vh;
  padding: 54px 40px 104px;
  background: #14213D;
  color: #F8F1E5;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 76px));
}

.hero-copy { position: relative; z-index: 3; }

.hero h1 {
  max-width: 14em;
  font-size: clamp(30px, 4.4vw, 56px);
  letter-spacing: .04em;
}

.hero-desc {
  max-width: 32em;
  margin: 20px 0 30px;
  font-size: 17px;
  color: rgba(248, 241, 229, .84);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 34px;
  background: #FF6B6B;
  color: #14213D;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  border-radius: 0;
  transition: background .18s ease, color .18s ease;
}

.hero-btn:hover,
.hero-btn:focus-visible {
  background: #F8F1E5;
  color: #14213D;
}

.hero-figure {
  position: relative;
  align-self: stretch;
  min-height: 360px;
  overflow: hidden;
  border-left: 5px solid #FF6B6B;
}

.hero-figure.is-bare {
  background: #FF6B6B;
  border-left: 5px solid #F8F1E5;
}

.hero-figure.is-bare::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -46px;
  width: 240px;
  height: 240px;
  background: #14213D;
  border-radius: 50%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-num {
  position: absolute;
  right: 4px;
  bottom: -14px;
  z-index: 2;
  font-family: 'Cinzel', serif;
  font-size: clamp(112px, 18vw, 260px);
  font-weight: 700;
  line-height: .78;
  letter-spacing: -.02em;
  color: #FF6B6B;
  pointer-events: none;
}

.is-bare .hero-num {
  z-index: 3;
  color: #14213D;
}

/* ---------- 正文 ---------- */
.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 36px;
}

.panel { padding: 6px 0 76px; }

.doc {
  max-width: 760px;
  counter-reset: step;
}

.doc > section {
  position: relative;
  padding: 58px 0;
  border-bottom: 2px solid rgba(20, 33, 61, .14);
  scroll-margin-top: 26px;
  counter-increment: step;
}

.doc > section:last-child { border-bottom: 0; }

.doc > section::before {
  content: "0" counter(step);
  position: absolute;
  top: 46px;
  right: 0;
  font-family: 'Cinzel', serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: #FF6B6B;
  opacity: .62;
  pointer-events: none;
}

.doc h2 {
  margin: 0 0 20px;
  font-size: clamp(23px, 3vw, 33px);
}

.doc h2 > span,
.doc h3 > span {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 5px solid #FF6B6B;
}

.doc h3 {
  margin: 30px 0 12px;
  font-size: 21px;
}

.doc p { margin: 0 0 16px; }

.doc ul,
.doc ol {
  margin: 0 0 18px;
  padding-left: 1.3em;
}

.doc li { margin: 0 0 9px; }

.doc a {
  color: #14213D;
  text-decoration: underline;
  text-decoration-color: #FF6B6B;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: background .18s ease;
}

.doc a:hover { background: #FF6B6B; }

.doc strong { font-weight: 700; color: #14213D; }

.doc blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  background: #FFF6EA;
  border-left: 6px solid #FF6B6B;
}

.doc blockquote p:last-child { margin-bottom: 0; }

.doc table {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  font-size: 16px;
}

.doc th,
.doc td {
  padding: 10px 12px;
  border: 2px solid rgba(20, 33, 61, .22);
  text-align: left;
  vertical-align: top;
}

.doc th { background: #14213D; color: #F8F1E5; }

.doc img { margin: 20px 0; }

.doc hr {
  height: 0;
  margin: 30px 0;
  border: 0;
  border-top: 2px solid rgba(20, 33, 61, .2);
}

.doc code {
  font-size: 15px;
  padding: 2px 5px;
  background: #FFF6EA;
  border: 1px solid rgba(20, 33, 61, .2);
}

/* ---------- 页脚 ---------- */
footer {
  margin-left: 252px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
  padding: 64px 36px 0;
  background: #14213D;
  color: #F8F1E5;
}

footer section { padding-bottom: 44px; }

footer h2 {
  margin: 0 0 16px;
  font-size: 19px;
  letter-spacing: .06em;
}

footer h2 > span {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 4px solid #FF6B6B;
}

.f-cta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 34px;
  border-bottom: 2px solid rgba(248, 241, 229, .22);
}

.f-cta h2 {
  margin: 0;
  font-size: clamp(26px, 4.2vw, 50px);
  letter-spacing: .06em;
}

.f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 32px;
  background: #FF6B6B;
  color: #14213D;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.f-btn:hover,
.f-btn:focus-visible {
  background: #F8F1E5;
}

.f-brand p {
  margin: 0;
  font-size: 16px;
  color: rgba(248, 241, 229, .82);
}

.f-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.f-nav a,
.f-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  font-size: 16px;
  color: rgba(248, 241, 229, .86);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.f-nav a:hover,
.f-link:hover,
.f-nav a:focus-visible,
.f-link:focus-visible {
  color: #FF6B6B;
  border-bottom-color: #FF6B6B;
}

.f-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 2px solid rgba(248, 241, 229, .22);
  font-size: 15px;
}

.f-legal .copy { margin: 0; color: rgba(248, 241, 229, .72); }

.legal-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
}

.legal-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: rgba(248, 241, 229, .82);
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a:focus-visible { color: #FF6B6B; }

/* ---------- 回到顶部 ---------- */
.top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 20px;
  background: #14213D;
  color: #F8F1E5;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid #FF6B6B;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, background .18s ease, color .18s ease;
}

.top.on { opacity: 1; pointer-events: auto; }

.top:hover,
.top:focus-visible { background: #FF6B6B; color: #14213D; }

/* ---------- 入场 ---------- */
.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease;
}

.rv.in { opacity: 1; transform: none; }

/* ---------- 窄屏 ---------- */
@media (max-width: 980px) {
  .rail {
    position: static;
    inset: auto;
    width: auto;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 14px;
    border-right: 0;
    border-bottom: 5px solid #FF6B6B;
    overflow: visible;
  }

  .brand {
    flex: 1 1 auto;
    min-height: 44px;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 23px;
  }

  .rail-h { display: none; }

  .call {
    margin: 0;
    min-height: 44px;
    padding: 8px 18px;
  }

  .jump {
    order: 3;
    flex: 1 1 100%;
    min-width: 0;
  }

  .jump ul {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 4px 0 0;
    padding: 2px 0 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .jump li { flex: 0 0 auto; }

  .jump a { white-space: nowrap; min-height: 42px; }

  main,
  footer { margin-left: 0; }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: 0;
    padding: 34px 18px 64px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 40px));
  }

  .hero h1 { font-size: clamp(27px, 7.6vw, 40px); }

  .hero-desc { margin: 16px 0 24px; }

  .hero-figure {
    min-height: 0;
    height: 36vh;
    border-left: 0;
    border-top: 5px solid #FF6B6B;
  }

  .hero-figure.is-bare { border-left: 0; border-top: 5px solid #F8F1E5; }

  .wrap { padding: 0 18px; }

  .doc > section { padding: 44px 0; }

  .doc > section::before { top: 34px; font-size: 32px; }

  footer {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 48px 18px 0;
  }

  footer section { padding-bottom: 34px; }

  .f-cta { gap: 18px; }

  .f-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 28px;
  }

  .legal-nav { gap: 4px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
