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

:root {
  --ink: #1f1726;
  --ink-2: #281e34;
  --ink-3: #33253f;
  --plum: #56228b;
  --plum-soft: #7d47bd;
  --clay: #8b4513;
  --clay-soft: #b96f3d;
  --cream: #f6f1ea;
  --muted: #c2b6cf;
  --line: rgba(246, 241, 234, 0.14);
  --r-card: 10px;
  --r-mid: 18px;
  --r-big: 26px;
  --pad: clamp(18px, 5.5vw, 78px);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(246, 241, 234, 0.055) 1px, transparent 1px);
  background-size: 21px 21px;
  opacity: 0.6;
}

img,
svg {
  max-width: 100%;
}

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

/* ---------- 顶部：品牌居中，菜单分列两侧 ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  padding: 8px var(--pad);
  background: rgba(31, 23, 38, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.menu-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu::-webkit-scrollbar {
  display: none;
}

.menu > li:nth-child(4) {
  margin-left: auto;
}

.menu a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.menu a::before {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 58% 42% 52% 48%;
  background: linear-gradient(135deg, var(--plum-soft), var(--clay-soft));
  transform: rotate(-14deg);
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--cream);
  background: rgba(86, 34, 139, 0.32);
}

.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(31, 23, 38, 0.94);
  color: var(--cream);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 62% 38% 54% 46% / 48% 56% 44% 52%;
  background: conic-gradient(from 40deg, var(--plum), var(--clay), var(--plum-soft), var(--plum));
}

/* ---------- 主区 ---------- */

main,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: clamp(22px, 4vw, 56px);
  min-height: 70vh;
  padding: clamp(52px, 8vh, 104px) var(--pad) clamp(112px, 16vh, 168px);
  background: radial-gradient(125% 95% at 16% 10%, #2c1e3d 0%, var(--ink) 64%);
  border-bottom-left-radius: 42% 96px;
  border-bottom-right-radius: 22% 52px;
}

.hero::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: -20vh;
  right: -12vw;
  width: 62vw;
  height: 62vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 58% 42% 46% 54% / 52% 46% 54% 48%;
  background: radial-gradient(
    circle at 34% 28%,
    rgba(86, 34, 139, 0.6),
    rgba(139, 69, 19, 0.22) 56%,
    transparent 74%
  );
  filter: blur(4px);
}

.hero::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: -6%;
  right: -6%;
  bottom: -1px;
  height: 104px;
  background: linear-gradient(102deg, var(--plum) 8%, var(--clay) 96%);
  clip-path: polygon(0 62%, 100% 0, 100% 100%, 0 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 32ch;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.8vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.hero-lead {
  margin: 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(118deg, var(--plum), var(--clay));
  color: var(--cream);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 18px 34px -20px rgba(0, 0, 0, 0.9);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hero-cta::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 40px -22px rgba(0, 0, 0, 1);
}

.hero-figure {
  position: relative;
  z-index: 2;
  margin: 0;
}

.hero-photo {
  display: block;
  width: 100%;
  height: clamp(238px, 46vh, 458px);
  object-fit: cover;
  border-radius: 120px 32px 140px 40px / 100px 62px 92px 70px;
  box-shadow: 0 34px 64px -34px rgba(0, 0, 0, 0.85);
}

.hero-blob {
  display: block;
  width: 100%;
  height: clamp(238px, 46vh, 458px);
}

/* ---------- 正文 + 右侧栏 ---------- */

.panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  align-items: start;
  gap: clamp(26px, 4vw, 46px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(46px, 6vw, 76px) var(--pad) 56px;
}

.panel-body {
  min-width: 0;
  max-width: 70ch;
}

.panel-body > article {
  scroll-margin-top: 96px;
}

.panel-body > article + article {
  margin-top: 46px;
  padding-top: 42px;
  border-top: 1px dashed var(--line);
}

.panel-body h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.panel-body h2::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 56% 44% 52% 48%;
  background: var(--clay-soft);
  vertical-align: 2px;
}

.panel-body h3 {
  margin: 28px 0 10px;
  font-size: 20px;
  line-height: 1.4;
}

.panel-body p {
  margin: 0 0 16px;
  color: #e2d9ec;
}

.panel-body ul,
.panel-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.panel-body li {
  margin-bottom: 9px;
}

.panel-body a {
  color: #c9a8f0;
  text-underline-offset: 3px;
}

.panel-body strong {
  color: #fff5e9;
}

.panel-body img {
  height: auto;
  border-radius: var(--r-mid);
}

.panel-body blockquote {
  margin: 0 0 20px;
  padding: 16px 20px;
  border-radius: var(--r-card);
  background: var(--ink-2);
  color: #ded3ea;
}

.panel-body figure {
  margin: 0 0 20px;
}

.rail {
  position: sticky;
  top: 88px;
  padding: 20px 18px 16px;
  border-radius: var(--r-card);
  background: var(--ink-2);
}

.rail h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.rail .subtitle {
  margin: 0 0 14px;
  color: var(--clay-soft);
  font-size: 16px;
  letter-spacing: 0.08em;
}

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

.rail-list a {
  display: block;
  padding: 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  background: rgba(139, 69, 19, 0.28);
  color: var(--cream);
}

/* ---------- 页脚单行 ---------- */

.footer {
  padding: 26px var(--pad) 40px;
  background: rgba(12, 8, 16, 0.45);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 8px 0;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu a {
  display: inline-block;
  padding: 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
  color: var(--cream);
  background: rgba(86, 34, 139, 0.3);
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- 滚动入场 ---------- */

html.rv-on .rv {
  opacity: 0;
  transform: translateY(20px);
}

html.rv-on .rv.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.68, 0.3, 1);
  transition-delay: var(--d, 0ms);
}

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

@media (max-width: 1080px) {
  .masthead {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px var(--pad) 6px;
  }

  .brand {
    position: static;
    transform: none;
    order: -1;
    align-self: center;
    padding: 4px 8px;
    background: transparent;
  }

  .menu > li:nth-child(4) {
    margin-left: 0;
  }

  .panel-body > article {
    scroll-margin-top: 138px;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: clamp(108px, 18vh, 148px);
    border-bottom-left-radius: 36% 72px;
    border-bottom-right-radius: 18% 40px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-figure {
    order: 2;
  }

  .panel {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 40px;
  }

  .rail {
    position: static;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-menu a {
    padding: 8px 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  html.rv-on .rv {
    opacity: 1;
    transform: none;
  }
}

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