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

:root {
  --purple: #56228b;
  --brown: #8b4513;
  --ink: #1f1726;
  --paper: #f6efe3;
  --card: #fffdf7;
  --line: rgba(31, 23, 38, 0.13);
  --soft: rgba(31, 23, 38, 0.72);
  --serif: "Newsreader", "Songti SC", "Noto Serif SC", Georgia, serif;
  --sans: "Roboto", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(60vw 52vw at 90% -8%, rgba(86, 34, 139, 0.17), transparent 62%),
    radial-gradient(52vw 42vw at -10% 26%, rgba(139, 69, 19, 0.15), transparent 66%),
    radial-gradient(48vw 44vw at 72% 104%, rgba(86, 34, 139, 0.1), transparent 72%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(31, 23, 38, 0.035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(31, 23, 38, 0.022) 0 1px, transparent 1px 6px);
  opacity: 0.75;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--purple);
  text-underline-offset: 3px;
}

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

/* 顶部细条 */
.strip {
  position: relative;
  z-index: 21;
  background: linear-gradient(90deg, var(--purple), var(--brown) 88%);
  color: #fdf8ef;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  padding: 7px clamp(16px, 4vw, 40px);
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 页头 */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(14px, 4vw, 40px);
  background: rgba(246, 239, 227, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  max-width: 62%;
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 52% 48% 45% 55% / 48% 52% 48% 52%;
  background: linear-gradient(150deg, var(--purple), var(--brown));
  object-fit: cover;
  display: inline-block;
  box-shadow: 0 6px 14px -8px rgba(86, 34, 139, 0.9);
}

.mark svg {
  width: 100%;
  height: 100%;
}

/* 导航 */
.nav {
  position: relative;
  flex: 0 0 auto;
}

.nav details {
  margin: 0;
}

.nav summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  cursor: pointer;
  border: 1px solid rgba(86, 34, 139, 0.4);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.95rem;
}

.nav summary::-webkit-details-marker {
  display: none;
}

.nav summary::after {
  content: "▾";
  font-size: 0.8rem;
  color: var(--purple);
}

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

.nav details > menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(78vw, 270px);
  display: grid;
  gap: 2px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px 22px 22px 8px;
  box-shadow: 0 26px 50px -30px rgba(31, 23, 38, 0.65);
}

.nav details > menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}

.nav details > menu a:hover,
.nav details > menu a:focus-visible {
  background: rgba(86, 34, 139, 0.1);
  color: var(--purple);
}

@media (min-width: 800px) {
  .nav details > summary {
    display: none;
  }

  .nav details > menu {
    position: static;
    width: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav details > menu a {
    border-radius: 999px;
    padding: 9px 11px;
    font-size: 0.9rem;
    min-height: 42px;
  }
}

/* 主体 */
.shell {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 32px) clamp(28px, 5vw, 56px);
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
  .shell {
    grid-template-columns: minmax(0, 1fr) 290px;
    align-items: start;
  }
}

.doc {
  min-width: 0;
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

/* 首屏 */
.hero {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  justify-items: center;
  min-height: 100vh;
  padding: clamp(16px, 4vw, 40px) 0 clamp(24px, 5vw, 48px);
  text-align: center;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.hero-copy {
  display: grid;
  gap: 18px;
  justify-items: center;
  max-width: 34ch;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.05rem, 5.6vw, 3.5rem);
  color: var(--ink);
}

.lede {
  margin: 0;
  font-size: clamp(1rem, 2.1vw, 1.1rem);
  line-height: 1.7;
  color: var(--soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--purple), var(--brown));
  color: #fdf8ef;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  box-shadow: 0 18px 30px -20px rgba(86, 34, 139, 0.95);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px -20px rgba(86, 34, 139, 1);
}

.hero-figure {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
}

.hero-img,
.blob {
  width: min(100%, 400px);
  aspect-ratio: 1 / 1;
  border-radius: 46% 54% 52% 48% / 48% 44% 56% 52%;
  box-shadow: 0 34px 64px -36px rgba(31, 23, 38, 0.75);
}

.hero-img {
  object-fit: cover;
}

.blob {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.6), transparent 58%),
    linear-gradient(140deg, rgba(86, 34, 139, 0.55), rgba(139, 69, 19, 0.5));
}

.badge {
  position: absolute;
  top: 4%;
  left: 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--purple);
  box-shadow: 0 12px 24px -18px rgba(31, 23, 38, 0.8);
}

@media (min-width: 860px) {
  .badge {
    left: 4%;
    top: 8%;
  }
}

/* 正文区块 */
.doc > div:not(.hero) {
  background: var(--card);
  border-radius: 28px;
  padding: clamp(20px, 3.4vw, 38px);
  border-bottom: 3px solid rgba(139, 69, 19, 0.35);
  box-shadow: 0 20px 42px -36px rgba(31, 23, 38, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.doc > div:not(.hero):hover {
  transform: translateY(-3px);
  border-bottom-color: var(--purple);
  box-shadow: 0 26px 48px -34px rgba(31, 23, 38, 0.7);
}

div[id] {
  scroll-margin-top: 108px;
}

.doc div h2 {
  margin: 0 0 0.65em;
  font-size: clamp(1.45rem, 3.1vw, 1.92rem);
  color: var(--ink);
}

.doc div h3 {
  margin: 1.3em 0 0.5em;
  font-size: clamp(1.15rem, 2.4vw, 1.34rem);
}

h2 > span,
h3 > span {
  display: inline-block;
}

.doc div h2 > span {
  padding-bottom: 0.12em;
  border-bottom: 4px solid rgba(86, 34, 139, 0.22);
}

.doc div p {
  color: rgba(31, 23, 38, 0.86);
}

.doc div ul,
.doc div ol {
  padding-left: 1.25em;
}

.doc div li {
  margin-bottom: 0.45em;
}

.doc div img {
  border-radius: 20px;
  margin: 0.4em 0;
}

blockquote {
  margin: 1.2em 0;
  padding: 12px 20px;
  border-left: 4px solid rgba(139, 69, 19, 0.45);
  border-radius: 0 16px 16px 0;
  background: rgba(139, 69, 19, 0.06);
  color: rgba(31, 23, 38, 0.82);
}

/* 侧栏 */
.side {
  background: rgba(255, 253, 247, 0.86);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px 16px;
  box-shadow: 0 22px 44px -38px rgba(31, 23, 38, 0.85);
}

@media (min-width: 960px) {
  .side {
    position: sticky;
    top: 104px;
  }
}

.side h2 {
  margin: 0 0 12px;
  font-size: 1.04rem;
  letter-spacing: 0.04em;
}

.side h2 > span {
  padding-bottom: 3px;
  border-bottom: 3px solid rgba(86, 34, 139, 0.28);
}

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

.side-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 14px 14px 0;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.94rem;
}

.side-list a:hover,
.side-list a:focus-visible {
  background: rgba(86, 34, 139, 0.08);
  border-left-color: var(--purple);
  color: var(--purple);
}

.side-list li {
  animation: rise 0.5s ease both;
}

.side-list li:nth-child(2) { animation-delay: 0.05s; }
.side-list li:nth-child(3) { animation-delay: 0.1s; }
.side-list li:nth-child(4) { animation-delay: 0.15s; }
.side-list li:nth-child(5) { animation-delay: 0.2s; }
.side-list li:nth-child(6) { animation-delay: 0.25s; }
.side-list li:nth-child(7) { animation-delay: 0.3s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 大区块 */
.cta {
  position: relative;
  max-width: 1116px;
  margin: 0 auto clamp(30px, 5vw, 64px);
  padding: clamp(24px, 4vw, 48px);
  border-radius: 34px 34px 64px 34px;
  background:
    radial-gradient(70% 90% at 88% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(155deg, rgba(86, 34, 139, 0.96), rgba(139, 69, 19, 0.93));
  color: #fdf8ef;
  box-shadow: 0 32px 60px -40px rgba(31, 23, 38, 0.9);
  width: calc(100% - 2 * clamp(16px, 4vw, 32px));
}

.cta h2 {
  margin: 0 0 0.8em;
  font-size: clamp(1.5rem, 3.3vw, 2.1rem);
  color: #fdf8ef;
}

.cta h2 > span {
  padding-bottom: 4px;
  border-bottom: 4px solid rgba(255, 255, 255, 0.45);
}

.cta-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 760px) {
  .cta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cta-col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.cta-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.13);
  color: #fdf8ef;
  text-decoration: none;
  font-size: 0.94rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.cta-grid a:hover,
.cta-grid a:focus-visible {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

/* 页脚 */
footer {
  padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 32px) 48px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--soft);
}

footer p {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
}

footer small {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

@media (max-width: 420px) {
  body {
    font-size: 16.5px;
  }

  .strip {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .badge {
    font-size: 0.72rem;
    padding: 7px 12px;
  }
}

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

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

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