@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Merriweather:wght@300;400;700&display=swap');

/* ============================================================
   CSS 自定义属性
   ============================================================ */
:root {
  --mint: #b4fde1;
  --sky: #add8e6;
  --dark: #172620;
  --dark-80: rgba(23, 38, 32, 0.8);
  --dark-40: rgba(23, 38, 32, 0.4);
  --mint-dark: #7de8c0;
  --sky-dark: #7ab8cc;
  --white: #ffffff;
  --off-white: #f5fdf9;
  --card-bg: #e8fdf4;
  --card-border: 3px solid var(--dark);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-clay: 4px 6px 0px var(--dark);
  --shadow-inner: inset -2px -2px 8px rgba(23,38,32,0.12);
  --shadow-hover: 6px 8px 0px var(--dark);
  --font-display: 'Abril Fatface', Georgia, serif;
  --font-body: 'Merriweather', 'Noto Serif SC', Georgia, serif;
  --transition-soft: 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-height: 72px;
  --topbar-height: 36px;
  --scroll-offset: 116px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
  background-color: var(--off-white);
  overflow-x: hidden;
}

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

a {
  color: var(--dark);
  text-decoration: none;
  transition: color var(--transition-soft);
}

a:hover { color: #0a5a3a; }

ol, ul { list-style: none; }

/* ============================================================
   Scroll margin for anchor sections
   ============================================================ */
section[id] {
  scroll-margin-top: var(--scroll-offset);
}

/* ============================================================
   顶部公告条
   ============================================================ */
.topbar {
  background: var(--dark);
  color: var(--mint);
  text-align: center;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 2px solid var(--mint-dark);
}

.topbar-text {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 1rem;
}

/* ============================================================
   Header & Navigation
   顶部横向，品牌居中，菜单分列两侧
   nav > ol > li > a（有序）
   ============================================================ */
.site-header {
  background: linear-gradient(135deg, var(--mint) 0%, var(--sky) 100%);
  border-bottom: 3px solid var(--dark);
  position: sticky;
  top: var(--topbar-height);
  z-index: 190;
  box-shadow: var(--shadow-clay);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-height);
  gap: 1rem;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.nav-right {
  justify-content: flex-end;
}

.nav-left > li > a,
.nav-right > li > a {
  display: flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.55rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: all var(--transition-soft);
  white-space: nowrap;
  min-height: 44px;
}

.nav-left > li > a:hover,
.nav-right > li > a:hover {
  background: var(--dark);
  color: var(--mint);
  border-color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 rgba(23,38,32,0.3);
}

.nav-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  border-radius: var(--radius-sm);
  border: 3px solid var(--dark);
  box-shadow: var(--shadow-clay);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--dark);
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: var(--radius-sm);
  padding: 0.35rem 1rem;
  box-shadow: var(--shadow-clay);
  transition: box-shadow var(--transition-soft), transform var(--transition-soft);
}

.brand-text:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: var(--dark);
}

/* ============================================================
   Hero Section
   满屏 100vh，斜切底边，文案左对齐
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--dark) 0%, #1e3d30 50%, #0d2a20 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(23,38,32,0.85) 0%,
    rgba(23,38,32,0.5) 60%,
    rgba(180,253,225,0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 760px;
  margin: 0 auto 0 8vw;
  padding: 6rem 2rem 12rem 2rem;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mint);
  background: rgba(180,253,225,0.12);
  border: 2px solid var(--mint-dark);
  border-radius: var(--radius-lg);
  padding: 0.35rem 1.1rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.08em;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 3px 4px 0px rgba(23,38,32,0.6);
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 斜切分割线 */
.hero-skew-divider {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--off-white);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 10;
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  border: 3px solid var(--dark);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-soft);
  min-height: 48px;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--mint);
  color: var(--dark);
  box-shadow: var(--shadow-clay);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-hover);
  background: #9afdd0;
  color: var(--dark);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 0 var(--dark);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
  box-shadow: 4px 6px 0px rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-cta {
  background: var(--mint);
  color: var(--dark);
  border-color: var(--dark);
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  box-shadow: 5px 7px 0px var(--dark);
}

.btn-cta:hover {
  transform: translateY(-4px);
  box-shadow: 7px 10px 0px var(--dark);
  background: #9afdd0;
  color: var(--dark);
}

/* ============================================================
   主内容布局
   main > section > figure/aside 交错
   aside 在内容左侧
   ============================================================ */
.site-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.content-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ============================================================
   侧边栏（内容左侧）
   ============================================================ */
.site-sidebar {
  position: sticky;
  top: calc(var(--topbar-height) + var(--nav-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow-clay);
  transition: box-shadow var(--transition-soft), transform var(--transition-soft);
}

.sidebar-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.sidebar-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.sidebar-card > .subtitle {
  font-size: 0.78rem;
  color: rgba(23,38,32,0.6);
  margin-bottom: 1rem;
  font-weight: 300;
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  counter-reset: sidebar-counter;
}

.sidebar-nav-list > li {
  counter-increment: sidebar-counter;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  background: var(--white);
  border: 2px solid var(--dark);
  border-radius: var(--radius-sm);
  transition: all var(--transition-soft);
  min-height: 40px;
}

.sidebar-link::before {
  content: counter(sidebar-counter, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--mint-dark);
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.sidebar-link:hover {
  background: var(--dark);
  color: var(--mint);
  transform: translateX(3px);
}

.sidebar-tip {
  background: linear-gradient(135deg, #fff3cd, #ffe8a1);
  border-color: #b8860b;
}

.sidebar-tip .sidebar-heading { color: #7a5c00; }
.sidebar-tip > .subtitle { color: rgba(122,92,0,0.7); }

.sidebar-tip-text {
  font-size: 0.8rem;
  color: #5a4000;
  line-height: 1.6;
}

/* ============================================================
   正文内容区
   ============================================================ */
.content-main {
  min-width: 0;
}

.content-section {
  position: relative;
}

.content-figure {
  margin: 0 0 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  height: 32px;
}

.figure-deco {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.deco-circle {
  display: inline-block;
  border-radius: 50%;
  border: 3px solid var(--dark);
  box-shadow: var(--shadow-clay);
}

.deco-c1 { width: 20px; height: 20px; background: var(--mint); }
.deco-c2 { width: 28px; height: 28px; background: var(--sky); }
.deco-c3 { width: 18px; height: 18px; background: #ffe06a; }

.page-content-body {
  line-height: 1.8;
}

/* ============================================================
   page.content 内部样式
   （为CMS生成的内容区段提供充分样式）
   ============================================================ */
.page-content-body section {
  margin-bottom: 3.5rem;
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2rem;
  box-shadow: var(--shadow-clay);
  box-shadow: var(--shadow-inner), var(--shadow-clay);
  transition: box-shadow var(--transition-soft), transform var(--transition-soft);
  scroll-margin-top: var(--scroll-offset);
}

.page-content-body section:hover {
  box-shadow: var(--shadow-inner), var(--shadow-hover);
  transform: translateY(-3px);
}

.page-content-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.page-content-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--dark);
  margin: 1.5rem 0 0.5rem;
}

.page-content-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(23,38,32,0.88);
  margin-bottom: 1rem;
}

.page-content-body ul,
.page-content-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content-body ul { list-style: disc; }
.page-content-body ol { list-style: decimal; }

.page-content-body li {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 0.4rem;
  color: rgba(23,38,32,0.85);
}

.page-content-body a {
  color: #0a5a3a;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--transition-soft);
}

.page-content-body a:hover { color: var(--dark); }

.page-content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.page-content-body th,
.page-content-body td {
  border: 2px solid var(--dark);
  padding: 0.6rem 0.9rem;
  text-align: left;
}

.page-content-body th {
  background: var(--mint);
  font-weight: 700;
}

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

/* ============================================================
   页脚
   footer > section×n（多个section分区）
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: var(--mint);
  margin-top: 4rem;
  border-top: 4px solid var(--mint-dark);
}

/* 大CTA块 */
.footer-cta {
  background: linear-gradient(135deg, var(--mint) 0%, var(--sky) 100%);
  border-bottom: 3px solid var(--dark);
  padding: 3.5rem 2rem;
  text-align: center;
}

.footer-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.footer-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.footer-cta-sub {
  font-size: 1rem;
  color: rgba(23,38,32,0.75);
  margin-bottom: 1.75rem;
}

/* 三栏信息区 */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-bottom: 2px solid rgba(180,253,225,0.15);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--mint);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(180,253,225,0.3);
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-logo {
  height: 44px;
  width: auto;
  border-radius: var(--radius-sm);
  border: 3px solid var(--mint-dark);
}

.footer-brand-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--mint);
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: rgba(180,253,225,0.7);
  line-height: 1.7;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  counter-reset: footer-nav;
}

.footer-nav-list > li { counter-increment: footer-nav; }

.footer-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(180,253,225,0.8);
  transition: color var(--transition-soft), transform var(--transition-soft);
  padding: 0.3rem 0;
  min-height: 40px;
}

.footer-nav-link::before {
  content: counter(footer-nav, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--mint-dark);
  flex-shrink: 0;
}

.footer-nav-link:hover {
  color: var(--mint);
  transform: translateX(4px);
}

.footer-about-text {
  font-size: 0.85rem;
  color: rgba(180,253,225,0.7);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.footer-contact {
  font-size: 0.85rem;
  color: rgba(180,253,225,0.7);
}

.footer-email {
  color: var(--mint);
  text-decoration: underline;
}

/* 底栏 */
.footer-bottom {
  text-align: center;
  padding: 1.5rem 2rem;
}

.footer-copyright {
  font-size: 0.82rem;
  color: rgba(180,253,225,0.6);
  margin-bottom: 0.4rem;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(180,253,225,0.4);
}

/* ============================================================
   h2 + p.subtitle 标题装饰契约
   ============================================================ */
h2 + .subtitle,
h2 + p.subhead,
h2 + p.desc,
h2 + p.lead {
  font-size: 0.9rem;
  color: rgba(23,38,32,0.6);
  font-weight: 300;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.footer-cta .subtitle.footer-cta-sub {
  color: rgba(23,38,32,0.7);
  font-style: normal;
}

/* ============================================================
   动效：Scroll Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease-out, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

/* ============================================================
   响应式断点
   ============================================================ */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 220px 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
    --scroll-offset: 104px;
  }

  .main-nav {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .nav-left > li > a,
  .nav-right > li > a {
    font-size: 0.72rem;
    padding: 0.45rem 0.5rem;
    gap: 0.2em;
  }

  .nav-icon { font-size: 0.9rem; }

  .brand-text {
    font-size: 1rem;
    padding: 0.3rem 0.7rem;
  }

  .hero-content {
    margin: 0 auto;
    padding: 5rem 1.5rem 10rem;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .site-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .sidebar-card {
    flex: 1 1 280px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .site-main {
    padding: 2rem 1rem 3rem;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-height: 56px;
  }

  .topbar-text {
    font-size: 0.7rem;
  }

  .main-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    gap: 0.3rem;
  }

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

  .nav-brand { order: -1; flex-shrink: 0; }
  .nav-left, .nav-right { flex: 0 0 auto; }

  .hero-h1 { font-size: 1.9rem; }

  .hero-cta-group { flex-direction: column; }

  .btn { width: 100%; justify-content: center; }

  .page-content-body section {
    padding: 1.25rem;
  }

  .footer-cta { padding: 2.5rem 1.25rem; }
}

@media (max-width: 375px) {
  .hero-content {
    padding: 4rem 1rem 9rem;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
