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

/* ============================================================
   CSS 变量 & 重置
   ============================================================ */
:root {
  --mint:       #b4fde1;
  --sky:        #add8e6;
  --ink:        #172620;
  --mint-d:     #7defc0;
  --sky-d:      #7dbcd4;
  --ink-l:      #2e4a3e;
  --white:      #ffffff;
  --cream:      #f4fdf8;
  --radius-sm:  12px;
  --radius-md:  18px;
  --radius-lg:  24px;
  --border:     3px solid var(--ink);
  --shadow-out: 4px 4px 0px var(--ink);
  --shadow-in:  inset -2px -2px 8px rgba(23,38,32,0.12);
  --font-title: 'Libre Bodoni', Georgia, serif;
  --font-body:  'Public Sans', system-ui, sans-serif;
  --nav-h:      112px;
  --announce-h: 38px;
  --trans-fast: 120ms ease-out;
  --trans-med:  200ms ease-out;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--announce-h));
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   公告条
   ============================================================ */
.announce-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--mint);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  padding: 0 1rem;
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: var(--announce-h);
  z-index: 190;
  background: var(--mint);
  border-bottom: var(--border);
  box-shadow: 0 4px 0 var(--ink);
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-bottom: 2px solid var(--ink);
  min-height: 0;
}

.brand-link { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.brand-logo { height: 40px; width: auto; flex-shrink: 0; }
.brand-text {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-nav-row {
  padding: 0 1.5rem;
  background: var(--sky);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* aside > nav > ul > li > a 结构 */
.desktop-nav-aside { display: block; }
.desktop-nav-aside nav ul {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  min-width: max-content;
}
.desktop-nav-aside nav ul li a.nav-link {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  border-right: 2px solid var(--ink);
  transition: background var(--trans-fast), color var(--trans-fast);
  min-height: 44px;
  white-space: nowrap;
}
.desktop-nav-aside nav ul li:first-child a.nav-link { border-left: 2px solid var(--ink); }
.desktop-nav-aside nav ul li a.nav-link:hover,
.desktop-nav-aside nav ul li a.nav-link:focus {
  background: var(--ink);
  color: var(--mint);
  outline: none;
}

/* ============================================================
   汉堡按钮
   ============================================================ */
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-out);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--trans-med), box-shadow var(--trans-med);
}
.burger-btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.burger-btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.burger-line {
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  display: block;
}

/* ============================================================
   全屏遮罩菜单
   ============================================================ */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.34,1.56,0.64,1);
}
.fullscreen-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.8rem;
  color: var(--mint);
  background: transparent;
  border: 2px solid var(--mint);
  border-radius: var(--radius-sm);
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: background var(--trans-fast), color var(--trans-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-close:hover { background: var(--mint); color: var(--ink); }

/* aside > nav > ul > li > a 在全屏菜单里 */
.fullscreen-nav-aside { text-align: center; width: 100%; padding: 0 1rem; }
.fullscreen-nav-aside nav ul { display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.fullscreen-nav-aside nav ul li { width: 100%; max-width: 360px; }
.fullscreen-nav-aside nav ul li a.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.8rem 2rem;
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--mint);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: background var(--trans-med), border-color var(--trans-med), color var(--trans-med), transform var(--trans-med);
  white-space: nowrap;
}
.fullscreen-nav-aside nav ul li a.nav-link:hover,
.fullscreen-nav-aside nav ul li a.nav-link:focus {
  background: var(--mint);
  color: var(--ink);
  border-color: var(--mint);
  transform: scale(1.04);
  outline: none;
}

/* ============================================================
   Hero
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, var(--mint) 0%, var(--sky) 55%, #cceeff 100%);
  overflow: hidden;
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  z-index: 2;
  will-change: transform;
  width: 100%;
}

.hero-media { margin-bottom: 2rem; }
.hero-img {
  width: min(420px, 80vw);
  height: auto;
  border-radius: var(--radius-lg);
  border: var(--border);
  box-shadow: var(--shadow-out), var(--shadow-in);
}

.hero-h1 {
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  max-width: 90vw;
  word-break: break-word;
}

.hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  font-weight: 400;
  color: var(--ink-l);
  max-width: 520px;
  width: 100%;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* 色带装饰 */
.hero-section::before {
  content: '';
  position: absolute;
  top: 30%;
  left: -10%;
  width: 120%;
  height: 3px;
  background: var(--ink);
  opacity: 0.12;
  transform: rotate(-1.5deg);
  z-index: 1;
}

/* 斜切/圆弧底边 */
.hero-arc {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  z-index: 3;
  height: 80px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* CTA 按钮 */
.clay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-out), var(--shadow-in);
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.34,1.56,0.64,1), box-shadow var(--trans-med);
  min-height: 48px;
  white-space: nowrap;
}
.clay-btn:hover { transform: translate(-3px,-3px); box-shadow: 7px 7px 0 var(--ink), var(--shadow-in); }
.clay-btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink), var(--shadow-in); }
.clay-btn:focus { outline: 3px solid var(--mint-d); outline-offset: 3px; }

/* ============================================================
   主内容区
   ============================================================ */
.site-main {
  position: relative;
  z-index: 4;
  overflow: hidden;
}

/* main > div > figure/aside 交错结构 */
.content-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-rows: auto 1fr;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  position: relative;
}

.deco-figure {
  grid-column: 1 / -1;
  height: 0;
  overflow: visible;
  position: relative;
  pointer-events: none;
}

.deco-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
}
.deco-blob-1 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--mint) 0%, var(--sky) 100%);
  top: -80px;
  right: -60px;
  filter: blur(40px);
}

.content-body {
  grid-column: 1 / 2;
  min-width: 0;
  overflow: hidden;
}

.content-aside {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-self: start;
  position: sticky;
  top: calc(var(--nav-h) + var(--announce-h) + 1rem);
  min-width: 0;
}

/* ============================================================
   Clay 卡片
   ============================================================ */
.clay-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-out), var(--shadow-in);
  padding: 1.4rem 1.25rem;
  transition: transform var(--trans-med), box-shadow var(--trans-med);
}
.clay-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink), var(--shadow-in); }

.aside-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-l);
  margin-bottom: 0.4rem;
}

.aside-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.aside-nav-list li { border-bottom: 1px solid rgba(23,38,32,0.1); }
.aside-nav-list li:last-child { border-bottom: none; }
.aside-nav-list li a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-l);
  transition: color var(--trans-fast), padding-left var(--trans-fast);
  word-break: break-all;
}
.aside-nav-list li a:hover { color: var(--ink); padding-left: 6px; }

.aside-tip { background: var(--mint); }
.aside-tip p { font-size: 0.85rem; color: var(--ink-l); line-height: 1.6; }

/* ============================================================
   正文内容样式（page.content 里的 div）
   ============================================================ */
.content-body div {
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 2px dashed rgba(23,38,32,0.15);
  scroll-margin-top: calc(var(--nav-h) + var(--announce-h) + 1rem);
  overflow: hidden;
}
.content-body div:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.content-body h2 {
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 1rem;
  word-break: break-word;
}

.content-body small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-l);
  margin-bottom: 0.35rem;
}

.content-body h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.6rem 0 0.6rem;
  word-break: break-word;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 1rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.content-body ul, .content-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }
.content-body li { margin-bottom: 0.4rem; line-height: 1.65; word-break: break-word; }

.content-body a {
  color: var(--ink-l);
  border-bottom: 2px solid var(--mint-d);
  transition: border-color var(--trans-fast), color var(--trans-fast);
  word-break: break-all;
}
.content-body a:hover { color: var(--ink); border-color: var(--ink); }

.content-body blockquote {
  border-left: 4px solid var(--mint-d);
  background: var(--mint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
}
.content-body th,
.content-body td {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(23,38,32,0.2);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ============================================================
   Scroll Reveal
   ============================================================ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 560ms ease-out, transform 560ms cubic-bezier(0.34,1.56,0.64,1);
}
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
  .hero-inner { will-change: auto; }
  html { scroll-behavior: auto; }
  .clay-btn, .clay-card, .burger-btn { transition: none; }
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--mint);
  border-top: var(--border);
  overflow: hidden;
}

.footer-top-block {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  border-bottom: 2px solid rgba(180,253,225,0.2);
}

.footer-brand-link { display: inline-block; margin-bottom: 1rem; }
.footer-brand-link .brand-text { color: var(--mint); }
.footer-tagline { font-size: 0.88rem; line-height: 1.65; color: rgba(180,253,225,0.75); max-width: 300px; word-break: break-word; }

.footer-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(180,253,225,0.5);
  margin-bottom: 0.3rem;
}

.footer-col-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 1.2rem;
}

.footer-nav-list li { border-bottom: 1px solid rgba(180,253,225,0.1); }
.footer-nav-list li:last-child { border-bottom: none; }
.footer-nav-list li a {
  display: flex;
  align-items: center;
  padding: 0.45rem 0;
  font-size: 0.85rem;
  color: rgba(180,253,225,0.75);
  transition: color var(--trans-fast), padding-left var(--trans-fast);
  min-height: 40px;
  word-break: break-word;
}
.footer-nav-list li a:hover { color: var(--mint); padding-left: 6px; }

/* footer address + ul 结构 */
.footer-address {
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(180,253,225,0.75);
  margin-bottom: 1rem;
  line-height: 1.6;
  word-break: break-all;
}
.footer-address a { color: var(--mint); border-bottom: 1px solid rgba(180,253,225,0.35); }
.footer-address a:hover { border-color: var(--mint); }

.footer-social-list { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-social-list li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.88rem;
  color: rgba(180,253,225,0.75);
  transition: color var(--trans-fast);
}
.footer-social-list li a:hover { color: var(--mint); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy { font-size: 0.8rem; color: rgba(180,253,225,0.5); }

.footer-bottom-links {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}
.footer-bottom-links li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.2rem 0.75rem;
  font-size: 0.8rem;
  color: rgba(180,253,225,0.5);
  border-left: 1px solid rgba(180,253,225,0.15);
  transition: color var(--trans-fast);
}
.footer-bottom-links li:first-child a { border-left: none; }
.footer-bottom-links li a:hover { color: var(--mint); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  .content-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .content-body { grid-column: 1; }
  .content-aside {
    grid-column: 1;
    grid-row: auto;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .clay-card { flex: 1 1 240px; min-width: 0; }

  .footer-top-block { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --nav-h: 96px; }

  .header-brand-row { padding: 0.6rem 1rem; }
  .header-nav-row { display: none; }

  .content-section { padding: 2rem 1rem 3rem; gap: 1.5rem; }

  .footer-top-block {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1rem 2rem;
  }

  .footer-bottom { padding: 1.2rem 1rem; }

  .hero-inner { padding: 3rem 1rem 5rem; }

  .announce-bar {
    font-size: 0.72rem;
    padding: 0 0.75rem;
  }

  .content-aside { flex-direction: column; }
  .clay-card { flex: 1 1 100%; }

  .fullscreen-nav-aside nav ul li a.nav-link {
    font-size: 1.1rem;
    padding: 0.7rem 1.25rem;
  }
}

@media (max-width: 400px) {
  .hero-h1 { font-size: 1.5rem; }
  .brand-text { font-size: 1rem; }
  .announce-bar span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ============================================================
   焦点可见性（无障碍）
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   内容区 div 滚动 margin
   ============================================================ */
div[id] {
  scroll-margin-top: calc(var(--nav-h) + var(--announce-h) + 1rem);
}
