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

/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #f5efe4;
  color: #172623;
}

body {
  font-family: 'Outfit', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.65;
  background: #f5efe4;
  color: #172623;
  overflow-x: hidden;
}

/* ===== 滚动偏移（吸顶导航补偿）===== */
article[id] {
  scroll-margin-top: 80px;
}

/* ===== 公告条 ===== */
.announce-bar {
  background: #172623;
  color: #d4c4a8;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  position: sticky;
  top: 0;
  z-index: 200;
}

/* ===== 站头 ===== */
.site-header {
  position: sticky;
  top: 33px;
  z-index: 150;
  background: #d4c4a8;
  border-bottom: 2px solid #5cc6b0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 62px;
  gap: 0;
}

.header-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

.brand-logo { height: 38px; width: auto; }

.brand-text {
  font-size: 1.25rem;
  font-weight: 900;
  color: #172623;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== 桌面导航 ===== */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: space-between;
}

.nav-desktop ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

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

.nav-desktop a {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #172623;
  text-decoration: none;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: background 0.2s ease-out, color 0.2s ease-out;
  white-space: nowrap;
}

.nav-desktop a:hover {
  background: #5cc6b0;
  color: #172623;
}

/* ===== 移动导航（details + summary + menu）===== */
.nav-details {
  display: none;
  position: relative;
}

.nav-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
  background: transparent;
  transition: background 0.2s;
}

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

.nav-summary:hover { background: #5cc6b01a; }

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #172623;
  border-radius: 2px;
  transition: transform 0.2s ease-out, opacity 0.2s;
}

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

.nav-menu {
  position: absolute;
  top: 52px;
  left: 0;
  background: #d4c4a8;
  border: 2px solid #5cc6b0;
  border-radius: 10px;
  list-style: none;
  padding: 8px;
  min-width: 180px;
  box-shadow: 0 8px 24px #17262322;
  z-index: 300;
}

.nav-menu li a {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #172623;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.18s;
}

.nav-menu li a:hover { background: #5cc6b0; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #172623 60%, #1e3830 100%);
  overflow: hidden;
  padding: 80px 40px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 80%, #5cc6b030 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, #d4c4a815 0%, transparent 50%);
  pointer-events: none;
}

/* 颗粒纹理叠加 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.18;
  pointer-events: none;
}

.hero-bg-num {
  position: absolute;
  right: -0.1em;
  bottom: -0.15em;
  font-size: clamp(120px, 22vw, 280px);
  font-weight: 900;
  color: #5cc6b008;
  line-height: 1;
  letter-spacing: -0.05em;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 56px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  text-align: right;
  flex: 1;
  max-width: 580px;
}

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #5cc6b0;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-h1 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 900;
  color: #f5efe4;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.05rem;
  color: #d4c4a8;
  line-height: 1.7;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  background: #5cc6b0;
  color: #172623;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s ease-out, transform 0.2s ease-out, box-shadow 0.2s;
  box-shadow: 0 4px 14px #5cc6b040;
}

.btn-primary:hover {
  background: #4ab49e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #5cc6b055;
}

.hero-deco {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}

.hero-icon-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff0d;
  border: 1px solid #5cc6b030;
  border-radius: 14px;
  padding: 16px 20px;
  gap: 6px;
  transition: background 0.2s, transform 0.25s ease-out;
}

.hero-icon-block:hover {
  background: #5cc6b015;
  transform: translateX(-4px);
}

.hero-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.hero-icon-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #d4c4a8;
  text-transform: uppercase;
}

/* ===== 主体布局 ===== */
main {
  padding: 60px 24px;
}

.wrap {
  display: flex;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto;
  align-items: flex-start;
}

/* ===== 侧边栏 aside（内容左侧）===== */
.page-aside {
  flex-shrink: 0;
  width: 200px;
  position: sticky;
  top: 110px;
}

.aside-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #5cc6b0;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #5cc6b0;
}

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

.aside-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 10px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #172623;
  text-decoration: none;
  border-radius: 6px;
  line-height: 1.35;
  transition: background 0.18s, color 0.18s;
}

.aside-nav a:hover {
  background: #5cc6b020;
  color: #172623;
}

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

.content-article {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #172623;
}

/* 正文内 article 样式 */
.content-article article {
  margin-bottom: 72px;
  padding-bottom: 56px;
  border-bottom: 1px solid #d4c4a850;
  position: relative;
}

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

/* 正文标题层级 */
.content-article h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #172623;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
  position: relative;
}

.content-article h2::before {
  content: attr(data-seq);
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  font-weight: 900;
  color: #d4c4a8;
  line-height: 1;
  pointer-events: none;
}

.content-article .subtitle,
.content-article p.subtitle,
.content-article p.subhead,
.content-article p.desc,
.content-article p.lead {
  font-size: 1.05rem;
  color: #5cc6b0;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.content-article h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #172623;
  margin: 28px 0 10px;
}

.content-article p {
  margin-bottom: 16px;
  color: #2c3d38;
}

.content-article ul,
.content-article ol {
  padding-left: 1.5em;
  margin-bottom: 16px;
}

.content-article li {
  margin-bottom: 6px;
  line-height: 1.65;
}

.content-article a {
  color: #3fa892;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s;
}

.content-article a:hover { color: #172623; }

.content-article strong { font-weight: 700; }

/* 问答样式 */
.content-article details {
  background: #eee6d8;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
  border-left: 4px solid #5cc6b0;
}

.content-article details summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  color: #172623;
  padding: 4px 0;
}

.content-article details summary::-webkit-details-marker { display: none; }

.content-article details[open] summary {
  color: #3fa892;
  margin-bottom: 10px;
}

/* 卡片（正文内若有卡片列表）*/
.content-article .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.content-article .card {
  background: #e8dfd0;
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.22s ease-out, box-shadow 0.22s ease-out;
}

.content-article .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px #17262318;
}

/* 表格 */
.content-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.content-article th {
  background: #172623;
  color: #d4c4a8;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}

.content-article td {
  padding: 10px 14px;
  border-bottom: 1px solid #d4c4a850;
}

.content-article tr:nth-child(even) td { background: #eee6d8; }

/* 时间标签 */
.content-article time {
  font-size: 0.82rem;
  color: #8a7d6a;
  font-weight: 500;
}

/* ===== h2 + 副标题契约 ===== */
h2 + p.subtitle,
h2 + p.subhead,
h2 + p.desc,
h2 + p.lead {
  margin-top: -4px;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #172623;
  color: #d4c4a8;
}

.footer-cta {
  background: linear-gradient(90deg, #5cc6b0 0%, #3da892 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-cta-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #172623;
  flex: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  background: #172623;
  color: #d4c4a8;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.btn-secondary:hover {
  background: #0e1a18;
  transform: translateY(-2px);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand { flex-shrink: 0; }

.footer-logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.footer-logo-link .brand-logo { height: 28px; }
.footer-logo-link .brand-text {
  color: #d4c4a8;
  font-size: 1rem;
  font-weight: 900;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  flex: 1;
}

.footer-nav a {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #d4c4a8;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}

.footer-nav a:hover {
  background: #5cc6b020;
  color: #5cc6b0;
}

.footer-copy {
  font-size: 0.78rem;
  color: #7a9088;
  flex-shrink: 0;
  text-align: right;
}

/* ===== 滚动揭示动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }
  .reveal-left.visible {
    opacity: 1;
    transform: none;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-details { display: flex; }

  .site-header {
    justify-content: space-between;
    padding: 0 16px;
  }

  .header-brand { padding: 0 12px; }

  .hero {
    padding: 60px 24px 60px;
    min-height: 65vh;
  }

  .hero-inner {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 28px;
  }

  .hero-deco {
    flex-direction: row;
    gap: 12px;
  }

  .hero-content { max-width: 100%; }

  .hero-bg-num {
    font-size: clamp(80px, 30vw, 160px);
  }

  .wrap {
    flex-direction: column;
    gap: 28px;
  }

  .page-aside {
    width: 100%;
    position: static;
  }

  .aside-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .footer-cta {
    padding: 24px 20px;
  }

  .footer-row {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy { text-align: left; }
}

@media (max-width: 600px) {
  main { padding: 40px 16px; }

  .content-article h2::before { display: none; }

  .hero {
    padding: 48px 16px;
  }

  .hero-h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }

  .hero-sub { font-size: 0.95rem; }

  .hero-deco { display: none; }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px;
  }

  .announce-bar { font-size: 0.75rem; }
}

@media (max-width: 375px) {
  .hero { min-height: 60vh; }
  .hero-h1 { font-size: 1.6rem; }
}

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