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

/* ============================================================
   CSS 自定义属性
   ============================================================ */
:root {
  --c-purple: #56228b;
  --c-brown: #8b4513;
  --c-dark: #1f1726;
  --c-purple-light: #7a3db5;
  --c-purple-dim: #3a1760;
  --c-brown-light: #b85c1e;
  --c-brown-dim: #5c2e0d;
  --c-cream: #f5f0eb;
  --c-cream-dark: #e8e0d6;
  --c-text: #f0eaf8;
  --c-text-muted: #bfaed4;
  --c-text-dark: #1f1726;
  --c-surface: #2a1e38;
  --c-surface-2: #332248;
  --c-surface-3: #3d2a58;
  --c-border: rgba(86,34,139,0.35);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-soft: 0 4px 24px rgba(31,23,38,0.55), 0 1px 6px rgba(86,34,139,0.18);
  --shadow-card: 0 8px 32px rgba(31,23,38,0.6), 0 2px 8px rgba(139,69,19,0.12);
  --shadow-btn: 0 4px 16px rgba(86,34,139,0.45);

  --font-display: 'Playfair Display SC', 'Georgia', serif;
  --font-body: 'Karla', 'Helvetica Neue', Arial, sans-serif;

  --max-w: 1200px;
  --gap: 2rem;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--c-dark);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--c-purple-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus-visible {
  color: var(--c-brown-light);
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--c-text);
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.2em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-brown-light);
  background: rgba(139,69,19,0.15);
  padding: 0.25em 0.9em;
  border-radius: 999px;
  border: 1px solid rgba(139,69,19,0.35);
  margin-bottom: 0.75rem;
}

/* ============================================================
   Layout: Header & Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(31,23,38,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.site-nav {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  padding: 0.6rem 1.5rem;
  margin: 0;
}

.nav-links a {
  color: var(--c-text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(86,34,139,0.25);
  color: var(--c-text);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  background: rgba(86,34,139,0.4);
  color: var(--c-text);
  border: 1px solid rgba(86,34,139,0.6);
}

.brand-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  border-top: 1px solid rgba(86,34,139,0.2);
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0.06em;
  text-decoration: none;
}

.brand-name:hover {
  color: var(--c-purple-light);
  text-decoration: none;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  font-weight: 300;
  display: none;
}

/* ============================================================
   Wrap / Main layout container
   ============================================================ */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   Hero Section (Home)
   ============================================================ */
.hero-section {
  padding: 3rem 0 2rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 45vh;
  position: relative;
}

.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.hero-blob-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blob-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.hero-eyebrow-bg {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  color: rgba(86,34,139,0.12);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.hero-copy {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.hero-h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--c-text);
  line-height: 1.2;
}

.hero-desc {
  color: var(--c-text-muted);
  font-size: 1rem;
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-purple), var(--c-purple-dim));
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  min-height: 48px;
  letter-spacing: 0.04em;
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: linear-gradient(135deg, var(--c-purple-light), var(--c-purple));
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(86,34,139,0.55);
  color: #fff;
  text-decoration: none;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-brown), var(--c-brown-dim));
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(139,69,19,0.45);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 48px;
  letter-spacing: 0.05em;
}

.btn-cta:hover, .btn-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139,69,19,0.55);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   Content Section (Home) — Content + Sidebar
   ============================================================ */
.content-section,
.article-section,
.about-section,
.privacy-section,
.default-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  padding: 2.5rem 0;
  align-items: start;
}

.content-body,
.article-body,
.about-body,
.privacy-body,
.default-body {
  min-width: 0;
}

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
  position: sticky;
  top: 120px;
}

.sidebar-inner {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--c-text);
  margin-bottom: 0.75rem;
  margin-top: 0.2rem;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-links li a {
  color: var(--c-text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  display: block;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.sidebar-links li a:hover,
.sidebar-links li a:focus-visible {
  background: rgba(86,34,139,0.22);
  color: var(--c-text);
  text-decoration: none;
}

.sidebar-divider {
  height: 1px;
  background: var(--c-border);
  margin: 0.75rem 0;
  border-radius: 999px;
}

/* ============================================================
   Prose (div body)
   ============================================================ */
.prose {
  color: var(--c-text);
  font-size: 1rem;
  line-height: 1.8;
}

.prose h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  color: var(--c-text);
  border-left: 4px solid var(--c-purple);
  padding-left: 0.85rem;
}

.prose h3 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  color: var(--c-cream);
}

.prose p {
  margin-bottom: 1.3em;
  color: var(--c-text);
}

.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.3em;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: 0.55em;
  line-height: 1.7;
}

.prose a {
  color: var(--c-purple-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--c-brown-light);
}

.prose strong {
  color: var(--c-cream);
  font-weight: 600;
}

.prose blockquote {
  border-left: 3px solid var(--c-brown);
  padding: 0.75rem 1.25rem;
  background: rgba(139,69,19,0.1);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--c-text-muted);
  font-style: italic;
  margin: 1.5em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
}

.prose table th {
  background: var(--c-surface-2);
  color: var(--c-text);
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--c-border);
  font-family: var(--font-display);
}

.prose table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(86,34,139,0.15);
  vertical-align: top;
}

.prose table tr:hover {
  background: rgba(86,34,139,0.08);
}

.prose img {
  border-radius: var(--radius-md);
  margin: 1.5em 0;
  box-shadow: var(--shadow-card);
}

/* ============================================================
   Articles Table (Home)
   ============================================================ */
.articles-section {
  padding: 2rem 0 3rem;
}

.section-head {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  color: var(--c-text);
}

.articles-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.6rem;
}

.articles-table tbody tr {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.articles-table tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.tbl-index {
  width: 56px;
  padding: 1.2rem 0.5rem 1.2rem 1.25rem;
  vertical-align: middle;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.tbl-num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--c-purple-light);
  font-weight: 700;
  display: block;
  line-height: 1;
}

.tbl-main {
  padding: 1rem 1.5rem 1rem 0.75rem;
  vertical-align: middle;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.tbl-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
}

.tbl-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--c-text);
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.18s;
}

.tbl-link:hover .tbl-title {
  color: var(--c-purple-light);
}

.tbl-desc {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}

.card-date {
  font-size: 0.78rem;
  color: var(--c-brown-light);
  margin-top: 0.35rem;
  display: block;
}

/* ============================================================
   Article Layout Specifics
   ============================================================ */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--c-border);
}

.article-h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1.22;
  margin: 0.6rem 0 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.article-date {
  font-size: 0.82rem;
  color: var(--c-brown-light);
  font-weight: 500;
}

.date-sep {
  color: var(--c-text-muted);
}

.date-label {
  font-size: 0.82rem;
  color: var(--c-text-muted);
}

.article-hero-figure {
  margin: 0 0 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.article-breadcrumb {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
  font-size: 0.85rem;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.article-breadcrumb a {
  color: var(--c-purple-light);
  text-decoration: none;
}

.article-breadcrumb a:hover {
  text-decoration: underline;
}

.article-prose {
  margin-top: 1rem;
}

/* ============================================================
   Related block inside sidebar
   ============================================================ */
.related-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.related-title {
  font-size: 1rem;
  color: var(--c-text);
  margin-bottom: 0.6rem;
  margin-top: 0.2rem;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.related-list li a {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  display: flex;
  align-items: flex-start;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  line-height: 1.4;
  min-height: 40px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}

.related-list li a:hover {
  background: rgba(86,34,139,0.22);
  color: var(--c-text);
  text-decoration: none;
}

/* ============================================================
   About Page
   ============================================================ */
.about-portrait {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.portrait-blob {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blob-about {
  width: 160px;
  height: 160px;
}

.about-intro-card {
  flex: 1;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0.3rem 0 0.5rem;
}

.about-desc {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.about-prose {
  margin-top: 0.5rem;
}

/* ============================================================
   Privacy Page
   ============================================================ */
.privacy-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.privacy-h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0.4rem 0;
}

.privacy-prose {
  margin-top: 0.5rem;
}

/* ============================================================
   Default page
   ============================================================ */
.default-section {
  padding: 3rem 0;
}

.default-body h1 {
  margin-bottom: 1.5rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--c-border);
}

.footer-cta {
  background: linear-gradient(135deg, var(--c-surface-2), var(--c-surface-3));
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(86,34,139,0.25) 0%, transparent 65%),
              radial-gradient(ellipse at 70% 50%, rgba(139,69,19,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.footer-cta-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--c-text);
  margin: 0;
  position: relative;
  z-index: 1;
}

.footer-cta .btn-cta {
  position: relative;
  z-index: 1;
}

.footer-copy {
  padding: 1rem 1.5rem;
  text-align: center;
  background: var(--c-dark);
}

.footer-copy p {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin: 0;
}

.footer-copy a {
  color: var(--c-text-muted);
  text-decoration: none;
  margin: 0 0.4rem;
}

.footer-copy a:hover {
  color: var(--c-purple-light);
}

/* ============================================================
   Organic blob / curve decorations
   ============================================================ */
.blob-svg {
  pointer-events: none;
}

/* ============================================================
   Scroll Reveal Animations
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  .stagger-list > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1), transform 0.5s cubic-bezier(0.22,1,0.36,1);
  }

  .stagger-list.visible > *:nth-child(1) { transition-delay: 0.05s; }
  .stagger-list.visible > *:nth-child(2) { transition-delay: 0.12s; }
  .stagger-list.visible > *:nth-child(3) { transition-delay: 0.19s; }
  .stagger-list.visible > *:nth-child(4) { transition-delay: 0.26s; }
  .stagger-list.visible > *:nth-child(5) { transition-delay: 0.33s; }
  .stagger-list.visible > *:nth-child(6) { transition-delay: 0.40s; }

  .stagger-list.visible > * {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */
@media (max-width: 960px) {
  .content-section,
  .article-section,
  .about-section,
  .privacy-section,
  .default-section {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 2rem;
  }

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

  .hero-media {
    min-height: 220px;
  }

  .about-portrait {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-intro-card {
    align-items: center;
  }
}

@media (max-width: 640px) {
  :root {
    --gap: 1.25rem;
  }

  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 1rem;
  }

  .brand-tagline {
    display: none;
  }

  .nav-links {
    padding: 0.5rem 0.75rem;
    gap: 0.2rem 0.3rem;
  }

  .nav-links a {
    font-size: 0.78rem;
    padding: 0.5rem 0.65rem;
  }

  .hero-section {
    padding: 2rem 0 1.5rem;
  }

  .hero-eyebrow-bg {
    font-size: 3.5rem;
  }

  .hero-media {
    min-height: 160px;
  }

  .articles-section {
    padding: 1.5rem 0 2rem;
  }

  .tbl-index {
    width: 44px;
    padding-left: 0.75rem;
  }

  .tbl-main {
    padding: 0.85rem 0.75rem 0.85rem 0.5rem;
  }

  .tbl-title {
    font-size: 0.9rem;
  }

  .footer-cta {
    padding: 2rem 1rem;
  }

  .content-section,
  .article-section,
  .about-section,
  .privacy-section {
    padding: 1.5rem 0;
    gap: 1.75rem;
  }

  .articles-table {
    border-spacing: 0 0.4rem;
  }

  .portrait-blob {
    width: 120px;
    height: 120px;
  }

  .blob-about {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 400px) {
  .tbl-desc {
    display: none;
  }
}
