/* ========================================
   杭州富阳文化和经济促进会 - 新闻门户风格 v3
   设计参考：浙江在线(zjol.com.cn) 布局结构
   配色：红色系
   ======================================== */

/* --- CSS Variables --- */
:root {
  --red: #b71c1c;
  --red-dark: #8b0000;
  --red-light: #c62828;
  --red-surface: #fff5f5;
  --bg: #f0f0f0;
  --card: #fff;
  --border: #e0e0e0;
  --border-light: #eee;
  --text: #222;
  --text-mid: #555;
  --text-light: #888;
  --text-muted: #bbb;
  --shadow: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.1);
  --radius: 4px;
  --max-width: 1280px;
  --gap: 14px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei","PingFang SC","Helvetica Neue",Arial,sans-serif;
  font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.6;
}
a { color: var(--text); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--red); }
ul, li { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 12px; }

/* ==============================================
   TOP BAR
   ============================================== */
.topbar { background: #f5f5f5; border-bottom: 1px solid var(--border-light); font-size: 12px; color: var(--text-light); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.topbar-links a { color: var(--text-light); margin-left: 14px; font-size: 12px; }
.topbar-links a:hover { color: var(--red); }

/* ==============================================
   HEADER
   ============================================== */
.header { background: #fff; border-bottom: 3px solid var(--red); }
.header .container { display: flex; align-items: center; padding: 12px 12px; }
.header .logo { flex-shrink: 0; margin-right: 16px; }
.header .logo img { height: 56px; }
.header .site-title { flex: 1; }
.header .site-title h1 { font-size: 22px; color: var(--red); font-weight: 700; letter-spacing: 1px; }
.header .site-title p { font-size: 12px; color: var(--text-light); margin-top: 2px; letter-spacing: 2px; }
.header-right { text-align: right; flex-shrink: 0; }
.search-box { display: flex; margin-bottom: 8px; }
.search-box input {
  border: 1px solid #ddd; padding: 6px 12px; width: 200px;
  border-radius: var(--radius) 0 0 var(--radius); outline: none; font-size: 12px;
  transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--red); }
.search-box button {
  background: var(--red); color: #fff; border: none; padding: 6px 14px;
  cursor: pointer; border-radius: 0 var(--radius) var(--radius) 0; font-size: 12px;
  transition: background 0.2s;
}
.search-box button:hover { background: var(--red-dark); }
.member-links a { font-size: 12px; color: var(--red); margin-left: 12px; }

/* Public Account Button */
.pub-btn {
  display: inline-block; padding: 8px 20px; border: 2px solid var(--red); border-radius: var(--radius);
  background: var(--red); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; margin-bottom: 8px;
}
.pub-btn:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* ==============================================
   EXTERNAL LINKS TOOLBAR
   ============================================== */
.toolbar { background: #f5f5f5; border-bottom: 1px solid var(--border-light); font-size: 12px; }
.toolbar .container { display: flex; justify-content: space-between; align-items: center; height: 30px; }
.toolbar-label { color: var(--text-light); font-size: 12px; flex-shrink: 0; }
.toolbar-links { display: flex; align-items: center; gap: 6px; }
.toolbar-links a { color: #666; font-size: 12px; }
.toolbar-links a:hover { color: var(--red); }
.toolbar-link-important { color: #c00 !important; font-weight: 600; }
.toolbar-sep { color: #ddd; font-size: 12px; }
.toolbar-dropdown { color: var(--text-light); font-size: 12px; }

/* ==============================================
   MAIN NAVIGATION (sticky)
   ============================================== */
.nav { background: var(--red); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.nav .container { display: flex; flex-wrap: nowrap; justify-content: center; }
.nav .container > a {
  color: #fff; padding: 0 16px; display: flex; align-items: center; height: 40px;
  font-size: 14px; white-space: nowrap; letter-spacing: 0.5px; flex-shrink: 0;
  position: relative;
}
.nav .container > a:hover,
.nav .container > a.active { background: var(--red-dark); text-decoration: none; }
.nav .container > a.active::after {
  content: ''; position: absolute; bottom: 0; left: 12px; right: 12px; height: 3px; background: #ffcdd2;
}

/* Dropdowns */
.nav .dropdown { position: relative; flex-shrink: 0; }
.nav .dropdown > a {
  color: #fff; padding: 0 16px; display: flex; align-items: center; height: 40px;
  font-size: 14px; letter-spacing: 0.3px; cursor: pointer; white-space: nowrap;
}
.nav .dropdown > a.active { background: var(--red-dark); }
.nav .dropdown > a.active::after {
  content: ''; position: absolute; bottom: 0; left: 12px; right: 12px; height: 3px; background: #ffcdd2;
}
.nav .dropdown:hover > a { background: var(--red-dark); text-decoration: none; }
.nav .dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid #ddd; min-width: 160px; z-index: 1001;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden;
}
.nav .dropdown:hover .dropdown-menu { display: block; animation: navDrop 0.18s ease; }
@keyframes navDrop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav .dropdown-menu a {
  color: var(--text); padding: 10px 18px; font-size: 13px; border-bottom: 1px solid #f5f5f5; display: block;
}
.nav .dropdown-menu a:hover { background: var(--red-surface); color: var(--red); text-decoration: none; }
.nav .dropdown-menu a:last-child { border-bottom: none; }

/* ==============================================
   SUB NAV
   ============================================== */
.subnav { background: #fafafa; border-bottom: 1px solid var(--border-light); }
.subnav .container { display: flex; flex-wrap: nowrap; overflow-x: auto; justify-content: center; }
.subnav a {
  padding: 6px 14px; font-size: 12px; color: var(--text-mid); display: block;
  white-space: nowrap; flex-shrink: 0; transition: all 0.15s;
}
.subnav a:hover { color: var(--red); text-decoration: none; background: #fff; }

/* ==============================================
   PAGE HEADER (sub pages)
   ============================================== */
.page-header {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, var(--red-light) 100%);
  color: #fff; padding: 28px 0; margin-bottom: 18px;
}
.page-header h2 { font-size: 22px; margin-bottom: 6px; letter-spacing: 1px; }
.page-header .breadcrumb { font-size: 12px; opacity: 0.85; }
.page-header .breadcrumb a { color: #ffcdd2; }
.page-header .breadcrumb a:hover { color: #fff; }

/* ==============================================
   SLOGAN BAR
   ============================================== */
.slogan-bar { background: #fff; padding: 24px 0 20px; border-bottom: 1px solid var(--border-light); margin-bottom: var(--gap); }
.slogan-main { font-size: 36px; color: #c00; font-weight: 700; text-align: center; line-height: 1.3; margin-bottom: 8px; letter-spacing: 2px; }
.slogan-sub { font-size: 22px; color: #b71c1c; font-weight: 400; text-align: center; line-height: 1.4; margin-bottom: 14px; }
.slogan-links { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.slogan-link-item { font-size: 14px; color: #666; cursor: pointer; transition: color 0.15s; }
.slogan-link-item:hover { color: #c00; }

/* ==============================================
   HOME LAYOUT — Multi-row news portal style
   ============================================== */
.home-main { padding: 14px 0 0; }

/* Row 1: Hero (品字三图 + Right sidebar) */
.hero-row { display: grid; grid-template-columns: 1fr 310px; gap: var(--gap); margin-bottom: 24px; }
.hero-main { min-width: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); align-self: start; }
/* 品字形三图布局（高度由图片比例自适应，避免裁切横幅） */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-grid .hero-big { grid-column: 1 / -1; position: relative; overflow: hidden; display: block; aspect-ratio: 1000 / 138; }
.hero-grid .hero-small { position: relative; overflow: hidden; display: block; aspect-ratio: 2.1 / 1; }
.hero-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.hero-grid a:hover img { transform: scale(1.04); }
.hero-grid .hero-text {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 30px 16px 10px; color: #fff;
}
.hero-grid .hero-big .hero-text { padding: 24px 16px 8px; text-align: right; background: linear-gradient(transparent, rgba(0,0,0,0.45)); }
.hero-grid .hero-big .hero-text h2 { display: none; } /* 横幅已含会名，避免重复叠字 */
.hero-grid .hero-big .hero-text p { font-size: 12px; opacity: 0.95; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.hero-grid .hero-text h2 { font-size: 18px; margin-bottom: 3px; line-height: 1.3; }
.hero-grid .hero-text h3 { font-size: 14px; margin-bottom: 2px; line-height: 1.3; }
.hero-grid .hero-text p { font-size: 11px; opacity: 0.8; }
.hero-grid a:hover .hero-text { color: #fff; text-decoration: none; }
.hero-grid a:hover .hero-text h2,
.hero-grid a:hover .hero-text h3 { color: #ffcdd2; }

/* Hero sidebar: quick news + notice */
.hero-side { display: flex; flex-direction: column; gap: var(--gap); }
.hero-side-block {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.hero-side-block .hsb-title {
  background: var(--red); color: #fff; padding: 8px 14px; font-size: 14px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center;
}
.hero-side-block .hsb-title a { color: #ffcdd2; font-size: 11px; font-weight: 400; }
.hero-side-block .hsb-title a:hover { color: #fff; }
.hero-side-block .hsb-body { padding: 8px 14px; }
.hero-side-block .hsb-body li { padding: 10px 0; border-bottom: 1px dotted var(--border-light); font-size: 13px; }
.hero-side-block .hsb-body li:last-child { border-bottom: none; }
.hero-side-block .hsb-body li a { color: var(--text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-side-block .hsb-body li a:hover { color: var(--red); }
.hero-side-block .hsb-body li .dot { color: var(--red); margin-right: 4px; }

/* Hero下方新闻双栏 */
.hero-news-row { display: flex; gap: 15px; margin-top: 15px; }
.hero-news-block { flex: 1; background: #fff; border: 1px solid var(--border-light); border-radius: 4px; overflow: hidden; }
.hnb-title { background: var(--red); color: #fff; font-size: 15px; font-weight: 700; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; }
.hnb-title a { color: #fff; font-size: 12px; font-weight: 400; text-decoration: none; }
.hnb-title a:hover { color: #ffcdd2; }
.hnb-body { list-style: none; padding: 8px 12px; margin: 0; }
.hnb-body li { padding: 3px 0; border-bottom: 1px dashed var(--border-light); font-size: 13px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hnb-body li:last-child { border-bottom: none; }
.hnb-body li a { color: var(--text); text-decoration: none; }
.hnb-body li a:hover { color: var(--red); }

/* Row 2+: Content rows */
.content-row { margin-bottom: var(--gap); }

/* Generic content block */
.content-block { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

/* ==============================================
   SECTION TITLE (浙江在线风格)
   ============================================== */
.sec-title {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--border-light);
  background: #fafafa;
}
.sec-title h3 { font-size: 15px; color: var(--red); font-weight: 700; }
.sec-title h3 i {
  display: inline-block; width: 3px; height: 15px; background: var(--red);
  margin-right: 6px; vertical-align: middle; border-radius: 2px;
}
.sec-title .more { font-size: 12px; color: var(--text-light); }
.sec-title .more:hover { color: var(--red); }
.sec-title .tabs-inline { display: flex; gap: 0; }
.sec-title .tabs-inline a {
  font-size: 12px; color: var(--text-light); padding: 4px 10px;
  border-radius: var(--radius); transition: all 0.15s;
}
.sec-title .tabs-inline a:hover,
.sec-title .tabs-inline a.active { background: var(--red); color: #fff; text-decoration: none; }

/* ==============================================
   NEWS LIST (compact, dense)
   ============================================== */
.news-list li {
  padding: 7px 14px; border-bottom: 1px dotted var(--border-light);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.news-list li:last-child { border-bottom: none; }
.news-list li a {
  color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-list li a:hover { color: var(--red); }
.news-list li .date { color: var(--text-muted); font-size: 11px; margin-left: 8px; white-space: nowrap; }
.news-list li.top a { color: var(--red); font-weight: 700; }
.news-list li.top::before { content: '置顶'; font-size: 10px; background: var(--red); color: #fff; padding: 1px 5px; border-radius: 2px; margin-right: 6px; flex-shrink: 0; }

/* Image thumbnail variant */
.news-thumb-list { }
.news-thumb-list li {
  padding: 9px 14px; border-bottom: 1px dotted var(--border-light);
  display: flex; gap: 10px; align-items: center;
}
.news-thumb-list li:last-child { border-bottom: none; }
.news-thumb-list li img {
  width: 100px; height: 68px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0;
}
.news-thumb-list li .info { flex: 1; min-width: 0; }
.news-thumb-list li .info a { font-size: 13px; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.news-thumb-list li .info a:hover { color: var(--red); }
.news-thumb-list li .info .date { display: block; font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ==============================================
   三栏布局 (Two sidebars)
   ============================================== */
.triple-row { display: grid; grid-template-columns: 1fr 320px; gap: var(--gap); margin-bottom: var(--gap); }
.triple-row.has-left { grid-template-columns: 260px 1fr; }
.triple-row.has-both { grid-template-columns: 260px 1fr 280px; }

/* ==============================================
   GRID ROW: Multi-column content areas
   ============================================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.grid-2x1 { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap); }
.grid-1x2 { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap); }

/* ==============================================
   FEATURED IMAGE + NEWS COMBO
   ============================================== */
.combo-block { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.combo-block .combo-img-link { height: 100%; }
.combo-block .combo-img-link img { height: 100%; min-height: 200px; }
.combo-img-link {
  position: relative; border-radius: var(--radius); overflow: hidden; display: block;
}
.combo-img-link img { width: 100%; height: 200px; object-fit: cover; }
.combo-img-link .overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff; padding: 24px 14px 10px; font-size: 14px; font-weight: 600;
  text-align: right; transition: color 0.2s;
}
.combo-img-link:hover .overlay { color: #ffcdd2; text-decoration: none; }

/* ==============================================
   NOTICE BOX
   ============================================== */
.notice-box {
  background: #fffbf0; border: 1px solid #f0d080; border-radius: var(--radius);
  padding: 10px 14px; margin-bottom: var(--gap);
}
.notice-box h4 { color: #c60; font-size: 13px; margin-bottom: 6px; }
.notice-box li { padding: 4px 0; font-size: 12px; border-bottom: 1px dotted #f0e0c0; }
.notice-box li:last-child { border-bottom: none; }
.notice-box li a { color: #664d00; font-size: 12px; }

/* ==============================================
   PIC CARD GRID
   ============================================== */
.pic-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 10px 14px 14px; }
.pic-card { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-light); transition: all 0.2s; }
.pic-card:hover { box-shadow: var(--shadow-hover); text-decoration: none; transform: translateY(-2px); }
.pic-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pic-card span { display: block; padding: 6px 8px; font-size: 12px; color: var(--text-mid); text-align: center; background: #fafafa; }

/* ==============================================
   BRANCH CARDS (compact)
   ============================================== */
.branch-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; padding: 10px 14px 14px; }
.branch-card {
  display: flex; flex-direction: column; align-items: center; padding: 14px 8px;
  background: #fafafa; border: 1px solid var(--border-light); border-radius: var(--radius);
  text-align: center; cursor: pointer; transition: all 0.2s; text-decoration: none; color: inherit;
}
.branch-card:hover { box-shadow: 0 4px 16px rgba(183,28,28,0.15); border-color: var(--red); transform: translateY(-2px); text-decoration: none; }
.branch-card-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; margin-bottom: 6px;
}
.branch-card-name { font-size: 13px; font-weight: 600; color: var(--text); }
.branch-card-info { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* ==============================================
   TAB BODY
   ============================================== */
.tab-body { padding: 0 14px 10px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ==============================================
   VIDEO CARD
   ============================================== */
.video-mini { padding: 10px 14px; }
.video-mini-thumb {
  background: linear-gradient(135deg, var(--red-dark), var(--red-light));
  height: 100px; border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; margin-bottom: 6px; cursor: pointer; position: relative;
  overflow: hidden;
}
.video-mini-thumb .play-btn {
  width: 40px; height: 40px; background: rgba(255,255,255,0.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--red);
  z-index: 1; transition: transform 0.2s;
}
.video-mini-thumb:hover .play-btn { transform: scale(1.1); }
.video-mini-list li { padding: 6px 0; border-bottom: 1px dotted var(--border-light); font-size: 13px; }
.video-mini-list li:last-child { border-bottom: none; }
.video-mini-list li a { color: var(--text); }
.video-mini-list li a:hover { color: var(--red); }

/* ==============================================
   ROLLING NEWS BAR
   ============================================== */
.rolling-bar {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 14px; margin-bottom: var(--gap); display: flex; align-items: center;
  overflow: hidden;
}
.rolling-label {
  background: var(--red); color: #fff; font-size: 12px; padding: 3px 10px;
  border-radius: 2px; flex-shrink: 0; margin-right: 12px; font-weight: 600;
}
.rolling-text { flex: 1; overflow: hidden; position: relative; height: 22px; }
.rolling-text ul { position: absolute; left: 0; right: 0; transition: transform 0.5s ease; }
.rolling-text li { height: 22px; line-height: 22px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rolling-text li a { color: var(--text); }
.rolling-text li a:hover { color: var(--red); }

/* ==============================================
   LINKS BAR
   ============================================== */
.links-bar {
  background: #fff; border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light); padding: 12px 0; margin-top: 18px;
}
.link-grid { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.link-grid a {
  font-size: 12px; color: var(--text-mid); padding: 4px 10px;
  background: #f8f8f8; border-radius: 3px; transition: all 0.15s;
}
.link-grid a:hover { background: var(--red); color: #fff; text-decoration: none; }

/* ==============================================
   FOOTER
   ============================================== */
.footer { background: #2a2a2a; color: #aaa; padding: 30px 0 20px; margin-top: 18px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 24px; }
.footer h5 { color: #ddd; font-size: 14px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid #444; }
.footer ul li { margin-bottom: 6px; font-size: 12px; }
.footer ul li a { color: #999; }
.footer ul li a:hover { color: #fff; }
.footer-bottom { text-align: center; font-size: 12px; padding-top: 16px; border-top: 1px solid #444; color: #777; }
.footer-bottom p { margin-bottom: 4px; }
.footer-bottom a { color: #999; }

/* ==============================================
   SUB PAGE LAYOUT
   ============================================== */
.main { padding: 18px 0; }
.main .container { display: flex; gap: var(--gap); }
.main-col { flex: 1; min-width: 0; }
.main-col.wide { flex: 2.5; }
.sidebar { width: 310px; flex-shrink: 0; }

/* ==============================================
   WIDGET (sidebar)
   ============================================== */
.widget { margin-bottom: var(--gap); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.widget-title { background: var(--red); color: #fff; padding: 9px 14px; font-size: 14px; font-weight: 700; }
.widget-body { padding: 10px 14px; }

/* ==============================================
   ARTICLE
   ============================================== */
.article { background: var(--card); padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); }
.article h1 { font-size: 22px; color: var(--text); text-align: center; margin-bottom: 10px; line-height: 1.4; }
.article .article-meta { text-align: center; font-size: 12px; color: var(--text-muted); margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--border-light); }
.article .article-body { font-size: 15px; line-height: 2; color: #444; }
.article .article-body p { margin-bottom: 16px; text-indent: 2em; }
.article .article-body img { max-width: 100%; margin: 18px auto; border-radius: var(--radius); }

/* ==============================================
   FORMS
   ============================================== */
.form-box {
  background: var(--card); padding: 30px; border-radius: var(--radius);
  max-width: 480px; margin: 0 auto; border: 1px solid var(--border);
}
.form-box h3 { text-align: center; margin-bottom: 24px; color: var(--red); font-size: 18px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 13px; color: var(--text-mid); font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: var(--radius);
  font-size: 14px; outline: none; transition: border-color 0.2s; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--red); box-shadow: 0 0 0 2px rgba(183,28,28,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.btn {
  display: inline-block; padding: 10px 26px; border: none; border-radius: var(--radius);
  font-size: 14px; cursor: pointer; transition: all 0.2s; font-weight: 500; text-align: center;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: #fff; color: var(--red); border: 1px solid var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-block { display: block; width: 100%; }
.form-footer { text-align: center; margin-top: 14px; font-size: 12px; color: var(--text-light); }
.form-footer a { color: var(--red); }

/* ==============================================
   PAGINATION
   ============================================== */
.pagination { display: flex; justify-content: center; gap: 4px; margin: 28px 0; }
.pagination a, .pagination span { padding: 6px 13px; border: 1px solid #ddd; border-radius: var(--radius); font-size: 13px; color: var(--text-mid); }
.pagination a:hover { background: var(--red); color: #fff; border-color: var(--red); text-decoration: none; }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

/* ==============================================
   TABS
   ============================================== */
.tabs { display: flex; gap: 0; margin-bottom: 16px; border-bottom: 2px solid var(--red); }
.tabs a {
  padding: 9px 20px; font-size: 14px; color: var(--text-mid);
  border-radius: var(--radius) var(--radius) 0 0; background: #f5f5f5; margin-right: 2px;
}
.tabs a:hover { color: var(--red); text-decoration: none; }
.tabs a.active { background: var(--red); color: #fff; }

/* ==============================================
   PEOPLE GRID
   ============================================== */
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.people-card {
  text-align: center; padding: 22px 14px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all 0.2s;
}
.people-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.people-card .avatar-placeholder {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 10px;
  border: 3px solid var(--red); display: flex; align-items: center;
  justify-content: center; font-size: 24px; color: #fff;
}
.people-card h4 { font-size: 15px; color: var(--text); margin-bottom: 3px; }
.people-card .role { font-size: 12px; color: var(--red); margin-bottom: 4px; }
.people-card p { font-size: 12px; color: var(--text-light); }

/* ==============================================
   GALLERY
   ============================================== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-item {
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3; box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.06); }

/* ==============================================
   MESSAGE BOARD
   ============================================== */
.msg-list { margin-top: 16px; }
.msg-item {
  background: #fafafa; border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
}
.msg-item .msg-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.msg-item .msg-author { font-weight: 600; color: var(--red); font-size: 13px; }
.msg-item .msg-time { font-size: 12px; color: var(--text-muted); }
.msg-item .msg-content { font-size: 14px; color: var(--text-mid); line-height: 1.7; }
.msg-item .msg-reply {
  margin-top: 8px; padding: 10px; background: #fffbf0;
  border-left: 3px solid #f0d080; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13px; color: #664d00;
}

/* ==============================================
   MEMBER CENTER
   ============================================== */
.member-layout { display: flex; gap: var(--gap); }
.member-sidebar { width: 200px; flex-shrink: 0; }
.member-sidebar .menu-item {
  display: block; padding: 10px 16px; color: var(--text-mid);
  border-left: 3px solid transparent; font-size: 13px; margin-bottom: 2px;
  background: var(--card); border-radius: var(--radius);
}
.member-sidebar .menu-item:hover,
.member-sidebar .menu-item.active { color: var(--red); border-left-color: var(--red); background: var(--red-surface); text-decoration: none; }
.member-content { flex: 1; background: var(--card); padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); }

/* ==============================================
   BRANCH STRIP (full width)
   ============================================== */
.branch-strip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px; padding: 0 14px 14px;
}

/* ==============================================
   BACK TO TOP
   ============================================== */
.back-top {
  position: fixed; bottom: 30px; right: 30px; z-index: 999;
  width: 42px; height: 42px; background: var(--red); color: #fff;
  border: none; border-radius: 50%; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top.show:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ==============================================
   LAZY LOAD PLACEHOLDER
   ============================================== */
img[data-src] { background: #f0f0f0; }

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1100px) {
  .hero-row { grid-template-columns: 1fr 280px; }
  .triple-row.has-both { grid-template-columns: 220px 1fr 250px; }
}

@media (max-width: 992px) {
  .slogan-main { font-size: 28px; }
  .slogan-sub { font-size: 18px; }
  .slogan-links { gap: 20px; }
  .nav .container { flex-wrap: wrap; }
  .hero-row { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; flex-wrap: wrap; }
  .hero-side-block { flex: 1; min-width: 280px; }
  .triple-row, .triple-row.has-left, .triple-row.has-both {
    grid-template-columns: 1fr;
  }
  .grid-2, .grid-3, .grid-4, .grid-2x1, .grid-1x2 { grid-template-columns: 1fr; }
  .combo-block { grid-template-columns: 1fr; }
  .combo-img-link img { height: 160px; }
  .pic-row { grid-template-columns: repeat(2, 1fr); }
  .branch-row { grid-template-columns: repeat(3, 1fr); }
  .main .container { flex-direction: column; }
  .sidebar { width: 100%; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .member-layout { flex-direction: column; }
  .member-sidebar { width: 100%; display: flex; flex-wrap: wrap; gap: 4px; }
  .member-sidebar .menu-item { border-left: none; border-bottom: 2px solid transparent; }
}

@media (max-width: 768px) {
  .slogan-bar { padding: 18px 0 14px; }
  .slogan-main { font-size: 24px; letter-spacing: 1px; }
  .slogan-sub { font-size: 16px; }
  .slogan-links { gap: 12px; flex-direction: column; align-items: center; }
  .slogan-link-item { font-size: 13px; }
  .toolbar .container { flex-direction: column; height: auto; padding: 6px 12px; gap: 4px; }
  .toolbar-links { flex-wrap: wrap; justify-content: center; }
  .header .container { flex-wrap: wrap; }
  .header-right { width: 100%; margin-top: 10px; }
  .hero-grid .hero-text h3 { font-size: 12px; }
  .hero-side { flex-direction: column; }
  .hero-news-row { flex-direction: column; }
  .pic-row { grid-template-columns: repeat(2, 1fr); }
  .branch-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .article { padding: 16px; }
  .article h1 { font-size: 18px; }
  .nav .container { flex-wrap: wrap; }
  .nav .container > a, .nav .dropdown > a { padding: 0 10px; height: 36px; font-size: 12px; }
}

/* ========================================
   v4 美化增强（2026-07-18）
   保持政务新闻网简约风格：细节质感 + 丝滑动效
   ======================================== */

/* --- 全局顺滑 --- */
html { scroll-behavior: smooth; }
::selection { background: rgba(183,28,28,0.85); color: #fff; }
[id] { scroll-margin-top: 60px; }
body.modal-open { overflow: hidden; }

/* --- 板块标题精修 --- */
.sec-title { background: linear-gradient(#fdfdfd, #fafafa); }
.sec-title h3 { letter-spacing: 1px; }

/* --- 新闻列表行 hover --- */
.news-list li { transition: background 0.15s; }
.news-list li:hover { background: var(--red-surface); }
.hnb-body li, .hsb-body li { transition: background 0.15s; }
.hnb-body li:hover, .hsb-body li:hover { background: var(--red-surface); }

/* --- 卡片质感 --- */
.content-block { box-shadow: var(--shadow); transition: box-shadow 0.25s; }
.content-block:hover { box-shadow: 0 3px 14px rgba(0,0,0,0.09); }
.hero-side-block { box-shadow: var(--shadow); }
.widget { box-shadow: var(--shadow); }

/* --- 首页标签页切换淡入 --- */
.tab-pane.active { animation: fadeUp 0.35s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* --- 文章正文排版（子页 h2/h3/列表） --- */
.article-body h2 { font-size: 19px; color: var(--red-dark); margin: 28px 0 14px; padding-left: 10px; border-left: 4px solid var(--red); line-height: 1.3; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 16px; color: var(--red); margin: 24px 0 10px; }
.article-body ul { padding-left: 1.5em; margin-bottom: 16px; }
.article-body ul li { list-style: disc; padding: 3px 0; }
.article-body a { color: var(--red); }

/* --- 分会卡片选中态 --- */
.branch-card.current { border-color: var(--red); background: var(--red-surface); box-shadow: 0 4px 16px rgba(183,28,28,0.15); }

/* --- 视频网格（影像富春） --- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 14px; }
.video-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.25s, transform 0.25s; }
.video-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.video-thumb { height: 150px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.play-icon {
  width: 46px; height: 46px; background: rgba(255,255,255,0.92); color: var(--red);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 17px; box-shadow: 0 2px 12px rgba(0,0,0,0.25); transition: transform 0.25s;
}
.video-card:hover .play-icon { transform: scale(1.12); }
.video-body { padding: 10px 12px; }
.video-body h5 { font-size: 13px; font-weight: 600; line-height: 1.4; }
@media (max-width: 992px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .video-grid { grid-template-columns: 1fr; } }

/* --- 弹窗（公众号二维码） --- */
.modal-mask {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.25s;
}
.modal-mask.show { opacity: 1; }
.modal-card {
  background: #fff; border-radius: 12px; padding: 30px 30px 20px; position: relative; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(0.92) translateY(12px); transition: transform 0.28s cubic-bezier(0.34,1.4,0.64,1);
}
.modal-mask.show .modal-card { transform: scale(1) translateY(0); }
.modal-card img { width: 260px; height: 260px; border-radius: 8px; }
.modal-card p { margin-top: 14px; font-size: 15px; color: var(--text-mid); letter-spacing: 1px; }
.modal-close {
  position: absolute; top: 8px; right: 10px; width: 28px; height: 28px;
  border: none; background: none; font-size: 22px; color: #999; cursor: pointer; line-height: 1;
  transition: color 0.15s, transform 0.25s;
}
.modal-close:hover { color: var(--red); transform: rotate(90deg); }

/* --- 图片灯箱（图库点击放大） --- */
.lightbox-mask {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.9); cursor: zoom-out; opacity: 0; transition: opacity 0.25s;
}
.lightbox-mask.show { opacity: 1; }
.lightbox-mask img {
  max-width: 92%; max-height: 86%; object-fit: contain; border-radius: 4px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
  transform: scale(0.95); transition: transform 0.25s;
}
.lightbox-mask.show img { transform: scale(1); }
.lightbox-tip {
  position: absolute; bottom: 24px; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,0.6); font-size: 13px; letter-spacing: 1px; pointer-events: none;
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px; width: 40px; height: 40px;
  border: none; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff;
  font-size: 22px; cursor: pointer; transition: background 0.2s, transform 0.25s;
}
.lightbox-close:hover { background: var(--red); transform: rotate(90deg); }

/* --- 导航吸顶阴影 --- */
.nav { transition: box-shadow 0.25s; }
.nav.scrolled { box-shadow: 0 3px 14px rgba(0,0,0,0.35); }

/* --- 滚动入场 --- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- 按钮/表单细节 --- */
.btn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(183,28,28,0.25); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-outline:hover { box-shadow: 0 3px 10px rgba(183,28,28,0.2); }

/* --- 页脚链接 --- */
.footer ul li a { transition: color 0.15s, padding-left 0.15s; }
.footer ul li a:hover { padding-left: 4px; }

/* --- 会员中心菜单 --- */
.member-sidebar .menu-item { transition: color 0.18s, background 0.18s, border-color 0.18s; }

/* --- 动效降级（无障碍） --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ========================================
   v5 板块差异化页面（2026-07-18）
   法治教育 / 富春大地 / 富春文旅 / 科技金融
   ======================================== */

/* --- 板块 Hero --- */
.sec-hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: var(--gap); box-shadow: var(--shadow); }
.sec-hero img { width: 100%; height: 280px; object-fit: cover; display: block; }
.sec-hero .sec-hero-text {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 24px 16px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.62));
}
.sec-hero .sec-hero-text h2 { font-size: 24px; letter-spacing: 3px; margin-bottom: 4px; }
.sec-hero .sec-hero-text p { font-size: 13px; opacity: 0.92; letter-spacing: 1px; }
.sec-hero.red {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 55%, var(--red-light) 100%);
  color: #fff; padding: 30px 28px;
}
.sec-hero.red h2 { font-size: 24px; letter-spacing: 3px; margin-bottom: 8px; }
.sec-hero.red h2 .hero-mark { display: inline-block; width: 6px; height: 22px; background: rgba(255,255,255,0.85); margin-right: 10px; vertical-align: -3px; border-radius: 2px; }
.sec-hero.red p { font-size: 13px; opacity: 0.92; line-height: 1.9; max-width: 780px; letter-spacing: 0.5px; margin: 0; }

/* --- 数据卡 --- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-bottom: var(--gap); }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 10px 14px; text-align: center; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.stat-card .num { font-size: 25px; color: var(--red); font-weight: 700; }
.stat-card .num small { font-size: 12px; font-weight: 400; color: var(--text-light); margin-left: 3px; }
.stat-card .lbl { font-size: 12px; color: var(--text-mid); margin-top: 3px; letter-spacing: 2px; }

/* --- 栏目内容选项卡 --- */
.fc-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; }
.fc-tabs a { font-size: 13px; padding: 6px 16px; border-radius: 16px; background: #f5f5f5; color: var(--text-mid); transition: all 0.15s; }
.fc-tabs a:hover, .fc-tabs a.active { background: var(--red); color: #fff; text-decoration: none; }
.fc-pane { padding: 20px 26px 24px; font-size: 14px; line-height: 2.05; color: #444; }
.fc-pane p { margin-bottom: 12px; text-indent: 2em; }
.fc-pane p:last-child { margin-bottom: 0; }

/* --- 荣誉列表 --- */
.honor-list { padding: 8px 16px 14px; }
.honor-list li { padding: 8px 0 8px 18px; border-bottom: 1px dotted var(--border-light); font-size: 13px; position: relative; }
.honor-list li:last-child { border-bottom: none; }
.honor-list li::before { content: ''; position: absolute; left: 0; top: 15px; width: 7px; height: 7px; background: var(--red); border-radius: 1px; transform: rotate(45deg); }

/* --- 特产 chips --- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12px; color: var(--text-mid); background: var(--red-surface); border: 1px solid #f0d4d4; padding: 5px 13px; border-radius: 20px; transition: all 0.15s; cursor: default; }
.chip:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* --- 观光卡 --- */
.tour-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 14px 16px 16px; }
.tour-card { border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; background: #fff; transition: transform 0.25s, box-shadow 0.25s; }
.tour-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.tour-card .tour-img { height: 155px; overflow: hidden; display: block; }
.tour-card .tour-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.tour-card:hover .tour-img img { transform: scale(1.05); }
.tour-card .tour-body { padding: 10px 14px 12px; }
.tour-card .tour-body h5 { font-size: 14px; margin-bottom: 4px; }
.tour-card .tour-body p { font-size: 12px; color: var(--text-light); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- 头条区（科技金融） --- */
.head-row { display: grid; grid-template-columns: 1.45fr 1fr; gap: var(--gap); margin-bottom: var(--gap); }
.head-main { position: relative; border-radius: var(--radius); overflow: hidden; display: block; box-shadow: var(--shadow); }
.head-main img { width: 100%; height: 245px; object-fit: cover; transition: transform 0.4s; }
.head-main:hover img { transform: scale(1.03); }
.head-main .head-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 12px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.72)); }
.head-main .head-text h3 { font-size: 17px; line-height: 1.4; }
.head-main:hover .head-text h3 { color: #ffcdd2; }
.head-side { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 16px 8px; box-shadow: var(--shadow); }
.head-side .head-item { padding: 11px 0; border-bottom: 1px dashed var(--border-light); font-size: 13px; line-height: 1.5; }
.head-side .head-item:last-child { border-bottom: none; }
.head-side .head-item a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head-side .head-item .tag { display: inline-block; color: #fff; background: var(--red); font-size: 10px; padding: 1px 6px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }

/* --- 服务小卡（普法/金融公益宣传） --- */
.serv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-bottom: var(--gap); }
.serv-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 16px 16px; text-align: center; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.serv-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: #ecc9c9; }
.serv-card .serv-ico { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--red-light)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }
.serv-card h5 { font-size: 14px; margin-bottom: 6px; }
.serv-card p { font-size: 12px; color: var(--text-light); line-height: 1.8; margin: 0; }

/* --- 书画名家横条 --- */
.master-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 12px 16px 16px; }
.master-card { display: block; text-align: center; padding: 14px 8px; background: #fafafa; border: 1px solid var(--border-light); border-radius: var(--radius); transition: all 0.2s; }
.master-card:hover { border-color: var(--red); box-shadow: 0 4px 16px rgba(183,28,28,0.12); text-decoration: none; transform: translateY(-2px); }
.master-card .m-name { font-size: 14px; font-weight: 700; color: var(--text); }
.master-card .m-epoch { font-size: 11px; color: var(--red); margin: 3px 0; }
.master-card .m-desc { font-size: 11px; color: var(--text-light); }

@media (max-width: 992px) {
  .stat-row, .serv-grid, .master-row { grid-template-columns: repeat(2, 1fr); }
  .head-row, .tour-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sec-hero img { height: 180px; }
  .sec-hero.red { padding: 22px 18px; }
  .sec-hero.red h2 { font-size: 20px; }
  .fc-pane { padding: 14px 16px 18px; }
}
