@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 {
  --ink: #1f1726;
  --ink-2: #241a2d;
  --plum: #56228b;
  --plum-lt: #7d43bf;
  --clay: #8b4513;
  --clay-lt: #b5752f;
  --paper: #f3ece6;
  --dim: #c6b8ce;
  --body: #dcd2e2;
  --line: rgba(243, 236, 230, 0.14);
  --line-soft: rgba(243, 236, 230, 0.08);
  --r-sm: 16px;
  --r-md: 22px;
  --r-lg: 28px;
  --serif: 'Noto Serif JP', 'Songti SC', 'SimSun', Georgia, serif;
  --sans: 'Noto Sans JP', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  color: var(--body);
  background-color: var(--ink);
  background-image:
    radial-gradient(1000px 620px at 8% -8%, rgba(86, 34, 139, 0.55), transparent 66%),
    radial-gradient(760px 520px at 98% 6%, rgba(139, 69, 19, 0.4), transparent 62%),
    radial-gradient(900px 760px at 46% 112%, rgba(86, 34, 139, 0.3), transparent 64%);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    radial-gradient(circle at 30% 40%, #fff 0 1px, transparent 1px),
    radial-gradient(circle at 68% 72%, #fff 0 1px, transparent 1px);
  background-size: 17px 17px, 29px 29px;
}

img, svg { display: block; max-width: 100%; }
a { color: #dcc8f5; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.4;
  color: var(--paper);
  letter-spacing: 0.01em;
}

h2 { font-size: clamp(21px, 3.2vw, 27px); margin: 0 0 0.7em; }
h3 { font-size: 19px; margin: 1.6em 0 0.5em; }

h2 > span,
h3 > span {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
h2 > span::after,
h3 > span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 6%;
  bottom: 0;
  height: 5px;
  border-radius: 9px;
  background: linear-gradient(90deg, var(--plum-lt), var(--clay));
  opacity: 0.8;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(31, 23, 38, 0.9);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line-soft);
}

.topline {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 16px;
  font-size: 13px;
  letter-spacing: 0.34em;
  color: #d3c0e6;
  background: linear-gradient(90deg, rgba(139, 69, 19, 0.5), rgba(86, 34, 139, 0.62));
  border-bottom: 1px solid var(--line-soft);
}

.topline-dot {
  width: 7px;
  height: 7px;
  border-radius: 60% 40% 55% 45%;
  background: #e8d6b6;
  flex: none;
}

.mainnav { padding: 6px 12px 10px; }

.navrow {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 4px;
}

.navlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.navlink:hover,
.navlink:focus-visible {
  color: #fff;
  background: rgba(86, 34, 139, 0.42);
  border-color: rgba(181, 117, 47, 0.5);
  transform: translateY(-1px);
}

.brandmark {
  display: inline-flex;
  order: 0;
  margin: 0 6px;
}

.brandmark-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--paper);
  text-decoration: none;
  border-radius: 20px 26px 22px 28px;
  border: 1px solid rgba(243, 236, 230, 0.28);
  background: linear-gradient(120deg, rgba(86, 34, 139, 0.72), rgba(139, 69, 19, 0.62));
}
.brandmark-img { border-radius: 14px; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 30px;
  min-height: 45vh;
  padding: 40px 0 34px;
}
.hero::after {
  content: '';
  position: absolute;
  left: -20px;
  right: -20px;
  bottom: 0;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--plum), var(--clay) 62%, transparent);
  transform: rotate(-0.55deg);
  opacity: 0.9;
}

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

.hero-title {
  margin: 0 0 0.45em;
  font-size: clamp(29px, 5.4vw, 46px);
  line-height: 1.28;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.hero-lead {
  margin: 0 0 1.1em;
  max-width: 46ch;
  font-size: 16px;
  color: var(--dim);
}

.hero-jump { margin: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 16px;
  color: var(--paper);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(243, 236, 230, 0.32);
  background: rgba(243, 236, 230, 0.06);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.pill:hover,
.pill:focus-visible {
  background: rgba(139, 69, 19, 0.45);
  border-color: rgba(243, 236, 230, 0.6);
  transform: translateY(-2px);
}
.pill--solid {
  background: linear-gradient(120deg, var(--plum), var(--clay));
  border-color: transparent;
}

.hero-fig {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  box-shadow: 0 26px 48px -26px rgba(86, 34, 139, 0.9),
              0 10px 26px -18px rgba(0, 0, 0, 0.9);
  background: radial-gradient(circle at 30% 25%, rgba(86, 34, 139, 0.8), rgba(31, 23, 38, 0.9));
}
.hero-fig .hero-img,
.hero-fig .blob {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 正文与侧栏 ---------- */
.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 34px;
  padding: 44px 0 70px;
  align-items: start;
}

.main-article {
  min-width: 0;
  padding: 26px 26px 34px;
  border-radius: var(--r-lg);
  background: rgba(36, 26, 45, 0.62);
  border: 1px solid var(--line-soft);
  box-shadow: 0 22px 44px -34px rgba(0, 0, 0, 0.95);
}

article[id] { scroll-margin-top: 112px; }

.main-article > article {
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.main-article > article:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.main-article p { margin: 0 0 1.05em; }
.main-article ul,
.main-article ol { margin: 0 0 1.1em; padding-left: 1.35em; }
.main-article li { margin: 0.36em 0; }
.main-article li::marker { color: var(--clay-lt); }
.main-article strong { color: #fff; font-weight: 500; }
.main-article h2 { margin-top: 0.2em; }
.main-article blockquote {
  margin: 1.2em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--plum-lt);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(86, 34, 139, 0.22);
  color: var(--dim);
}
.main-article img { border-radius: var(--r-md); height: auto; }

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 18px 20px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  background: rgba(36, 26, 45, 0.66);
  box-shadow: 0 18px 34px -30px rgba(0, 0, 0, 0.95);
}
.side-card--soft {
  border-radius: 24px 18px 26px 20px;
  background: rgba(139, 69, 19, 0.2);
  border-color: rgba(181, 117, 47, 0.3);
}

.side-card h2 {
  font-size: 17px;
  margin: 0 0 0.75em;
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 8px;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
  border-radius: 12px;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}
.side-list li:last-child a { border-bottom: 0; }
.side-list a:hover,
.side-list a:focus-visible {
  color: #fff;
  background: rgba(86, 34, 139, 0.4);
  padding-left: 14px;
}

.side-top { margin: 0; }
.side-top .pill { width: 100%; justify-content: center; }

/* ---------- 页脚 ---------- */
.site-foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 20px 34px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--dim);
}
.foot-left {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}
.foot-brand {
  font-family: var(--serif);
  letter-spacing: 0.08em;
  color: var(--paper);
}
.foot-top {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 16px;
  color: var(--dim);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.foot-top:hover,
.foot-top:focus-visible { color: #fff; border-color: var(--clay-lt); }
.foot-copy { font-size: 16px; color: #a99bb3; }

/* ---------- 动效 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.hero-copy > *,
.hero-fig,
.main-article > article,
.side-card {
  animation: rise 0.62s cubic-bezier(0.22, 0.7, 0.3, 1) both;
}
.hero-fig { animation-delay: 0.08s; }
.main-article > article:nth-child(1) { animation-delay: 0.1s; }
.main-article > article:nth-child(2) { animation-delay: 0.16s; }
.main-article > article:nth-child(3) { animation-delay: 0.22s; }
.main-article > article:nth-child(4) { animation-delay: 0.28s; }
.main-article > article:nth-child(5) { animation-delay: 0.34s; }
.main-article > article:nth-child(6) { animation-delay: 0.4s; }
.main-article > article:nth-child(7) { animation-delay: 0.46s; }
.side-card:nth-child(1) { animation-delay: 0.12s; }
.side-card:nth-child(2) { animation-delay: 0.2s; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .content-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 34px;
  }
  .side {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header { position: static; }
  article[id] { scroll-margin-top: 20px; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    min-height: 0;
    padding: 26px 0 30px;
  }
  .hero-fig {
    order: -1;
    aspect-ratio: 16 / 10;
  }
  .hero-title { font-size: clamp(27px, 8vw, 34px); }
  .brandmark { order: -1; flex-basis: 100%; justify-content: center; margin: 0 0 6px; }
  .brandmark-link { font-size: 15px; padding: 8px 16px; }
  .navlink { padding: 8px 11px; }
  .main-article { padding: 20px 18px 26px; border-radius: var(--r-md); }
  .site-foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *,
  .hero-fig,
  .main-article > article,
  .side-card { animation: none; }
  .navlink,
  .pill,
  .side-list a { transition: none; }
}

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