/* ==========================================================================
   FDE城市链 · 公建与共建项目区域链
   设计系统 —— 浅色 · 商业化（大厂风格：克制、留白、信息层级清晰）
   ========================================================================== */

:root {
  /* 中性色 —— 冷灰蓝，接近 TDesign / Ant Design Pro 的浅色调 */
  --c-bg:        #f5f7fa;
  --c-bg-sub:    #eef1f6;
  --c-surface:   #ffffff;
  --c-surface-2: #fafbfd;
  --c-line:      #e5e8ef;
  --c-line-2:    #d8dde8;

  --t-1: #1d2129;   /* 主文本 */
  --t-2: #4e5969;   /* 次文本 */
  --t-3: #86909c;   /* 辅助文本 */
  --t-4: #c9cdd4;   /* 占位 */

  /* 品牌蓝 —— 企业级 SaaS 主色 */
  --brand:      #1668dc;
  --brand-600:  #0e4fae;
  --brand-50:   #e8f1fd;
  --brand-100:  #d3e5fb;

  /* 业务状态色 */
  --cyan:      #0aa2c0;   /* 已覆盖 */
  --cyan-50:   #e4f5f9;
  --orange:    #e8833a;   /* 缺服务商 */
  --orange-50: #fdf0e6;
  --green:     #16a34a;
  --red:       #e34d59;

  --r-xs: 4px;
  --r-sm: 6px;
  --r:    8px;
  --r-lg: 12px;
  --r-xl: 16px;

  --sh-xs: 0 1px 2px rgba(29, 33, 41, .05);
  --sh-sm: 0 2px 8px rgba(29, 33, 41, .07);
  --sh:    0 4px 16px rgba(29, 33, 41, .08);
  --sh-lg: 0 12px 32px rgba(29, 33, 41, .12);

  --maxw: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
          "Source Han Sans SC", "Noto Sans CJK SC", system-ui,
          -apple-system, "Segoe UI", sans-serif;
  --mono: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--t-1);
  line-height: 1.65;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--brand-100); color: var(--brand-600); }

/* 顶栏细分隔线用的极淡纹理 */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 480px at 15% -6%, rgba(22, 104, 220, .07), transparent 62%),
    radial-gradient(760px 420px at 92% 2%, rgba(10, 162, 192, .06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.wrap { position: relative; z-index: 1; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   顶部导航
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { width: 34px; height: 34px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-mark {
  font-size: 17.5px; font-weight: 700; letter-spacing: .2px;
  color: var(--t-1); white-space: nowrap;
}
.brand-sub { font-size: 10.5px; color: var(--t-3); letter-spacing: .6px; white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  position: relative;
  padding: 8px 12px; border-radius: var(--r-sm);
  font-size: 14px; color: var(--t-2);
  transition: color .16s, background .16s;
  white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--brand);
  transform: scaleX(0); transition: transform .18s ease;
}
.nav-links a:hover { color: var(--brand); background: var(--brand-50); }
.nav-links a:hover::after { transform: scaleX(.55); }
.nav-links a.on { color: var(--brand); font-weight: 500; background: transparent; }
.nav-links a.on::after { transform: scaleX(1); }

/* 右侧操作区 */
.nav-sep { width: 1px; height: 18px; background: var(--c-line-2); margin: 0 8px; flex-shrink: 0; }
.user-nav { display: flex; align-items: center; gap: 2px; }
.user-nav a {
  padding: 8px 12px; border-radius: var(--r-sm);
  font-size: 14px; color: var(--t-2);
  transition: color .16s, background .16s;
}
.user-nav a:hover { color: var(--brand); background: var(--brand-50); }
.user-nav a.user-name { color: var(--t-1); font-weight: 500; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-cta {
  height: 34px; padding: 0 18px;
  display: inline-flex; align-items: center;
  border-radius: var(--r-sm); font-size: 14px; font-weight: 500;
  background: var(--brand); color: #fff;
  transition: background .16s, box-shadow .16s;
}
.nav-cta:hover { background: var(--brand-600); box-shadow: var(--sh-sm); }
.user-nav a.nav-cta { color: #fff; }
.user-nav a.nav-cta:hover { color: #fff; background: var(--brand-600); }

.nav-toggle {
  display: none; width: 38px; height: 38px; margin-left: auto;
  align-items: center; justify-content: center;
  background: var(--c-surface); border: 1px solid var(--c-line-2);
  border-radius: var(--r-sm); cursor: pointer; flex-shrink: 0;
}
.nav-toggle svg { width: 18px; height: 18px; color: var(--t-1); }
.nav-toggle:hover { border-color: var(--brand); color: var(--brand); }

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 22px;
  border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  font-family: inherit; white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s, box-shadow .16s;
}
.btn:hover { box-shadow: var(--sh-sm); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }

.btn-ghost { background: var(--c-surface); border-color: var(--c-line-2); color: var(--t-1); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-lg { height: 44px; padding: 0 28px; font-size: 15.5px; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13.5px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 52px 0 40px; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px; align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 11px; border-radius: 100px;
  background: var(--brand-50); border: 1px solid var(--brand-100);
  font-size: 12.5px; color: var(--brand-600); font-weight: 500;
  margin-bottom: 18px;
}
.hero-badge i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.28; font-weight: 700;
  margin: 0 0 18px; letter-spacing: -.4px;
  color: var(--t-1);
}
.hero h1 em { font-style: normal; color: var(--brand); }

.hero-lead {
  font-size: 15px; color: var(--t-2);
  max-width: 500px; margin: 0 0 26px; line-height: 1.8;
}
.hero-lead b { color: var(--t-1); font-weight: 600; }
.hero-lead .c { color: var(--cyan); font-weight: 600; }
.hero-lead .o { color: var(--orange); font-weight: 600; }

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-top: 44px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  overflow: hidden;
}
.hero-metrics .m {
  background: var(--c-surface);
  padding: 18px 16px;
  text-align: center;
}
.hero-metrics .n {
  font-size: 26px; font-weight: 700; line-height: 1.2;
  color: var(--t-1); font-variant-numeric: tabular-nums;
}
.hero-metrics .m:nth-child(2) .n { color: var(--cyan); }
.hero-metrics .m:nth-child(3) .n { color: var(--orange); }
.hero-metrics .m:nth-child(4) .n { color: var(--brand); }
.hero-metrics .l { font-size: 12.5px; color: var(--t-3); margin-top: 3px; }

.hero-figure {
  border-radius: var(--r-lg);
  overflow: hidden; background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh);
}
.hero-figure img { width: 100%; height: auto; }
.hero-figure figcaption {
  padding: 12px 16px; border-top: 1px solid var(--c-line);
  background: var(--c-surface-2);
  font-size: 12.5px; color: var(--t-3); line-height: 1.7;
}
.hero-figure figcaption b { color: var(--cyan); font-weight: 600; }
.hero-figure figcaption .o { color: var(--orange); }

/* ==========================================================================
   区块通用
   ========================================================================== */
section { padding: 60px 0; }
section.tight { padding: 44px 0; }

.sec-head { margin-bottom: 32px; max-width: 720px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 1.2px;
  color: var(--brand); text-transform: uppercase;
  margin-bottom: 8px;
}
.sec-head h2 {
  font-size: clamp(22px, 2.4vw, 28px); font-weight: 600;
  margin: 0 0 10px; letter-spacing: -.2px; color: var(--t-1);
}
.sec-head p { color: var(--t-2); font-size: 14.5px; margin: 0; }

/* ==========================================================================
   地图
   ========================================================================== */
.map-shell {
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.map-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--c-line);
  background: var(--c-surface-2);
}
.map-top h3 { margin: 0; font-size: 15px; font-weight: 600; }
.map-top p { margin: 3px 0 0; font-size: 12.5px; color: var(--t-3); }

.legend { display: flex; gap: 8px; flex-wrap: wrap; }
.legend-item {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--r-sm);
  font-size: 12.5px; color: var(--t-2); cursor: pointer; user-select: none;
  border: 1px solid var(--c-line); background: var(--c-surface);
  transition: border-color .16s, background .16s, opacity .16s;
}
.legend-item:hover { border-color: var(--c-line-2); }
.legend-item.off { opacity: .4; }
.legend-sw { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.legend-sw.cov { background: var(--cyan); }
.legend-sw.nee { background: var(--orange); }
.legend-sw.idl { background: #c2c9d4; }
.legend-item b { color: var(--t-1); font-weight: 600; font-variant-numeric: tabular-nums; }

.map-body { display: flex; align-items: stretch; }

.map-stage {
  flex: 1; position: relative; min-width: 0;
  height: 560px; overflow: hidden; background: var(--c-surface);
}
#chinaMap {
  position: absolute; top: 12px; left: 8px;
  width: calc(100% - 16px); height: calc(100% - 20px);
  display: block; cursor: grab; touch-action: none;
}
#chinaMap.dragging { cursor: grabbing; }

/* 省份轮廓 */
.prov-path {
  fill: #eef1f6;
  stroke: #c8cfdb;
  stroke-width: 1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  animation: drawProv 1.8s ease-out both;
}
@keyframes drawProv {
  0%   { stroke-dasharray: 2400; stroke-dashoffset: 2400; }
  100% { stroke-dasharray: 2400; stroke-dashoffset: 0; }
}

/* 城市面：浅色商务配色 */
.city-path {
  fill: #f0f2f6;
  stroke: #d5dbe4;
  stroke-width: .4;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  fill-rule: evenodd;
  transition: fill .35s ease;
  cursor: pointer;
}
.city-path:hover { stroke: var(--brand); stroke-width: 1; }

.city-path.st-covered { fill: #a8dde8; stroke: #63c2d6; }
.city-path.st-need    { fill: #f7cdab; stroke: #e8a86f; }
.city-path.st-idle    { fill: #f0f2f6; stroke: #dde2ea; }

.city-path.st-covered { animation: covPulse 3.6s ease-in-out infinite; }
@keyframes covPulse { 0%, 100% { fill: #9bd7e5; } 50% { fill: #5cc2d6; } }
.city-path.st-need    { animation: needPulse 3.6s ease-in-out infinite; }
@keyframes needPulse { 0%, 100% { fill: #f6c69f; } 50% { fill: #eb9a58; } }

/* 入场只做位移，不藏图形 */
.city-path.geo-in { animation: geoIn .7s cubic-bezier(.22, 1, .36, 1) both; }

/* 直辖市市级标记（一个点代表整座城） */
.muni-mark { cursor: pointer; }
.muni-mark .halo { fill: #0aa2c0; fill-opacity: .10; }
.muni-mark .ring { fill: #ffffff; stroke: #0aa2c0; stroke-width: 5; }
.muni-mark .dot { fill: #0aa2c0; }
.muni-mark .cap {
  font-size: 15px; font-weight: 600; fill: #0b6f88;
  text-anchor: middle; pointer-events: none;
  paint-order: stroke; stroke: #ffffff; stroke-width: 4px; stroke-linejoin: round;
}
.muni-mark:hover .halo { fill-opacity: .2; }
.muni-mark.st-need .halo { fill: #e8833a; }
.muni-mark.st-need .ring { stroke: #e8833a; }
.muni-mark.st-need .dot { fill: #e8833a; }
.muni-mark.st-need .cap { fill: #b5651f; }
.muni-mark.st-idle .halo { fill: #86909c; fill-opacity: .07; }
.muni-mark.st-idle .ring { stroke: #c9cfd9; }
.muni-mark.st-idle .dot { fill: #a8b0bd; }
.muni-mark.st-idle .cap { fill: var(--t-3); }
@keyframes geoIn { 0% { transform: translateY(6px); } 100% { transform: none; } }

.pin-dot {
  fill: #0e8fae;
  animation: dotPulse 2.6s ease-in-out infinite;
  pointer-events: none;
  filter: url(#dotShadow);
}
@keyframes dotPulse {
  0%, 100% { opacity: .9; r: 2.4; }
  50%      { opacity: .45; r: 4; }
}

.link-line {
  fill: none; stroke: rgba(22, 144, 175, .45);
  stroke-width: 1.1; vector-effect: non-scaling-stroke;
  stroke-dasharray: 5 9;
  animation: flow 3s linear infinite;
  pointer-events: none;
}
@keyframes flow { to { stroke-dashoffset: -28; } }

.ping-ring {
  fill: none; stroke: rgba(232, 131, 58, .75);
  stroke-width: 1.3; vector-effect: non-scaling-stroke;
  transform-box: fill-box; transform-origin: center;
  animation: ping 2.6s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping {
  0%   { transform: scale(.4); opacity: .9; }
  100% { transform: scale(3.6); opacity: 0; }
}

.city-label {
  font-size: 8px; fill: var(--t-2);
  text-anchor: middle; dominant-baseline: middle;
  pointer-events: none; user-select: none;
  paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 2.2px;
  font-weight: 500;
}
.city-label.lbl-cov { fill: #0b6f88; }
.city-label.lbl-nee { fill: #b5651f; }

.nanhai-box {
  position: absolute; right: 12px; bottom: 12px;
  width: 78px; border: 1px solid var(--c-line-2);
  border-radius: var(--r-xs); background: rgba(240, 245, 252, .95);
  padding: 4px 4px 0;
}
.nanhai-box svg { width: 100%; height: auto; display: block; }
.nanhai-cap {
  display: block; text-align: center; font-size: 10px; line-height: 16px;
  color: var(--t-3); letter-spacing: .3px;
}

.map-ctrl {
  position: absolute; left: 12px; bottom: 12px;
  display: flex; flex-direction: column; gap: 1px; z-index: 5;
  background: var(--c-line); border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--c-line);
}
.map-ctrl button {
  width: 32px; height: 32px;
  background: var(--c-surface); border: 0;
  color: var(--t-2); font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .16s, color .16s; font-family: inherit;
}
.map-ctrl button:hover { background: var(--brand-50); color: var(--brand); }
.map-zoomval {
  font-size: 11px; color: var(--t-3); text-align: center;
  padding: 3px 0; background: var(--c-surface);
  font-variant-numeric: tabular-nums;
}

.map-tip {
  position: absolute; z-index: 20; pointer-events: none;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r); padding: 11px 13px; min-width: 168px;
  box-shadow: var(--sh-lg); font-size: 13px;
  opacity: 0; transform: translateY(4px);
  transition: opacity .14s, transform .14s;
}
.map-tip.on { opacity: 1; transform: none; }
.map-tip h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.map-tip .row { display: flex; justify-content: space-between; gap: 14px; color: var(--t-2); font-size: 12.5px; padding: 2px 0; }
.map-tip .row b { color: var(--t-1); font-variant-numeric: tabular-nums; }
.map-tip .badge { font-size: 11px; padding: 1px 7px; border-radius: 100px; font-weight: 500; }
.map-tip .badge.cov { background: var(--cyan-50); color: #0b6f88; }
.map-tip .badge.nee { background: var(--orange-50); color: #b5651f; }
.map-tip .badge.idl { background: var(--c-bg-sub); color: var(--t-3); }
.map-tip .go { margin-top: 8px; font-size: 12px; color: var(--brand); }

.map-side {
  width: 300px; flex-shrink: 0;
  border-left: 1px solid var(--c-line);
  background: var(--c-surface-2);
  display: flex; flex-direction: column;
  height: 560px;
}
.side-hd { padding: 16px 18px 13px; border-bottom: 1px solid var(--c-line); }
.side-hd h3 { margin: 0 0 2px; font-size: 17px; font-weight: 600; }
.side-hd p { margin: 0; font-size: 12.5px; color: var(--t-3); }
.side-bd { flex: 1; overflow-y: auto; padding: 14px 18px 18px; }
.side-bd h4 { margin: 16px 0 9px; font-size: 13px; font-weight: 600; color: var(--t-2); }

.mini-card {
  display: block; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--c-surface); border: 1px solid var(--c-line);
  margin-bottom: 8px; transition: border-color .16s, box-shadow .16s;
}
.mini-card:hover { border-color: var(--brand); box-shadow: var(--sh-xs); }
.mini-card h5 { margin: 0 0 2px; font-size: 13.5px; font-weight: 600; }
.mini-card p { margin: 0; font-size: 12px; color: var(--t-3); }

.empty-tip { color: var(--t-3); font-size: 13px; text-align: center; padding: 22px 0; }

/* ==========================================================================
   双人设
   ========================================================================== */
.persona-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.persona {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--c-line); background: var(--c-surface);
  box-shadow: var(--sh-xs);
  transition: box-shadow .2s, border-color .2s;
}
.persona:hover { box-shadow: var(--sh); border-color: var(--c-line-2); }
.persona.p-cov:hover { border-color: #8fd3e0; }
.persona.p-nee:hover { border-color: #f0c096; }

.persona-media { border-bottom: 1px solid var(--c-line); background: var(--c-surface-2); }
.persona-media img { width: 100%; height: auto; }

.persona-body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; }

.persona-tag {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 12px; font-weight: 500; margin-bottom: 12px;
}
.persona.p-cov .persona-tag { background: var(--cyan-50); color: #0b6f88; }
.persona.p-nee .persona-tag { background: var(--orange-50); color: #b5651f; }

.persona h3 { margin: 0 0 4px; font-size: 21px; font-weight: 600; }
.persona .en {
  font-size: 11.5px; color: var(--t-4); letter-spacing: 1px;
  margin-bottom: 12px; text-transform: uppercase;
}
.persona > p { color: var(--t-2); font-size: 14px; margin: 0 0 18px; }

.persona ul { margin-bottom: 22px; flex: 1; }
.persona ul li {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 8px 0; font-size: 13.5px; color: var(--t-2);
  border-bottom: 1px solid var(--c-line);
}
.persona ul li:last-child { border-bottom: 0; }
.persona ul li b { color: var(--t-1); font-weight: 600; }
.tick { color: var(--cyan); flex-shrink: 0; font-weight: 700; }
.cross { color: var(--orange); flex-shrink: 0; font-weight: 700; }

/* ==========================================================================
   功能卡片
   ========================================================================== */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  padding: 22px 22px 24px; border-radius: var(--r-lg);
  background: var(--c-surface); border: 1px solid var(--c-line);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.feat:hover { box-shadow: var(--sh); border-color: var(--c-line-2); transform: translateY(-2px); }
.feat-ico {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-50); margin-bottom: 14px;
}
.feat-ico svg { width: 20px; height: 20px; stroke: var(--brand); }
.feat h4 { margin: 0 0 7px; font-size: 15.5px; font-weight: 600; }
.feat p { margin: 0; font-size: 13.5px; color: var(--t-2); }

.feat-media {
  height: 118px; margin: 0 0 16px;
  border-radius: var(--r) var(--r) 0 0;
  overflow: hidden; background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-line);
}
.feat-media img { width: 100%; height: 100%; object-fit: cover; }
.feat:has(.feat-media) { padding-top: 0; }

/* ==========================================================================
   七大区域链
   ========================================================================== */
.chain-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 20px;
  border-radius: var(--r-lg); background: var(--c-surface);
  border: 1px solid var(--c-line);
}
.chain-bar .cb-label { font-size: 13px; color: var(--t-3); }
.chain-bar .cb-total { font-size: 14px; color: var(--t-1); font-weight: 600; }
.chain-bar .cb-hint { margin-left: auto; font-size: 12.5px; color: var(--t-3); }

.chain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.chain-card {
  position: relative; display: block; width: 100%; text-align: left;
  font: inherit; color: inherit; cursor: pointer;
  padding: 18px 18px 16px; border-radius: var(--r-lg);
  background: var(--c-surface); border: 1px solid var(--c-line);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.chain-card:hover { box-shadow: var(--sh); border-color: var(--brand); transform: translateY(-2px); }
.chain-card.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.chain-card::before {
  content: ''; position: absolute; left: 0; top: 18px; bottom: 18px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--c-line-2);
}
.chain-card.st-on::before { background: var(--cyan); }
.chain-card.st-grow::before { background: var(--brand); }
.chain-card.st-boot::before { background: var(--orange); }

.chain-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.chain-name { font-size: 16px; font-weight: 600; }
.chain-en { font-size: 11px; color: var(--t-3); letter-spacing: .4px; text-transform: uppercase; }
.chain-state {
  margin-left: auto; font-size: 11.5px; font-weight: 500;
  padding: 2px 8px; border-radius: 100px;
  background: var(--c-bg-sub); color: var(--t-3);
}
.chain-card.st-on .chain-state { background: var(--cyan-50); color: #0b6f88; }
.chain-card.st-grow .chain-state { background: var(--brand-50); color: var(--brand); }
.chain-card.st-boot .chain-state { background: var(--orange-50); color: #b5651f; }
.chain-prov { font-size: 12px; color: var(--t-3); margin-bottom: 14px; min-height: 17px; }

.chain-nums { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 12px; white-space: nowrap; }
.chain-nums .n { font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -.5px; }
.chain-nums .l { font-size: 12px; color: var(--t-3); padding-bottom: 2px; }
.chain-nums .sep { width: 1px; height: 20px; align-self: flex-end; background: var(--c-line); margin: 0 2px 1px; }
.chain-nums .mini {
  font-size: 12px; color: var(--t-3); padding-bottom: 2px;
  display: inline-flex; align-items: baseline; gap: 3px;
}
.chain-nums .mini b { font-size: 15px; font-weight: 600; }
.chain-nums .cv { color: var(--cyan); }
.chain-nums .nd { color: var(--orange); }

.chain-bar-track { height: 6px; border-radius: 100px; background: var(--c-bg-sub); overflow: hidden; display: flex; }
.chain-bar-track i { display: block; height: 100%; }
.chain-bar-track i.cov { background: var(--cyan); }
.chain-bar-track i.need { background: var(--orange); }
.chain-legend { margin-top: 9px; font-size: 12px; color: var(--t-3); display: flex; gap: 12px; }
.chain-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chain-legend i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.chain-legend i.cov { background: var(--cyan); }
.chain-legend i.nee { background: var(--orange); }
.chain-legend i.idl { background: var(--c-line-2); }

/* 最新加入区域链 */
.join-feed { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.join-card {
  display: flex; flex-direction: column; gap: 9px;
  padding: 18px; border-radius: var(--r-lg);
  background: var(--c-surface); border: 1px solid var(--c-line);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.join-card:hover { box-shadow: var(--sh); border-color: var(--c-line-2); transform: translateY(-2px); }
.join-ava {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; color: #fff;
}
.join-ava.cov { background: var(--cyan); }
.join-ava.nee { background: var(--orange); }
.join-card h4 { margin: 0; font-size: 15px; font-weight: 600; }
.join-card p { margin: 0; font-size: 12.5px; color: var(--t-3); line-height: 1.6; }
.join-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.join-foot {
  margin-top: auto; padding-top: 11px; border-top: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--t-3);
}
.join-foot .role { color: var(--t-2); }
.join-foot .role.cov { color: var(--cyan); }
.join-foot .role.nee { color: var(--orange); }

/* ==========================================================================
   入驻流程
   ========================================================================== */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow-step {
  position: relative; padding: 22px 18px;
  border-radius: var(--r); background: var(--c-surface);
  border: 1px solid var(--c-line);
  transition: border-color .2s, box-shadow .2s;
}
.flow-step:hover { border-color: var(--brand-100); box-shadow: var(--sh-xs); }
.flow-num {
  width: 28px; height: 28px; border-radius: 50%; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
  background: var(--brand-50); color: var(--brand);
}
.flow-step h4 { margin: 0 0 5px; font-size: 15px; font-weight: 600; }
.flow-step p { margin: 0; font-size: 13px; color: var(--t-3); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-box {
  text-align: center; padding: 44px 32px;
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-xs);
}
.cta-box h2 { font-size: 24px; margin: 0 0 10px; font-weight: 600; }
.cta-box p { color: var(--t-2); margin: 0 0 24px; font-size: 14.5px; }

/* ==========================================================================
   页脚
   ========================================================================== */
.footer {
  border-top: 1px solid var(--c-line);
  padding: 40px 0 26px; margin-top: 20px;
  background: var(--c-surface);
}
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 36px; }
.footer h5 { margin: 0 0 13px; font-size: 13.5px; font-weight: 600; color: var(--t-1); }
.footer ul li { padding: 4px 0; }
.footer ul li a { font-size: 13.5px; color: var(--t-3); transition: color .16s; }
.footer ul li a:hover { color: var(--brand); }
.footer-desc { font-size: 13px; color: var(--t-3); margin: 12px 0 0; max-width: 340px; }
.footer-bot {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--c-line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--t-3);
}

/* ==========================================================================
   目录页 / 卡片
   ========================================================================== */
.dir-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 22px;
}
.dir-head h1 { margin: 0 0 5px; font-size: 26px; font-weight: 600; letter-spacing: -.2px; }
.dir-head p { margin: 0; color: var(--t-2); font-size: 14px; }
.dir-head .v { color: var(--brand); font-weight: 600; }

.filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 14px; margin-bottom: 20px;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r);
}
.filters input, .filters select {
  height: 34px; padding: 0 12px; border-radius: var(--r-sm);
  font-size: 13.5px; background: var(--c-surface);
  border: 1px solid var(--c-line-2); color: var(--t-1);
  font-family: inherit; outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.filters input { min-width: 240px; }
.filters input:focus, .filters select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-50);
}

.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.p-card {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--c-surface); border: 1px solid var(--c-line);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.p-card:hover { box-shadow: var(--sh); border-color: var(--c-line-2); transform: translateY(-2px); }

.p-thumb {
  position: relative; height: 132px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; color: rgba(29, 33, 41, .22);
  border-bottom: 1px solid var(--c-line);
}
.p-card.role-cov .p-thumb { background: linear-gradient(135deg, #e4f5f9, #c9e9f1); }
.p-card.role-nee .p-thumb { background: linear-gradient(135deg, #fdf0e6, #f8dcc4); }

.p-role {
  position: absolute; top: 10px; left: 10px;
  padding: 2px 9px; border-radius: 100px; font-size: 11.5px; font-weight: 500;
}
.p-card.role-cov .p-role { background: #fff; color: #0b6f88; border: 1px solid #8fd3e0; }
.p-card.role-nee .p-role { background: #fff; color: #b5651f; border: 1px solid #f0c096; }
.p-city {
  position: absolute; top: 10px; right: 10px;
  padding: 2px 9px; border-radius: 100px; font-size: 11.5px;
  background: rgba(255, 255, 255, .92); color: var(--t-2); border: 1px solid var(--c-line);
}

.p-bd { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.p-bd h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.p-bd p {
  margin: 0 0 12px; font-size: 13.5px; color: var(--t-2); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.p-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 13px; }
.p-tag {
  padding: 2px 8px; border-radius: var(--r-xs); font-size: 11.5px;
  background: var(--c-bg-sub); color: var(--t-2);
  display: inline-flex; align-items: center; gap: 4px;
}

/* 内联线性图标对齐 */
.ic { flex-shrink: 0; vertical-align: -.5px; }
.post-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.btn-ghost-sm { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.p-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--t-3);
  padding-top: 12px; border-top: 1px solid var(--c-line);
}

/* ==========================================================================
   表单
   ========================================================================== */
.form-box {
  max-width: 600px; margin: 0 auto;
  padding: 32px; border-radius: var(--r-lg);
  background: var(--c-surface); border: 1px solid var(--c-line);
  box-shadow: var(--sh-sm);
}
.form-box h2 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.form-box > p { margin: 0 0 24px; color: var(--t-2); font-size: 14px; }

.field { margin-bottom: 17px; }
.field label { display: block; font-size: 13.5px; color: var(--t-2); margin-bottom: 7px; font-weight: 500; }
.field label b { color: var(--red); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 12px; border-radius: var(--r-sm);
  background: var(--c-surface); border: 1px solid var(--c-line-2);
  color: var(--t-1); font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.field input, .field select { height: 38px; }
.field textarea { resize: vertical; min-height: 100px; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-50);
}
.field .hint { font-size: 12px; color: var(--t-3); margin-top: 5px; }

.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-opt {
  padding: 14px; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid var(--c-line-2); background: var(--c-surface);
  transition: border-color .16s, background .16s, box-shadow .16s;
  text-align: center;
}
.role-opt:hover { border-color: var(--t-4); }
.role-opt input { display: none; }
.role-opt.on { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 2px var(--brand-50); }
.role-opt .t { font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.role-opt .d { font-size: 12.5px; color: var(--t-3); }

.form-msg {
  padding: 10px 14px; border-radius: var(--r-sm); font-size: 13.5px;
  margin-bottom: 17px; display: none;
}
.form-msg.on { display: block; }
.form-msg.err { background: #fef0f0; border: 1px solid #f7c6c9; color: #c0392f; }
.form-msg.ok  { background: #f0f9f2; border: 1px solid #b8e3c4; color: #1a7f37; }

/* ==========================================================================
   吐司
   ========================================================================== */
.toast-wrap {
  position: fixed; top: 72px; right: 20px; z-index: 300;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 11px 18px; border-radius: var(--r); font-size: 13.5px;
  background: var(--c-surface); border: 1px solid var(--c-line);
  box-shadow: var(--sh-lg); max-width: 320px;
  animation: toastIn .26s cubic-bezier(.22, 1, .36, 1);
}
.toast.err { border-color: #f7c6c9; color: #c0392f; }
.toast.ok  { border-color: #b8e3c4; color: #1a7f37; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }

/* ==========================================================================
   用户主页
   ========================================================================== */
.profile-hero {
  border-radius: var(--r-lg); padding: 28px;
  border: 1px solid var(--c-line); background: var(--c-surface);
  box-shadow: var(--sh-xs); margin-bottom: 22px;
}
.ph-inner { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.ph-avatar {
  width: 80px; height: 80px; border-radius: var(--r); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: rgba(29, 33, 41, .28);
  border: 1px solid var(--c-line);
}
.profile-hero.role-cov .ph-avatar { background: linear-gradient(135deg, #e4f5f9, #c9e9f1); }
.profile-hero.role-nee .ph-avatar { background: linear-gradient(135deg, #fdf0e6, #f8dcc4); }
.ph-main { flex: 1; min-width: 260px; }
.ph-name { margin: 8px 0 10px; font-size: 26px; font-weight: 600; letter-spacing: -.3px; }
.ph-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.ph-desc { color: var(--t-2); font-size: 14px; margin: 0 0 16px; max-width: 700px; }
.ph-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.ph-stat .n { font-size: 19px; font-weight: 600; color: var(--t-1); font-variant-numeric: tabular-nums; }
.ph-stat .l { font-size: 12px; color: var(--t-3); }
.ph-actions { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; }

.btn-ghost-sm {
  height: 32px; padding: 0 14px; border-radius: var(--r-sm); font-size: 13.5px;
  border: 1px solid var(--c-line-2); color: var(--t-1);
  background: var(--c-surface); cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center;
  transition: border-color .16s, color .16s;
}
.btn-ghost-sm:hover { border-color: var(--brand); color: var(--brand); }

.profile-cols { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 22px; align-items: start; }

.post {
  padding: 20px 22px; border-radius: var(--r-lg); margin-bottom: 14px;
  background: var(--c-surface); border: 1px solid var(--c-line);
  transition: border-color .2s, box-shadow .2s;
}
.post:hover { border-color: var(--c-line-2); box-shadow: var(--sh-xs); }
.post h3 { margin: 0 0 7px; font-size: 17px; font-weight: 600; line-height: 1.5; }
.post-meta { font-size: 12.5px; color: var(--t-3); margin-bottom: 11px; display: flex; gap: 14px; flex-wrap: wrap; }
.post-body { color: var(--t-2); font-size: 14px; line-height: 1.8; }
.post-body p { margin: 0 0 11px; }
.post-body p:last-child { margin-bottom: 0; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.video-card {
  border-radius: var(--r); overflow: hidden;
  background: var(--c-surface); border: 1px solid var(--c-line);
  transition: box-shadow .2s, border-color .2s;
}
.video-card:hover { box-shadow: var(--sh-sm); border-color: var(--c-line-2); }
.video-thumb { position: relative; aspect-ratio: 16 / 9; background: #eef1f6; }
.video-thumb video { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; margin: auto;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(29, 33, 41, .18);
}
.video-play svg { margin-left: 2px; }
.video-info { padding: 11px 13px; }
.video-info h5 { margin: 0 0 3px; font-size: 14px; font-weight: 600; }
.video-info p { margin: 0; font-size: 12px; color: var(--t-3); }

.side-panel {
  padding: 18px; border-radius: var(--r-lg);
  background: var(--c-surface); border: 1px solid var(--c-line);
  margin-bottom: 14px;
}
.side-panel h4 { margin: 0 0 13px; font-size: 14.5px; font-weight: 600; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid var(--c-line); }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--t-3); }
.kv .v { color: var(--t-1); font-weight: 500; text-align: right; word-break: break-all; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-lead { max-width: none; }
  .profile-cols { grid-template-columns: 1fr; }
  .map-side { width: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-inner { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 10px; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 8px 0 4px; margin-left: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; }
  .nav-links a::after { display: none; }
  .nav-links a.on { background: var(--brand-50); }
  .nav-sep { width: auto; height: 1px; margin: 6px 12px; }
  .user-nav { flex-direction: column; align-items: stretch; gap: 2px; }
  .user-nav a { padding: 10px 12px; }
  .user-nav a.nav-cta { justify-content: center; margin: 6px 12px; }
  .nav-toggle { display: inline-flex; }
  .persona-grid, .feat-grid, .flow, .p-grid { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .map-body { flex-direction: column; }
  .map-stage { height: 440px; }
  .map-side { width: 100%; height: auto; max-height: 320px; border-left: 0; border-top: 1px solid var(--c-line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-box { padding: 24px 18px; }
  .chain-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .hero-metrics .n { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .role-pick { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  section { padding: 44px 0; }
  .filters input { min-width: 0; width: 100%; }
  .filters { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
