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

/* ===== 设计令牌 ===== */
:root {
  --c-primary: #56228b;
  --c-primary-light: #7a3db8;
  --c-primary-dark: #3a1660;
  --c-secondary: #8b4513;
  --c-secondary-light: #b05a1a;
  --c-ink: #1f1726;
  --c-ink-soft: #3d2d4d;
  --c-surface: #faf7fd;
  --c-surface2: #f2ecf9;
  --c-surface3: #e8dff5;
  --c-warm: #f5efe6;
  --c-warm2: #ede0cc;
  --c-text: #2a1e35;
  --c-text-muted: #6b5878;
  --c-white: #ffffff;
  --c-border: #d4c5e8;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 9999px;

  --shadow-soft: 0 4px 24px rgba(86,34,139,0.10), 0 1px 4px rgba(86,34,139,0.06);
  --shadow-card: 0 8px 32px rgba(86,34,139,0.13), 0 2px 8px rgba(86,34,139,0.07);
  --shadow-pop: 0 16px 48px rgba(86,34,139,0.18);

  --font-base: 'Figtree', 'Noto Sans', system-ui, -apple-system, sans-serif;
  --font-size-base: 17px;
  --line-height: 1.7;
  --max-w: 900px;
  --max-w-wide: 1200px;
  --nav-h: 112px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--c-text);
  background: var(--c-surface);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; border-radius: 4px; }
button { font-family: var(--font-base); cursor: pointer; border: none; background: none; }

/* ===== 有机装饰 SVG blob（背景层） ===== */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(139,69,19,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 5% 80%, rgba(86,34,139,0.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(31,23,38,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(86,34,139,0.18);
}

.header-brand-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(86,34,139,0.25);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.brand-logo { height: 36px; width: auto; }
.brand-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.header-contact {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 16px;
  min-height: 42px;
  display: flex;
  align-items: center;
  border-radius: var(--r-full);
  border: 1px solid rgba(86,34,139,0.4);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.header-contact:hover {
  background: rgba(86,34,139,0.3);
  color: var(--c-white);
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: var(--r-sm);
  transition: background 0.2s;
  flex-shrink: 0;
}
.hamburger:hover { background: rgba(86,34,139,0.3); }
.hamburger span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-nav-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav-row::-webkit-scrollbar { display: none; }
.header-nav-row > a {
  color: rgba(255,255,255,0.72);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: var(--r-full);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.header-nav-row > a:hover,
.header-nav-row > a[aria-current="page"] {
  background: rgba(86,34,139,0.4);
  color: var(--c-white);
}

/* ===== 全屏遮罩菜单 ===== */
.fullscreen-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(31,23,38,0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.fullscreen-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}
.fullscreen-nav nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.fullscreen-nav nav a {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 14px 32px;
  min-height: 52px;
  display: flex;
  align-items: center;
  border-radius: var(--r-lg);
  transition: background 0.2s, color 0.2s;
  text-align: center;
}
.fullscreen-nav nav a:hover,
.fullscreen-nav nav a[aria-current="page"] {
  background: rgba(86,34,139,0.5);
  color: var(--c-white);
}
.fullscreen-nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 20px;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s, color 0.2s;
}
.fullscreen-nav-close:hover {
  background: rgba(86,34,139,0.4);
  color: var(--c-white);
}

/* ===== Hero 首页 ===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--c-ink);
}
.hero-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 40px;
  min-height: 40vh;
  background: linear-gradient(
    180deg,
    rgba(31,23,38,0.95) 0%,
    rgba(86,34,139,0.6) 60%,
    transparent 100%
  );
}
.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.2;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  line-height: 1.6;
}
.hero-media {
  flex: 1;
  min-height: 30vh;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-media-placeholder {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-ink) 100%);
  min-height: 30vh;
  position: relative;
}
.hero-media-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(139,69,19,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(86,34,139,0.2) 0%, transparent 50%);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  padding: 16px 24px;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  width: 100%;
}
.breadcrumb a {
  color: var(--c-primary);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--c-primary-light); }
.breadcrumb span { color: var(--c-text-muted); }

/* ===== eyebrow 眉题 ===== */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-secondary);
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 4px 10px;
  background: rgba(139,69,19,0.10);
  border-radius: var(--r-full);
}

/* ===== 通用 section heading ===== */
.section-heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 24px;
  line-height: 1.25;
}

/* ===== 日期标签 ===== */
.page-date {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-right: 12px;
  margin-bottom: 10px;
}
.page-date-mod { color: var(--c-secondary); }

/* ===== 首页 main ===== */
.home-main {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.content-section,
.child-section {
  padding-top: 48px;
}

/* ===== 栏目页 ===== */
.cat-main {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.cat-hero {
  padding: 48px 0 0;
}
.cat-h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.25;
  margin-bottom: 14px;
}
.cat-desc {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  max-width: 640px;
  margin-top: 10px;
}
.cat-content { }

/* ===== 内容页 ===== */
.entry-main {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.entry-hero {
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.entry-hero-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  max-height: 480px;
  background: var(--c-surface3);
}
.entry-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.entry-hero-text { }
.entry-h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.25;
  margin-bottom: 12px;
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}
.entry-desc {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  max-width: 640px;
}

.entry-article {
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.entry-body {
  padding: 40px 48px;
}

.related-section { }

/* ===== about / privacy ===== */
.about-main,
.privacy-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.about-hero,
.privacy-hero {
  padding-top: 40px;
}
.about-h1,
.privacy-h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.25;
  margin-bottom: 12px;
}
.about-desc,
.privacy-desc {
  font-size: 1.05rem;
  color: var(--c-text-muted);
}
.about-article,
.privacy-article {
  background: var(--c-white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.about-body,
.privacy-body {
  padding: 40px 48px;
}

/* ===== prose 正文排版 ===== */
.prose-wrap {
  max-width: var(--max-w);
  color: var(--c-text);
}
.prose-wrap h2,
.entry-body h2,
.about-body h2,
.privacy-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--c-primary);
  margin: 2em 0 0.7em;
  line-height: 1.3;
}
.prose-wrap h3,
.entry-body h3,
.about-body h3,
.privacy-body h3 {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--c-ink-soft);
  margin: 1.6em 0 0.5em;
}
.prose-wrap p,
.entry-body p,
.about-body p,
.privacy-body p {
  margin-bottom: 1.2em;
  line-height: var(--line-height);
}
.prose-wrap a,
.entry-body a,
.about-body a,
.privacy-body a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.prose-wrap a:hover,
.entry-body a:hover,
.about-body a:hover,
.privacy-body a:hover {
  color: var(--c-primary-light);
}
.prose-wrap ul,
.prose-wrap ol,
.entry-body ul,
.entry-body ol,
.about-body ul,
.about-body ol,
.privacy-body ul,
.privacy-body ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}
.prose-wrap li,
.entry-body li,
.about-body li,
.privacy-body li {
  margin-bottom: 0.4em;
}
.prose-wrap strong,
.entry-body strong,
.about-body strong,
.privacy-body strong {
  font-weight: 600;
  color: var(--c-primary-dark);
}
.prose-wrap blockquote,
.entry-body blockquote {
  border-left: 4px solid var(--c-primary);
  padding-left: 20px;
  margin: 1.5em 0;
  color: var(--c-text-muted);
  font-style: italic;
}

/* ===== 表格（子页列表） ===== */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  background: var(--c-white);
}
.nav-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.nav-table thead th {
  background: var(--c-primary);
  color: var(--c-white);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 14px 18px;
  text-align: left;
  white-space: nowrap;
}
.nav-table thead th:first-child { border-radius: var(--r-md) 0 0 0; }
.nav-table thead th:last-child { border-radius: 0 var(--r-md) 0 0; }
.nav-table tbody tr {
  border-bottom: 1px solid var(--c-surface3);
  transition: background 0.18s;
}
.nav-table tbody tr:last-child { border-bottom: none; }
.nav-table tbody tr:hover { background: var(--c-surface2); }
.nav-table td {
  padding: 14px 18px;
  vertical-align: middle;
  color: var(--c-text);
  line-height: 1.5;
}
.nav-table .tbl-title a {
  color: var(--c-primary);
  font-weight: 600;
  transition: color 0.2s;
}
.nav-table .tbl-title a:hover { color: var(--c-primary-light); }
.nav-table .tbl-desc { color: var(--c-text-muted); font-size: 0.9rem; }
.nav-table .tbl-date { color: var(--c-text-muted); font-size: 0.82rem; white-space: nowrap; }
.nav-table .tbl-thumb-cell { width: 72px; padding: 8px 12px; }
.tbl-thumb {
  width: 60px;
  height: 42px;
  object-fit: cover;
  border-radius: var(--r-sm);
  display: block;
}
.nav-table-related td:first-child a {
  color: var(--c-primary);
  font-weight: 600;
}
.nav-table-related td:last-child { color: var(--c-text-muted); font-size: 0.9rem; }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--c-ink);
  color: rgba(255,255,255,0.75);
  margin-top: 80px;
}
.footer-cta {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 60%, var(--c-secondary) 100%);
  padding: 48px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(139,69,19,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.footer-cta-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-white);
  color: var(--c-primary);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  min-height: 48px;
  border-radius: var(--r-full);
  position: relative;
  z-index: 1;
  transition: transform 0.2s, box-shadow 0.2s;
}
.footer-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.footer-cols {
  display: flex;
  gap: 40px;
  padding: 48px 40px;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  flex-wrap: wrap;
}
.footer-dl {
  flex: 1;
  min-width: 180px;
}
.footer-dl dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(86,34,139,0.3);
}
.footer-dl dd {
  margin: 0 0 8px;
}
.footer-dl dd a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  padding: 5px 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}
.footer-dl dd a:hover { color: var(--c-white); }
.footer-dl dd:not(:has(a)) {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid rgba(86,34,139,0.25);
  padding: 24px 40px;
  text-align: center;
  max-width: var(--max-w-wide);
  margin: 0 auto;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}
.footer-note { font-size: 0.78rem !important; }

/* ===== Scroll Reveal 动效 ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  :root {
    --font-size-base: 16px;
    --nav-h: 96px;
  }
  .header-brand-row { padding: 10px 16px; }
  .header-nav-row { padding: 6px 16px; gap: 2px; }
  .header-nav-row > a { padding: 8px 10px; font-size: 0.82rem; }
  .brand-text { font-size: 1rem; }
  .header-contact { display: none; }

  .hero-text { padding: 40px 16px 28px; }
  .hero-h1 { font-size: 1.7rem; }

  .home-main,
  .cat-main,
  .entry-main,
  .about-main,
  .privacy-main {
    padding: 0 16px 40px;
    gap: 36px;
  }

  .entry-body,
  .about-body,
  .privacy-body {
    padding: 24px 20px;
  }

  .footer-cols {
    padding: 32px 16px;
    gap: 24px;
  }
  .footer-bottom { padding: 20px 16px; }
  .footer-cta { padding: 36px 16px; }

  .nav-table thead th,
  .nav-table td { padding: 10px 12px; }
  .nav-table .tbl-desc { display: none; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 1.4rem; }
  .cat-h1,
  .entry-h1,
  .about-h1,
  .privacy-h1 { font-size: 1.5rem; }
  .section-heading { font-size: 1.25rem; }
  .footer-cta-text { font-size: 1.1rem; }

  .nav-table-cat .tbl-thumb-cell { display: none; }
  .fullscreen-nav nav a { font-size: 1rem; padding: 12px 24px; }
}

/* ===== 修正：footer dl dd 不含 a ===== */
.footer-dl dd { list-style: none; }
