/* ========== 重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
  font-family: "FangSong","仿宋","STFangsong","宋体","SimSun","Source Han Serif SC","Noto Serif CJK SC",serif;
  color: #2b2b2b;
  background: #f4f1ea;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: #333; text-decoration: none; transition: color .2s; }
a:hover { color: #8b0000; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
.wrap { width: 1200px; margin: 0 auto; }

/* ========== 色彩变量 ========== */
:root{
  --red: #8b0000;        /* 朱砂红 */
  --red-d: #6b0000;
  --gold: #c9a961;       /* 鎏金 */
  --ink: #1a1a1a;        /* 冥黑 */
  --paper: #f4f1ea;      /* 宣纸 */
  --line: #d9d2c2;
}

/* ========== 顶部欢迎条 ========== */
.topbar{
  background: #f0ebe0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #6b6357;
}
.topbar .wrap{
  display: flex; justify-content: space-between; align-items: center;
  height: 30px;
}
.topbar .left span{ margin-right: 14px; }
.topbar .right a{ color: #6b6357; margin-left: 12px; }
.topbar .right a:hover{ color: var(--red); }

/* ========== 头部 ========== */
.header{
  background: var(--paper);
  background-image: linear-gradient(180deg,#fbf8f1 0%, #f4f1ea 100%);
  border-bottom: 3px solid var(--red);
}
.header .wrap{
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand{ display: flex; align-items: center; gap: 18px; }
.brand .logo{
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--ink); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; border: 2px solid var(--gold);
  flex-shrink: 0;
}
.brand .titles h1{
  font-size: 34px; font-weight: 700; color: var(--ink);
  letter-spacing: 3px; font-family: "STSong","SimSun",serif;
}
.brand .titles .en{
  font-size: 13px; color: #8a8275; letter-spacing: 1px; margin-top: 4px;
  font-family: "Times New Roman",serif;
}
.brand .titles .sub{
  font-size: 13px; color: var(--red); margin-top: 4px; letter-spacing: 4px;
}
.search-box{
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.search-box form{
  display: flex; border: 2px solid var(--red); border-radius: 2px; overflow: hidden;
}
.search-box input{
  width: 220px; height: 32px; border: 0; padding: 0 10px;
  font-family: inherit; font-size: 13px; outline: none;
}
.search-box button{
  background: var(--red); color: #fff; border: 0; padding: 0 16px;
  font-size: 13px; cursor: pointer; font-family: inherit;
}
.search-box .quick a{
  font-size: 12px; color: #8a8275; margin-left: 10px;
}

/* ========== 主导航 ========== */
.nav{
  background: var(--ink);
  background-image: linear-gradient(180deg,#2a2a2a 0%, #1a1a1a 100%);
  border-bottom: 1px solid #000;
}
.nav ul{ display: flex; }
.nav li{ flex: 1; position: relative; }
.nav a{
  display: block; color: #e8e0cf; text-align: center; padding: 14px 0;
  font-size: 17px; letter-spacing: 2px; font-weight: 500;
  border-right: 1px solid #333;
}
.nav li:last-child a{ border-right: 0; }
.nav a:hover, .nav .active a{
  background: var(--red); color: #fff;
}

/* ========== 轮播 ========== */
.banner{
  position: relative; height: 340px; overflow: hidden;
  background: #2a2a2a;
}
.banner .slides{ position: relative; height: 100%; }
.banner .slide{
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.banner .slide.active{ opacity: 1; }
.banner .slide::before{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.7) 100%);
}
.banner .slide .cap{
  position: relative; color: #fff; padding: 0 60px 40px; max-width: 1100px;
}
.banner .slide .cap h3{
  font-size: 26px; letter-spacing: 2px; margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.banner .slide .cap p{ font-size: 14px; color: #d8cfbb; }
.banner .dots{
  position: absolute; bottom: 16px; right: 60px; z-index: 5;
  display: flex; gap: 8px;
}
.banner .dots button{
  width: 12px; height: 12px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.4); cursor: pointer; padding: 0;
}
.banner .dots button.active{ background: var(--gold); }

/* ========== 通用板块 ========== */
.section{ padding: 28px 0; }
.section.gray{ background: #efebdf; }
.row{ display: flex; gap: 30px; }
.col{ flex: 1; }

/* 栏目标题 */
.block{ background: #fff; border: 1px solid var(--line); }
.block .head{
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid var(--red); padding: 0 16px; height: 44px;
  background: #fbf8f1;
}
.block .head h2{
  font-size: 18px; color: var(--ink); font-weight: 700; letter-spacing: 2px;
  position: relative; padding-left: 14px;
}
.block .head h2::before{
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px;
  background: var(--red);
}
.block .head .more{ font-size: 12px; color: #999; }
.block .body{ padding: 14px 16px; }

/* 新闻列表 */
.news-list li{
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px dashed #e3ddcd; font-size: 15px;
}
.news-list li:last-child{ border-bottom: 0; }
.news-list li a{
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding-right: 10px; position: relative; padding-left: 12px;
}
.news-list li a::before{
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; background: var(--red); border-radius: 50%;
}
.news-list .date{ color: #999; font-size: 12px; flex-shrink: 0; }
.news-list .top-tag{
  display: inline-block; background: var(--red); color: #fff;
  font-size: 10px; padding: 1px 5px; margin-right: 6px; border-radius: 2px;
  vertical-align: middle;
}

/* 头条要闻 */
.focus{
  text-align: center; padding: 10px 0 16px; border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.focus h3{
  font-size: 22px; color: var(--red); letter-spacing: 2px; margin-bottom: 6px;
  font-family: "STSong",serif;
}
.focus p{ font-size: 13px; color: #888; }

/* ========== 红头文件卡片 ========== */
doc-card, .doc-list{ }
.doc{
  background: #fff; border: 1px solid var(--line); padding: 14px 16px;
  margin-bottom: 10px; position: relative;
}
.doc:last-child{ margin-bottom: 0; }
.doc .docno{
  font-size: 12px; color: var(--red); font-family: "STSong",serif;
  letter-spacing: 1px; margin-bottom: 4px;
}
.doc h4{
  font-size: 16px; color: var(--ink); font-weight: 600;
  margin-bottom: 6px; line-height: 1.5;
}
.doc p{
  font-size: 13px; color: #6b6357; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.doc .meta{ font-size: 12px; color: #aaa; margin-top: 6px; }

/* ========== 领导之窗 ========== */
.leaders{ display: flex; gap: 14px; flex-wrap: wrap; }
.leader{
  flex: 1; min-width: 0; text-align: center; cursor: pointer;
}
.leader .avatar{
  width: 100%; aspect-ratio: 3/4; background: #2a2a2a;
  border: 2px solid var(--gold); margin-bottom: 8px; overflow: hidden;
  position: relative;
}
.leader .avatar .ph{
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 36px; font-family: "STSong",serif;
  background: linear-gradient(135deg,#1a1a1a,#3a3030);
}
.leader .name{ font-size: 14px; font-weight: 600; color: var(--ink); }
.leader .title{ font-size: 11px; color: #999; margin-top: 2px; }

/* ========== 办事大厅宫格 ========== */
.services{
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.service{
  background: #fff; border: 1px solid var(--line); padding: 22px 10px;
  text-align: center; transition: all .2s; cursor: pointer;
}
.service:hover{
  border-color: var(--red); transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(139,0,0,.12);
}
.service .ico{
  width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%;
  background: linear-gradient(135deg,var(--red),var(--red-d));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.service .t{ font-size: 14px; font-weight: 600; color: var(--ink); }
.service .d{ font-size: 11px; color: #999; margin-top: 4px; }

/* ========== 政策解读图卡 ========== */
.explains{ display: flex; gap: 16px; }
.explain{
  flex: 1; background: #fff; border: 1px solid var(--line); overflow: hidden;
}
.explain .pic{
  height: 130px; background: linear-gradient(135deg,#3a2a2a,#1a1a1a);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 16px; letter-spacing: 2px;
}
.explain .txt{ padding: 12px 14px; }
.explain h4{ font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.explain p{ font-size: 12px; color: #888; line-height: 1.6; }

/* ========== 两栏联播 ========== */
.fb-list li{
  padding: 8px 0; border-bottom: 1px dashed #e3ddcd; font-size: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.fb-list li:last-child{ border-bottom: 0; }
.fb-list .src{ font-size: 11px; color: #b08a3a; margin-right: 8px; }
.fb-list .date{ font-size: 11px; color: #aaa; }

/* ========== 浮动便民条 ========== */
.float-bar{
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%);
  background: #fff; border: 1px solid var(--line); width: 60px; z-index: 50;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.float-bar a{
  display: block; text-align: center; padding: 12px 4px; font-size: 11px;
  color: #6b6357; border-bottom: 1px solid #efe9da; line-height: 1.5;
}
.float-bar a:last-child{ border-bottom: 0; }
.float-bar a:hover{ background: var(--red); color: #fff; }
.float-bar a .em{ display: block; font-size: 18px; margin-bottom: 2px; }

/* ========== 底部 ========== */
.footer{
  background: var(--ink); color: #b8ad96; padding: 28px 0 22px;
  border-top: 3px solid var(--red);
}
.footer .links{
  text-align: center; padding-bottom: 14px; border-bottom: 1px solid #333;
  margin-bottom: 14px;
}
.footer .links a{ color: #b8ad96; margin: 0 12px; font-size: 13px; }
.footer .links a:hover{ color: var(--gold); }
.footer .copy{ text-align: center; font-size: 12px; line-height: 2; color: #7a715f; }
.footer .copy .icp{ color: var(--gold); }

/* ========== 公共滚动条 ========== */
.marquee{
  background: #fff8e8; border: 1px solid #e8d99a; padding: 8px 16px;
  font-size: 13px; color: #8a6a1a; display: flex; align-items: center; gap: 10px;
}
.marquee .tag{
  background: #c9a961; color: #fff; padding: 2px 8px; font-size: 11px;
  flex-shrink: 0;
}
.marquee .scroll{ flex: 1; overflow: hidden; white-space: nowrap; }
.marquee .scroll span{ display: inline-block; padding-left: 100%; animation: scroll 26s linear infinite; }
@keyframes scroll{ to{ transform: translateX(-100%); } }

/* ========== 阳间用户检测弹窗 ========== */
.toast-mask{
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 999;
  display: none; align-items: center; justify-content: center;
}
.toast-mask.show{ display: flex; }
.toast{
  background: var(--paper); border: 3px solid var(--red); width: 420px; max-width: 92%;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.toast .t-head{
  background: var(--red); color: #fff; padding: 10px 16px; font-size: 15px;
  letter-spacing: 2px; display: flex; justify-content: space-between; align-items: center;
}
.toast .t-head .close{ cursor: pointer; font-size: 20px; line-height: 1; }
.toast .t-body{ padding: 20px; font-size: 14px; color: #444; line-height: 1.9; }
.toast .t-body .warn{ color: var(--red); font-weight: 700; }
.toast .t-body .tel{ color: var(--red); font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.toast .t-foot{ padding: 0 20px 18px; text-align: right; }
.toast .t-foot button{
  background: var(--red); color: #fff; border: 0; padding: 7px 22px; cursor: pointer;
  font-family: inherit; font-size: 13px; letter-spacing: 1px;
}

/* ========== 内页通用 ========== */
.crumb{
  background: #f0ebe0; border-bottom: 1px solid var(--line);
  font-size: 12px; color: #888; padding: 8px 0;
}
.crumb a{ color: #888; }
.crumb a:hover{ color: var(--red); }
.crumb .sep{ margin: 0 6px; color: #c0b8a6; }

.page-head{
  background: var(--ink); color: #e8e0cf; padding: 30px 0;
  background-image: linear-gradient(135deg,#2a2020 0%, #1a1a1a 60%);
  border-bottom: 3px solid var(--red);
}
.page-head h1{ font-size: 26px; letter-spacing: 3px; color: var(--gold); }
.page-head .en{ font-size: 12px; color: #8a7f6a; margin-top: 4px; letter-spacing: 1px; }

.page-body{ padding: 26px 0 40px; }

/* 内页通用区块（复用 .block） */
.tabs{
  display: flex; border-bottom: 1px solid var(--line); margin-bottom: 18px;
  background: #fbf8f1;
}
.tabs button{
  background: none; border: 0; padding: 12px 24px; font-family: inherit;
  font-size: 15px; color: #6b6357; cursor: pointer; border-bottom: 3px solid transparent;
  letter-spacing: 1px;
}
.tabs button.active{ color: var(--red); border-bottom-color: var(--red); font-weight: 700; }

/* ========== 机构设置页 ========== */
.org-top{
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 26px;
}
.org-card{
  background: #fff; border: 1px solid var(--line); padding: 18px; text-align: center;
  border-top: 3px solid var(--gold);
}
.org-card .avatar{
  width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg,#1a1a1a,#3a2a2a); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
  font-size: 30px; font-family: "STSong",serif;
}
.org-card h3{ font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.org-card .post{ font-size: 12px; color: var(--red); margin-bottom: 8px; }
.org-card .duty{ font-size: 13px; color: #6b6357; line-height: 1.7; }

.section-title{
  font-size: 20px; color: var(--ink); margin: 26px 0 14px; padding-left: 14px;
  border-left: 5px solid var(--red); letter-spacing: 2px;
}
.section-title .sub{ font-size: 12px; color: #999; font-weight: 400; margin-left: 10px; }

table.gov-table{
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); font-size: 14px;
}
.gov-table th, .gov-table td{
  border: 1px solid #e3ddcd; padding: 11px 12px; text-align: left;
}
.gov-table th{
  background: var(--ink); color: var(--gold); font-weight: 600; letter-spacing: 1px;
  text-align: center;
}
.gov-table tr:nth-child(even) td{ background: #fbf8f1; }
.gov-table td.c{ text-align: center; }
.gov-table td .name{ color: var(--red); font-weight: 600; }

.judges{ display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.judge{
  background: #fff; border: 1px solid var(--line); padding: 16px; border-left: 3px solid var(--red);
}
.judge h4{ font-size: 16px; color: var(--ink); margin-bottom: 2px; }
.judge .dept{ font-size: 12px; color: var(--red); margin-bottom: 8px; }
.judge p{ font-size: 13px; color: #6b6357; line-height: 1.7; }

.grassroots{ display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grass{
  background: #fff; border: 1px solid var(--line); padding: 16px;
  display: flex; gap: 12px; align-items: flex-start;
}
.grass .g-ico{
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
  font-family: "STSong",serif;
}
.grass h4{ font-size: 15px; margin-bottom: 3px; }
.grass p{ font-size: 12px; color: #888; line-height: 1.6; }

/* ========== 信息公开页 ========== */
.file-list li{
  display: flex; align-items: center; gap: 10px; padding: 11px 0;
  border-bottom: 1px dashed #e3ddcd; font-size: 14px;
}
.file-list li:last-child{ border-bottom: 0; }
.file-list .ftag{
  background: var(--red); color: #fff; font-size: 11px; padding: 2px 7px; flex-shrink: 0;
}
.file-list .ftag.gov{ background: #c9a961; }
.file-list .ftag.law{ background: #4a5a3a; }
.file-list a{ flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .fdate{ font-size: 12px; color: #aaa; flex-shrink: 0; }

.fin-table th, .fin-table td{ font-size: 13px; }
.fin-table td.num{ text-align: right; font-family: "STSong",serif; }
.fin-table tfoot td{ font-weight: 700; background: #f0ebe0; color: var(--red); }

/* ========== 办事服务页 ========== */
.guide-row{ display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 26px; }
.guide{
  background: #fff; border: 1px solid var(--line); padding: 16px;
  border-top: 3px solid var(--red);
}
.guide h4{ font-size: 16px; color: var(--ink); margin-bottom: 10px; }
.guide ol{ padding-left: 20px; font-size: 13px; color: #6b6357; line-height: 1.9; }
.guide ol li{ margin-bottom: 3px; }

.form-box{
  background: #fff; border: 1px solid var(--line); padding: 24px;
}
.form-box h3{ font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.form-box .desc{ font-size: 13px; color: #888; margin-bottom: 18px; }
.form-row{ margin-bottom: 16px; }
.form-row label{
  display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; font-weight: 600;
}
.form-row label .req{ color: var(--red); }
.form-row input, .form-row select, .form-row textarea{
  width: 100%; padding: 9px 10px; border: 1px solid #ccc; font-family: inherit;
  font-size: 14px; background: #fff; outline: none;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{
  border-color: var(--red);
}
.form-row textarea{ resize: vertical; min-height: 80px; }
.form-row .hint{ font-size: 12px; color: #999; margin-top: 4px; }
.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.radio-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.radio-grid label{
  display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid #ccc;
  font-weight: 400; cursor: pointer; font-size: 13px;
}
.radio-grid input{ width: auto; }
.radio-grid label:has(input:checked){ border-color: var(--red); background: #fff5f5; }
.btn-submit{
  background: var(--red); color: #fff; border: 0; padding: 11px 36px; cursor: pointer;
  font-family: inherit; font-size: 15px; letter-spacing: 2px; margin-top: 6px;
}
.btn-submit:hover{ background: var(--red-d); }

/* 生死簿查询结果 */
.result-card{
  display: none; margin-top: 18px; padding: 20px; background: #fff8e8;
  border: 1px solid #e8d99a;
}
.result-card.show{ display: block; }
.result-card h4{ color: var(--red); margin-bottom: 10px; font-size: 16px; }
.result-card .line{ font-size: 14px; padding: 5px 0; border-bottom: 1px dashed #e0d090; }
.result-card .line:last-child{ border-bottom: 0; }
.result-card .big{ font-size: 22px; color: var(--red); font-weight: 700; font-family: "STSong",serif; }

/* 汇率盒 */
.rate-box{ background: #fff; border: 1px solid var(--line); padding: 18px; }
.rate-head{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.rate-head .pair{ font-size: 16px; font-weight: 700; color: var(--ink); }
.rate-head .pair .up{ color: #c00; font-size: 13px; }
.rate-head .time{ font-size: 12px; color: #999; }
.rate-inputs{ display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.rate-inputs .swap{
  background: var(--ink); color: var(--gold); border: 0; width: 40px; height: 40px;
  cursor: pointer; font-size: 18px;
}
.rate-inputs .field label{ font-size: 12px; color: #888; display: block; margin-bottom: 4px; }
.rate-inputs .field input{ width: 100%; padding: 8px; border: 1px solid #ccc; font-size: 15px; font-family: inherit; }

/* 叫号屏 */
.call-screen{
  background: #0a0a0a; color: #ffcf40; padding: 22px; border: 2px solid var(--gold);
  font-family: "STSong","Courier New",monospace;
}
.call-screen .cs-title{ text-align: center; font-size: 16px; letter-spacing: 4px; margin-bottom: 14px; color: var(--gold); }
.call-screen .cs-now{
  text-align: center; font-size: 14px; margin-bottom: 10px;
}
.call-screen .cs-now .num{ font-size: 38px; color: #ff5a3c; letter-spacing: 3px; }
.call-screen .cs-list{ font-size: 13px; line-height: 2; color: #b8ad96; }
.call-screen .cs-list .n{ color: #ffcf40; }

/* 宜忌 */
.almanac{ background: #fff; border: 1px solid var(--line); padding: 18px; display: flex; gap: 18px; }
.almanac .date-block{
  text-align: center; padding-right: 18px; border-right: 1px solid var(--line);
}
.almanac .date-block .day{ font-size: 40px; color: var(--red); font-family: "STSong",serif; line-height: 1; }
.almanac .date-block .ym{ font-size: 13px; color: #888; margin-top: 4px; }
.almanac .yj{ flex: 1; }
.almanac .yj h4{ font-size: 14px; margin-bottom: 6px; }
.almanac .yj .yi h4{ color: #c00; }
.almanac .yj .ji h4{ color: #4a5a3a; }
.almanac .yj p{ font-size: 14px; line-height: 1.9; }

/* ========== 政民互动页 ========== */
.vote-box{ background: #fff; border: 1px solid var(--line); padding: 18px; }
.vote-q{ font-size: 16px; font-weight: 700; margin-bottom: 14px; color: var(--ink); }
.vote-opt{ margin-bottom: 10px; }
.vote-opt .bar{
  background: #f0ebe0; height: 26px; position: relative; overflow: hidden;
}
.vote-opt .bar .fill{
  background: linear-gradient(90deg,var(--red),#c9a961); height: 100%; width: 0;
  transition: width 1s;
}
.vote-opt .bar .txt{
  position: absolute; inset: 0; padding: 0 10px; font-size: 12px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; line-height: 26px;
}
.vote-opt .lbl{ font-size: 13px; margin-bottom: 4px; }

.faq-item{ border: 1px solid var(--line); border-bottom: 0; background: #fff; }
.faq-item:last-child{ border-bottom: 1px solid var(--line); }
.faq-q{
  padding: 12px 16px; cursor: pointer; font-size: 14px; display: flex; justify-content: space-between;
  align-items: center; background: #fbf8f1;
}
.faq-q .arrow{ transition: transform .2s; color: var(--red); }
.faq-item.open .faq-q .arrow{ transform: rotate(90deg); }
.faq-a{ display: none; padding: 12px 16px; font-size: 13px; color: #6b6357; line-height: 1.8; }
.faq-item.open .faq-a{ display: block; }

.msg-list li{
  padding: 12px 0; border-bottom: 1px dashed #e3ddcd;
}
.msg-list .meta{ font-size: 12px; color: #999; margin-bottom: 4px; }
.msg-list .meta .nm{ color: var(--red); font-weight: 600; }
.msg-list .ct{ font-size: 14px; }
.msg-list .reply{ margin-top: 6px; padding: 8px 12px; background: #fff8e8; font-size: 13px; border-left: 3px solid var(--gold); }

/* ========== 数据开放页 ========== */
.stat-grid{ display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 26px; }
.stat{
  background: #fff; border: 1px solid var(--line); padding: 18px; border-top: 3px solid var(--red);
}
.stat .lbl{ font-size: 13px; color: #888; margin-bottom: 6px; }
.stat .num{ font-size: 28px; color: var(--red); font-family: "STSong",serif; font-weight: 700; }
.stat .unit{ font-size: 13px; color: #888; }
.stat .chg{ font-size: 12px; margin-top: 4px; }
.stat .chg.up{ color: #c00; }
.stat .chg.down{ color: #3a7a3a; }

.chart-box{ background: #fff; border: 1px solid var(--line); padding: 18px; margin-bottom: 20px; }
.chart-box h3{ font-size: 16px; margin-bottom: 14px; color: var(--ink); }
.chart-box .sub{ font-size: 12px; color: #999; font-weight: 400; margin-left: 8px; }

/* 柱状图 */
.bar-chart{ display: flex; align-items: flex-end; gap: 14px; height: 200px; padding: 10px 0 0; border-bottom: 2px solid var(--line); }
.bar-chart .b{ flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bar-chart .b .v{ font-size: 12px; color: var(--red); margin-bottom: 4px; }
.bar-chart .b .bar{ width: 70%; background: linear-gradient(180deg,var(--red),#c9a961); transition: height 1s; }
.bar-chart .b .x{ font-size: 12px; color: #6b6357; margin-top: 6px; }

/* 横向条 */
.hbar-list .hb{ margin-bottom: 12px; }
.hbar-list .hb .lab{ display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.hbar-list .hb .lab .pct{ color: var(--red); font-weight: 600; }
.hbar-list .hb .trk{ background: #f0ebe0; height: 18px; }
.hbar-list .hb .trk .fl{ background: linear-gradient(90deg,var(--red),#c9a961); height: 100%; }

/* 饼图(用conic-gradient) */
.pie-row{ display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.pie{
  width: 180px; height: 180px; border-radius: 50%;
  background: conic-gradient(var(--red) 0 38%, #c9a961 38% 60%, #4a5a3a 60% 75%, #6b6357 75% 88%, #b08a3a 88% 100%);
  position: relative; flex-shrink: 0;
}
.pie::after{
  content: ""; position: absolute; inset: 28%; background: #fff; border-radius: 50%;
}
.legend{ font-size: 13px; line-height: 2.1; }
.legend .dot{ display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: middle; }

/* ========== 响应式 ========== */

/* 平板及以下 */
@media (max-width: 1240px){
  .wrap{ width: 96%; }
  .services{ grid-template-columns: repeat(3, 1fr); }
  .leaders{ flex-wrap: wrap; }
  .leader{ flex: 0 0 18%; }
}

/* 手机 */
@media (max-width: 768px){
  body{ font-size: 15px; }
  .wrap{ width: 94%; }

  /* 顶部条：隐藏欢迎语与冥历，只留日期+登录 */
  .topbar .wrap{ height: auto; padding: 4px 0; flex-wrap: nowrap; gap: 8px; justify-content: center; }
  .topbar .left span:first-child{ display: none; }
  .topbar .left span:nth-child(3){ display: none; }
  .topbar .right a:nth-child(-n+4){ display: none; }
  .topbar .right a:last-child{ margin-left: 0; }

  /* 头部纵向排列，更紧凑 */
  .header .wrap{ flex-direction: column; gap: 10px; padding: 10px 0; }
  .brand{ gap: 10px; }
  .brand .logo{ width: 48px; height: 48px; font-size: 20px; }
  .brand .titles h1{ font-size: 20px; letter-spacing: 1px; }
  .brand .titles .en{ font-size: 10px; }
  .brand .titles .sub{ font-size: 10px; letter-spacing: 1px; }
  .search-box{ width: 100%; align-items: stretch; }
  .search-box form{ width: 100%; }
  .search-box input{ width: 100%; flex: 1; height: 34px; font-size: 14px; }
  .search-box button{ padding: 0 16px; font-size: 13px; }
  .search-box .quick{ display: none; }

  /* 导航横向滚动，不换行 */
  .nav ul{ flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav ul::-webkit-scrollbar{ display: none; }
  .nav li{ flex: 0 0 auto; }
  .nav a{ padding: 10px 16px; font-size: 14px; letter-spacing: 1px; white-space: nowrap; }
  .nav li:last-child a{ border-right: 1px solid #333; }

  /* 轮播缩小 */
  .banner{ height: 200px; }
  .banner .slide .cap{ padding: 0 18px 18px; }
  .banner .slide .cap h3{ font-size: 17px; letter-spacing: 1px; line-height: 1.4; }
  .banner .slide .cap p{ font-size: 12px; }
  .banner .dots{ right: 18px; bottom: 12px; }

  /* 区块紧凑化 */
  .section{ padding: 18px 0; }
  .row{ flex-direction: column; gap: 18px; }
  .block .head{ height: 40px; padding: 0 12px; }
  .block .head h2{ font-size: 16px; letter-spacing: 1px; }
  .block .body{ padding: 12px; }

  .focus h3{ font-size: 18px; }
  .focus p{ font-size: 12px; }
  .news-list li{ font-size: 14px; padding: 8px 0; }
  .news-list .date{ font-size: 11px; }
  .doc{ padding: 12px; }
  .doc h4{ font-size: 15px; }
  .doc p{ font-size: 12px; }

  /* 领导之窗：3列 */
  .leaders{ gap: 10px; }
  .leader{ flex: 0 0 30%; }
  .leader .avatar .ph{ font-size: 22px; }
  .leader .name{ font-size: 13px; }
  .leader .title{ font-size: 10px; }

  /* 办事大厅：2列 */
  .services{ grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .service{ padding: 16px 8px; }
  .service .ico{ width: 44px; height: 44px; font-size: 18px; }
  .service .t{ font-size: 13px; }
  .service .d{ font-size: 10px; }

  /* 政策解读纵向 */
  .explains{ flex-direction: column; gap: 12px; }
  .explain .pic{ height: 110px; }

  .fb-list li{ font-size: 13px; padding: 7px 0; }
  .marquee{ padding: 6px 12px; font-size: 12px; }

  /* 底部紧凑 */
  .footer{ padding: 20px 0 16px; }
  .footer .links a{ margin: 0 8px; font-size: 12px; }
  .footer .copy{ font-size: 11px; line-height: 1.9; }

  /* 浮动条在手机隐藏 */
  .float-bar{ display: none; }

  /* 内页组件手机适配 */
  .org-top{ grid-template-columns: repeat(2,1fr); }
  .judges{ grid-template-columns: repeat(2,1fr); }
  .grassroots{ grid-template-columns: 1fr; }
  .stat-grid{ grid-template-columns: repeat(2,1fr); }
  .guide-row{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
  .radio-grid{ grid-template-columns: repeat(2,1fr); }
  .rate-inputs{ grid-template-columns: 1fr; }
  .rate-inputs .swap{ justify-self: center; }
  .hbar-list[style]{ grid-template-columns: 1fr !important; }
  .tabs{ overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tabs button{ white-space: nowrap; padding: 12px 16px; }
  .page-head h1{ font-size: 22px; }
  .crumb .wrap{ font-size: 11px; }
}

/* 小屏手机 */
@media (max-width: 480px){
  .brand .titles h1{ font-size: 19px; }
  .brand .logo{ width: 50px; height: 50px; font-size: 20px; }
  .banner{ height: 170px; }
  .banner .slide .cap h3{ font-size: 15px; }
  .leader{ flex: 0 0 45%; }
  .leader .avatar .ph{ font-size: 26px; }
  .news-list li{ font-size: 13px; }
  .doc h4{ font-size: 14px; }
  .footer .links a{ margin: 0 6px; }
  .art-title{ font-size: 18px !important; }
  .art-meta{ flex-wrap: wrap; }
  .art-meta span{ margin: 4px 8px 4px 0; }
  .art-body{ font-size: 15px !important; }
  .art-nav .prev, .art-nav .next{ width: 100%; }
}

/* ========== 文章详情页 ========== */
.article{
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px 56px 32px;
  margin-bottom: 18px;
}
.art-loading{
  text-align: center; padding: 80px 0; color: #999; font-size: 14px;
}
.art-docno{
  text-align: center;
  color: var(--red);
  font-family: "STSong","宋体",serif;
  font-size: 18px;
  letter-spacing: 1px;
  padding: 6px 0 14px;
  border-bottom: 2px solid var(--red);
  margin-bottom: 22px;
}
.art-title{
  text-align: center;
  font-size: 26px;
  color: var(--ink);
  font-family: "STSong","宋体","FangSong",serif;
  font-weight: bold;
  line-height: 1.5;
  padding: 0 20px;
  margin-bottom: 8px;
}
.art-sub{
  text-align: center;
  color: #6b6357;
  font-size: 14px;
  margin-bottom: 16px;
}
.art-meta{
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  padding: 10px 0;
  margin-bottom: 28px;
  font-size: 12px;
  color: #6b6357;
}
.art-meta span{ margin: 0 12px; }
.art-meta a{ color: #6b6357; }
.art-meta a:hover{ color: var(--red); text-decoration: underline; }

.art-body{
  font-size: 16px;
  line-height: 1.95;
  color: #2b2b2b;
  text-indent: 2em;
  word-break: break-all;
}
.art-body p{ margin: 0 0 16px; }
.art-body h2{
  font-size: 19px; color: var(--ink);
  font-family: "STSong","宋体",serif;
  text-align: center; text-indent: 0;
  margin: 28px 0 14px; font-weight: bold;
}
.art-body h3{
  font-size: 17px; color: var(--ink);
  font-family: "STSong","宋体",serif;
  text-indent: 0; margin: 22px 0 12px; font-weight: bold;
}
.art-body strong{ color: var(--red-d); font-weight: bold; }
.art-body ul, .art-body ol{
  margin: 0 0 16px 2em;
  list-style: disc;
}
.art-body ol{ list-style: decimal; }
.art-body li{ margin: 4px 0; text-indent: 0; }
.art-body blockquote{
  background: #faf6ec;
  border-left: 4px solid var(--gold);
  padding: 12px 18px;
  margin: 14px 0;
  text-indent: 0;
  color: #5a4f3c;
  font-size: 15px;
}
.art-body table{
  width: 100%; border-collapse: collapse;
  margin: 14px 0; text-indent: 0;
  font-size: 14px;
}
.art-body table th, .art-body table td{
  border: 1px solid #c8bfa9;
  padding: 8px 10px; text-align: center;
}
.art-body table th{
  background: var(--ink); color: var(--gold);
  font-weight: bold;
}
.art-body table tr:nth-child(even) td{ background: #faf6ec; }

.art-tags{
  margin: 24px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  text-indent: 0;
}
.art-tags .tag{
  display: inline-block;
  background: #f0ebe0;
  color: #6b6357;
  padding: 3px 10px;
  margin: 0 6px 6px 0;
  border-radius: 2px;
  font-size: 12px;
}

.art-attach{
  margin: 18px 0 0;
  padding: 14px 18px;
  background: #faf6ec;
  border: 1px dashed var(--gold);
  text-indent: 0;
}
.art-attach h4{
  font-size: 14px; color: var(--ink);
  margin-bottom: 8px; font-weight: bold;
}
.art-attach li{
  display: flex; align-items: center;
  font-size: 13px; padding: 4px 0;
}
.art-attach .at-ico{ margin-right: 6px; }
.art-attach a{ color: var(--red); }
.art-attach a:hover{ text-decoration: underline; }
.art-attach .at-size{ margin-left: auto; color: #999; font-size: 12px; }

.art-foot{
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 12px; color: #999;
  text-indent: 0;
}

.art-notfound{
  text-align: center; padding: 80px 20px;
  text-indent: 0;
}
.art-notfound h1{
  font-size: 32px; color: var(--red);
  font-family: "STSong","宋体",serif;
  margin-bottom: 16px;
}
.art-notfound p{
  color: #6b6357; font-size: 14px;
  margin: 8px 0; text-indent: 0;
}
.art-notfound .back{
  display: inline-block;
  margin-top: 20px;
  padding: 8px 20px;
  background: var(--red); color: #fff;
  border-radius: 2px;
}
.art-notfound .back:hover{ background: var(--red-d); color: #fff; }

/* 上下篇 */
.art-nav{
  display: flex; justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}
.art-nav a{
  flex: 1;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 18px;
  font-size: 13px;
  color: #6b6357;
  transition: all .2s;
}
.art-nav a:hover{
  border-color: var(--red);
  box-shadow: 0 2px 8px rgba(139,0,0,.08);
}
.art-nav a.disabled{
  opacity: .5; cursor: not-allowed;
  background: #faf6ec;
}
.art-nav a.disabled:hover{
  border-color: var(--line); box-shadow: none;
}
.art-nav span{
  display: block;
  color: var(--red);
  font-size: 12px;
  margin-bottom: 4px;
}
.art-nav strong{
  display: block;
  font-weight: normal;
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 文章页响应式 */
@media (max-width: 768px){
  .article{ padding: 22px 18px 18px; }
  .art-title{ font-size: 20px; padding: 0; }
  .art-docno{ font-size: 15px; }
  .art-meta{ font-size: 11px; }
  .art-meta span{ margin: 4px 8px 4px 0; }
  .art-body{ font-size: 15px; }
  .art-body h2{ font-size: 17px; }
  .art-body h3{ font-size: 16px; }
  .art-nav{ flex-direction: column; }
}

/* ========== 冥界舆图（仿高德简化版） ========== */
.map-body{
  background: #1a1622;
  display: flex; flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.map-body .topbar{ flex-shrink: 0; }
.map-body .header{ flex-shrink: 0; }
.map-body .float-bar{ display: none; }
.map-header{
  border-bottom: 3px solid var(--red);
}
.map-head-wrap{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.map-head-wrap .logo{
  cursor: pointer;
}
.map-head-wrap .titles h1{
  font-size: 22px; color: var(--gold);
  font-family: "STSong","宋体",serif;
}
.map-head-wrap .titles .en{
  font-size: 11px; color: #8b6914; letter-spacing: 1px;
}
.map-nav{
  display: flex; gap: 18px;
}
.map-nav a{
  color: #c9a961; font-size: 14px;
  padding: 6px 14px;
  border: 1px solid #5a4a2a;
  border-radius: 2px;
  transition: all .2s;
}
.map-nav a:hover{
  background: var(--red); color: #fff; border-color: var(--red);
}

/* 地图容器 */
.map-container{
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  background: #0d0a14;
  overflow: hidden;
}

/* 搜索栏 */
.map-search{
  position: absolute;
  top: 16px; left: 16px;
  z-index: 10;
  width: 340px;
  background: rgba(255,255,255,.96);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  overflow: hidden;
}
.search-inner{
  display: flex; align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
}
.search-inner .search-ico{
  font-size: 16px; margin-right: 8px; color: #8b0000;
}
.search-inner input{
  flex: 1;
  border: none; outline: none;
  font-size: 14px;
  background: transparent;
  font-family: inherit;
}
.search-inner button{
  background: var(--red); color: #fff;
  border: none; cursor: pointer;
  padding: 6px 16px; border-radius: 3px;
  font-size: 13px;
}
.search-inner button:hover{ background: var(--red-d); }
.search-cat{
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 8px 10px;
}
.cat-btn{
  border: 1px solid #d9d2c2;
  background: #fff;
  color: #6b6357;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.cat-btn:hover{ border-color: var(--red); color: var(--red); }
.cat-btn.active{
  background: var(--red); color: #fff; border-color: var(--red);
}

/* 左侧地点列表 */
.map-sidebar{
  position: absolute;
  top: 130px; left: 16px;
  z-index: 9;
  width: 340px;
  max-height: calc(100% - 160px);
  background: rgba(255,255,255,.96);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.sb-head{
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  background: #f4f1ea;
}
.sb-head h3{
  font-size: 14px; color: var(--ink);
  font-family: "STSong","宋体",serif;
  margin-right: auto;
}
.sb-count{ font-size: 11px; color: #999; }
.sb-toggle{
  width: 22px; height: 22px;
  border: 1px solid #d9d2c2;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px; color: #6b6357;
  line-height: 1;
}
.sb-toggle:hover{ background: var(--red); color: #fff; border-color: var(--red); }
.sb-body{
  flex: 1; overflow: hidden;
  display: flex; flex-direction: column;
}
.sb-list{
  overflow-y: auto;
  flex: 1;
}
/* 折叠状态 */
.map-sidebar.collapsed{
  width: 44px;
}
.map-sidebar.collapsed .sb-head{ padding: 10px 8px; }
.map-sidebar.collapsed .sb-head h3,
.map-sidebar.collapsed .sb-count,
.map-sidebar.collapsed .sb-body{ display: none; }
.sb-list::-webkit-scrollbar{ width: 6px; }
.sb-list::-webkit-scrollbar-thumb{ background: #c9a961; border-radius: 3px; }
.sb-item{
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0ebe0;
  cursor: pointer;
  transition: background .15s;
}
.sb-item:hover{ background: #faf6ec; }
.sb-ico{
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
  flex-shrink: 0;
}
.sb-info{ flex: 1; min-width: 0; }
.sb-name{
  font-size: 13px; color: var(--ink); font-weight: bold;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-cat{ font-size: 11px; color: #999; margin-top: 2px; }

/* 地图画布 */
.map-canvas{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
#mapSvg{
  width: 100%; height: 100%;
  display: block;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.marker{ cursor: pointer; }
.marker:hover circle{ filter: brightness(1.3); }
.marker:hover .mk-label{ fill: #fff; }
.marker.pulse .mk-halo{
  animation: pulse 1.2s ease-out infinite;
}
@keyframes pulse{
  0%{ opacity: 0.5; transform: scale(1); transform-origin: center; }
  100%{ opacity: 0; transform: scale(2.2); transform-origin: center; }
}
.mk-label{
  paint-order: stroke;
  stroke: #0d0a14;
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
}

/* 独立悬浮指北针 */
.map-compass{
  position: absolute;
  top: 16px; right: 16px;
  z-index: 8;
  width: 56px; height: 56px;
  background: rgba(26,22,34,.85);
  border: 1px solid #c9a961;
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
  cursor: default;
  user-select: none;
}
.cmp-n{
  color: #c9a961; font-size: 11px; font-weight: bold;
  line-height: 1;
}
.cmp-needle{
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 14px solid #8b0000;
  margin: 2px 0;
}
.cmp-s{
  color: #c9a961; font-size: 8px;
  line-height: 1;
}

/* 独立悬浮比例尺 */
.map-scale{
  position: absolute;
  right: 16px; bottom: 16px;
  z-index: 8;
  background: rgba(26,22,34,.85);
  border: 1px solid #c9a961;
  border-radius: 4px;
  padding: 6px 10px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
  user-select: none;
}
.sc-bar{
  display: flex; width: 80px; height: 8px;
  border: 1px solid #c9a961;
}
.sc-bar i{ display: block; height: 100%; }
.sc-bar i:first-child{ background: #c9a961; }
.sc-bar i:last-child{ background: transparent; }
.sc-text{
  color: #c9a961; font-size: 11px; white-space: nowrap; font-weight: bold;
}

/* 右下角控件 */
.map-controls{
  position: absolute;
  bottom: 60px; right: 16px;
  z-index: 10;
  display: flex; flex-direction: column;
  gap: 6px;
  background: rgba(255,255,255,.96);
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.ctl-btn{
  width: 36px; height: 36px;
  border: none;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  border-radius: 3px;
  transition: all .15s;
  font-family: inherit;
}
.ctl-btn:hover{ background: var(--red); color: #fff; }
.ctl-divider{
  height: 1px; background: #eee; margin: 2px 0;
}

/* 图层面板 */
.layer-panel{
  position: absolute;
  bottom: 110px; right: 16px;
  z-index: 10;
  background: rgba(255,255,255,.96);
  border-radius: 6px;
  padding: 12px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  display: none;
  min-width: 160px;
}
.layer-panel.show{ display: block; }
.layer-panel h4{
  font-size: 13px; color: var(--ink);
  margin-bottom: 8px; padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}
.layer-panel label{
  display: block;
  font-size: 12px; color: #6b6357;
  padding: 4px 0;
  cursor: pointer;
}
.layer-panel input{ margin-right: 6px; }

/* 底部水印 */
.map-watermark{
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: rgba(13,10,20,.7);
  color: #c9a961;
  font-size: 11px;
  padding: 6px 16px;
  border-radius: 12px;
  border: 1px solid rgba(201,169,97,.3);
  white-space: nowrap;
}
.map-watermark span{ margin: 0 4px; }

/* 详情卡片 */
.map-detail{
  position: absolute;
  top: 16px; right: 16px;
  z-index: 11;
  width: 320px;
  max-height: calc(100% - 80px);
  overflow-y: auto;
  background: rgba(255,255,255,.98);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  padding: 16px;
  display: none;
}
.map-detail.show{ display: block; }
.detail-close{
  position: absolute;
  top: 10px; right: 10px;
  width: 24px; height: 24px;
  border: none; background: #f0ebe0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px; color: #6b6357;
}
.detail-close:hover{ background: var(--red); color: #fff; }
.dc-head{
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  margin-bottom: 12px;
}
.dc-ico{
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
}
.dc-head h3{
  font-size: 15px; color: var(--ink);
  font-family: "STSong","宋体",serif;
}
.dc-cat{
  display: inline-block;
  font-size: 11px; color: #999;
  margin-top: 2px;
}
.dc-desc{
  font-size: 13px; color: #444;
  line-height: 1.7;
  margin-bottom: 10px;
}
.dc-info{
  background: #faf6ec;
  border-left: 3px solid var(--gold);
  padding: 8px 10px;
  font-size: 12px; color: #5a4f3c;
  line-height: 1.7;
  margin-bottom: 12px;
}
.dc-actions{
  display: flex; gap: 8px;
  margin-bottom: 10px;
}
.dc-actions a{
  flex: 1;
  text-align: center;
  padding: 6px 0;
  background: var(--red); color: #fff;
  border-radius: 3px;
  font-size: 12px;
}
.dc-actions a:hover{ background: var(--red-d); color: #fff; }
.dc-coord{
  font-size: 11px; color: #999;
  border-top: 1px dashed #eee;
  padding-top: 8px;
}

/* 地图页响应式 */
@media (max-width: 768px){
  /* 顶部精简：header 保持横向，适度放大便于点击 */
  .map-body .header .wrap{ flex-direction: row; align-items: center; padding: 8px 12px; gap: 10px; }
  .map-body .brand .logo{ width: 38px; height: 38px; font-size: 16px; }
  .map-body .brand .titles h1{ font-size: 16px; letter-spacing: 1px; }
  .map-body .brand .titles .en,
  .map-body .brand .titles .sub{ display: none; }
  .map-body .topbar{ font-size: 13px; }
  .map-body .topbar .left span:first-child{ display: none; }
  .map-body .topbar .right a{ padding: 6px 4px; }
  .map-nav{ gap: 2px; margin-left: auto; }
  .map-nav a{ padding: 8px 12px; font-size: 13px; }

  /* 搜索栏：顶部全宽，更紧凑 */
  .map-search{
    width: calc(100% - 16px);
    top: 8px; left: 8px;
    border-radius: 4px;
  }
  .search-inner{ padding: 8px 10px; }
  .search-inner .search-ico{ font-size: 14px; margin-right: 6px; }
  .search-inner input{ font-size: 13px; }
  .search-inner button{ padding: 6px 12px; font-size: 12px; }
  .search-cat{ padding: 6px 8px; gap: 3px; }
  .cat-btn{ padding: 3px 8px; font-size: 11px; }

  /* 侧边栏：默认折叠为小方块 */
  .map-sidebar{
    width: 48px;
    top: 96px; left: 8px;
    max-height: 48px;
    border-radius: 4px;
  }
  .map-sidebar .sb-head{ padding: 0; height: 48px; justify-content: center; border-bottom: none; background: transparent; }
  .map-sidebar .sb-toggle{
    width: 40px; height: 40px;
    font-size: 14px;
    border: none; background: transparent;
  }
  /* 折叠状态 */
  .map-sidebar.collapsed{ width: 48px; max-height: 48px; }
  .map-sidebar.collapsed .sb-head{ padding: 0; height: 48px; }
  .map-sidebar.collapsed .sb-head h3,
  .map-sidebar.collapsed .sb-count,
  .map-sidebar.collapsed .sb-body{ display: none; }
  /* 展开状态（手机下点 toggle 后）：限制宽度，不挡全屏 */
  .map-sidebar:not(.collapsed){
    width: 260px;
    max-height: 50vh;
  }
  .map-sidebar:not(.collapsed) .sb-head{
    height: auto; padding: 8px 12px;
    border-bottom: 1px solid #eee; background: #f4f1ea;
    justify-content: flex-start;
  }
  .map-sidebar:not(.collapsed) .sb-toggle{ width: 28px; height: 28px; font-size: 12px; }

  /* 控件：右下角，大按钮，触摸友好 */
  .map-controls{
    bottom: 16px; right: 8px;
    flex-direction: column;
    padding: 4px;
    gap: 4px;
  }
  .ctl-btn{ width: 44px; height: 44px; font-size: 20px; }
  .ctl-divider{ margin: 1px 0; }

  /* 指北针：手机下移到右下角控件上方，避开顶部搜索栏 */
  .map-compass{
    top: auto; bottom: 76px; right: 12px;
    width: 44px; height: 44px;
  }
  .cmp-n{ font-size: 10px; }
  .cmp-needle{ border-left-width: 4px; border-right-width: 4px; border-bottom-width: 11px; }
  .cmp-s{ font-size: 7px; }

  /* 比例尺：手机下更紧凑 */
  .map-scale{
    left: 8px; bottom: 16px;
    padding: 4px 8px; gap: 6px;
  }
  .sc-bar{ width: 60px; height: 6px; }
  .sc-text{ font-size: 10px; }

  /* 图层面板 */
  .layer-panel{ right: 8px; bottom: 180px; min-width: 140px; padding: 10px 12px; }
  .layer-panel h4{ font-size: 12px; }
  .layer-panel label{ font-size: 12px; padding: 5px 0; }

  /* 详情卡片：底部全宽滑入 */
  .map-detail{
    width: calc(100% - 16px);
    left: 8px; right: 8px;
    top: auto; bottom: 8px;
    max-height: 55vh;
    border-radius: 6px;
    padding: 14px;
  }
  .dc-head h3{ font-size: 14px; }
  .dc-desc{ font-size: 12px; }
  .dc-info{ font-size: 11px; }
  .dc-actions a{ font-size: 11px; padding: 7px 0; }
  .detail-close{ width: 28px; height: 28px; font-size: 13px; }

  /* 水印：精简 */
  .map-watermark{
    font-size: 9px; padding: 3px 8px;
    bottom: 4px;
    max-width: calc(100% - 120px);
  }
  .map-watermark span:nth-child(n+3){ display: none; }
}
