@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,500;0,700;1,300;1,500&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

:root {
  --red: #ff0000;
  --violet: #8b00ff;
  --ink: #261717;
  --ink-soft: #4a3535;
  --parch: #f5eddf;
  --parch2: #ece0cb;
  --brass: rgba(148, 106, 42, .42);
  --brass-soft: rgba(148, 106, 42, .2);
  --glass: rgba(255, 255, 255, .40);
  --glass-soft: rgba(255, 255, 255, .22);
  --edge: rgba(255, 255, 255, .62);
  --serif: 'Crimson Pro', Georgia, 'Songti SC', 'Noto Serif SC', serif;
  --display: 'Cormorant Garamond', 'Cinzel', Georgia, 'Songti SC', serif;
  --shadow: 0 14px 34px rgba(38, 23, 23, .12);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--parch);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .008em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(44vw 44vw at 10% 2%, rgba(255, 0, 0, .28), rgba(255, 0, 0, 0) 68%),
    radial-gradient(52vw 52vw at 90% 14%, rgba(139, 0, 255, .26), rgba(139, 0, 255, 0) 70%),
    radial-gradient(70vw 46vw at 48% 100%, rgba(38, 23, 23, .18), rgba(38, 23, 23, 0) 74%),
    linear-gradient(178deg, var(--parch) 0%, var(--parch2) 100%);
}

body.veil-open { overflow: hidden; }

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

a { color: var(--ink); }

hr {
  border: 0;
  height: 1px;
  margin: 10px 0 22px;
  background: linear-gradient(90deg, var(--brass), rgba(148, 106, 42, 0));
}

/* ---------- 顶部 ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px clamp(12px, 3vw, 30px);
  background: rgba(245, 237, 223, .62);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--brass);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset;
}

.top-side {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.top-right { justify-content: flex-end; gap: 6px; }

.tlink {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.tlink:hover,
.tlink:focus-visible {
  color: #a10012;
  border-bottom-color: var(--red);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 4px 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--edge);
  box-shadow: 0 4px 12px rgba(38, 23, 23, .18);
}

.brand-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 2.3vw, 23px);
  letter-spacing: .18em;
  white-space: nowrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 16px;
  font-size: 16px;
  letter-spacing: .06em;
  text-decoration: none;
  color: #fff;
  border-radius: 4px;
  background: linear-gradient(118deg, var(--red) 4%, #b4006b 54%, var(--violet) 100%);
  box-shadow: 0 8px 20px rgba(139, 0, 255, .26), 0 1px 0 rgba(255, 255, 255, .4) inset;
  transition: transform .22s ease, box-shadow .22s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 0, 0, .3);
}

.burger {
  min-height: 40px;
  padding: 6px 13px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--brass);
  border-radius: 4px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background .2s ease;
}

.burger:hover { background: rgba(255, 255, 255, .78); }

/* ---------- 全屏遮罩菜单 ---------- */

.veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(38, 23, 23, .52);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}

.veil.open { opacity: 1; visibility: visible; }

.veil-panel {
  width: min(540px, 100%);
  max-height: 84vh;
  overflow-y: auto;
  padding: 18px 16px 22px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .34);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .34), 0 1px 0 rgba(255, 255, 255, .5) inset;
  transform: translateY(-10px) scale(.99);
  transition: transform .3s ease;
}

.veil.open .veil-panel { transform: none; }

.veil-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
}

.veil-title {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: .3em;
  color: #fdf7ee;
}

.veil-close {
  min-height: 40px;
  padding: 6px 14px;
  font-family: var(--serif);
  font-size: 16px;
  color: #fdf7ee;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 4px;
  cursor: pointer;
}

.veil-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.veil-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 14px;
  font-size: 17px;
  color: #fdf7ee;
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 2px;
  transition: background .2s ease, border-color .2s ease, padding-left .2s ease;
}

.veil-nav a:hover,
.veil-nav a:focus-visible {
  background: rgba(255, 255, 255, .15);
  border-left-color: var(--red);
  padding-left: 20px;
}

/* ---------- 版心 ---------- */

.grid {
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px clamp(14px, 3vw, 34px) 70px;
}

.rail {
  position: sticky;
  top: 84px;
  padding: 16px 13px 18px;
  border-radius: 4px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(15px) saturate(140%);
  backdrop-filter: blur(15px) saturate(140%);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow), 0 1px 0 rgba(255, 255, 255, .85) inset;
}

.rail-title {
  margin: 0 0 9px;
  padding-left: 2px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .32em;
  color: var(--ink-soft);
}

.rail hr { margin: 0 0 12px; }

.rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 2px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.rail-nav a:hover,
.rail-nav a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, .62);
  border-left-color: var(--red);
}

main { min-width: 0; }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  min-height: 70vh;
  padding: 30px 0 0;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.hero-h1 {
  margin: 0;
  max-width: 15em;
  font-family: var(--display);
  font-size: clamp(2.25rem, 6.2vw, 4.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: .005em;
  text-align: left;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}

.hero-rule {
  width: min(300px, 64%);
  height: 8px;
  margin: 0;
  border: 0;
  background: linear-gradient(92deg, var(--red), var(--violet) 72%, rgba(139, 0, 255, 0));
  clip-path: polygon(0 0, 100% 0, 97% 100%, 0 100%);
}

.hero::after {
  content: "";
  display: block;
  height: 10px;
  margin-top: 26px;
  background: linear-gradient(90deg, var(--red), #b4006b 40%, var(--violet) 78%, rgba(139, 0, 255, .1));
  clip-path: polygon(0 0, 100% 0, 100% 46%, 0 100%);
}

/* ---------- 正文卡片 ---------- */

div > article:not(.hero) {
  position: relative;
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding: clamp(18px, 3vw, 34px);
  border-radius: 4px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(15px) saturate(140%);
  backdrop-filter: blur(15px) saturate(140%);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow), 0 1px 0 rgba(255, 255, 255, .85) inset;
  scroll-margin-top: 92px;
}

div > article:not(.hero)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--red), var(--violet) 62%, rgba(139, 0, 255, 0));
}

div h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: .015em;
}

div h3 {
  margin: 26px 0 8px;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
}

div p {
  margin: 0 0 1.05em;
  line-height: 1.85;
}

div p:last-child { margin-bottom: 0; }

div a {
  color: #a10012;
  text-decoration: underline;
  text-decoration-color: rgba(255, 0, 0, .42);
  text-underline-offset: 3px;
}

div a:hover { text-decoration-color: var(--red); }

div ul,
div ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}

div li { margin-bottom: .35em; line-height: 1.8; }

div blockquote {
  margin: 0 0 1.1em;
  padding: 12px 18px;
  border-left: 3px solid var(--violet);
  background: var(--glass-soft);
  border-radius: 0 4px 4px 0;
  color: var(--ink-soft);
}

div img {
  border-radius: 4px;
  border: 1px solid var(--edge);
  box-shadow: 0 12px 28px rgba(38, 23, 23, .16);
}

div table {
  width: 100%;
  margin: 0 0 1.2em;
  border-collapse: collapse;
  font-size: 16px;
}

div th,
div td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--brass-soft);
  text-align: left;
}

div code {
  font-family: ui-monospace, 'Menlo', monospace;
  font-size: .92em;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(38, 23, 23, .08);
}

/* ---------- 页脚 ---------- */

.base {
  margin-top: 20px;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 44px) 18px;
  color: #f6efe4;
  background:
    radial-gradient(60vw 40vw at 8% 0%, rgba(255, 0, 0, .30), rgba(255, 0, 0, 0) 68%),
    radial-gradient(58vw 40vw at 92% 6%, rgba(139, 0, 255, .34), rgba(139, 0, 255, 0) 70%),
    #241717;
  border-top: 1px solid var(--brass);
}

.base-top { border-bottom: 1px solid rgba(246, 239, 228, .22); }

.base-word {
  margin: 0 0 14px;
  line-height: .95;
  overflow-wrap: break-word;
}

.base-word span {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 10.5vw, 6.6rem);
  letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 239, 228, .62);
}

.base-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 26px 0 30px;
}

.base-col { min-width: 0; }

.base-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.base-col a,
.base-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: #f6efe4;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.base-col a:hover,
.base-col a:focus-visible,
.base-links a:hover,
.base-links a:focus-visible {
  color: #ffd9d9;
  border-bottom-color: rgba(255, 0, 0, .8);
}

.base address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.9;
  color: #e7dfd2;
  overflow-wrap: break-word;
}

.base-col-end { display: flex; align-items: flex-start; }

.base-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(246, 239, 228, .22);
}

.base-copy {
  margin: 0;
  font-size: 15px;
  color: #d9cfc0;
}

.base-links {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- 断点 ---------- */

@media (max-width: 980px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 16px;
  }

  .rail {
    top: 70px;
    z-index: 40;
    padding: 12px 12px 10px;
  }

  .rail-title { margin-bottom: 6px; font-size: 14px; }

  .rail hr { margin-bottom: 9px; }

  .rail-nav ul {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .rail-nav li { flex: 0 0 auto; }

  .rail-nav a {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 3px;
    padding: 6px 11px;
  }

  .rail-nav a:hover,
  .rail-nav a:focus-visible { border-bottom-color: var(--red); }

  .hero { min-height: auto; padding-top: 26px; }
  .hero::after { margin-top: 20px; }

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

@media (max-width: 620px) {
  .tlink { display: none; }
  .top { padding-left: 10px; padding-right: 10px; }
  .top-right { gap: 5px; }
  .cta { padding: 6px 12px; }
  .brand { padding: 4px 6px; }
  .base-cols { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .base-col-end { order: -1; }
  .base-bar { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

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