@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Raleway: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: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.75;
  background: #ffffff;
  color: #000000;
  overflow-x: hidden;
}

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

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

ul, menu {
  list-style: none;
}

/* ===== 字体映射 ===== */
h1, h2, h3, h4, h5, h6,
.hero-badge, .hero-cta, .nav-pill, .anchor-link,
.aside-label, .footer-nav a, .nav-toggle {
  font-family: 'Raleway', system-ui, sans-serif;
}

/* ===== 页面容器 ===== */
.page-wrapper {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 100vh;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
}

/* 品牌图标 */
.brand-corner {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logomark,
.site-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.site-logo-text {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
}

/* 桌面导航药丸组 */
.nav-desktop {
  display: flex;
}

.nav-pills-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-pill {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
  min-height: 40px;
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.nav-pill:hover,
.nav-pill:focus-visible {
  background: #ffffff;
  color: #000000;
  outline: none;
}

/* details 移动汉堡 */
.nav-details {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  list-style: none;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle::-webkit-details-marker { display: none; }

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.2s;
}

details[open] .nav-toggle .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
details[open] .nav-toggle .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
details[open] .nav-toggle .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-details menu.nav-menu {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: #000000;
  border-top: 1px solid #333;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 99;
}

.nav-details menu.nav-menu li a {
  display: block;
  padding: 0.75rem 0;
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  border-bottom: 1px solid #222;
  min-height: 40px;
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.nav-details menu.nav-menu li a:hover {
  color: #cccccc;
}

/* ===== 粘性锚点条 ===== */
.sticky-anchor-bar {
  position: sticky;
  top: 60px;
  z-index: 90;
  background: #000000;
  border-bottom: 1px solid #333;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.anchor-bar-inner {
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 0;
}

.anchor-link {
  display: flex;
  align-items: center;
  padding: 0.55rem 1rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #aaaaaa;
  white-space: nowrap;
  border-right: 1px solid #222;
  min-height: 40px;
  transition: color 0.2s, background 0.2s;
}

.anchor-link:first-child { border-left: 1px solid #222; }

.anchor-link:hover,
.anchor-link:focus-visible {
  color: #ffffff;
  background: #111111;
  outline: none;
}

/* ===== Hero ===== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  padding-top: 60px;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.55) 50%,
    rgba(0,0,0,0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  text-align: left;
  color: #ffffff;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #ffffff;
  color: #000000;
  margin-bottom: 1.25rem;
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 780px;
  margin-bottom: 1rem;
}

.hero-desc {
  font-family: 'Lora', serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 2rem;
  color: #dddddd;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #ffffff;
  color: #000000;
  border: 2px solid #ffffff;
  min-height: 48px;
  transition: background 0.2s, color 0.2s;
}

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

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

.content-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-areas:
    "figure figure"
    "aside  body";
  gap: 0 3rem;
}

.content-figure {
  grid-area: figure;
  margin-bottom: 2.5rem;
}

.figure-rule {
  height: 4px;
  background: #000000;
  width: 100%;
}

.content-aside {
  grid-area: aside;
  border-right: 1px solid #e0e0e0;
  padding-right: 2rem;
  padding-top: 0.5rem;
}

.aside-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888888;
  margin-bottom: 1rem;
}

.aside-nav-list {
  margin-bottom: 2rem;
}

.aside-nav-list li {
  border-bottom: 1px solid #eeeeee;
}

.aside-nav-list li a {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #000000;
  transition: color 0.15s, padding-left 0.15s;
  min-height: 40px;
}

.aside-nav-list li a:hover {
  color: #555555;
  padding-left: 0.5rem;
}

.aside-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-divider {
  border: none;
  border-top: 2px solid #000000;
  margin-bottom: 1rem;
}

.aside-note {
  font-size: 0.82rem;
  line-height: 1.65;
  color: #444444;
}

/* ===== 正文区 ===== */
.content-body {
  grid-area: body;
  min-width: 0;
}

.editorial-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #111111;
}

/* 正文内标题风格 */
.editorial-body h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.5rem;
  line-height: 1.2;
}

.editorial-body h2 + hr,
.editorial-body h3 + hr {
  border: none;
  border-top: 2px solid #000000;
  margin-bottom: 1.25rem;
}

.editorial-body h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 2rem 0 0.4rem;
}

.editorial-body p {
  margin-bottom: 1.25rem;
}

.editorial-body ul,
.editorial-body ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.editorial-body li {
  margin-bottom: 0.5rem;
}

.editorial-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #000000;
  transition: opacity 0.15s;
}

.editorial-body a:hover {
  opacity: 0.6;
}

/* 首字下沉 editorial */
.editorial-body > p:first-of-type::first-letter,
.editorial-body div > p:first-of-type::first-letter {
  font-family: 'Lora', serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 0.85;
  float: left;
  margin: 0.1rem 0.15rem -0.1rem 0;
  color: #000000;
}

/* 引用块 */
.editorial-body blockquote {
  border-left: 4px solid #000000;
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  font-size: 1.15rem;
  font-style: italic;
  background: #f5f5f5;
  color: #222222;
}

/* 分隔线 */
.editorial-body hr {
  border: none;
  border-top: 1px solid #cccccc;
  margin: 2rem 0;
}

/* figure/figcaption 在正文里 */
.editorial-body figure {
  margin: 2rem 0;
}

.editorial-body figcaption {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  color: #777777;
  margin-top: 0.5rem;
  letter-spacing: 0.03em;
}

/* div 内 aside */
.editorial-body aside {
  float: right;
  width: 260px;
  margin: 0 0 1.5rem 2rem;
  padding: 1.25rem;
  background: #000000;
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
}

.editorial-body aside h3,
.editorial-body aside h4 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

/* 正文内 div 区块 */
.editorial-body div {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #e8e8e8;
}

.editorial-body div:last-child {
  border-bottom: none;
}

/* scroll-margin for anchor sections */
.editorial-body div[id],
div[id] {
  scroll-margin-top: 120px;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #000000;
  color: #ffffff;
  border-top: 3px solid #ffffff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-address {
  font-style: normal;
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #aaaaaa;
}

.footer-nav {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.footer-nav li a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888888;
  min-height: 40px;
  border-left: 1px solid #333333;
  transition: color 0.15s;
}

.footer-nav li:first-child a {
  border-left: none;
}

.footer-nav li a:hover {
  color: #ffffff;
}

/* ===== 动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  /* 交错列表 */
  .stagger-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .stagger-item.visible {
    opacity: 1;
    transform: none;
  }
  .stagger-item:nth-child(1) { transition-delay: 0.05s; }
  .stagger-item:nth-child(2) { transition-delay: 0.1s; }
  .stagger-item:nth-child(3) { transition-delay: 0.15s; }
  .stagger-item:nth-child(4) { transition-delay: 0.2s; }
  .stagger-item:nth-child(5) { transition-delay: 0.25s; }
  .stagger-item:nth-child(6) { transition-delay: 0.3s; }
  .stagger-item:nth-child(7) { transition-delay: 0.35s; }

  /* 微交互：链接下划线扫过 */
  .editorial-body a {
    background-image: linear-gradient(#000000, #000000);
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    text-decoration: none;
    transition: background-size 0.25s ease, opacity 0.15s;
  }
  .editorial-body a:hover {
    background-size: 100% 1px;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== 断点：平板 ===== */
@media (max-width: 900px) {
  .content-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "figure"
      "body"
      "aside";
  }
  .content-aside {
    border-right: none;
    border-top: 2px solid #000000;
    padding-right: 0;
    padding-top: 1.5rem;
    margin-top: 2rem;
  }
  .editorial-body aside {
    float: none;
    width: 100%;
    margin: 1.5rem 0;
  }
}

/* ===== 断点：手机 ===== */
@media (max-width: 600px) {
  .nav-desktop {
    display: none;
  }
  .nav-details {
    display: block;
  }

  .hero-h1 {
    font-size: 1.9rem;
  }
  .hero-desc {
    font-size: 0.95rem;
  }
  .hero-content {
    padding: 2rem 1.25rem 3rem;
  }

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

  .anchor-bar-inner {
    padding: 0 0.5rem;
  }
  .anchor-link {
    padding: 0.5rem 0.65rem;
    font-size: 0.65rem;
  }

  .editorial-body > p:first-of-type::first-letter,
  .editorial-body div > p:first-of-type::first-letter {
    font-size: 3rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .footer-nav {
    flex-wrap: wrap;
  }
  .footer-nav li a {
    border-left: none;
    padding-left: 0;
    padding-right: 1rem;
  }

  .hero-section {
    min-height: 100svh;
    height: 100svh;
  }
}

/* ===== 无图时 Hero 降级 ===== */
.hero-section:not(:has(.hero-img)) {
  background: #000000;
}

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