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

:root {
  --ink: #141B33;
  --ink-soft: #1D2747;
  --pink: #FF4D6D;
  --gold: #FFC94A;
  --text: #EDEAF3;
  --muted: #A9A6BC;
  --line: rgba(244, 241, 234, 0.16);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-line: rgba(255, 255, 255, 0.11);
  --r: 10px;
  --px: clamp(16px, 4vw, 44px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'Manrope', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, .brand, .foot-mark, .drawer-brand, .burger-txt {
  font-family: 'Syne', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
}

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

img { max-width: 100%; }

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

/* 页头：品牌独占一行，菜单行在下 */
.masthead {
  border-bottom: 1px solid var(--line);
  padding: 16px var(--px) 0;
  background: var(--ink);
}

.brandline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(20px, 3.2vw, 26px);
  letter-spacing: 0.03em;
}

.brand img {
  display: block;
  border-radius: 4px;
}

.menuline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-top: 1px solid var(--line);
  padding: 6px 0;
}

.burger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--glass-line);
  border-radius: var(--r);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.burger:hover { background: var(--pink); color: var(--ink); border-color: var(--pink); }

.burger-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}

.burger-bars i {
  display: block;
  height: 2px;
  background: currentColor;
}

.burger-bars i:nth-child(2) { width: 70%; }
.burger-bars i:nth-child(3) { width: 45%; }

/* 全屏遮罩菜单 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 86px var(--px) 40px;
  background: var(--ink);
  border-bottom: 8px solid var(--pink);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-3%);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

body.menu-open .drawer {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.drawer-top {
  position: absolute;
  top: 18px;
  left: var(--px);
  right: var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-brand {
  font-weight: 700;
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.drawer-close {
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--r);
  background: var(--pink);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.drawer-close:hover { background: var(--gold); }

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

.drawer-nav a {
  display: block;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  color: #fff;
  text-decoration: none;
  font-family: 'Syne', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 3.6vw, 30px);
  line-height: 1.4;
  transition: color 0.16s ease, padding-left 0.16s ease;
}

.drawer-nav a:hover { color: var(--gold); padding-left: 12px; }

/* 主体：正文 + 右侧栏 */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 3.5vw, 44px) var(--px) clamp(30px, 5vw, 56px);
}

.sheet { min-width: 0; }

/* hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
  gap: clamp(14px, 2.5vw, 28px);
  align-items: center;
  min-height: 45vh;
  padding: clamp(20px, 3vw, 34px);
  margin-bottom: clamp(18px, 3vw, 28px);
  border: 1px solid var(--glass-line);
  border-radius: var(--r);
  background: var(--ink-soft);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: var(--pink);
  clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
}

.hero.solo { grid-template-columns: minmax(0, 1fr); }

.hero-copy { text-align: center; }

.hero-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(30px, 5.2vw, 52px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 0;
  color: #C8C5D6;
  font-size: 16px;
  line-height: 1.65;
}

.hero-media { min-width: 0; }

.hero-media:empty { display: none; }

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 36vh;
  object-fit: cover;
  border-radius: 8px;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

/* 正文区块（由 page.content 提供） */
.sheet > section {
  scroll-margin-top: 24px;
  margin-bottom: clamp(16px, 2.4vw, 22px);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--glass-line);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sheet > section.hero {
  padding: clamp(20px, 3vw, 34px);
  background: var(--ink-soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sheet h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(23px, 3.2vw, 31px);
  line-height: 1.25;
  font-weight: 700;
}

.sheet h3 {
  margin: 1.4em 0 8px;
  color: var(--gold);
  font-size: 19px;
  line-height: 1.4;
}

.sheet p { margin: 0 0 1em; }

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

.sheet hr {
  width: 56px;
  height: 3px;
  margin: 0 0 18px;
  border: 0;
  background: var(--pink);
}

.sheet ul, .sheet ol { margin: 0 0 1em; padding-left: 1.3em; }

.sheet li { margin-bottom: 6px; }

.sheet a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sheet a:hover { color: var(--pink); }

.sheet strong { color: #fff; }

.sheet blockquote {
  margin: 0 0 1em;
  padding: 2px 0 2px 16px;
  border-left: 4px solid var(--gold);
  color: #D6D3E2;
}

.sheet img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1em;
  border-radius: 8px;
}

.sheet figure { margin: 0 0 1em; }

.sheet figcaption { font-size: 16px; color: var(--muted); }

.sheet table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
  font-size: 16px;
}

.sheet th, .sheet td {
  border: 1px solid var(--glass-line);
  padding: 9px 12px;
  text-align: left;
}

.sheet th { background: rgba(255, 201, 74, 0.14); color: #fff; }

/* 右侧栏 */
.rail {
  position: sticky;
  top: 16px;
  padding: 18px;
  border: 1px solid var(--glass-line);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rail-title {
  margin: 0 0 8px;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.06em;
}

.rail hr {
  width: 44px;
  height: 3px;
  margin: 0 0 12px;
  border: 0;
  background: var(--gold);
}

.rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail-nav a {
  display: block;
  padding: 10px 2px;
  border-bottom: 1px dashed var(--glass-line);
  color: #D6D3E2;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.6;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.rail-nav li:last-child a { border-bottom: 0; }

.rail-nav a:hover { color: var(--pink); padding-left: 8px; }

/* 页脚 */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px clamp(20px, 3vw, 40px);
  padding: clamp(28px, 4.5vw, 48px) var(--px) clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--line);
  background: var(--ink-soft);
}

.foot-brand { flex: 0 1 auto; min-width: 0; }

.foot-mark {
  display: block;
  color: var(--pink);
  font-size: clamp(26px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.foot-desc {
  max-width: 34ch;
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.foot-nav { flex: 1 1 auto; }

.foot-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 0;
  padding: 0;
}

.foot-nav a {
  display: block;
  min-height: 44px;
  padding: 10px 8px;
  color: #D6D3E2;
  text-decoration: none;
  font-size: 16px;
  line-height: 24px;
  transition: color 0.15s ease;
}

.foot-nav a:hover { color: var(--gold); }

.foot-copy {
  flex: 1 1 100%;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--glass-line);
  text-align: center;
  font-size: 16px;
  color: #8E8BA3;
}

@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-media img { max-height: 30vh; clip-path: none; }
  .rail { position: static; order: 3; }
  .foot { justify-content: flex-start; }
  .foot-copy { text-align: center; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .hero-title { font-size: clamp(27px, 8vw, 36px); }
  .foot-nav a { padding: 10px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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