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

:root {
  --plum: #56228b;
  --plum-soft: #7c46b5;
  --earth: #8b4513;
  --earth-soft: #b96d31;
  --ink: #1f1726;
  --ink-2: #2b2038;
  --text: #f1e8f4;
  --muted: #c1b0cd;
  --line: rgba(241, 232, 244, 0.16);
  --line-soft: rgba(241, 232, 244, 0.09);
  --card: rgba(255, 255, 255, 0.045);
  --r-pill: 999px;
  --r-card: 10px;
  --r-soft: 22px;
  --head-h: 132px;
  --shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.95);
  --serif: "Noto Serif JP", "Songti SC", "SimSun", Georgia, serif;
  --sans: "Noto Sans JP", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 620px at 88% -8%, rgba(86, 34, 139, 0.55), transparent 62%),
    radial-gradient(760px 520px at -12% 26%, rgba(139, 69, 19, 0.42), transparent 60%),
    radial-gradient(760px 720px at 48% 118%, rgba(86, 34, 139, 0.34), transparent 66%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 7px);
}

body > * { position: relative; z-index: 1; }

img { max-width: 100%; }

a { color: #dcc0ff; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 页头 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 18px 10px;
  background: linear-gradient(180deg, rgba(31, 23, 38, 0.97), rgba(31, 23, 38, 0.84));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0 0 30px 30px;
  box-shadow: 0 18px 40px -34px #000;
}

.head-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  overflow: hidden;
  border-radius: 52% 48% 54% 46%;
  background: linear-gradient(140deg, var(--plum), var(--earth));
  box-shadow: 0 12px 26px -16px #000;
}

.mark-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mark-fill { display: block; width: 100%; height: 100%; }

.brand {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--text);
}

.site-nav { margin-top: 8px; }

.site-nav p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 2px;
  margin: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.site-nav a:nth-child(4) { margin-left: 12px; }

.site-nav a:nth-child(4)::before {
  content: "";
  width: 1px;
  height: 18px;
  margin-right: 13px;
  margin-left: -13px;
  background: var(--line);
  display: inline-block;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  background: rgba(86, 34, 139, 0.45);
  border-color: var(--line);
  outline: none;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 54px;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 26px;
}

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

.badge {
  display: inline-block;
  margin: 0 0 20px;
  padding: 8px 20px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(245, 230, 255, 0.24);
  background: rgba(139, 69, 19, 0.3);
  color: #f8ecff;
  font-size: 16px;
  letter-spacing: 0.16em;
  box-shadow: 0 14px 30px -20px #000;
  animation: floaty 8s ease-in-out infinite;
}

.hero h1 {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 50px);
  line-height: 1.34;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 30px;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-size: 16.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--plum), var(--earth));
  box-shadow: 0 20px 36px -22px #000, inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: filter 0.2s, transform 0.2s;
}

.btn:hover,
.btn:focus-visible { filter: brightness(1.12); transform: translateY(-1px); outline: none; }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  will-change: transform;
}

.blob {
  position: absolute;
  z-index: 1;
  opacity: 0.75;
  filter: blur(1px);
  border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%;
}

.b1 {
  width: 70%;
  height: 62%;
  left: -2%;
  top: 6%;
  background: radial-gradient(circle at 34% 32%, rgba(86, 34, 139, 0.9), rgba(86, 34, 139, 0));
  animation: floaty 13s ease-in-out infinite;
}

.b2 {
  width: 54%;
  height: 50%;
  right: 0;
  bottom: 2%;
  background: radial-gradient(circle at 62% 42%, rgba(139, 69, 19, 0.8), rgba(139, 69, 19, 0));
  animation: floaty 16s ease-in-out infinite reverse;
}

.hero-photo {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  border-radius: 48% 52% 44% 56% / 56% 44% 58% 42%;
  box-shadow: 0 34px 64px -34px #000;
  animation: morph 20s ease-in-out infinite;
}

/* ---------- 正文骨架 ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 34px;
  align-items: start;
}

.content { min-width: 0; }

.prose { display: block; }

div > section {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--head-h) + 16px);
}

div > section + section { margin-top: 26px; }

div > section > :first-child { margin-top: 0; }

div > section > :last-child { margin-bottom: 0; }

.prose h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.45;
  color: #f9f0fd;
  letter-spacing: 0.01em;
}

.prose h2 + hr { margin-top: 8px; }

.prose hr {
  height: 2px;
  width: 76px;
  margin: 0 0 18px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--earth-soft), var(--plum-soft), transparent);
}

.prose h3 {
  margin: 26px 0 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: #f4e9f9;
}

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

.prose ul,
.prose ol { margin: 0 0 16px; padding-left: 1.35em; }

.prose li { margin: 0 0 8px; }

.prose li::marker { color: var(--earth-soft); }

.prose strong { color: #fff; }

.prose a { text-underline-offset: 3px; }

.prose blockquote {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-left: 3px solid var(--plum-soft);
  border-radius: 0 14px 14px 0;
  background: rgba(86, 34, 139, 0.18);
}

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

.prose img { border-radius: 16px; height: auto; }

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

.prose th,
.prose td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; }

.prose th { color: #fff; font-weight: 600; }

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: calc(var(--head-h) + 14px);
  align-self: start;
  padding: 20px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-soft);
  background: linear-gradient(180deg, rgba(86, 34, 139, 0.2), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.side-title {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #f6ecfb;
}

.side hr {
  height: 2px;
  width: 42px;
  margin: 6px 0 12px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--earth-soft), transparent);
}

.side-list { display: flex; flex-direction: column; gap: 2px; margin: 0; }

.side-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.45;
  transition: background 0.2s, color 0.2s;
}

.side-list a:hover,
.side-list a:focus-visible { color: #fff; background: rgba(86, 34, 139, 0.42); outline: none; }

/* ---------- 页脚 ---------- */
.site-foot {
  margin-top: 24px;
  padding: 46px clamp(20px, 6vw, 108px) 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px 44px;
  border-top: 1px solid var(--line);
  border-radius: 42px 42px 0 0;
  background: linear-gradient(180deg, rgba(46, 32, 60, 0.6), rgba(22, 16, 28, 0.98));
}

.site-foot h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #f7edfc;
}

.site-foot hr {
  height: 2px;
  width: 38px;
  margin: 6px 0 14px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--plum-soft), transparent);
}

.f-title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: #fff;
}

.f-host {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  word-break: break-all;
}

.f-links p {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin: 0;
}

.f-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
}

.f-links a:hover,
.f-links a:focus-visible { color: #fff; background: rgba(139, 69, 19, 0.34); outline: none; }

.f-form { grid-column: 1 / -1; max-width: 560px; }

.sub { display: flex; flex-wrap: wrap; gap: 10px; }

.sub input {
  flex: 1 1 200px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.sub input::placeholder { color: rgba(241, 232, 244, 0.5); }

.sub input:focus-visible { outline: 2px solid var(--plum-soft); outline-offset: 2px; }

.sub button {
  min-height: 46px;
  padding: 10px 26px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, var(--earth), var(--plum));
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: filter 0.2s;
}

.sub button:hover { filter: brightness(1.12); }

.f-copy {
  grid-column: 1 / -1;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid var(--line-soft);
}

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

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(86, 34, 139, 0.94);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

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

/* ---------- 动效 ---------- */
.stagger {
  opacity: 0.001;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

@keyframes morph {
  0%, 100% { border-radius: 48% 52% 44% 56% / 56% 44% 58% 42%; }
  50% { border-radius: 56% 44% 58% 42% / 46% 56% 44% 54%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge, .b1, .b2, .hero-photo { animation: none; }
  .stagger { opacity: 1; transform: none; transition: none; }
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  :root { --head-h: 122px; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: calc(100svh - 128px);
    padding: 26px 20px 38px;
    gap: 10px;
  }

  .hero h1 { margin-bottom: 22px; }

  .hero-art { min-height: 240px; margin-top: 8px; }

  .hero-photo { width: min(72%, 290px); aspect-ratio: 1 / 1; }

  .b1 { left: 6%; width: 60%; height: 58%; }

  .b2 { right: 4%; }

  .site-nav {
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .site-nav::-webkit-scrollbar { display: none; }

  .site-nav p {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    margin: 0 auto;
  }

  .site-nav a { padding: 8px 11px; }

  .site-nav a:nth-child(4) { margin-left: 4px; }

  .wrap {
    grid-template-columns: minmax(0, 1fr);
    padding: 4px 18px 46px;
    gap: 26px;
  }

  .side { position: static; order: 2; }

  div > section { padding: 22px 18px; }

  .site-foot {
    grid-template-columns: minmax(0, 1fr);
    padding: 34px 20px 16px;
    border-radius: 28px 28px 0 0;
    gap: 26px;
  }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .brand { font-size: 18px; }
  .hero-copy { text-align: left; }
  .badge { letter-spacing: 0.1em; }
  .to-top { right: 12px; bottom: 12px; padding: 10px 16px; }
}

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