: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; }
}

/* ---------- 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); }

/* ---------- 分区 ---------- */
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; }

/* ---------- 站点卡片（子域入口）---------- */
.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);
}

/* ---------- 时间线 ---------- */
.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; }

/* ---------- 服务 ---------- */
.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);
}

/* ---------- 联系 ---------- */
.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); }

/* ---------- 页脚 ---------- */
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); }

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