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

/* =====================
   CSS 变量 & 重置
   ===================== */
:root {
  --bg: #fafaf8;
  --ink: #1a1a1a;
  --mid: #4a4a4a;
  --accent: #1a1a1a;
  --paper: #f0efe9;
  --paper2: #e8e7df;
  --sketch: #c8c6b8;
  --warm: #d4a843;
  --font-main: 'Lexend', 'Source Sans 3', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --radius-card: 18px;
  --nav-h: 60px;
  --announce-h: 36px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg);
}

body {
  font-family: var(--font-main);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

/* =====================
   公告条
   ===================== */
.announce-bar {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0 1rem;
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 100;
}

.announce-text { opacity: 0.92; }

/* =====================
   顶部 header
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.site-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.logo-text-mark {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  display: inline-block;
  width: 38px;
  height: 38px;
  border: 2.5px solid var(--ink);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-2deg);
}

/* 汉堡按钮 */
.hamburger-btn {
  background: none;
  border: 2px solid var(--ink);
  border-radius: 4px;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transform: rotate(1deg);
  transition: none;
}

.hamburger-btn:hover { background: var(--paper2); }

.hb-line {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 1px;
}

/* =====================
   全屏遮罩菜单
   ===================== */
.fullscreen-nav {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s, transform 0.18s;
}

.fullscreen-nav.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 490;
  background: rgba(26,26,26,0.6);
  opacity: 0;
  pointer-events: none;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.fullscreen-nav-inner {
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-brand-big {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 0.18;
  line-height: 1;
  user-select: none;
}

.nav-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: 2px solid rgba(250,250,248,0.4);
  border-radius: 4px;
  color: var(--bg);
  font-size: 1.1rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-close-btn:hover { background: rgba(250,250,248,0.1); }

.main-nav ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.main-nav li { }

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  color: var(--bg);
  text-decoration: none;
  font-size: clamp(1.15rem, 3.5vw, 1.6rem);
  font-weight: 500;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(250,250,248,0.12);
  transition: none;
}

.nav-link:hover { opacity: 0.7; }

.nav-num {
  font-size: 0.72rem;
  font-weight: 300;
  opacity: 0.45;
  letter-spacing: 0.06em;
  min-width: 2rem;
}

.nav-footer-desc {
  font-size: 0.8rem;
  opacity: 0.35;
  line-height: 1.5;
  max-width: 360px;
}

/* =====================
   Hero
   ===================== */
.hero-section {
  position: relative;
  min-height: 45vh;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.hero-bg-text {
  position: absolute;
  bottom: -0.15em;
  left: -0.05em;
  font-size: clamp(5rem, 20vw, 14rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--sketch);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  align-items: center;
}

.hero-col-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  background: var(--ink);
  color: var(--bg);
  padding: 0.25em 0.7em;
  transform: rotate(-1deg);
  display: inline-block;
}

.hero-h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.6;
  max-width: 380px;
}

.hero-cta-btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65em 1.5em;
  border: 2px solid var(--ink);
  border-radius: 3px;
  transform: rotate(0.8deg);
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
}

.hero-cta-btn:hover {
  background: var(--bg);
  color: var(--ink);
}

.hero-col-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-collage {
  position: relative;
  width: 260px;
  height: 220px;
}

.collage-card {
  position: absolute;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.collage-card-a {
  width: 160px;
  height: 160px;
  top: 0;
  left: 0;
  background: var(--paper2);
  border: 2px solid var(--ink);
  transform: rotate(-3deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-brand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collage-placeholder-a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--mid);
}

.collage-card-b {
  width: 130px;
  height: 110px;
  bottom: 0;
  right: 0;
  background: var(--ink);
  border: 2px solid var(--ink);
  transform: rotate(2deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.collage-inner-b {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.collage-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(250,250,248,0.5);
}

.collage-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bg);
  line-height: 1;
}

.collage-tape {
  position: absolute;
  top: 70px;
  left: 120px;
  width: 60px;
  height: 20px;
  background: rgba(212,168,67,0.55);
  transform: rotate(42deg);
  border-radius: 2px;
  z-index: 10;
}

/* =====================
   主体布局（main + aside）
   ===================== */
.site-main {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  align-items: start;
}

.main-article {
  min-width: 0;
}

.content-sections {
  display: block;
}

/* page.content 内的 article 样式 */
.content-sections article {
  padding: 2.5rem 0 2rem;
  border-bottom: 1.5px solid var(--paper2);
  scroll-margin-top: calc(var(--nav-h) + var(--announce-h) + 12px);
}

.content-sections article:last-child { border-bottom: none; }

.content-sections h2 {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.content-sections h2 + hr,
.content-sections h3 + hr {
  border: none;
  border-top: 2px solid var(--ink);
  margin: 0.4rem 0 1.2rem;
  width: 3rem;
}

.content-sections h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.4rem 0 0.4rem;
}

.content-sections p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--mid);
  margin-bottom: 0.8rem;
}

.content-sections ul,
.content-sections ol {
  margin: 0.6rem 0 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.content-sections li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--mid);
}

.content-sections a {
  color: var(--ink);
  font-weight: 500;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.content-sections strong { color: var(--ink); font-weight: 600; }

.content-sections table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.93rem;
}

.content-sections th {
  background: var(--ink);
  color: var(--bg);
  padding: 0.55rem 0.8rem;
  text-align: left;
  font-weight: 600;
}

.content-sections td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--paper2);
  color: var(--mid);
}

.content-sections tr:nth-child(even) td { background: var(--paper); }

/* =====================
   侧边栏 aside
   ===================== */
.site-aside {
  position: sticky;
  top: calc(var(--nav-h) + var(--announce-h) + 1rem);
  padding-left: 2rem;
  border-left: 2px solid var(--sketch);
}

.aside-inner {
  background: var(--paper);
  border: 1.5px solid var(--sketch);
  border-radius: 10px;
  padding: 1.25rem 1.1rem;
  transform: rotate(0.5deg);
}

.aside-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.aside-inner > hr {
  border: none;
  border-top: 2px solid var(--ink);
  width: 2rem;
  margin: 0.3rem 0 0.9rem;
}

.aside-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.aside-nav-link {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--mid);
  text-decoration: none;
  font-size: 0.83rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--sketch);
  line-height: 1.4;
}

.aside-nav-link:hover { color: var(--ink); }

.aside-num {
  font-size: 0.65rem;
  opacity: 0.45;
  min-width: 1.6rem;
  font-weight: 300;
}

.aside-note {
  margin-top: 0.9rem;
  font-size: 0.73rem;
  color: var(--mid);
  opacity: 0.7;
  line-height: 1.5;
  font-style: italic;
}

/* =====================
   页脚
   ===================== */
.site-footer {
  border-top: 2px solid var(--ink);
  background: var(--bg);
}

.footer-cta-section {
  background: var(--ink);
  color: var(--bg);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}

.footer-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.footer-cta-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  opacity: 0.5;
}

.footer-cta-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  transform: rotate(-0.5deg);
}

.footer-cta-section hr {
  border: none;
  border-top: 2px solid rgba(250,250,248,0.25);
  width: 3rem;
  margin: 0.2rem 0;
}

.footer-cta-desc {
  font-size: 0.92rem;
  opacity: 0.7;
  line-height: 1.6;
  max-width: 380px;
}

.footer-cta-btn {
  display: inline-block;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.65em 1.8em;
  border-radius: 4px;
  transform: rotate(0.8deg);
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

.footer-cta-btn:hover { opacity: 0.85; }

.footer-links-section {
  border-bottom: 1.5px solid var(--paper2);
  padding: 2.5rem 1.5rem;
}

.footer-links-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.65;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 0.8rem;
  border-bottom: 1.5px solid var(--sketch);
  padding-bottom: 0.4rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-nav-link {
  font-size: 0.87rem;
  color: var(--mid);
  text-decoration: none;
  padding: 0.2rem 0;
  display: block;
}

.footer-nav-link:hover { color: var(--ink); }

.footer-contact-text {
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 0.6rem;
}

.footer-email {
  font-size: 0.85rem;
  color: var(--ink);
  word-break: break-all;
}

.footer-bottom-section {
  padding: 1.25rem 1.5rem;
}

.footer-bottom-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-copy,
.footer-icp {
  font-size: 0.78rem;
  color: var(--mid);
  opacity: 0.7;
}

/* =====================
   Scroll Reveal
   ===================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================
   scroll-margin-top for sections
   ===================== */
article[id] {
  scroll-margin-top: calc(var(--nav-h) + var(--announce-h) + 10px);
}

/* =====================
   响应式
   ===================== */
@media (max-width: 900px) {
  .site-main {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem;
  }
  .site-aside {
    position: static;
    padding-left: 0;
    border-left: none;
    border-top: 2px solid var(--sketch);
    padding-top: 1.5rem;
    margin-top: 1rem;
  }
  .aside-inner { transform: none; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.25rem 1.5rem;
  }
  .hero-col-right { display: none; }
  .footer-links-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .footer-col-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root {
    --nav-h: 56px;
    --announce-h: 32px;
  }
  .hero-h1 { font-size: 1.45rem; }
  .hero-sub { font-size: 0.88rem; }
  .announce-bar { font-size: 0.72rem; }
  .site-main { padding: 1.5rem 1rem 2rem; }
  .content-sections article { padding: 1.8rem 0 1.5rem; }
  .content-sections h2 { font-size: 1.2rem; }
  .footer-links-inner { grid-template-columns: 1fr; }
  .footer-col-brand { grid-column: auto; }
  .footer-cta-section { padding: 2.5rem 1rem 2rem; }
  .footer-links-section { padding: 2rem 1rem; }
  .fullscreen-nav-inner { padding: 4rem 1.25rem 2rem; }
  .nav-link { font-size: 1.1rem; }
  .hero-cta-btn { padding: 0.6em 1.2em; font-size: 0.85rem; }
}
