@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');

/* ===== 基础重置 ===== */
*, *::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: 'Public Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: #1f1f1f;
  background: #ffffff;
  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 { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ===== 层叠变量 ===== */
:root {
  --c-white: #ffffff;
  --c-grey: #f5f5f5;
  --c-ink: #1f1f1f;
  --c-ink-60: rgba(31,31,31,0.6);
  --c-ink-10: rgba(31,31,31,0.08);
  --c-accent: #c8a96e;
  --c-accent-light: #e8d9b8;
  --radius: 4px;
  --shadow-sm: 0 2px 8px rgba(31,31,31,0.08);
  --shadow-md: 0 6px 20px rgba(31,31,31,0.12);
  --shadow-lg: 0 16px 40px rgba(31,31,31,0.16);
  --shadow-xl: 0 32px 64px rgba(31,31,31,0.22);
  --nav-h: 64px;
  --sticky-h: 44px;
  --scroll-offset: 108px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ===== scroll-margin ===== */
div[id] { scroll-margin-top: var(--scroll-offset); }

/* ===== 网站包装 ===== */
.site-wrapper { position: relative; z-index: 1; }

/* ===== 顶部 Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-ink-10);
  z-index: 100;
  transform: translateZ(0);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 2px solid var(--c-ink);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.brand-mark:hover { background: var(--c-ink); color: var(--c-white); }
.site-logo-img { width: 32px; height: 32px; object-fit: contain; }
.site-logo-text {
  font-family: 'Libre Bodoni', serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}

.main-nav { flex: 1; overflow: hidden; }
.main-nav ol {
  display: flex;
  gap: 0;
  align-items: center;
}
.main-nav ol li a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-ink);
  white-space: nowrap;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  min-height: 40px;
}
.main-nav ol li a:hover {
  background: var(--c-grey);
  color: var(--c-ink);
}
.nav-icon { font-size: 0.7rem; opacity: 0.5; }

/* 搜索框 */
.header-search { flex-shrink: 0; }
.search-form {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--c-ink-10);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-grey);
  transition: border-color var(--transition);
}
.search-form:focus-within { border-color: var(--c-ink); }
.search-form input {
  border: none;
  background: transparent;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--c-ink);
  width: 160px;
  outline: none;
}
.search-form input::placeholder { color: var(--c-ink-60); }
.search-form button {
  padding: 0.45rem 0.6rem;
  color: var(--c-ink);
  display: flex;
  align-items: center;
  min-height: 40px;
  transition: background var(--transition);
}
.search-form button:hover { background: var(--c-ink-10); }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav-toggle:hover { background: var(--c-grey); }
.nav-toggle span {
  display: block;
  width: 100%; height: 2px;
  background: var(--c-ink);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端菜单 */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-ink-10);
  z-index: 99;
  transform: translateY(-100%);
  transition: transform var(--transition);
  box-shadow: var(--shadow-lg);
}
.mobile-nav.is-open {
  transform: translateY(0);
}
.mobile-nav ol {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
  gap: 0.25rem;
}
.mobile-nav ol li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  min-height: 44px;
  transition: background var(--transition);
}
.mobile-nav ol li a:hover { background: var(--c-grey); }

/* ===== Hero 区域 ===== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--c-ink);
  margin-top: var(--nav-h);
}

.hero-layer-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31,31,31,0.85) 0%, rgba(31,31,31,0.45) 60%, rgba(31,31,31,0.7) 100%);
}

.hero-layer-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--c-white);
  padding: 0 1.5rem;
  max-width: 860px;
  transform: translateZ(0);
}

.hero-eyebrow {
  display: inline-flex;
  margin-bottom: 1.25rem;
}
.hero-eyebrow span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.8);
}

.hero-title {
  font-family: 'Libre Bodoni', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

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

/* 斜切底边 */
.hero-slash {
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 80px;
  z-index: 4;
  background: var(--c-white);
  clip-path: polygon(0 100%, 100% 100%, 100% 40%, 0 100%);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  min-height: 44px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-white);
  color: var(--c-ink);
  border: 2px solid var(--c-white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-ghost {
  background: transparent;
  color: var(--c-white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  border-color: var(--c-white);
  background: rgba(255,255,255,0.1);
}

/* ===== 粘性锚点导航条 ===== */
.sticky-nav-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: var(--c-grey);
  border-bottom: 1px solid var(--c-ink-10);
  box-shadow: var(--shadow-sm);
}
.sticky-nav-bar nav ol {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 0;
}
.sticky-nav-bar nav ol::-webkit-scrollbar { display: none; }
.sticky-nav-bar nav ol li a {
  display: flex;
  align-items: center;
  padding: 0.625rem 0.875rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--c-ink-60);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  min-height: var(--sticky-h);
  transition: color var(--transition), border-color var(--transition);
}
.sticky-nav-bar nav ol li a:hover {
  color: var(--c-ink);
  border-bottom-color: var(--c-ink);
}

/* ===== 主内容区 ===== */
.site-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.content-with-aside {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
  position: relative;
}

.content-primary { position: relative; }

/* editorial figure 层叠装饰 */
.editorial-figure {
  position: relative;
  height: 6px;
  margin-bottom: 3rem;
  overflow: visible;
}
.figure-layer {
  position: absolute;
  height: 4px;
  border-radius: 2px;
}
.figure-layer-1 {
  left: 0; width: 60%;
  background: var(--c-ink);
  z-index: 3;
}
.figure-layer-2 {
  left: 10%; width: 45%;
  background: var(--c-accent);
  top: 8px;
  z-index: 2;
  opacity: 0.6;
}
.figure-layer-3 {
  left: 5%; width: 30%;
  background: var(--c-grey);
  top: 16px;
  z-index: 1;
  border: 1px solid var(--c-ink-10);
}

/* ===== 正文内容 ===== */
.page-content { position: relative; z-index: 2; }

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
  font-family: 'Libre Bodoni', serif;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--c-ink);
}
.page-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.page-content h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.page-content h4 { font-size: 1.1rem; }

.page-content p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-ink);
}

.page-content ul, .page-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 0.5rem; line-height: 1.7; }

.page-content a {
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-color: var(--c-accent);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}
.page-content a:hover { text-decoration-color: var(--c-ink); }

.page-content strong { font-weight: 700; }
.page-content em { font-style: italic; }

/* div 内容块交错 */
.page-content div {
  padding: 3rem 0;
  border-bottom: 1px solid var(--c-ink-10);
  position: relative;
}
.page-content div:last-child { border-bottom: none; }
.page-content div:nth-child(even) {
  padding-left: 2rem;
  border-left: 3px solid var(--c-grey);
}

/* figure 在 div 内 */
.page-content div figure {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--c-ink-10);
}
.page-content div figure img {
  width: 100%;
  display: block;
}
.page-content div figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--c-ink-60);
  background: var(--c-grey);
}

/* aside 在 div 内 */
.page-content div aside {
  background: var(--c-grey);
  border-left: 3px solid var(--c-ink);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
}

/* ===== 侧边栏 ===== */
.content-aside {
  position: sticky;
  top: calc(var(--nav-h) + var(--sticky-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 2;
}

.aside-card {
  border: 1.5px solid var(--c-ink-10);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--c-white);
  position: relative;
  z-index: 2;
  transition: box-shadow var(--transition), transform var(--transition);
}
.aside-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.aside-card-accent {
  background: var(--c-grey);
  border-color: var(--c-ink-10);
}

.aside-title {
  font-family: 'Libre Bodoni', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1.5px solid var(--c-ink-10);
}
.aside-title span { display: block; }

.aside-links { display: flex; flex-direction: column; gap: 0.35rem; }
.aside-links li a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--c-ink-60);
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  min-height: 40px;
}
.aside-links li a::before {
  content: '→';
  margin-right: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.4;
  transition: opacity var(--transition), transform var(--transition);
}
.aside-links li a:hover {
  color: var(--c-ink);
}
.aside-links li a:hover::before {
  opacity: 1;
  transform: translateX(3px);
}

.aside-note {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--c-ink-60);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--c-ink);
  color: var(--c-white);
  position: relative;
  z-index: 2;
}

/* CTA大块 */
.footer-cta-block {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  position: relative;
}
.footer-cta-block::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--c-accent);
}
.footer-cta-title {
  font-family: 'Libre Bodoni', serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--c-white);
}
.footer-cta-title span { display: inline; }
.footer-cta-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.footer-cta-block .btn-primary {
  background: var(--c-white);
  color: var(--c-ink);
  border-color: var(--c-white);
}
.footer-cta-block .btn-primary:hover {
  background: var(--c-grey);
  box-shadow: 0 8px 30px rgba(255,255,255,0.15);
}

/* 页脚主栏 */
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}

.footer-brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-brand-mark .site-logo-img,
.footer-brand-mark .site-logo-text {
  color: var(--c-white);
}
.footer-brand-mark .brand-mark {
  border-color: rgba(255,255,255,0.3);
  color: var(--c-white);
}
.footer-brand-mark .brand-mark:hover {
  background: rgba(255,255,255,0.1);
}
.footer-brand-name {
  font-family: 'Libre Bodoni', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-white);
}
.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
}
.footer-address {
  font-style: normal;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
}
.footer-address a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-address a:hover { color: var(--c-white); }

.footer-col-title {
  font-family: 'Libre Bodoni', serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.25rem;
}
.footer-col-title span { display: inline; }

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}
.footer-col ul li a:hover { color: var(--c-white); }

/* 页脚底栏 */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links li a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.footer-bottom-links li a:hover { color: var(--c-white); }

/* ===== h2/h3 标题装饰 span ===== */
h2 > span, h3 > span {
  display: inline;
  position: relative;
}
.aside-title > span::after,
.footer-col-title > span::after {
  content: none;
}

/* ===== Hover 微动效 ===== */
.stagger-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ===== 响应式：平板 ===== */
@media (max-width: 1024px) {
  .content-with-aside {
    grid-template-columns: 1fr 260px;
    gap: 2rem;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-col-brand { grid-column: 1 / -1; }
}

/* ===== 响应式：手机 ===== */
@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
    --scroll-offset: 116px;
  }

  /* 导航 */
  .main-nav { display: none; }
  .header-search { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; }

  /* Hero */
  .hero-section { height: 100svh; min-height: 500px; }
  .hero-slash { height: 48px; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* sticky nav */
  .sticky-nav-bar nav ol { padding: 0 1rem; }
  .sticky-nav-bar nav ol li a { padding: 0.5rem 0.625rem; font-size: 0.8rem; }

  /* main */
  .site-main { padding: 2.5rem 1rem 3rem; }

  /* aside 移到底部 */
  .content-with-aside {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .content-aside {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .aside-card { flex: 1 1 280px; }

  /* 正文偶数 div 取消缩进 */
  .page-content div:nth-child(even) {
    padding-left: 0;
    border-left: none;
    border-top: 3px solid var(--c-grey);
  }

  /* 页脚 */
  .footer-cta-block { padding: 3rem 1rem; }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1rem 2rem;
  }
  .footer-col-brand { grid-column: auto; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 375px) {
  .hero-title { font-size: 1.9rem; }
  .sticky-nav-bar nav ol li a { font-size: 0.75rem; padding: 0.5rem 0.5rem; }
}

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