/* ============================================================
   茱莉精象 · OLED 暗夜极简皮肤
   Bodoni Moda（标题）+ Jost（正文）
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Jost:wght@300;400;500;600;700&display=swap');

/* ── 基础变量 ── */
:root {
  --c-bg: #000000;
  --c-surface: #121212;
  --c-surface2: #1a1a1a;
  --c-border: #2a2a2a;
  --c-text: #e8e8e8;
  --c-muted: #888888;
  --c-accent: #4a90c4;
  --c-accent2: #c4a94a;
  --c-glow-blue: 0 0 18px rgba(74,144,196,0.55);
  --c-glow-gold: 0 0 14px rgba(196,169,74,0.45);
  --c-radius: 18px;
  --c-radius-sm: 10px;
  --nav-h: 64px;
  --font-head: 'Bodoni Moda', 'Georgia', serif;
  --font-body: 'Jost', 'Helvetica Neue', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--c-bg);
}

body, .oled-body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: var(--nav-h);
}

/* scroll-margin for fixed bottom nav */
article[id] {
  scroll-margin-top: 20px;
}

/* ── 通用 ── */
a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color 0.2s var(--ease), text-shadow 0.2s var(--ease);
}
a:hover, a:focus {
  color: #fff;
  text-shadow: var(--c-glow-blue);
  outline: none;
}
a:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

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

ol, ul { list-style: none; }

/* ── 全站包裹 ── */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   全屏遮罩菜单
   ============================================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.menu-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.menu-overlay__inner {
  width: min(520px, 92vw);
  position: relative;
}

.menu-close {
  position: absolute;
  top: -56px;
  right: 0;
  width: 48px;
  height: 48px;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.menu-close span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--c-text);
  position: absolute;
}
.menu-close span:first-child { transform: rotate(45deg); }
.menu-close span:last-child  { transform: rotate(-45deg); }
.menu-close:hover { border-color: var(--c-accent); }

.overlay-nav ol {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.overlay-nav ol li a {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 500;
  color: var(--c-text);
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
  letter-spacing: 0.02em;
  transition: color 0.2s, letter-spacing 0.2s;
}
.overlay-nav ol li a:hover {
  color: var(--c-accent2);
  text-shadow: var(--c-glow-gold);
  letter-spacing: 0.06em;
}

.overlay-brand {
  margin-top: 32px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--c-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ============================================================
   Hero — 双图错位拼贴，文案右对齐，满屏 100vh
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.hero__media {
  position: relative;
  grid-column: 1;
}

.hero__collage {
  position: absolute;
  inset: 0;
}

.hero-img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--c-radius);
}
.hero-img--a {
  top: 5%;
  left: 4%;
  width: 60%;
  height: 75%;
  z-index: 1;
  box-shadow: 0 8px 40px rgba(0,0,0,0.8);
}
.hero-img--b {
  bottom: 4%;
  right: -8%;
  width: 55%;
  height: 60%;
  z-index: 2;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
  border: 1px solid var(--c-border);
}

.hero__badge {
  position: absolute;
  z-index: 10;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--c-accent);
  color: #000;
  padding: 6px 14px;
  border-radius: 100px;
  top: 8%;
  left: 8%;
}
.hero__badge--b {
  background: var(--c-accent2);
  top: auto;
  bottom: 12%;
  left: 20%;
}

.hero__copy {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 6rem 5% 6rem 4%;
  position: relative;
  z-index: 5;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.2rem;
  text-shadow: var(--c-glow-blue);
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 1.2rem;
  text-shadow: 0 0 30px rgba(74,144,196,0.3);
}

.hero__sub {
  font-size: 1rem;
  color: var(--c-muted);
  max-width: 36ch;
  margin-bottom: 1.6rem;
  line-height: 1.65;
}

.page-date {
  font-size: 0.75rem;
  color: var(--c-muted);
  margin-bottom: 2rem;
  display: block;
}

.hero__cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  background: var(--c-accent);
  padding: 14px 32px;
  border-radius: 100px;
  min-height: 48px;
  line-height: 1.4;
  transition: background 0.2s, box-shadow 0.2s;
}
.hero__cta:hover {
  background: var(--c-accent2);
  text-shadow: none;
  box-shadow: var(--c-glow-gold);
  color: #000;
}

/* 无图 Hero 退化 */
.hero__collage:empty + .hero__copy {
  grid-column: 1 / -1;
}

/* ============================================================
   主体布局：main > section（含 aside 左侧）
   ============================================================ */
.site-main {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  width: 100%;
}

/* aside 左侧 */
.site-aside {
  position: sticky;
  top: 24px;
  align-self: start;
  padding-right: 32px;
  padding-top: 4px;
}

.aside-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 16px;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.aside-links li a {
  display: block;
  font-size: 0.85rem;
  color: var(--c-muted);
  padding: 8px 12px;
  border-radius: var(--c-radius-sm);
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.aside-links li a:hover {
  color: var(--c-text);
  border-left-color: var(--c-accent);
  background: var(--c-surface);
  text-shadow: none;
}

/* section */
.site-article {
  min-width: 0;
}

.content-section {
  width: 100%;
}

/* ── page.content 内元素通用样式 ── */
.content-section h2,
.content-section h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
  margin-top: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}
.content-section h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--c-border);
}
.content-section h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--c-accent);
}

/* small 眉题紧邻 h2/h3 */
.content-section small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent2);
  margin-top: 3.5rem;
  margin-bottom: 0.3rem;
}
.content-section small + h2,
.content-section small + h3 {
  margin-top: 0;
}

.content-section p {
  margin-bottom: 1.2rem;
  color: var(--c-text);
  font-size: 1rem;
  line-height: 1.8;
}

.content-section ul,
.content-section ol {
  margin: 0 0 1.2rem 1.4rem;
  list-style: disc;
}
.content-section ol { list-style: decimal; }
.content-section li { margin-bottom: 0.5rem; line-height: 1.7; }

.content-section a {
  color: var(--c-accent);
  border-bottom: 1px solid rgba(74,144,196,0.3);
}
.content-section a:hover { border-bottom-color: var(--c-accent); }

.content-section blockquote {
  border-left: 3px solid var(--c-accent);
  padding: 12px 20px;
  margin: 1.5rem 0;
  background: var(--c-surface);
  border-radius: 0 var(--c-radius-sm) var(--c-radius-sm) 0;
  color: var(--c-muted);
}

.content-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.content-section th,
.content-section td {
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  text-align: left;
}
.content-section th {
  background: var(--c-surface);
  color: var(--c-accent2);
  font-weight: 600;
}

/* article 分隔 */
.content-section > article {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--c-border);
}
.content-section > article:last-child { border-bottom: none; }

/* ============================================================
   页脚（仅 p + small）
   ============================================================ */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 56px 5% 120px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px 48px;
  align-items: center;
}

.footer-contact {
  font-size: 0.85rem;
  color: var(--c-muted);
  grid-column: 1;
}
.footer-contact a { color: var(--c-accent); }

.footer-subscribe {
  grid-column: 2;
  display: flex;
  gap: 8px;
  align-items: center;
}
.footer-email {
  flex: 1;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--c-text);
  font-family: var(--font-body);
  min-height: 42px;
  outline: none;
  transition: border-color 0.2s;
}
.footer-email:focus { border-color: var(--c-accent); }
.footer-btn {
  background: var(--c-accent);
  color: #000;
  border: none;
  border-radius: var(--c-radius-sm);
  padding: 10px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  min-height: 42px;
  min-width: 72px;
  transition: background 0.2s;
}
.footer-btn:hover { background: var(--c-accent2); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--c-muted);
  grid-column: 1 / 3;
  grid-row: 2;
}

.footer-links {
  display: block;
  font-size: 0.75rem;
  color: var(--c-muted);
  grid-column: 3;
  grid-row: 2;
  text-align: right;
}
.footer-links a { color: var(--c-muted); }
.footer-links a:hover { color: var(--c-text); }

/* ============================================================
   底部固定导航条
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: rgba(18,18,18,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-border);
  height: var(--nav-h);
}

.bottom-nav ol {
  display: flex;
  align-items: stretch;
  height: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.bottom-nav ol li {
  flex: 1;
  display: flex;
}
.bottom-nav ol li a,
.bottom-nav ol li.bottom-nav__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
}
.bottom-nav ol li a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  padding: 8px 4px;
  text-align: center;
  line-height: 1.3;
  transition: color 0.2s;
}
.bottom-nav ol li a:hover {
  color: var(--c-accent);
  text-shadow: var(--c-glow-blue);
}

/* 汉堡按钮 */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--c-muted);
  transition: background 0.2s;
  border-radius: 2px;
}
.hamburger:hover span { background: var(--c-accent); }

/* logo-text-icon fallback */
.logo-text-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--c-accent);
  color: #000;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 8px;
}

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

@media (prefers-reduced-motion: reduce) {
  .sr { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .menu-overlay { transition: none; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }
  .hero__media {
    grid-row: 1;
    grid-column: 1;
    min-height: 45vh;
    position: relative;
  }
  .hero__copy {
    grid-column: 1;
    grid-row: 2;
    text-align: right;
    align-items: flex-end;
    padding: 3rem 6% 4rem;
  }
  .hero-img--a { width: 55%; height: 90%; top: 2%; left: 2%; }
  .hero-img--b { width: 50%; height: 75%; bottom: 2%; right: 2%; }

  .site-main {
    grid-template-columns: 1fr;
    padding: 40px 20px 60px;
  }
  .site-aside {
    position: static;
    padding-right: 0;
    margin-bottom: 32px;
  }
  .aside-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .aside-links li a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 6px 10px;
  }
  .aside-links li a:hover {
    border-bottom-color: var(--c-accent);
    border-left-color: transparent;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 6% 100px;
  }
  .footer-contact { grid-column: 1; }
  .footer-subscribe { grid-column: 1; }
  .footer-copy { grid-column: 1; grid-row: auto; }
  .footer-links { grid-column: 1; grid-row: auto; text-align: left; }
}

@media (max-width: 480px) {
  :root { --nav-h: 60px; }
  body { font-size: 16px; }
  .bottom-nav ol li a { font-size: 0.6rem; }
  .hero__title { font-size: 2rem; }
  .hero__cta { padding: 12px 24px; font-size: 0.8rem; }
  .overlay-nav ol li a { font-size: 1.6rem; }
}

@media (min-width: 1400px) {
  .site-main { max-width: 1400px; }
  .site-aside { width: 260px; }
}
