:root {
  --ink: #1c1e21;
  --ink-soft: #4a4f55;
  --ink-faint: #767c84;
  --line: #e3e5e8;
  --bg: #fbfbfa;
  --card: #ffffff;
  --accent: #2f6b4f;
  --accent-soft: #eaf2ed;
  --warm: #b5763a;
  --warm-soft: #f7efe6;
  --radius: 10px;
  --maxw: 920px;
  --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", Georgia, serif;
  --font-mono: "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 250, 0.9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topnav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
.brand span { color: var(--ink-faint); font-weight: 400; }
.navlinks { display: flex; gap: 22px; }
.navlinks a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  transition: color .18s;
}
.navlinks a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .navlinks { gap: 14px; }
  .navlinks a { font-size: 13.5px; }
}
@media (max-width: 460px) {
  .topnav .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 8px; }
  .brand { width: 100%; }
  .navlinks { flex-wrap: wrap; gap: 10px 14px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  display: flex;
  align-items: flex-start;
  gap: 36px;
}
.hero-main { flex: 1; min-width: 0; }
.hero-portrait {
  width: 150px;
  height: 186px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  flex: none;
  margin-top: 6px;
}
@media (max-width: 720px) {
  .hero { flex-direction: column-reverse; align-items: flex-start; gap: 24px; }
  .hero-portrait { width: 110px; height: 137px; margin-top: 0; }
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 5.2vw, 46px);
  line-height: 1.25;
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero .sub {
  font-size: 17.5px;
  color: var(--ink-soft);
  max-width: 660px;
  margin: 0 0 30px;
}
.hero .sub strong { color: var(--ink); font-weight: 600; }
.tagrow { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }
.tag {
  font-size: 13px;
  padding: 5px 13px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #d5e5db;
  white-space: nowrap;
}
.tag.warm { background: var(--warm-soft); color: var(--warm); border-color: #eddfcd; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: transform .16s, box-shadow .16s, background .16s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--ink-faint); }

/* ---------- 主站专属：Hero 卡片 ---------- */
.home .hero { padding: 72px 0 68px; }

.home .hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 52px;
  align-items: start;
  padding: 52px 52px 46px;
  border-radius: 18px;
  background:
    radial-gradient(1100px 420px at 8% -30%, #e9f0ea 0%, rgba(233, 240, 234, 0) 62%),
    radial-gradient(760px 340px at 98% 8%, #f4ece1 0%, rgba(244, 236, 225, 0) 60%),
    var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(28, 30, 33, .07);
}

.home .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 15px 6px 12px;
  margin-bottom: 22px;
}
.home .hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 79, .16);
  flex: none;
}

.home .hero h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.22;
  margin: 0 0 20px;
  letter-spacing: -0.015em;
}
.home .hero .sub {
  font-size: 16.5px;
  max-width: none;
  margin: 0 0 30px;
  line-height: 1.8;
}

.home .hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 22px 0 26px;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.home .stat { display: flex; flex-direction: column; gap: 2px; }
.home .stat .num {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.home .stat .lbl {
  font-size: 13px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}

.home .hero-side { display: flex; flex-direction: column; gap: 16px; }
.home .hero-portrait {
  width: 100%;
  height: 268px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-top: 0;
  box-shadow: 0 12px 30px rgba(28, 30, 33, .12);
}
.home .hero-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.home .hero-tags .tag { font-size: 12px; padding: 4px 11px; }

.home .btn-primary {
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(47, 107, 79, .22);
}
.home .btn-primary:hover { box-shadow: 0 8px 22px rgba(47, 107, 79, .3); }

@media (max-width: 860px) {
  .home .hero-card {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 30px 34px;
  }
  .home .hero-portrait { height: 220px; max-width: 220px; }
  .home .hero-stats { gap: 28px; }
}

/* ---------- 分区 ---------- */
section { padding: 56px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }
.sec-head { margin-bottom: 30px; }
.sec-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.sec-head h2 {
  font-family: var(--font-serif);
  font-size: 25px;
  margin: 0 0 10px;
  font-weight: 600;
}
.sec-head p { color: var(--ink-faint); margin: 0; font-size: 15px; }

/* ---------- 主站专属：分区标题左侧色条 ---------- */
.home .sec-head { position: relative; padding-left: 18px; }
.home .sec-head::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 3px; height: 26px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(47, 107, 79, .25));
}
.home .sec-head h2 { font-size: 28px; }

/* ---------- 站点卡片（子域入口）---------- */
.sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 16px; }
.site {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.site:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.07); border-color: var(--accent); }
.site .stitle { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.site h3 { margin: 0; font-size: 17px; font-weight: 600; }
.site .arrow { color: var(--ink-faint); font-size: 15px; transition: transform .18s; }
.site:hover .arrow { transform: translateX(3px); color: var(--accent); }
.site .host { font-family: var(--font-mono); font-size: 12px; color: var(--accent); display: block; margin-bottom: 10px; }
.site p { margin: 0 0 14px; font-size: 14.5px; color: var(--ink-soft); }
.site .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12px;
  padding: 3px 9px;
  background: #f2f3f4;
  color: var(--ink-faint);
  border-radius: 5px;
  font-family: var(--font-mono);
}

/* ---------- 主站专属：子站卡片顶部色条 ---------- */
.home .sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home .site {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 24px;
}
.home .site::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--accent);
  opacity: .75;
  transition: opacity .18s;
}
.home .site:nth-child(2)::before { background: var(--warm); }
.home .site:nth-child(3)::before { background: #3c5a8a; }
.home .site:nth-child(4)::before { background: #6b4f8a; }
.home .site:hover::before { opacity: 1; }
.home .site h3 { font-size: 18.5px; }

@media (max-width: 640px) {
  .home .sites { grid-template-columns: 1fr; }
}

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 1px; background: var(--line);
}
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute; left: -25px; top: 9px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.tl-period { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); margin-bottom: 5px; }
.tl-item h4 { margin: 0 0 4px; font-size: 16.5px; font-weight: 600; }
.tl-item .org { color: var(--accent); font-size: 14px; margin-bottom: 7px; }
.tl-item ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14.5px; }
.tl-item li { margin-bottom: 4px; }

/* ---------- 主站专属：时间线卡片化 ---------- */
.home .tl-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px 18px;
  margin-bottom: 14px;
  transition: border-color .18s, box-shadow .18s;
}
.home .tl-item:hover { border-color: #c9d6ce; box-shadow: 0 6px 20px rgba(0,0,0,.05); }
.home .tl-item::before {
  left: -30px; top: 26px;
  width: 10px; height: 10px;
  background: var(--card);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.home .tl-item h4 { font-size: 17.5px; }
.home .tl-item .org { font-weight: 500; }

/* ---------- 服务 ---------- */
.services { display: grid; gap: 14px; }
.svc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
}
.svc .icon {
  width: 44px; height: 44px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.svc h3 { margin: 0 0 5px; font-size: 17px; font-weight: 600; }
.svc p { margin: 0 0 8px; color: var(--ink-soft); font-size: 14.5px; }
.svc .note { font-size: 13px; color: var(--ink-faint); font-family: var(--font-mono); }

/* ---------- 能力 ---------- */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.cap h3 { font-size: 16px; margin: 0 0 10px; font-weight: 600; }
.cap p { margin: 0 0 12px; font-size: 14.5px; color: var(--ink-soft); }
.klist { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.klist li {
  font-size: 13px; padding: 4px 11px; border-radius: 6px;
  background: #f2f3f4; color: var(--ink-soft);
}

/* ---------- 主站专属：能力卡片 ---------- */
.home .cap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.home .cap:hover {
  border-color: #c9d6ce;
  box-shadow: 0 8px 26px rgba(0,0,0,.06);
  transform: translateY(-2px);
}
.home .cap h3 {
  font-size: 17px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.home .klist li {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #d5e5db;
}

/* ---------- 联系 ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cbox {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.cbox .clabel {
  font-size: 12.5px; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px;
}
.cbox a { color: var(--accent); text-decoration: none; font-size: 15px; word-break: break-all; }
.cbox a:hover { text-decoration: underline; }
.cbox p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 主站专属：联系方式卡片 ---------- */
.home .cbox {
  position: relative;
  padding: 22px 22px 20px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.home .cbox:hover {
  border-color: #c9d6ce;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  transform: translateY(-2px);
}
.home .cbox::after {
  content: "";
  position: absolute;
  right: 20px; top: 22px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .3;
}
.home .cbox:first-child::after { opacity: .9; box-shadow: 0 0 0 3px rgba(47,107,79,.16); }

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
  color: var(--ink-faint);
  font-size: 13.5px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
footer a { color: var(--ink-faint); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ---------- 主站专属：页面底纹 ---------- */
.home {
  background:
    radial-gradient(900px 500px at 82% -6%, rgba(47, 107, 79, .05) 0%, rgba(47, 107, 79, 0) 60%),
    radial-gradient(700px 420px at 6% 4%, rgba(181, 118, 58, .045) 0%, rgba(181, 118, 58, 0) 58%),
    var(--bg);
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  section { padding: 42px 0; }
  .svc { grid-template-columns: 1fr; gap: 12px; }
}
