/* ============================================================
   dangjun.cn v30「砀山门户」全新设计
   墨松绿 · 暖纸白 · 砀山橙点缀 · 门户杂志排版
   v30 重制：整站换装，布局与内容结构不变，旧 class 全兼容
   ============================================================ */
:root {
  --primary: #1f4e3d;
  --primary-dark: #143528;
  --primary-light: #e9f0ea;
  --accent: #d97b29;
  --accent-soft: #faeeda;
  --green: #3f7a55;
  --green-dark: #1f4e3d;
  --bg: #f7f5f0;
  --card-bg: #ffffff;
  --text: #2b2e2a;
  --text-light: #7c827a;
  --border: #e2ded3;
  --danger: #b03a2e;
  --warn: #b07a1f;
  --radius: 8px;
  --radius-sm: 5px;
  --shadow: 0 1px 5px rgba(46, 58, 46, 0.08);
  --shadow-lg: 0 10px 30px rgba(30, 42, 30, 0.16);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --serif: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --paper-line: #d8d2c2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.8; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.4; font-weight: 700; }
h1, h2, .section-title h2, .slide-inner h1, .slide-inner h2, .page-banner h1, .page-hero h1, .logo-text, .stat-card strong, .masthead-title { font-family: var(--serif); }
ul { list-style: none; }
input, select, textarea, button { font-family: var(--font); font-size: 14px; }
::selection { background: var(--accent-soft); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* ---------------- 顶部细条 ---------------- */
.topbar { background: var(--primary-dark); color: rgba(255,252,245,.72); font-size: 12.5px; letter-spacing: 1px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 34px; }
.topbar a { color: rgba(255,252,245,.9); margin-left: 16px; }
.topbar a:hover { color: var(--accent-soft); }
.tb-motto::before { content: "◆ "; color: var(--accent); font-size: 10px; }

/* ---------------- 页头（报头式） ---------------- */
.header { background: var(--card-bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.brand-row { display: flex; align-items: center; gap: 20px; min-height: 78px; }
.logo { display: flex; align-items: center; gap: 13px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-icon {
  width: 48px; height: 48px; flex: none; border-radius: 6px;
  background: linear-gradient(145deg, #1f4e3d, #143528); color: #fffdf5; font-family: var(--serif);
  font-size: 27px; font-weight: 800; line-height: 48px; text-align: center;
  box-shadow: inset 0 0 0 2px rgba(255,253,245,.35), 0 3px 8px rgba(20,53,40,.35);
}
.logo-text { font-size: 23px; font-weight: 800; line-height: 1.25; letter-spacing: 2.5px; color: var(--primary-dark); }
.logo-text small { display: block; font-family: var(--font); font-size: 11px; font-weight: 400; color: var(--text-light); letter-spacing: 3.5px; }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-search { display: flex; }
.header-search input {
  width: 170px; height: 36px; padding: 0 12px; font-size: 13px;
  border: 1px solid var(--border); border-right: 0; border-radius: 4px 0 0 4px; outline: none;
  background: #fcfbf7; transition: width .25s, border-color .2s;
}
.header-search input:focus { width: 210px; border-color: var(--accent); }
.header-search button {
  height: 36px; padding: 0 15px; border: 1px solid var(--primary); border-radius: 0 4px 4px 0;
  background: var(--primary); color: #fffdf5; font-size: 13px; cursor: pointer;
}
.header-search button:hover { background: var(--primary-dark); }
.head-tel { font-weight: 800; color: var(--primary-dark) !important; font-size: 15px; letter-spacing: .5px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

.mainnav { background: var(--primary-dark); border-top: 3px solid var(--accent); }
.mainnav-in { display: flex; align-items: stretch; gap: 0; min-height: 48px; }
.mainnav > .mainnav-in > a, .mainnav .nav-item > a {
  display: flex; align-items: center; padding: 0 19px;
  color: rgba(255,252,245,.9); font-size: 15px; letter-spacing: 2px; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.mainnav > .mainnav-in > a:hover, .mainnav .nav-item > a:hover { color: #fff; border-bottom-color: var(--accent); }
.mainnav > .mainnav-in > a.active, .mainnav .nav-item.active > a { color: #ffffff; border-bottom-color: var(--accent); font-weight: 700; }
.nav-item { position: relative; display: flex; }
.nav-item .caret {
  display: inline-block; width: 0; height: 0; margin-left: 6px;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .55;
}
.nav-item .dropdown {
  position: absolute; top: 100%; left: 6px; min-width: 165px; padding: 6px;
  background: var(--card-bg); border: 1px solid var(--border); border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s; z-index: 120;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item .dropdown a { display: block; padding: 8px 12px; color: var(--text); font-size: 14px; letter-spacing: 0; border-bottom: 1px dashed var(--border); }
.nav-item .dropdown a:last-child { border-bottom: 0; }
.nav-item .dropdown a:hover { color: var(--accent); padding-left: 16px; }
.nav-cta { margin-left: auto; display: flex; align-items: center; color: var(--accent-soft) !important; font-weight: 700; letter-spacing: 1px; font-size: 14px; }
.nav-cta:hover { color: #fff !important; }

/* ---------------- 移动端菜单 ---------------- */
.mobile-menu { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.mobile-menu.open { visibility: visible; }
.mm-panel { position: absolute; top: 0; right: 0; width: 82%; max-width: 340px; height: 100%; background: var(--card-bg); box-shadow: -8px 0 30px rgba(0,0,0,.22); padding: 18px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; }
.mobile-menu.open .mm-panel { transform: translateX(0); }
.mm-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.mm-title { font-family: var(--serif); font-weight: 800; font-size: 17px; color: var(--primary-dark); }
.mm-close { background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--text-light); }
.mm-contact { margin: 14px 0; padding: 12px 14px; background: var(--primary-light); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.mm-contact a { color: var(--primary-dark); font-weight: 800; font-size: 16px; }
.mm-group { margin-bottom: 16px; }
.mm-group h4 { font-size: 13px; color: var(--accent); margin-bottom: 8px; letter-spacing: 2px; }
.mm-group div { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-group a { padding: 7px 13px; background: #f3f1ea; border-radius: 4px; color: var(--text); font-size: 14px; }
.mm-group a:hover { background: var(--primary-light); color: var(--primary-dark); }
.mm-book { display: block; text-align: center; padding: 12px; background: var(--primary-dark); color: var(--accent-soft) !important; font-weight: 700; letter-spacing: 1px; border-radius: var(--radius-sm); }

/* ---------------- 首页卷首：头条区 ---------------- */
.front-head { display: grid; grid-template-columns: 2fr 1fr; gap: 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 22px; box-shadow: var(--shadow); }
.front-hero { position: relative; min-height: 410px; overflow: hidden; border-right: 1px solid var(--border); }
.front-hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; display: flex; align-items: flex-end; background-size: cover; background-position: center; }
.front-hero .slide.active { opacity: 1; }
.front-hero .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,28,22,0) 30%, rgba(16,28,22,.8) 100%); }
.front-hero .slide-inner { position: relative; z-index: 2; padding: 30px 34px; color: #fffdf5; width: 100%; }
.front-hero .slide-inner h1, .front-hero .slide-inner h2 { font-size: 30px; letter-spacing: 3px; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.front-hero .slide-inner p { font-size: 14.5px; margin: 10px 0 18px; opacity: .92; max-width: 520px; }
.front-hero .slide-inner .btn { background: var(--accent); border: 0; }
.front-hero .dots { position: absolute; bottom: 16px; right: 20px; z-index: 5; text-align: right; }
.dots span { display: inline-block; width: 22px; height: 3px; margin: 0 3px; background: rgba(255,253,245,.45); cursor: pointer; transition: background .2s, width .2s; border-radius: 2px; }
.dots span.active { background: var(--accent); width: 34px; }

/* 兼容旧 hero 结构（若其它页复用） */
.hero { position: relative; height: 420px; overflow: hidden; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; display: flex; align-items: center; background-size: cover; background-position: center; }
.hero .slide.active { opacity: 1; }
.hero .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,26,20,.68) 0%, rgba(14,26,20,.32) 55%, rgba(14,26,20,.05) 100%); }
.slide-inner { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 40px; color: #fffdf5; }
.slide-inner h1, .slide-inner h2 { font-size: 38px; letter-spacing: 3px; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.slide-inner p { font-size: 16px; margin: 12px 0 24px; opacity: .93; max-width: 560px; }

.feat-side { padding: 18px 22px 12px; display: flex; flex-direction: column; }
.feat-side .fs-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--primary-dark); padding-bottom: 8px; margin-bottom: 4px; }
.feat-side .fs-head h2 { font-size: 19px; letter-spacing: 3px; color: var(--primary-dark); }
.feat-side .fs-head a { font-size: 12.5px; color: var(--text-light); }
.fs-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--border); align-items: baseline; }
.fs-item:last-child { border-bottom: 0; }
.fs-item .no { font-family: var(--serif); font-size: 17px; color: var(--accent); font-weight: 800; flex: none; width: 22px; }
.fs-item a { color: var(--text); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fs-item a:hover { color: var(--primary-dark); }
.fs-item .fs-date { font-size: 11.5px; color: var(--text-light); flex: none; }

/* ---------------- 速览条 ---------------- */
.kv-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-top: 0; background: var(--card-bg); margin-bottom: 0; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.kv { padding: 20px 24px; border-right: 1px dashed var(--border); text-align: center; }
.kv:last-child { border-right: 0; }
.kv strong { display: block; font-family: var(--serif); font-size: 21px; color: var(--primary-dark); letter-spacing: 2px; }
.kv strong::after { content: ""; display: block; width: 24px; height: 2px; background: var(--accent); margin: 8px auto 0; }
.kv span { font-size: 12.5px; color: var(--text-light); display: block; margin-top: 8px; }

/* ---------------- 内页头图 ---------------- */
.page-banner, .page-hero { position: relative; color: #fffdf5; text-align: center; padding: 72px 0 64px; background: var(--primary-dark); background-size: cover; background-position: center; }
.page-hero { background-color: var(--primary-dark); }
.page-banner::before, .page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,36,28,.58), rgba(16,36,28,.72)); }
.page-banner .container, .page-hero .container { position: relative; z-index: 2; }
.page-banner h1, .page-hero h1 { font-size: 34px; letter-spacing: 6px; }
.page-banner h1::after, .page-hero h1::after { content: ""; display: block; width: 40px; height: 3px; background: var(--accent); margin: 16px auto 0; }
.page-banner p, .page-hero p { margin-top: 12px; opacity: .88; font-size: 14.5px; letter-spacing: 2px; }

/* 页内锚点导航 */
.sec-nav { position: sticky; top: calc(var(--header-h, 155px) + 1px); z-index: 60; background: var(--card-bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.sec-nav .container { display: flex; gap: 4px; overflow-x: auto; }
.sec-nav a { padding: 12px 15px; color: var(--text); font-size: 14px; letter-spacing: 1px; white-space: nowrap; border-bottom: 2px solid transparent; }
.sec-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 54px 0; }
.section-title { text-align: center; margin-bottom: 38px; }
.section-title h2 { font-size: 28px; letter-spacing: 5px; color: var(--primary-dark); }
.section-title h2::before { content: "◆"; color: var(--accent); font-size: 13px; vertical-align: 6px; margin-right: 12px; }
.section-title h2::after { content: "◆"; color: var(--accent); font-size: 13px; vertical-align: 6px; margin-left: 12px; }
.section-title p { color: var(--text-light); margin-top: 10px; font-size: 14px; letter-spacing: 2px; }
.section-title .bar { display: none; }

/* ---------------- 按钮 ---------------- */
.btn { display: inline-block; padding: 10px 26px; border-radius: var(--radius-sm); border: 1px solid transparent; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: all .2s; line-height: 1.6; letter-spacing: 1px; }
.btn-primary { background: var(--primary-dark); color: #fffdf5; border-color: var(--primary-dark); }
.btn-primary:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
.btn-outline { border-color: var(--primary); color: var(--primary-dark); background: transparent; }
.btn-outline:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { color: #fff; opacity: .9; }
.btn-gray { background: #edeae1; color: var(--text); border-color: var(--border); }
.btn-gray:hover { background: #e2ded2; color: var(--text); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { color: #fff; opacity: .92; }
.btn-lg { padding: 13px 36px; font-size: 16px; }
.btn-sm, .btn-small { padding: 6px 14px; font-size: 13px; }

/* ---------------- 标签 ---------------- */
.tag { display: inline-block; padding: 2px 10px; border-radius: 3px; font-size: 12px; font-weight: 600; background: var(--primary-light); color: var(--primary-dark); vertical-align: 1px; }
.tag-new { background: #e8eef7; color: #2a4d7f; }
.tag-processing { background: var(--accent-soft); color: var(--warn); }
.tag-done { background: #e6f0e4; color: var(--primary-dark); }
.tag-pending { background: var(--accent-soft); color: var(--warn); }
.tag-pass { background: #e6f0e4; color: var(--primary-dark); }
.tag-reject { background: #f7e5e0; color: var(--danger); }
.tag-warn { background: var(--accent-soft); color: var(--warn); }

/* ---------------- 功能入口 ---------------- */
.entry-grid { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--border); background: var(--card-bg); border-radius: var(--radius); overflow: hidden; }
.entry { padding: 24px 14px; text-align: center; color: var(--text); border-right: 1px dashed var(--border); transition: background .2s; }
.entry:last-child { border-right: 0; }
.entry:hover { background: var(--primary-light); color: var(--text); }
.entry .icon { font-size: 30px; display: block; margin-bottom: 10px; filter: grayscale(15%); }
.entry h3 { font-size: 15px; letter-spacing: 1px; }
.entry p { font-size: 12px; color: var(--text-light); margin-top: 6px; line-height: 1.5; }

/* ---------------- 卡片 ---------------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards.topic-cards { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--text); transition: transform .25s, box-shadow .25s; position: relative; box-shadow: var(--shadow); }
a.card:hover, .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
a.card:hover { border-color: var(--accent); }
.card .thumb { height: 180px; overflow: hidden; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
a.card:hover .thumb img { transform: scale(1.05); }
.thumb-emoji { font-size: 44px; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; border-top: 3px solid var(--primary-dark); }
.card .body h3 { font-size: 16px; letter-spacing: .5px; }
.card .body p { font-size: 13.5px; color: var(--text-light); margin-top: 8px; flex: 1; }
.card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; color: var(--accent); font-weight: 700; }

/* 七大栏目格 */
.col-cell { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 10px; text-align: center; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; box-shadow: var(--shadow); }
.col-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); color: var(--text); }
.col-ico { font-size: 26px; display: block; margin-bottom: 8px; }
.col-cell h3 { font-size: 14.5px; letter-spacing: 1px; color: var(--primary-dark); }
.col-num { display: block; font-size: 12px; color: var(--text-light); margin-top: 6px; letter-spacing: 1px; }

/* 文化之旅四卡 */
.home-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.home-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; color: var(--text); position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; box-shadow: var(--shadow); }
.home-card::before { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 0; background: var(--accent); transition: height .3s; }
.home-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.home-card:hover::before { height: 100%; }
.hc-ico { font-size: 28px; margin-bottom: 10px; }
.home-card h3 { font-family: var(--serif); font-size: 17px; letter-spacing: 1px; }
.home-card p { font-size: 13.5px; color: var(--text-light); margin: 8px 0 14px; min-height: 42px; }
.home-card span { color: var(--accent); font-weight: 700; font-size: 13.5px; }

/* ---------------- 联系横幅 ---------------- */
.contact-banner { background: var(--primary-dark); color: #fffdf5; text-align: center; border-top: 3px solid var(--accent); }
.contact-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.contact-banner h2 { font-family: var(--serif); font-size: 27px; letter-spacing: 4px; }
.contact-banner p { opacity: .85; margin-top: 8px; letter-spacing: 1px; }
.contact-banner .btn-primary { background: var(--accent); color: #40230a; border-color: var(--accent); }
.contact-banner .btn-primary:hover { color: #40230a; filter: brightness(1.06); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-grid > div { background: #faf8f2; border: 1px solid var(--border); padding: 16px; font-size: 14px; border-radius: var(--radius-sm); }
.contact-grid span { display: block; color: var(--text-light); font-size: 12.5px; }
.contact-grid strong { font-size: 15px; }

/* ---------------- 资讯 ---------------- */
.news-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.news-item { display: flex; gap: 18px; padding: 16px 18px; border-bottom: 1px dashed var(--border); cursor: pointer; transition: background .2s; }
.news-item:last-child { border-bottom: 0; }
.news-item:hover { background: #faf8f2; }
.n-thumb { width: 168px; height: 106px; flex: none; overflow: hidden; background: var(--primary-light); }
.n-thumb img { width: 100%; height: 100%; object-fit: cover; }
.n-thumb .thumb-emoji { font-size: 40px; }
.news-item h3 { font-size: 16px; line-height: 1.55; }
.news-item p { font-size: 13.5px; color: var(--text-light); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .date { font-size: 12px; color: #9aa094; margin-top: 8px; letter-spacing: 1px; }
.news-cat-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 3px; padding: 0 8px; margin-right: 8px; vertical-align: 2px; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 0; justify-content: center; margin-bottom: 0; border: 1px solid var(--border); background: var(--card-bg); border-radius: var(--radius-sm); overflow: hidden; }
.cat-tabs a { padding: 10px 22px; color: var(--text); font-size: 14px; letter-spacing: 1px; border-right: 1px dashed var(--border); }
.cat-tabs a:last-child { border-right: 0; }
.cat-tabs a:hover { color: var(--accent); }
.cat-tabs a.active { background: var(--primary-dark); color: var(--accent-soft); font-weight: 700; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.cat-filter a { padding: 6px 18px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text); font-size: 13.5px; letter-spacing: 1px; border-radius: 999px; }
.cat-filter a.active, .cat-filter a:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--accent-soft); }

/* 资讯两栏布局 */
.news-layout { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }
.news-side { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: sticky; top: calc(var(--header-h, 155px) + 28px); border-top: 3px solid var(--accent); box-shadow: var(--shadow); }
.news-side h3 { font-size: 16px; letter-spacing: 2px; padding-bottom: 12px; border-bottom: 2px solid var(--primary-dark); margin-bottom: 4px; }
.side-item { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 14px; align-items: baseline; }
.side-item:last-of-type { border-bottom: 0; }
.side-item .no { font-family: var(--serif); color: var(--accent); font-weight: 800; font-size: 15px; flex: none; width: 20px; }
.side-item a { color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-item a:hover { color: var(--primary-dark); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.pager a, .pager span { padding: 7px 15px; border: 1px solid var(--border); background: var(--card-bg); font-size: 13.5px; color: var(--text); border-radius: var(--radius-sm); }
.pager span { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--accent-soft); font-weight: 700; }

/* 资讯详情 */
.news-detail-wrap { max-width: 860px; margin: 0 auto; }
.news-detail, .news-article, .article { background: var(--card-bg); border: 1px solid var(--border); border-top: 3px solid var(--primary-dark); border-radius: var(--radius); padding: 36px 42px; box-shadow: var(--shadow); }
.news-head { border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 22px; }
.news-head h2, .news-head h1 { font-family: var(--serif); font-size: 25px; line-height: 1.55; margin-top: 10px; letter-spacing: 1px; }
.news-tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); padding: 2px 13px; letter-spacing: 1px; border-radius: 3px; }
.news-meta { display: flex; gap: 20px; color: var(--text-light); font-size: 13px; margin-top: 12px; flex-wrap: wrap; }
.article-hero { margin-bottom: 22px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.article-hero img { width: 100%; max-height: 430px; object-fit: cover; }
.article-date { color: var(--text-light); font-size: 13px; margin-bottom: 14px; letter-spacing: 1px; }
.article-body { font-size: 16px; line-height: 2.05; color: #303430; }
.article-body p { margin-bottom: 15px; text-align: justify; }
.article-body img { border: 1px solid var(--border); margin: 10px auto; border-radius: var(--radius-sm); }
.article-body strong, .article-body b { color: var(--primary-dark); }
.article-body p:first-of-type::first-letter { font-family: var(--serif); font-size: 1.2em; color: var(--primary-dark); }
.article-body > p { margin: 0 0 16px; text-align: justify; }
.article-body h2 { font-family: var(--serif); font-size: 20px; line-height: 1.65; color: var(--primary-dark); margin: 34px 0 14px; padding-left: 13px; border-left: 4px solid var(--accent); letter-spacing: 1px; }
.article-body h3 { font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--primary-dark); margin: 24px 0 10px; letter-spacing: .5px; }
.article-body h3::before { content: "◆"; color: var(--accent); font-size: 10px; margin-right: 8px; vertical-align: 2px; }
.article-body h4 { font-size: 15.5px; color: var(--primary-dark); margin: 18px 0 8px; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 0; list-style: none; }
.article-body ol { counter-reset: ab; }
.article-body ul > li, .article-body ol > li { position: relative; padding-left: 24px; margin-bottom: 9px; }
.article-body ul > li::before { content: "▪"; position: absolute; left: 7px; top: 0; color: var(--accent); font-weight: 700; }
.article-body ol > li { counter-increment: ab; }
.article-body ol > li::before { content: counter(ab); position: absolute; left: 0; top: 4px; width: 17px; height: 17px; line-height: 17px; text-align: center; font-size: 11px; background: var(--primary-light); color: var(--primary-dark); border-radius: 50%; font-weight: 700; }
.article-body blockquote { margin: 0 0 16px; padding: 12px 18px; background: #f4f2ea; border-left: 3px solid var(--border); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #565b52; font-size: 14.5px; }
.article-body hr { border: 0; border-top: 1px dashed var(--border); margin: 26px 0; }
.article-body a { color: var(--primary-dark); border-bottom: 1px solid var(--accent); }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; line-height: 1.75; }
.article-body th { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; white-space: nowrap; }
.article-body tbody tr:nth-child(even) { background: #faf9f4; }
.article-body p.pd-src { font-size: 13px; line-height: 1.9; color: var(--text-light); background: #f4f2ea; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: left; }
.article-body p.pd-src::first-letter { font-family: inherit; font-size: 1em; color: inherit; }
.article-toc { background: linear-gradient(150deg, var(--primary-light), #faf9f3); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 18px 24px; margin: 0 0 26px; }
.article-toc .toc-title { font-family: var(--serif); font-size: 15px; letter-spacing: 2px; color: var(--primary-dark); margin-bottom: 10px; }
.article-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.article-toc li { counter-increment: toc; margin-bottom: 7px; font-size: 14px; line-height: 1.7; }
.article-toc li.toc-3 { padding-left: 22px; font-size: 13.5px; color: var(--text-light); }
.article-toc a { color: var(--text); }
.article-toc a::before { content: counter(toc) ". "; color: var(--accent); font-weight: 700; }
.article-toc a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .article-body { font-size: 15.5px; }
  .article-body h2 { font-size: 18px; }
  .article-body th, .article-body td { padding: 8px 9px; font-size: 13px; }
}
.share-bar { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.share-label { font-size: 13.5px; color: var(--text-light); }
.share-item { padding: 5px 14px; font-size: 13px; background: #f3f1e8; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.share-item:hover { background: var(--primary-light); color: var(--primary-dark); }
.share-copy { padding: 5px 14px; font-size: 13px; background: var(--card-bg); border: 1px dashed var(--border); cursor: pointer; border-radius: var(--radius-sm); }
.news-cta { margin-top: 26px; padding: 20px 24px; background: var(--primary-light); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.nav-card { background: var(--card-bg); border: 1px solid var(--border); padding: 14px 18px; border-radius: var(--radius-sm); }
.nav-card .nav-label { display: block; font-size: 12px; color: var(--accent); letter-spacing: 2px; margin-bottom: 4px; }
.nav-card a { color: var(--text); font-weight: 600; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.nav-next { text-align: right; }
.news-back { text-align: center; margin-top: 22px; }
.related-list { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px 26px; margin-top: 20px; }
.related-list h3 { font-family: var(--serif); font-size: 16px; letter-spacing: 2px; margin-bottom: 10px; }
.related-list li { padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.related-list li:last-child { border-bottom: 0; }
.related-list li::before { content: "◆"; color: var(--accent); font-size: 10px; margin-right: 8px; vertical-align: 1px; }
.breadcrumb, .crumb { font-size: 13px; color: var(--text-light); margin-bottom: 16px; letter-spacing: 1px; }
.breadcrumb a, .crumb a { color: var(--text-light); }
.breadcrumb a:hover, .crumb a:hover { color: var(--accent); }

/* ---------------- 走进砀山页组件 ---------------- */
.intro-block { background: linear-gradient(150deg, var(--primary-light), #faf9f3); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 22px; margin: 18px 0; }
.intro-block h4 { font-family: var(--serif); font-size: 15.5px; margin-bottom: 6px; letter-spacing: 1px; }
.intro-block p { font-size: 14px; color: #4b514a; }
.ds-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin: 34px 0; }
.ds-lead-rev > figure { order: 2; }
.ds-photo { overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); border-radius: var(--radius); }
.ds-photo img { width: 100%; height: 320px; object-fit: cover; transition: transform .5s; }
.ds-photo:hover img { transform: scale(1.04); }
.ds-photo figcaption { padding: 10px 14px; font-size: 12.5px; color: var(--text-light); background: var(--card-bg); text-align: center; letter-spacing: 1px; }
.ds-lead h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 12px; letter-spacing: 1px; }
.ds-lead p { font-size: 14.5px; color: #4b514a; margin-bottom: 10px; }
.ds-imgrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.honor-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.honor-pill { padding: 6px 16px; font-size: 13px; font-weight: 600; background: var(--card-bg); border: 1px solid var(--border); box-shadow: var(--shadow); letter-spacing: 1px; border-radius: 999px; }
.honor-pill::before { content: "◆ "; color: var(--accent); font-size: 10px; }
.timeline { position: relative; margin: 20px 0; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 1px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 20px; }
.tl-item::before { content: ""; position: absolute; left: -22.5px; top: 7px; width: 9px; height: 9px; background: var(--card-bg); border: 2px solid var(--accent); transform: rotate(45deg); border-radius: 2px; }
.tl-year { font-family: var(--serif); font-weight: 800; color: var(--accent); font-size: 15px; letter-spacing: 1px; }
.tl-body h4 { font-size: 15.5px; margin: 2px 0 4px; }
.tl-body p { font-size: 13.5px; color: var(--text-light); }
.cele-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.cele-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 14px; text-align: center; transition: transform .2s, box-shadow .2s; box-shadow: var(--shadow); }
.cele-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cele-name { font-family: var(--serif); font-size: 17px; font-weight: 800; color: var(--primary-dark); letter-spacing: 1px; }
.cele-era { font-size: 12.5px; color: var(--accent); margin: 4px 0 8px; letter-spacing: 1px; }
.cele-card p, .heri-card p { font-size: 13px; color: #4b514a; text-align: left; }
.heri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.heri-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow); }
.heri-icon { font-size: 24px; flex: none; }
.heri-card h4 { font-size: 15px; }
.heri-level { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--warn); background: var(--accent-soft); padding: 1px 8px; border-radius: 3px; vertical-align: 1px; }
.town-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 18px; box-shadow: var(--shadow); transition: box-shadow .25s, border-color .25s; }
.town-card:hover { box-shadow: var(--shadow-lg); border-color: var(--accent); }
.town-head h3 { font-family: var(--serif); font-size: 18.5px; letter-spacing: 1px; }
.town-head { padding-bottom: 12px; border-bottom: 1px dashed var(--border); margin-bottom: 12px; }
.town-desc { font-size: 14.5px; color: #4b514a; }
.town-villages { font-size: 13px; color: var(--text-light); margin-top: 10px; background: #f3f1e8; padding: 10px 14px; border-radius: var(--radius-sm); }
.town-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--card-bg); }
.town-table th { background: var(--primary-dark); color: var(--accent-soft); font-weight: 700; text-align: left; letter-spacing: 1px; }
.town-table th, .town-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.town-table tr:hover td { background: #f8f6ee; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* ---------------- 特产/产品 ---------------- */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.detail-thumb { overflow: hidden; border: 1px solid var(--border); background: var(--primary-light); border-radius: var(--radius); }
.detail-thumb img { width: 100%; max-height: 420px; object-fit: cover; }
.detail-thumb .thumb-emoji { font-size: 100px; display: flex; align-items: center; justify-content: center; height: 320px; }
.detail-info h1, .detail-info h2 { font-family: var(--serif); font-size: 25px; margin-bottom: 12px; letter-spacing: 1px; }
.detail-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.detail-tag { background: var(--primary-light); color: var(--primary-dark); padding: 3px 12px; font-size: 13px; font-weight: 600; border: 1px solid var(--border); border-radius: 999px; }
.price-num { font-family: var(--serif); font-size: 26px; font-weight: 800; color: var(--danger); }
.price-tip { font-size: 12.5px; color: var(--text-light); margin-left: 8px; }
.detail-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { background: var(--card-bg); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 18px; text-align: center; box-shadow: var(--shadow); }
.stat-card strong { display: block; font-size: 21px; color: var(--primary-dark); letter-spacing: 2px; }
.stat-card span { font-size: 12.5px; color: var(--text-light); }

/* ---------------- 表单 ---------------- */
.lead-form, .gb-form, .query-form { display: flex; flex-direction: column; gap: 14px; }
.c-field, .field, .form-group { display: flex; flex-direction: column; gap: 6px; }
.c-field label, .field label, .form-group label { font-size: 13.5px; font-weight: 600; color: var(--text); letter-spacing: 1px; }
.req { color: var(--danger); }
.c-field input, .field input, .form-group input,
.c-field select, .field select, .form-group select,
.c-field textarea, .field textarea, .form-group textarea,
.lead-form input, .lead-form select, .lead-form textarea,
.query-form input {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14.5px; outline: none; background: #fcfbf7; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.c-field input:focus, .field input:focus, .form-group input:focus,
.c-field select:focus, .field select:focus, .form-group select:focus,
.c-field textarea:focus, .field textarea:focus, .form-group textarea:focus,
.query-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,123,41,.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-tip, .query-tip { font-size: 12.5px; color: var(--text-light); }
.captcha-row { display: flex; align-items: center; gap: 12px; }
.captcha-q { font-family: var(--serif); font-size: 18px; font-weight: 800; letter-spacing: 4px; color: var(--primary-dark); background: var(--primary-light); padding: 6px 14px; user-select: none; border: 1px dashed var(--border); border-radius: var(--radius-sm); }
.warn, .danger { font-size: 13.5px; }
.warn { color: var(--warn); }
.danger { color: var(--danger); }

/* ---------------- 服务查询页 ---------------- */
.query-box, .gb-list, .query-help { background: var(--card-bg); border: 1px solid var(--border); border-top: 3px solid var(--primary-dark); border-radius: var(--radius); padding: 26px 30px; box-shadow: var(--shadow); margin-bottom: 22px; }
.query-box h3, .query-help h3, .gb-list h3 { font-family: var(--serif); font-size: 18px; letter-spacing: 2px; margin-bottom: 14px; }
.query-box form { display: flex; gap: 12px; flex-wrap: wrap; }
.query-box input { flex: 1; min-width: 220px; }
.query-help ul { padding-left: 4px; }
.query-help li { padding: 7px 0; font-size: 14px; color: #4b514a; border-bottom: 1px dashed var(--border); }
.query-help li:last-child { border-bottom: 0; }
.gb-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.gb-item { border-bottom: 1px dashed var(--border); padding: 14px 0; }
.gb-item:last-child { border-bottom: 0; }
.gb-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.gb-name { font-weight: 700; font-size: 14.5px; color: var(--primary-dark); }
.gb-time { font-size: 12.5px; color: #9aa094; }
.gb-content { font-size: 14px; color: #4b514a; }
.gb-form { background: var(--card-bg); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 26px 30px; box-shadow: var(--shadow); }

/* ---------------- 区块/面板 ---------------- */
.block { background: var(--card-bg); border: 1px solid var(--border); border-top: 3px solid var(--primary-dark); border-radius: var(--radius); padding: 26px 30px; margin-bottom: 20px; box-shadow: var(--shadow); }
.block h3 { font-family: var(--serif); font-size: 18px; letter-spacing: 2px; margin-bottom: 14px; padding-left: 12px; border-left: 4px solid var(--accent); }
.block-ico { font-size: 30px; margin-bottom: 8px; }
.block-sub { font-size: 13.5px; color: var(--text-light); margin-bottom: 10px; }
.block-order { border-top-color: var(--accent); }
.panel-layout { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
.panel-main { min-width: 0; }
.panel-side { position: sticky; top: calc(var(--header-h, 155px) + 28px); }
.policy-list { display: flex; flex-direction: column; gap: 14px; }
.policy-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 24px; transition: box-shadow .25s; box-shadow: var(--shadow); }
.policy-item:hover { box-shadow: var(--shadow-lg); }
.policy-summary { font-size: 14px; color: #4b514a; margin-top: 8px; }
.hero-callout { background: rgba(255,253,245,.14); border: 1px solid rgba(255,253,245,.3); padding: 18px 22px; color: #fffdf5; border-radius: var(--radius-sm); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px 18px; text-align: center; position: relative; box-shadow: var(--shadow); }
.flow-no { font-family: var(--serif); width: 42px; height: 42px; margin: 0 auto 10px; border: 2px solid var(--accent); color: var(--accent); font-weight: 800; font-size: 16px; line-height: 38px; transform: rotate(45deg); border-radius: 4px; }
.flow-no { display: flex; align-items: center; justify-content: center; }
.flow-no > * { transform: rotate(-45deg); }
.flow-item h4 { font-size: 15.5px; letter-spacing: 1px; }
.flow-item p { font-size: 13px; color: var(--text-light); margin-top: 6px; }

/* 搜索页 */
.search-section { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 22px; box-shadow: var(--shadow); }
.search-bar { display: flex; gap: 12px; }
.search-bar input { flex: 1; padding: 11px 16px; border: 1px solid var(--border); outline: none; font-size: 14.5px; background: #fcfbf7; border-radius: var(--radius-sm); }
.search-bar input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,123,41,.15); }

/* ---------------- 通用小组件 ---------------- */
.empty { text-align: center; color: var(--text-light); padding: 44px 20px; background: var(--card-bg); border: 1px dashed var(--border); border-radius: var(--radius-sm); font-size: 14.5px; letter-spacing: 1px; }
.muted { color: var(--text-light); font-size: 13px; }
.alert { padding: 12px 16px; font-size: 14px; margin-bottom: 16px; border: 1px solid transparent; border-radius: var(--radius-sm); }
.alert-success, .alert-ok, .alert-info { background: #e6f0e4; color: var(--primary-dark); border-color: #c9dcc6; }
.alert-error { background: #f7e5e0; color: var(--danger); border-color: #eccdc4; }
table.table, .admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.table th, .admin-table th { background: var(--primary-dark); color: var(--accent-soft); text-align: left; font-weight: 700; }
table.table th, table.table td, .admin-table th, .admin-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
.auth-box { max-width: 420px; margin: 60px auto; background: var(--card-bg); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lg); }
.auth-box h2 { margin-bottom: 18px; font-family: var(--serif); font-size: 21px; letter-spacing: 2px; }
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; visibility: hidden; }
.modal-mask.show, .modal.show { visibility: visible; }
.modal-mask { position: fixed; inset: 0; background: rgba(24,30,24,.5); z-index: 250; visibility: hidden; }
.modal .modal-body, .modal > div { background: var(--card-bg); padding: 26px; max-width: 520px; width: 92%; box-shadow: var(--shadow-lg); border-top: 3px solid var(--accent); border-radius: var(--radius); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.tab { display: inline-block; padding: 7px 18px; background: #edeae1; color: var(--text); font-size: 14px; cursor: pointer; letter-spacing: 1px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.tab.active { background: var(--primary-dark); color: var(--accent-soft); font-weight: 700; }
.visit-count { font-size: 12.5px; color: var(--text-light); }
.hidden { display: none; }
.bg-green { background: #e6f0e4; } .bg-amber { background: var(--accent-soft); } .bg-blue { background: #e5ebf2; } .bg-red { background: #f7e5e0; } .bg-teal { background: #e0eeea; }

/* 树形（兼容旧组件） */
.tree { padding-left: 6px; }
.tree-node { padding: 8px 12px; margin: 4px 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; }
.tree-root { background: var(--primary-dark); color: var(--accent-soft); font-weight: 700; }
.tree-town { background: #f3f1e8; }
.tree-branch, .tree-col { padding-left: 20px; }
.tree-villages { font-size: 13px; color: var(--text-light); }
.c-car::before { content: "🚗 "; } .c-house::before { content: "🏠 "; } .c-job::before { content: "💼 "; }
.c-marry::before { content: "❤ "; } .c-second::before { content: "🛒 "; } .c-want::before { content: "🔍 "; } .c-other::before { content: "📌 "; }

/* 旧订单/商家组件（后台兼容） */
.order-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 12px; }
.order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.order-no { font-weight: 700; color: var(--primary-dark); font-size: 14px; }
.order-status { font-size: 12.5px; font-weight: 600; }
.order-status.s0 { color: var(--warn); } .order-status.s1 { color: #2a4d7f; }
.order-status.s2 { color: var(--primary-dark); } .order-status.s3 { color: var(--danger); }
.order-body { font-size: 13.5px; color: #4b514a; }
.order-actions { margin-top: 10px; display: flex; gap: 10px; }
.order-edit, .order-empty { font-size: 13.5px; color: var(--text-light); }
.merchant-info { background: #f3f1e8; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 13.5px; }
.detail-info p { font-size: 14.5px; color: #4b514a; }

/* ---------------- 后台 ---------------- */
.admin-side { background: var(--primary-dark); color: #fffdf5; min-height: 100vh; padding: 20px 0; }
.admin-top { background: var(--card-bg); border-bottom: 1px solid var(--border); padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; }
.admin-main { padding: 22px; }
.admin-content { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px; }

/* ---------------- 页脚 ---------------- */
footer { background: #163024; color: rgba(255,252,245,.75); margin-top: 34px; border-top: 3px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 28px; padding: 46px 0 36px; }
.footer-grid h4 { color: var(--accent-soft); font-size: 15px; margin-bottom: 14px; letter-spacing: 2px; }
.footer-grid h4::after { content: ""; display: block; width: 22px; height: 2px; background: var(--accent); margin-top: 8px; }
.footer-grid a { display: block; color: rgba(255,252,245,.7); font-size: 13.5px; padding: 4px 0; }
.footer-grid a:hover { color: var(--accent-soft); }
.footer-brand strong { font-family: var(--serif); color: #fffdf5; font-size: 18px; letter-spacing: 2px; }
.footer-brand p { font-size: 13.5px; margin-top: 12px; line-height: 1.9; }
.footer-seal { margin-top: 14px; display: inline-block; border: 1px solid var(--accent); color: var(--accent-soft); font-family: var(--serif); letter-spacing: 4px; padding: 6px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.footer-bottom { border-top: 1px solid rgba(255,252,245,.12); padding: 16px 0; text-align: center; font-size: 12.5px; color: rgba(255,252,245,.5); letter-spacing: 1px; }
.footer-bottom a { color: rgba(255,252,245,.7); margin: 0 4px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .entry-grid { grid-template-columns: repeat(3, 1fr); }
  .entry:nth-child(3n) { border-right: 0; }
  .cards, .cards.topic-cards, .home-cards, .cele-grid { grid-template-columns: repeat(2, 1fr); }
  .heri-grid, .ds-imgrow { grid-template-columns: repeat(2, 1fr); }
  .stat-grid, .flow, .kv-strip { grid-template-columns: repeat(2, 1fr); }
  .kv:nth-child(2n) { border-right: 0; }
  .news-layout, .panel-layout { grid-template-columns: 1fr; }
  .news-side, .panel-side { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .header-search { display: none; }
  .mainnav { display: none; }
  .menu-toggle { display: block; }
  .front-head { grid-template-columns: 1fr; }
  .front-hero { border-right: 0; border-bottom: 1px solid var(--border); min-height: 320px; }
  .head-tel { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 38px 0; }
  .entry-grid { grid-template-columns: repeat(2, 1fr); }
  .entry:nth-child(2n) { border-right: 0; }
  .cards, .cards.topic-cards, .home-cards, .cele-grid, .heri-grid, .ds-imgrow, .stat-grid, .flow { grid-template-columns: 1fr; }
  .kv-strip { grid-template-columns: 1fr 1fr; }
  .kv { padding: 16px 12px; }
  .ds-lead, .detail-layout, .gb-layout, .form-row, .article-nav, .front-head { grid-template-columns: 1fr; }
  .ds-lead-rev > figure { order: 0; }
  .ds-photo img { height: 220px; }
  .news-item { flex-direction: column; gap: 12px; }
  .n-thumb { width: 100%; height: 170px; }
  .contact-banner-inner { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .news-detail, .news-article, .article, .block, .query-box, .gb-form, .query-help { padding: 22px 18px; }
  .page-banner, .page-hero { padding: 46px 0 42px; }
  .page-banner h1, .page-hero h1 { font-size: 26px; letter-spacing: 3px; }
  .section-title h2 { font-size: 22px; letter-spacing: 2px; }
  .section-title h2::before, .section-title h2::after { margin: 0 6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; padding: 34px 0 26px; }
  .brand-row { gap: 10px; min-height: 62px; }
  .logo-text { font-size: 17px; letter-spacing: 1px; }
  .logo-icon { width: 38px; height: 38px; font-size: 21px; line-height: 38px; }
  .topbar .tb-motto { font-size: 11px; }
  .topbar a { margin-left: 10px; }
  .cat-tabs a { padding: 9px 14px; font-size: 13px; }
}


/* ==================== v22 补丁（v30 重制兼容） ==================== */
/* 七大栏目：独立响应式格子，杜绝横向错位 */
.dir-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.dir-grid .col-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 6px; text-align: center; min-height: 118px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.dir-grid .col-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); color: var(--text); }
.dir-grid .col-cell h3 { white-space: nowrap; letter-spacing: 0; font-size: 14px; color: var(--primary-dark); }
@media (max-width: 1080px) { .dir-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .dir-grid { grid-template-columns: repeat(2, 1fr); } }

/* 卡片真实图片铺满 */
.cards .card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 村档 chip */
.v-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.v-chip { display: inline-block; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--card-bg); font-size: 13px; color: var(--text); text-decoration: none; transition: all .15s; line-height: 1.6; }
.v-chip:hover { border-color: var(--accent); color: var(--primary-dark); background: #fff; }
.v-chip .vt { font-style: normal; font-size: 11px; color: var(--text-light); margin-left: 3px; }
.town-villages { margin-top: 10px; }
.town-villages .v-chips { margin-top: 8px; }

/* 页脚紧凑化 */
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 24px; padding: 32px 0 24px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 16px; padding: 26px 0 20px; } }


/* ---------------- v23：锚点滚动预留吸顶页头高度 ---------------- */
[id] { scroll-margin-top: calc(var(--header-h, 155px) + 14px); }

/* ---------------- v23：页脚横排菜单栏 ---------------- */
.footer-brand-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 36px 0 28px; }
.footer-brand strong { font-family: var(--serif); color: #fffdf5; font-size: 18px; letter-spacing: 2px; margin-left: 12px; }
.footer-brand p { font-size: 13px; color: rgba(255,252,245,.6); margin-top: 8px; line-height: 1.9; }
.footer-contact { text-align: right; font-size: 13.5px; color: rgba(255,252,245,.7); line-height: 2; }
.footer-contact strong { color: var(--accent-soft); }
.footer-menu { border-top: 1px solid rgba(255,252,245,.14); }
.footer-menu .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; padding: 4px 0; }
.footer-menu a { color: rgba(255,252,245,.78); font-size: 13.5px; padding: 9px 13px; letter-spacing: 1px; white-space: nowrap; }
.footer-menu a:hover { color: var(--accent-soft); }
.fm-sep { color: rgba(255,252,245,.25); }

@media (max-width: 768px) {
  .footer-brand-row { flex-direction: column; text-align: center; padding: 30px 0 22px; }
  .footer-brand p { max-width: 100%; }
  .footer-contact { text-align: center; }
  .footer-menu a { padding: 8px 10px; font-size: 13px; }
}


/* ---------------- v24：移动端固定联系条 ---------------- */
.mobar { display: none; }
@media (max-width: 768px) {
  body { padding-bottom: 54px; }
  .mobar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
           background: var(--primary-dark); border-top: 2px solid var(--accent);
           box-shadow: 0 -3px 14px rgba(0,0,0,.18); }
  .mobar a { flex: 1; text-align: center; color: rgba(255,252,245,.9); font-size: 14px;
             letter-spacing: 1px; padding: 14px 0; border-right: 1px solid rgba(255,252,245,.14); }
  .mobar a:last-child { border-right: 0; }
  .mobar a.mb-tel { background: var(--accent); color: #40230a; font-weight: 700; }
}


/* ================= v25 信息架构：面包屑 / 频道栏目 / 乡镇直达 / 相关资讯 / 分页 ================= */
.crumbbar { background: #fff; border-bottom: 1px solid var(--border); }
.crumbbar .crumb { margin: 0; padding: 12px 0; font-size: 13px; color: var(--text-light); letter-spacing: .5px; }
.crumb-sep { margin: 0 8px; color: #c5c0ae; }
.crumb-cur { color: var(--primary-dark); font-weight: 600; }

.nav-item .dropdown .dd-label { display: block; padding: 10px 12px 4px; font-size: 12px; letter-spacing: 1px; color: #9b9682; border-top: 1px dashed var(--border); white-space: nowrap; }
.nav-item .dropdown .dd-label:first-child { border-top: 0; padding-top: 6px; }
.nav-item .dropdown .dd-label a { display: inline; padding: 0; border: 0; color: var(--primary-dark); font-weight: 700; font-size: 12.5px; }
.nav-item .dropdown .dd-label a:hover { padding-left: 0; color: var(--accent); }
.nav-item .dropdown .dd-tag { font-style: normal; font-size: 11px; color: #b5b09b; margin-left: 4px; }
.nav-item.nav-wide .dropdown { min-width: 250px; }
.nav-item.nav-wide .dropdown a { white-space: nowrap; }

.chan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.chan-card { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.chan-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.chan-ico { font-size: 30px; line-height: 1; }
.chan-head h3 { font-family: var(--serif); font-size: 19px; letter-spacing: 2px; }
.chan-head h3 a { color: var(--primary-dark); }
.chan-head h3 a:hover { color: var(--accent); }
.chan-tag { font-size: 12px; color: var(--text-light); letter-spacing: 1px; }
.chan-card > p { font-size: 13.5px; color: var(--text-light); line-height: 1.9; margin-bottom: 14px; min-height: 52px; }

.town-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.town-chip { display: block; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; box-shadow: var(--shadow); }
.town-chip:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.town-chip strong { display: block; color: var(--primary-dark); font-size: 15px; letter-spacing: 1px; font-family: var(--serif); }
.town-chip span { display: block; margin-top: 6px; font-size: 12px; color: var(--text-light); }

.town-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.town-more { flex: 0 0 auto; font-size: 13px; color: var(--accent); white-space: nowrap; }

.rel-news { display: flex; flex-direction: column; }
.rel-news-item { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); text-decoration: none; }
.rel-news-item:last-child { border-bottom: 0; }
.rel-news-item .rn-cat { flex: 0 0 auto; font-size: 11.5px; padding: 2px 8px; border-radius: 3px; background: var(--primary-dark); color: #f4f1e6; }
.rel-news-item .rn-title { flex: 1 1 auto; color: var(--text); font-size: 14.5px; line-height: 1.7; }
.rel-news-item:hover .rn-title { color: var(--accent); }
.rel-news-item .rn-date { flex: 0 0 auto; font-size: 12px; color: var(--text-light); }

.pager { text-align: center; margin-top: 22px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pager a { padding: 6px 14px; border-radius: var(--radius-sm); font-size: 14px; text-decoration: none; background: #fff; color: #555; border: 1px solid #ddd; }
.pager a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
a.news-tag { text-decoration: none; }

@media (max-width: 1080px) {
  .chan-grid { grid-template-columns: 1fr; }
  .town-chips { grid-template-columns: repeat(3, 1fr); }
  .chan-card > p { min-height: 0; }
}
@media (max-width: 620px) {
  .town-chips { grid-template-columns: repeat(2, 1fr); }
  .rel-news-item { flex-wrap: wrap; }
  .rel-news-item .rn-title { flex-basis: 100%; }
}

/* ============================================================
   v31 追加：底部五列布局 / 联系区 / AI 导览入口 / 缩略图修复
   ============================================================ */
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr; gap: 26px; padding: 40px 0 30px; align-items: start; }
@media (max-width: 1180px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
@media (max-width: 900px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .footer-grid { grid-template-columns: 1fr; gap: 18px; padding: 28px 0 20px; } }

/* 联系列 */
.footer-contact-col h4 { color: var(--accent-soft); font-size: 15px; margin-bottom: 14px; letter-spacing: 2px; }
.footer-contact-col h4::after { content: ""; display: block; width: 22px; height: 2px; background: var(--accent); margin-top: 8px; }
.ft-tel { display: inline-block; font-size: 22px; font-weight: 700; color: #fffdf5 !important; letter-spacing: 1px; line-height: 1.5; margin: 4px 0 10px; font-family: var(--serif); }
.ft-tel:hover { color: var(--accent-soft) !important; }
.ft-line { font-size: 13px; color: rgba(255,252,245,.62); line-height: 1.9; margin: 2px 0; }
.ft-note { margin-top: 12px; font-size: 12px; color: rgba(255,252,245,.45); border-left: 2px solid rgba(217,123,41,.5); padding-left: 9px; line-height: 1.8; }

/* 品牌列里的 AI 入口 */
.ft-ai-btn { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; padding: 8px 14px; font-size: 13px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(217,123,41,.22), rgba(217,123,41,.08)); border: 1px solid rgba(217,123,41,.55); color: var(--accent-soft) !important; }
.ft-ai-btn:hover { background: rgba(217,123,41,.34); color: #fff !important; }

/* AI 导览浮动入口（右下角，位于微信入口上方） */
.ai-float { position: fixed; right: 18px; bottom: 132px; z-index: 9998; }
.ai-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #d97b29, #b9621c); color: #fff !important; box-shadow: 0 6px 18px rgba(30,42,30,.28); border: 2px solid rgba(255,255,255,.85); }
.ai-btn:hover { transform: translateY(-2px); color: #fff !important; }
.ai-ico { font-size: 22px; line-height: 1; }
.ai-txt { font-size: 11px; margin-top: 2px; letter-spacing: .5px; }
@media (max-width: 768px) { .ai-float { display: none; } }

/* 移动端底栏 AI 项 */
.mobar .mb-ai { background: linear-gradient(135deg, #d97b29, #b9621c); color: #fff !important; }

/* 缩略图：统一比例 + 加载失败兜底 */
.n-thumb img, .thumb img, .card .thumb img { width: 100%; height: 100%; object-fit: cover; background: var(--primary-light); }
.thumb-emoji { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 70px; font-size: 26px;
  background: linear-gradient(135deg, var(--primary-light), #f0ead9); }

/* 栏目封面 */
.cat-cover { position: relative; width: 100%; height: 240px; border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; background: var(--primary-light); }
.cat-cover img { width: 100%; height: 100%; object-fit: cover; }
.cat-cover-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,53,40,.05) 0%, rgba(20,53,40,.55) 100%); }
.cat-cover-txt { position: absolute; left: 26px; bottom: 20px; color: #fff; }
.cat-cover-txt h2 { font-size: 24px; letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.cat-cover-txt p { font-size: 13.5px; color: rgba(255,255,255,.85); margin-top: 4px; }
@media (max-width: 640px) { .cat-cover { height: 170px; } .cat-cover-txt { left: 16px; bottom: 14px; } .cat-cover-txt h2 { font-size: 19px; } }
