﻿/* 配色、圆角和字体跟主站 shuhong-tech.cn 保持一致 */
:root {
  --page: #e8e8e8;
  --panel: #f6f6f5;
  --ink: #252525;
  --muted: #666a70;
  --line: rgba(32, 38, 48, .09);
  --blue: #4f7df0;
  --deep: #3a55c8;
  --cyan: #62c8df;
  --violet: #8f4ff0;
  --grad: linear-gradient(135deg, #66c9de, #4f70ea 58%, #8b45ef);
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 16px/1.7 var(--font);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .26) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--page);
}
a { color: inherit; text-decoration: none; }
main { max-width: 1180px; margin: 0 auto; padding: 0 20px 80px; }
h1, h2 { margin: 0; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
i, em { font-style: normal; }

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 10; background: rgba(236, 236, 236, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.seal { display: block; width: 46px; height: 46px; filter: drop-shadow(0 4px 10px rgba(190, 30, 30, .22)); }
.hero-seal { float: right; width: clamp(84px, 13vw, 150px); height: auto; margin: 4px 8px 12px 28px; filter: drop-shadow(0 12px 24px rgba(190, 30, 30, .2)); }
.panel.narrow img { display: block; margin-bottom: 16px; }
.panel.narrow .hint { margin: -8px 0 18px; font-size: 14px; }
.brand-text { font-size: 20px; font-weight: 800; line-height: 1.25; }
.brand-text small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.top nav { display: flex; gap: 24px; font-size: 15px; font-weight: 600; }
.top nav a:hover, .eyebrow a:hover { color: var(--blue); }

/* 首屏 */
.hero { padding: 72px 0 40px; }
.hero.small { padding: 40px 0 8px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .22em; color: var(--muted); }
.eyebrow i { width: 3px; height: 14px; border-radius: 2px; background: linear-gradient(var(--cyan), var(--blue), var(--violet)); }
.hero.small .eyebrow, .bar .eyebrow { display: block; letter-spacing: 0; font-weight: 400; }
.hero h1 { font-size: clamp(28px, 4.6vw, 48px); line-height: 1.28; }
.hero h1 em { background: linear-gradient(110deg, #62c8df, #4f70ea 58%, #8b45ef); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 640px; margin: 20px 0 0; color: var(--muted); }

.city, .cat { padding-top: 32px; }
.city h2, .cat h2, .panel h2 { display: flex; align-items: baseline; gap: 14px; font-size: 24px; margin-bottom: 18px; }
h2 i { font-size: 13px; font-weight: 400; color: var(--muted); }
.city h2 span, .cat h2 span { padding-left: 14px; line-height: 1.2; border-left: 4px solid; border-image: linear-gradient(var(--cyan), var(--blue), var(--violet)) 1; }

/* 首页：地图 + 区县列表 */
.atlas { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.map { margin: 0; padding: 22px 22px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); position: sticky; top: 84px; }
.map svg { display: block; width: 100%; height: auto; max-height: 72vh; }
.shape path { fill: var(--blue); fill-opacity: var(--shade); stroke: #fff; stroke-width: 2; stroke-linejoin: round; transition: fill .25s var(--ease), fill-opacity .25s var(--ease); cursor: pointer; }
.shape:hover path, .shape.on path, .shape:focus-visible path { fill: var(--deep); fill-opacity: .95; }
.shape:focus { outline: none; }
.lbl { pointer-events: none; text-anchor: middle; }
.lbl .nm { font-size: 15px; font-weight: 800; fill: var(--ink); paint-order: stroke; stroke: rgba(246, 246, 245, .85); stroke-width: 3px; }
.lbl .gd { font-size: 12px; font-weight: 600; fill: #3b4150; paint-order: stroke; stroke: rgba(246, 246, 245, .85); stroke-width: 3px; font-variant-numeric: tabular-nums; }
.lbl.on .nm, .lbl.on .gd { fill: #fff; stroke: none; }
.map figcaption { margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.scale { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.scale b { width: 72px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(79, 125, 240, .22), rgba(79, 125, 240, .62)); }

.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rowlink { display: grid; gap: 8px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.rowlink:hover, .rowlink.on { border-color: var(--blue); box-shadow: 0 10px 26px rgba(79, 112, 234, .16); transform: translateX(3px); }
.rhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rhead strong { font-size: 18px; font-weight: 800; }
.gdp { font-size: 13px; color: var(--muted); text-align: right; }
.gdp b { font-size: 20px; font-weight: 800; color: var(--deep); font-variant-numeric: tabular-nums; }
.gdp small { display: block; font-size: 11px; line-height: 1.3; }
.rdocs { display: grid; gap: 2px; font-size: 13.5px; color: #3b4150; }
.rdocs span { padding-left: 14px; position: relative; overflow-wrap: anywhere; }
.rdocs span::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.rdocs.none { color: var(--muted); }

/* 没有地图的城市：卡片目录 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.ce { display: grid; gap: 4px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.ce:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 12px 28px rgba(79, 112, 234, .16); }
.ce .no { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ce strong { font-size: 21px; font-weight: 800; }
.ce em { font-size: 13px; color: var(--blue); }
.ce.empty em { color: var(--muted); }

/* 区县页：报告列表 */
.docs { list-style: none; margin: 0; padding: 4px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.docs li { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.docs li:last-child { border-bottom: 0; }
.doc { flex: 1; min-width: 0; display: grid; grid-template-columns: 64px 1fr; column-gap: 8px; padding: 16px 0; }
.doc .yr { grid-row: span 2; font-size: 20px; font-weight: 800; color: var(--deep); font-variant-numeric: tabular-nums; }
.doc strong { font-size: 17px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.doc em { font-size: 13px; color: var(--muted); }
.doc:hover strong { color: var(--blue); }
.dl { flex: none; font-size: 14px; font-weight: 600; color: var(--deep); padding: 6px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.dl:hover { border-color: var(--blue); }

/* 区县页：图谱直接展示 */
.pics { display: grid; gap: 18px; margin-bottom: 18px; }
.pics figure { margin: 0; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.pics img { display: block; width: 100%; height: auto; border-radius: 10px; background: #fff; }
.pics figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 4px 0; }
.pics strong { font-size: 16px; font-weight: 700; }

/* 阅读页 */
.bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0 18px; }
.bar h1 { font-size: clamp(21px, 3.2vw, 28px); line-height: 1.4; }
.bar .eyebrow { margin-bottom: 6px; color: var(--muted); }
.bar-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.viewer { display: grid; gap: 14px; justify-items: center; padding: 18px 0; background: #dcdde3; border: 1px solid var(--line); border-radius: var(--radius); min-height: 50vh; }
.sheet { display: block; width: min(100% - 24px, 900px); height: auto; background: #fff; box-shadow: 0 2px 12px rgba(32, 38, 48, .16); }
.loading { align-self: center; color: var(--muted); }

.btn { display: inline-block; padding: 9px 20px; border: 0; border-radius: 8px; background: var(--grad); color: #fff; font: 600 14px var(--font); cursor: pointer; box-shadow: 0 8px 20px rgba(79, 112, 234, .24); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.btn.danger { background: #fff; color: #c0392b; box-shadow: none; border: 1px solid rgba(192, 57, 43, .4); }
.tag { font-size: 12px; padding: 2px 9px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.tag:empty { display: none; }
summary .tag.on, .bar-act .tag.on { background: #e1e9ff; color: var(--deep); }
summary .tag.off, .bar-act .tag.off { background: #f1e6d6; color: #8a5a1c; }

/* 后台与登录 */
.panel { margin-top: 22px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.panel.narrow { max-width: 380px; margin: 72px auto 0; }
.panel h1 { font-size: 24px; margin-bottom: 18px; }
.panel label { display: grid; gap: 5px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.panel input[type=text], .panel input[type=password], .panel input[type=number], .panel select, .panel input[type=file] { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: 15px var(--font); }
.panel input:focus, .panel select:focus, .btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.panel label.check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 14px; align-items: end; }
.row .btn { margin-bottom: 14px; }
.msg { margin: 0 0 4px; padding: 10px 14px; background: #e1e9ff; border-left: 4px solid var(--blue); border-radius: 0 8px 8px 0; }
.msg.err { background: #f6dfda; border-left-color: #c0392b; margin-bottom: 14px; }
.hint { color: var(--muted); margin: 0; }
.item { border-top: 1px solid var(--line); }
.item summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; cursor: pointer; }
.it-title { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.it-meta { font-size: 13px; color: var(--muted); margin-left: auto; }
.it-body { padding: 6px 0 16px; }
.acts { display: flex; gap: 10px; flex-wrap: wrap; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; }
.chips li { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; }
.chips code { font-size: 12px; color: var(--muted); }
.chips button { border: 0; background: none; color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.chips button:hover { color: #c0392b; }

/* 页脚 */
.foot { margin-top: 24px; background: #2a2d33; color: #c9ccd3; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto; padding: 28px 20px 32px; }
.home-link { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; transition: border-color .2s, background .2s; }
.home-link:hover { border-color: var(--cyan); background: rgba(255, 255, 255, .05); }
.home-link img { border-radius: 10px; background: #fff; }
.home-link b { display: block; color: #fff; font-size: 16px; }
.home-link small { color: var(--cyan); font-size: 13px; }
.foot p { margin: 0; font-size: 13px; text-align: right; line-height: 1.9; }
.foot p a:hover { color: #fff; }

@media (max-width: 860px) {
  .atlas { grid-template-columns: 1fr; }
  .map { position: static; padding: 14px; }
}
@media (max-width: 560px) {
  .top nav { gap: 14px; }
  .brand-text small { display: none; }
  .hero { padding: 40px 0 24px; }
  .hero h1 br { display: none; }
  .eyebrow { letter-spacing: .12em; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .doc { grid-template-columns: 52px 1fr; }
  .docs { padding: 4px 14px; }
  .it-meta { margin-left: 0; width: 100%; }
  .panel { padding: 18px 16px; }
  .foot p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
