:root {
  --c-1: #ffe8d6;
  --c-2: #ddbea9;
  --c-3: #cb997e;
  --c-4: #b7b7a4;
  --c-5: #a5a58d;
  --c-6: #43A36E; /* 主题主色 */

  --bg: #ffffff;
  --text: #1b1b1b;
  --muted: #666;
  --shadow: rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid #eee;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  color: var(--c-6);
  font-weight: 700;
  text-decoration: none;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
}

.logo-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  display: inline-block;
  object-fit: contain;
}

.site-nav { display: flex; }
.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav-list a:hover { background: var(--c-1); }
/* 将鼠标悬停背景改为绿色半透明，提高一致性 */
.nav-list a:hover { background: rgba(67, 163, 110, 0.10); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(67, 163, 110, 0.35);
  border-radius: 8px;
  padding: 8px;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-6);
  margin: 4px 0;
}

.main { display: block; }

.hero {
  background: linear-gradient(180deg, rgba(67, 163, 110, 0.12), transparent);
  padding: 24px 0 16px;
}
.slider {
  position: relative;
  height: clamp(220px, 32vw, 420px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 400ms ease;
}
.slide.active { opacity: 1; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.slide-content {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 28px;
  color: #1b1b1b;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(140%) blur(8px);
  padding: 16px 18px;
  border-radius: 12px;
}
.slide-content h1 { margin: 0 0 6px; font-size: clamp(20px, 2.2vw, 28px); }
.slide-content p { margin: 0; color: var(--muted); }

.bg-1 { background-color: var(--c-3); background-image: url('../assets/hero/slide-1.svg'); }
.bg-2 { background-color: var(--c-6); background-image: url('../assets/hero/slide-2.svg'); }
.bg-3 { background-color: var(--c-4); background-image: url('../assets/hero/slide-3.svg'); }
.bg-4 { background-color: var(--c-1); background-image: url('../assets/hero/slide-4.svg'); }

.slider-controls {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;
  inset: 0;
  padding: 0 8px;
}
.slider-controls .prev,
.slider-controls .next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  font-size: 22px;
  color: #333;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 10px var(--shadow);
}

.section { padding: 40px 0; }
.section { scroll-margin-top: 80px; }
#home { scroll-margin-top: 80px; }
.section.alt { background: #fafafa; }
.section-title {
  font-size: 24px;
  margin: 0 0 16px;
  color: var(--c-6);
}

.cards { display: grid; gap: 16px; }
.card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 14px var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0 0 12px; color: var(--muted); }
.card-link { color: var(--c-6); text-decoration: none; margin-top: auto; display: inline-block; padding-top: 12px; }
.card-link:hover { text-decoration: underline; }

/* Timeline */
.timeline { --timeline-x: 12px; }
.timeline { position: relative; margin-top: 8px; }
.timeline::before { content: ""; position: absolute; left: var(--timeline-x); top: 0; bottom: 0; width: 2px; background: #e6e6e6; }
.timeline-item { position: relative; display: grid; grid-template-columns: 24px 1fr; column-gap: 16px; margin-bottom: 16px; }
.timeline-marker { position: absolute; left: var(--timeline-x); top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-6); box-shadow: 0 0 0 3px #fff; border: 2px solid var(--c-6); transform: translateX(-50%); }
.timeline-content { grid-column: 2; background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 2px 14px var(--shadow); min-width: 0; }
.timeline-content h3 { margin: 0 0 6px; font-size: 18px; color: var(--text); }
.timeline-content p { margin: 0; color: var(--muted); }

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pane { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 2px 14px var(--shadow); }
.list { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.mt { margin-top: 16px; }

.highlight {
  background: linear-gradient(135deg, rgba(67, 163, 110, 0.08), rgba(67, 163, 110, 0.16));
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 18px;
}
.btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--c-6);
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
}

.site-footer {
  border-top: 1px solid #eee;
  background: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.footer-left, .footer-right { color: var(--muted); font-size: 14px; }

.video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px var(--shadow);
  background: linear-gradient(135deg, var(--c-2), var(--c-3));
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-label {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

.icp-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: center;
  padding: 8px 0 16px;
  font-size: 12px;
  color: var(--muted);
}
.icp-info a {
  color: var(--muted);
  text-decoration: none;
}
.icp-info a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid rgba(67, 163, 110, 0.25); display: none; box-shadow: 0 10px 24px var(--shadow); z-index: 30; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; padding: 8px; gap: 6px; }
  .nav-list a { padding: 12px; font-size: 16px; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .slider { height: 240px; }

  .timeline { --timeline-x: 10px; }
  .timeline-marker { width: 10px; height: 10px; top: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

/* 强化移动端与可访问性下的菜单可见性 */
.nav-list a:active,
.nav-list a:focus-visible {
  background: rgba(67, 163, 110, 0.06);
  color: var(--text);
  outline: 1px solid rgba(67, 163, 110, 0.20);
  outline-offset: 2px;
}
