@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* ===== 全局重置 ===== */
*, *::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: 'Roboto', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #ffffff;
  color: #000000;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 无障碍：跳转到主内容 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input {
  font-family: inherit;
}

/* ===== scroll-margin for anchored sections ===== */
div[id] {
  scroll-margin-top: 110px;
}

/* ===== 站点外壳 ===== */
.site-wrapper {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 100vh;
}

/* ===== 顶部 Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000000;
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #ffffff;
}

.brand-text {
  font-family: 'Newsreader', serif;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.site-logo-img,
.site-logomark {
  height: 36px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 搜索框 */
.search-wrap {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 2px;
  overflow: hidden;
  height: 40px;
}

.search-input {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  width: 180px;
  height: 40px;
  outline: none;
  font-family: 'Roboto', sans-serif;
}

.search-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border-left: 1px solid rgba(255,255,255,0.25);
  transition: background 220ms ease;
}

.search-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* 汉堡按钮 */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  color: #ffffff;
  transition: opacity 200ms ease;
}

.hamburger:hover {
  opacity: 0.7;
}

.ham-line {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: transform 220ms ease, opacity 220ms ease;
}

.hamburger[aria-expanded="true"] .ham-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .ham-line:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .ham-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 菜单行副标题条 */
.header-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 2rem;
  font-size: 0.75rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}

/* ===== 全屏遮罩菜单 ===== */
.fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.fullscreen-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.overlay-inner {
  width: 100%;
  max-width: 700px;
  padding: 3rem 2.5rem;
  display: grid;
  gap: 2.5rem;
}

.overlay-close {
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 2px;
  transition: background 200ms ease;
}

.overlay-close:hover {
  background: rgba(255,255,255,0.1);
}

.overlay-brand {
  font-family: 'Newsreader', serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.overlay-nav nav ul {
  display: grid;
  gap: 0;
}

.overlay-nav nav ul li {
  border-top: 1px solid rgba(255,255,255,0.12);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.overlay-nav nav ul li:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.fullscreen-overlay.is-open .overlay-nav nav ul li {
  opacity: 1;
  transform: translateY(0);
}

.fullscreen-overlay.is-open .overlay-nav nav ul li:nth-child(1) { transition-delay: 60ms; }
.fullscreen-overlay.is-open .overlay-nav nav ul li:nth-child(2) { transition-delay: 100ms; }
.fullscreen-overlay.is-open .overlay-nav nav ul li:nth-child(3) { transition-delay: 140ms; }
.fullscreen-overlay.is-open .overlay-nav nav ul li:nth-child(4) { transition-delay: 180ms; }
.fullscreen-overlay.is-open .overlay-nav nav ul li:nth-child(5) { transition-delay: 220ms; }
.fullscreen-overlay.is-open .overlay-nav nav ul li:nth-child(6) { transition-delay: 260ms; }
.fullscreen-overlay.is-open .overlay-nav nav ul li:nth-child(7) { transition-delay: 300ms; }

.overlay-nav nav ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  font-family: 'Newsreader', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: color 200ms ease, padding-left 200ms ease;
}

.overlay-nav nav ul li a::after {
  content: '→';
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  transform: translateX(-8px);
}

.overlay-nav nav ul li a:hover {
  color: rgba(255,255,255,0.75);
  padding-left: 0.5rem;
}

.overlay-nav nav ul li a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.overlay-footer-note {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
  max-width: 360px;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
}

/* ===== Hero ===== */
.hero-wrap {
  position: relative;
  min-height: 45vh;
  background: #000000;
  color: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 2rem 4rem;
  align-items: center;
}

.hero-media {
  order: 2;
  overflow: hidden;
}

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

.hero-text {
  order: 1;
  display: grid;
  gap: 1.25rem;
  padding-right: 3rem;
}

.hero-h1 {
  font-family: 'Newsreader', serif;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hero-desc {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  max-width: 400px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #000000;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.8rem 1.75rem;
  border: 2px solid #ffffff;
  min-height: 44px;
  width: fit-content;
  transition: background 220ms ease, color 220ms ease;
}

.hero-cta:hover {
  background: transparent;
  color: #ffffff;
}

/* 斜切底边装饰 */
.hero-clip-decor {
  position: relative;
  height: 60px;
  flex-shrink: 0;
}

.clip-band {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* ===== 主体内容 ===== */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 4rem 2rem 5rem;
}

.content-article {
  display: grid;
  gap: 3rem;
}

.content-section {
  /* 直接子 div */
}

/* page.content 内部样式 */
.page-content-section h2 {
  font-family: 'Newsreader', serif;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #000000;
  color: #000000;
}

.page-content-section h3 {
  font-family: 'Newsreader', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.875rem;
  color: #000000;
  letter-spacing: -0.015em;
}

.page-content-section p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  color: #111111;
}

.page-content-section ul,
.page-content-section ol {
  list-style: none;
  margin-bottom: 1.25rem;
  padding-left: 0;
}

.page-content-section ul li,
.page-content-section ol li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-size: 1rem;
  line-height: 1.65;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.page-content-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 0.5rem;
  font-weight: 700;
  color: #000000;
  font-size: 0.875rem;
}

.page-content-section ol {
  counter-reset: ol-counter;
}

.page-content-section ol li {
  counter-increment: ol-counter;
}

.page-content-section ol li::before {
  content: counter(ol-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.5rem;
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #000000;
}

.page-content-section div {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.page-content-section div:last-child {
  border-bottom: none;
}

.page-content-section a {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 200ms ease;
}

.page-content-section a:hover {
  opacity: 0.6;
}

.page-content-section blockquote {
  border-left: 3px solid #000000;
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(0,0,0,0.03);
  font-style: italic;
  font-family: 'Newsreader', serif;
  font-size: 1.05rem;
}

.page-content-section table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.page-content-section th,
.page-content-section td {
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(0,0,0,0.15);
  text-align: left;
}

.page-content-section th {
  background: #000000;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

/* h2 > span 标题装饰 */
.page-content-section h2 > span,
.page-content-section h3 > span {
  display: inline;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #000000;
  color: #ffffff;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  text-decoration: none;
  color: #ffffff;
}

.footer-brand-text {
  font-family: 'Newsreader', serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.footer-brand-col .site-logo-img,
.footer-brand-col .site-logomark {
  height: 28px;
  width: auto;
  filter: invert(1);
}

.footer-desc {
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 320px;
}

.footer-nav ul {
  display: grid;
  gap: 0;
}

.footer-nav ul li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-nav ul li:first-child {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-nav ul li a {
  display: block;
  padding: 0.6rem 0;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 200ms ease, padding-left 200ms ease;
}

.footer-nav ul li a:hover {
  color: #ffffff;
  padding-left: 0.5rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
}

.footer-copy {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
}

/* ===== Stagger / Parallax 动效 ===== */
.js-stagger {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.js-stagger.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem 3rem;
  }

  .hero-media {
    display: none;
  }

  .hero-text {
    order: 1;
    padding-right: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .header-brand-row {
    padding: 0.625rem 1.25rem;
  }

  .header-menu-row {
    padding: 0.4rem 1.25rem;
  }

  .search-input {
    width: 120px;
  }

  .site-main {
    padding: 2.5rem 1.25rem 3.5rem;
  }

  .hero-inner {
    padding: 2rem 1.25rem 2.5rem;
  }

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

  .overlay-inner {
    padding: 2rem 1.5rem;
  }

  .overlay-nav nav ul li a {
    font-size: 1.25rem;
    padding: 0.9rem 0;
  }

  .footer-inner {
    padding: 2rem 1.25rem 1.5rem;
  }

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

  div[id] {
    scroll-margin-top: 90px;
  }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .js-stagger {
    opacity: 1;
    transform: none;
  }

  .overlay-nav nav ul li {
    opacity: 1;
    transform: none;
  }
}

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