/* 部落先锋官方门户 · 浅色专业站 */
:root {
  --bg: #f3f5f7;
  --card: #ffffff;
  --ink: #111827;
  --muted: #5b6573;
  --line: #e2e8f0;
  --em: #047857;
  --em2: #059669;
  --ink2: #1f2937;
  --max: 1180px;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Space Grotesk", "Noto Sans SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    linear-gradient(180deg, #eef7f3 0%, var(--bg) 32%, #f5f6f8 100%);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.strip {
  background: #064e3b;
  color: #d1fae5;
  font-size: 12px;
}
.strip-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img {
  width: 40px; height: 40px; border-radius: 12px;
  object-fit: cover; border: 1px solid var(--line);
}
.brand b { display: block; font-family: var(--display); font-size: 17px; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.burger {
  margin-left: auto; display: none;
  border: 1px solid var(--line); background: #fff;
  border-radius: 8px; padding: 8px 12px; cursor: pointer;
}
.nav {
  display: flex; flex-wrap: wrap; gap: 2px 6px;
  align-items: center; flex: 1; justify-content: flex-end;
}
.nav a { font-size: 14px; color: var(--muted); padding: 6px 8px; border-radius: 8px; }
.nav a:hover, .nav a.on { color: var(--em); background: rgba(4,120,87,0.08); }
.nav .cta {
  background: linear-gradient(135deg, #047857, #10b981);
  color: #fff !important; font-weight: 700; padding: 8px 14px;
}
.mast {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 8px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: stretch;
}
.mast-main {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(17,24,39,0.05);
}
.mast-main .pic img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.mast-main .copy { padding: 22px; }
.kicker {
  color: var(--em);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mast h1 {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.22;
}
.mast .lead { margin: 0 0 16px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 16px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 14px;
}
.btn-em { background: linear-gradient(135deg, #047857, #10b981); color: #fff; }
.btn-plain { background: #fff; border-color: var(--line); color: var(--ink2); }
.side-cta {
  background: #064e3b;
  color: #ecfdf5;
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}
.side-cta h2 { margin: 0 0 10px; font-family: var(--display); font-size: 24px; color: #fff; }
.side-cta p { color: #a7f3d0; }
.side-cta .btn-em { align-self: flex-start; margin-top: 14px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 24px 18px 52px; }
.sec {
  display: flex; justify-content: space-between; align-items: end;
  gap: 12px; margin: 28px 0 14px;
}
.sec h2 { margin: 0; font-family: var(--display); font-size: 24px; }
.sec a { color: var(--em); font-size: 14px; font-weight: 700; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.chip h3 { margin: 0 0 6px; font-size: 15px; }
.chip p { margin: 0; color: var(--muted); font-size: 13px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; }
.media {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: #0b1220;
}
.media img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(17,24,39,0.08); }
.card .pic { position: relative; }
.card .pic img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card .tag {
  position: absolute; left: 10px; top: 10px;
  background: #064e3b; color: #ecfdf5;
  font-size: 11px; padding: 4px 8px; border-radius: 999px;
}
.card .txt { padding: 14px; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 13px; }
.card .meta { margin-top: 8px; color: var(--em); font-size: 12px; font-weight: 700; }
.feed { display: grid; gap: 10px; }
.row {
  display: grid; grid-template-columns: 118px 1fr; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.row .thumb img { width: 100%; height: 100%; min-height: 86px; object-fit: cover; }
.row > div:last-child { padding: 11px 12px 11px 0; }
.row .meta { color: var(--em); font-size: 12px; margin-bottom: 3px; font-weight: 700; }
.row h3 { margin: 0 0 4px; font-size: 16px; }
.row p { margin: 0; color: var(--muted); font-size: 13px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pager button {
  min-width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink);
}
.pager button.on, .pager button:hover {
  background: var(--em); border-color: var(--em); color: #fff;
}
.banner { background: #064e3b; color: #fff; }
.banner-in { max-width: var(--max); margin: 0 auto; padding: 42px 18px; }
.banner .eyebrow { color: #6ee7b7; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; }
.banner h1 { margin: 8px 0 10px; font-family: var(--display); font-size: clamp(26px, 3.4vw, 38px); }
.banner p { margin: 0; max-width: 640px; color: #a7f3d0; }
.slot {
  min-height: 128px; margin: 16px 0;
  border: 1px dashed rgba(4,120,87,0.35);
  border-radius: 12px; background: rgba(4,120,87,0.04);
}
.fig {
  margin: 16px 0 22px; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; background: #0b1220;
}
.fig img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.fig figcaption {
  padding: 10px 12px; color: var(--muted); font-size: 12px;
  background: #fff; border-top: 1px solid var(--line);
}
.layout-doc { display: grid; grid-template-columns: 1fr 250px; gap: 22px; }
.doc-hd { margin-bottom: 16px; }
.doc-hd .meta { color: var(--em); font-size: 13px; font-weight: 700; }
.doc-hd h1 {
  margin: 8px 0 10px; font-family: var(--display);
  font-size: clamp(24px, 3vw, 34px); line-height: 1.25;
}
.doc-hd .lead { margin: 0; color: var(--muted); }
.doc h2 { margin: 24px 0 10px; font-family: var(--display); font-size: 21px; }
.doc p, .doc li { color: #374151; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.crumbs a:hover { color: var(--em); }
.aside {
  align-self: start; position: sticky; top: 76px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 14px;
}
.aside h3 { margin: 0 0 8px; font-size: 14px; color: var(--em); }
.aside a { display: block; padding: 5px 0; font-size: 13px; color: var(--muted); }
.aside a:hover { color: var(--em); }
.table-wrap {
  overflow-x: auto; margin: 16px 0;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.table-wrap table, table.cmp { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-wrap th, .table-wrap td, .cmp th, .cmp td {
  border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top;
}
.table-wrap th, .cmp th { background: #ecfdf5; color: var(--em); }
.steps { display: grid; gap: 10px; }
.step {
  display: grid; grid-template-columns: 34px 1fr; gap: 10px;
  padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.step i {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: #d1fae5; color: var(--em);
  font-style: normal; font-weight: 800;
}
.panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 18px;
}
.foot {
  margin-top: 8px; background: #0b1220; color: #94a3b8;
}
.foot-in {
  max-width: var(--max); margin: 0 auto; padding: 28px 18px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 18px;
}
.foot h4 { margin: 0 0 10px; color: #fff; font-family: var(--display); }
.foot a { display: block; padding: 3px 0; font-size: 13px; color: #94a3b8; }
.legal {
  max-width: var(--max); margin: 0 auto; padding: 0 18px 22px;
  color: #64748b; font-size: 12px;
}
@media (max-width: 900px) {
  .mast, .mosaic, .duo, .layout-doc, .foot-in, .row { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .row > div:last-child { padding: 0 12px 12px; }
  .burger { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .header-in.open .nav { display: flex; }
  .aside { position: static; }
}
