/* =============================================
   照见 · 共享样式（所有页面统一使用）
   ============================================= */

:root {
  --bg: #f5f1eb;
  --surface: #fffaf2;
  --text: #241f1a;
  --text-muted: #7d7166;
  --accent: #8b7355;
  --accent-strong: #5d4730;
  --accent-light: #d8c29b;
  --border: rgba(139, 115, 85, 0.22);
  --shadow: rgba(93, 71, 48, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(216, 194, 155, 0.32), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(139, 115, 85, 0.14), transparent 30%),
    linear-gradient(135deg, #f8f3ec 0%, var(--bg) 46%, #efe6d8 100%);
  color: var(--text);
  font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  line-height: 1.75;
}

/* =============================================
   Header
   ============================================= */
header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--border);
  background: rgba(245, 241, 235, 0.92);
  backdrop-filter: blur(14px);
}

header.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

header.fixed-top ~ main,
header.fixed-top ~ section {
  padding-top: 84px;
}

header > * { flex-shrink: 0; }

#site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  min-width: 0;
}

/* =============================================
   Logo / Brand
   ============================================= */
.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--accent-strong);
  text-decoration: none;
}

.brand-main {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 6px;
}

.brand-sub {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* =============================================
   Navigation
   ============================================= */
nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  padding: 8px 12px;
  border-radius: 8px;
}

nav a:hover,
nav a:focus-visible {
  color: var(--accent-strong);
  background: rgba(139, 115, 85, 0.08);
}

nav a.active {
  color: var(--accent-strong);
  background: rgba(139, 115, 85, 0.12);
  font-weight: 500;
}

nav a.language-switch {
  margin-left: auto;
}

/* =============================================
   Container
   ============================================= */
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* =============================================
   Footer
   ============================================= */
footer {
  padding: 30px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  text-align: center;
  font-size: 14px;
}

footer a {
  color: var(--accent-strong);
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  text-decoration: underline;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 900px) {
  #site-nav {
    gap: 18px;
  }

  nav {
    gap: 10px;
  }

  nav a {
    padding: 6px 10px;
    font-size: 13px;
  }

  .brand-main {
    letter-spacing: 4px;
  }

  .brand-sub {
    display: none;
  }
}

@media (max-width: 600px) {
  #site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
  }

  nav a.language-switch {
    margin-left: 0;
  }
}