:root {
  --ink: #16384a;
  --ink-soft: #3a5f73;
  --muted: #6b8799;
  --line: rgba(20, 130, 190, 0.16);
  --water: #1799CD;
  --water-deep: #1286b5;
  --water-light: #e3f4fb;
  --moss: #2f9a63;
  --moss-soft: #e7f7ee;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --page: #f3f8fb;
  --radius: 0;
  --shadow: 0 8px 22px rgba(20, 110, 150, 0.08);
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
}

* { box-sizing: border-box; }
html {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  max-width: 100%;
}
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  max-width: 100%;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1000px 480px at 12% -12%, rgba(170, 220, 230, 0.45), transparent 62%),
    radial-gradient(900px 420px at 94% 0%, rgba(190, 225, 205, 0.35), transparent 58%),
    linear-gradient(180deg, #f9fcfd 0%, #f5f9fb 42%, #f3f6f8 100%);
  line-height: 1.7;
  min-height: 100vh;
}
img, video, iframe, svg, canvas {
  max-width: 100%;
  height: auto;
}
table {
  max-width: 100%;
}
a { color: var(--water); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--water-deep); }

.site {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

/* ===== Header full-bleed (light elegant) ===== */
.site-header {
  position: relative;
  width: 100%;
  overflow: visible;
  background:
    linear-gradient(90deg, rgba(236, 248, 252, 0.88) 0%, rgba(232, 246, 250, 0.72) 42%, rgba(228, 244, 248, 0.55) 100%),
    url("/static/images/header-eco.jpg") center 63% / cover no-repeat;
  color: var(--ink);
  border-bottom: 1px solid rgba(20, 130, 190, 0.18);
}
.header-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.28), rgba(230,245,250,0.18)),
    radial-gradient(700px 240px at 18% 30%, rgba(90, 190, 230, 0.18), transparent 70%);
  pointer-events: none;
  animation: none;
}
@keyframes drift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 0 0, 100px 30px; }
}
.header-inner,
.nav-inner,
.main-inner,
.footer-inner {
  width: min(1480px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
}
.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 36px 0 28px;
}
.brand-block { max-width: 720px; }
.brand-name {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--water-deep);
  text-decoration: none;
  line-height: 1.1;
  animation: brandIn .8s ease both;
}
.brand-name:hover { color: var(--water); }
.brand-tagline {
  margin: 10px 0 0;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--muted);
  animation: brandIn .9s ease .08s both;
}
.brand-slogan {
  margin: 12px 0 0;
  max-width: 34em;
  font-size: 13px;
  line-height: 1.7;
  color: #5a7f93;
  letter-spacing: 0.04em;
  opacity: 0.92;
  padding-left: 12px;
  border-left: 2px solid rgba(23, 153, 205, 0.35);
  animation: brandIn 1s ease .12s both;
}
@keyframes brandIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 8px;
}
.search-box input {
  width: min(280px, 64vw);
  height: 42px;
  border: 1px solid rgba(20, 130, 190, 0.28);
  border-radius: 0;
  padding: 0 14px;
  background: rgba(255,255,255,0.96);
  color: var(--ink);
  outline: none;
  box-shadow: 0 4px 14px rgba(20, 120, 170, 0.08);
}
.search-box button {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: #1799CD;
  transition: transform .2s ease, filter .2s ease;
}
.search-box button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.search-box .adv {
  color: var(--water-deep);
  font-size: 13px;
  border-bottom: 1px solid rgba(27, 111, 137, 0.25);
}
.search-box .adv:hover { color: var(--water); }

.main-nav {
  position: relative;
  z-index: 20;
  background: #1799CD;
  border-top: 0;
  box-shadow: 0 8px 24px rgba(23, 153, 205, 0.22);
}
.nav-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  padding: 0;
  box-sizing: border-box;
  position: relative;
}
.nav-inner > .nav-link,
.nav-item {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
}
.nav-inner > .nav-link,
.nav-item > .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  color: #fff;
  padding: 16px 6px;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}
.nav-item > .nav-link::after,
.nav-inner > .nav-link::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 10px;
  height: 2px;
  background: rgba(255,255,255,0.95);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.nav-item:hover > .nav-link,
.nav-inner > .nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.14);
}
.nav-item:hover > .nav-link::after,
.nav-inner > .nav-link:hover::after { transform: scaleX(1); }

.nav-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% - 2px);
  min-width: 188px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid rgba(18, 144, 208, 0.18);
  border-radius: 0;
  box-shadow: 0 16px 36px rgba(13, 120, 180, 0.14);
  display: none;
  z-index: 999;
}
.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  display: block;
}
@media (hover: none), (pointer: coarse), (max-width: 860px) {
  /* 触屏/窄屏：仅 .open 打开，禁用 hover/focus-within，避免空面板误开 */
  .nav-item:hover .nav-dropdown,
  .nav-item:focus-within .nav-dropdown {
    display: none;
  }
  .nav-item.open > .nav-dropdown {
    display: block;
  }
}
.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}
.nav-dropdown a:hover {
  background: var(--water-light);
  color: var(--water-deep);
}

.cat-tree .cat-group {
  padding: 8px 0 10px;
  border-bottom: 1px solid var(--line);
}
.cat-tree .cat-group:last-child { border-bottom: 0; }
.cat-parent {
  display: block;
  font-weight: 700;
  color: var(--water-deep);
  margin-bottom: 4px;
  font-size: 14px;
}
.cat-tree .subcat { margin: 0; }
.cat-tree .subcat li {
  border-bottom: 0;
  padding: 4px 0 4px 10px;
}
.cat-tree .subcat li a {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 13px;
}
.cat-tree .subcat li a:hover { color: var(--water); }


/* ===== Main ===== */
.site-main {
  flex: 1;
  padding: 28px 0 48px;
}
.layout-3col {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}
.layout-2col {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.block,
.side-block,
.panel {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.block, .panel { padding: 22px 24px; }
.side-block { padding: 18px 18px 16px; }
.panel-hd,
.block-hd,
.side-title {
  margin: 0 0 14px;
  color: var(--water-deep);
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.block-hd {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.block-hd h2 {
  margin: 0;
  font-size: 22px;
  font-family: var(--font-serif);
  color: var(--water-deep);
  white-space: nowrap;
}
.block-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(13,110,138,0.35), transparent);
}
.side-title {
  font-size: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.panel-bd { padding: 0; }

.intro-text {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 15px;
}
.biz-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.biz-list li {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.biz-list li a { display: block; text-decoration: none; }
.biz-list li a span,
.biz-list li span {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f4fbfd, #eaf5f8);
  border: 1px solid rgba(13, 110, 138, 0.12);
  color: var(--water-deep);
  font-size: 14px;
  font-weight: 500;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.biz-list li a:hover span,
.biz-list li span:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 110, 138, 0.28);
  background: linear-gradient(180deg, #ffffff, #eaf6fa);
}

.article-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.article-item:last-child { border-bottom: 0; }
.article-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-family: var(--font-serif);
  line-height: 1.45;
}
.article-item h3 a { color: var(--ink); }
.article-item h3 a:hover { color: var(--water); }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.summary {
  margin: 10px 0;
  color: var(--ink-soft);
  font-size: 14px;
}
.text-link, .ops a, .more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--water);
}
.more { margin-top: 10px; }
.more::after, .text-link::after {
  content: "→";
  transition: transform .2s ease;
}
.more:hover::after, .text-link:hover::after { transform: translateX(3px); }

.link-list, .subcat, .notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.link-list li, .subcat li, .notice-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
}
.link-list li:last-child,
.subcat li:last-child,
.notice-list li:last-child { border-bottom: 0; }
.link-list.compact li { display: block; }
.link-list .date { color: var(--muted); white-space: nowrap; font-size: 12px; }
.subcat li a {
  font-weight: 600;
  color: var(--water-deep);
}
.subcat { margin-bottom: 6px; }

.visit-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.visit-stats div {
  background: var(--water-light);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
}
.visit-stats em {
  display: block;
  font-style: normal;
  font-size: 22px;
  font-weight: 700;
  color: var(--water);
  line-height: 1.2;
}
.visit-stats span {
  font-size: 12px;
  color: var(--muted);
}
.tag {
  display: inline-block;
  background: #c45b4a;
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}
.info-box p {
  margin: 6px 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.page-title {
  font-family: var(--font-serif);
  font-size: 28px;
  margin: 0 0 14px;
  color: var(--water-deep);
}
.content-body { font-size: 15px; line-height: 1.9; color: var(--ink-soft); }
.content-body img { max-width: 100%; border-radius: 8px; }
.content-body h3 {
  margin: 1.25em 0 0.55em;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}
.content-body ul {
  margin: 0.4em 0 1em;
  padding-left: 1.25em;
}
.content-body li { margin: 0.25em 0; }
.content-body .tender-highlight {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #f3fafd;
  border: 1px solid rgba(23, 153, 205, 0.28);
  border-radius: 8px;
}
.content-body .tender-amount {
  margin: 0 0 8px;
  color: #0f7aa8;
  font-size: 16px;
}
.content-body .tender-req-list {
  margin: 6px 0 0;
  padding-left: 1.2em;
}
.content-body .tender-body {
  margin-top: 8px;
  overflow-x: auto;
}
.content-body table.tender-table,
.content-body .tender-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
  background: #fff;
}
.content-body table.tender-table th,
.content-body table.tender-table td,
.content-body .tender-body table th,
.content-body .tender-body table td {
  border: 1px solid #e5e6eb;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}
.content-body table.tender-table th,
.content-body .tender-body table th {
  background: #f7f8fa;
  color: #1d2129;
  font-weight: 600;
  white-space: nowrap;
}
.content-body .tender-body p {
  margin: 0.55em 0;
  line-height: 1.85;
}
.content-body .tender-meta-extra {
  margin: 12px 0;
  padding: 10px 12px;
  background: #fafbfc;
  border-radius: 6px;
}
.pager { margin-top: 28px; width: 100%; }
.portal-pager {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 10px 0 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.portal-pager__list {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: max-content;
  max-width: 100%;
}
.portal-pager__list li {
  flex: 0 0 auto;
}
.portal-pager__list li a,
.portal-pager__list li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(18, 134, 181, 0.16);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.portal-pager__list li a:hover {
  border-color: var(--water);
  color: var(--water-deep);
  background: var(--water-light);
}
.portal-pager__list li.active span {
  border-color: var(--water-deep);
  background: var(--water);
  color: #fff;
}
.portal-pager__list li.disabled span {
  border-color: rgba(22, 56, 74, 0.08);
  background: #f5f8fa;
  color: #a3b6c2;
  cursor: not-allowed;
}
.portal-pager__list li.pager-dots span {
  min-width: 28px;
  padding: 0 4px;
  border-color: transparent;
  background: transparent;
  color: var(--ink-soft);
}
.portal-pager__list li.pager-nav a,
.portal-pager__list li.pager-nav span,
.portal-pager__list li.pager-edge a,
.portal-pager__list li.pager-edge span {
  min-width: 58px;
  padding: 0 12px;
}
@media (max-width: 640px) {
  .portal-pager__list { gap: 6px; }
  .portal-pager__list li:not(.pager-nav):not(.pager-edge):not(.active) {
    display: none;
  }
  .portal-pager__list li a,
  .portal-pager__list li span {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }
  .portal-pager__list li.pager-nav a,
  .portal-pager__list li.pager-nav span,
  .portal-pager__list li.pager-edge a,
  .portal-pager__list li.pager-edge span {
    min-width: 48px;
    padding: 0 10px;
  }
}
@media (max-width: 420px) {
  .portal-pager__list { gap: 4px; }
  .portal-pager__list li.pager-edge { display: none; }
}
.empty { color: var(--muted); }

.form-row { margin-bottom: 14px; }
.form-row label { display: inline-block; min-width: 80px; color: var(--muted); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: min(480px, 100%);
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
}
.form-row textarea { height: auto; min-height: 120px; padding: 10px 12px; }
.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--water), var(--water-deep));
  color: #fff !important;
  border: 0;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none !important;
  font-weight: 600;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #f5fafc);
  transition: transform .22s ease, box-shadow .22s ease;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.project-card h3 { margin: 0 0 8px; font-size: 16px; font-family: var(--font-serif); }
.project-card .status {
  display: inline-block;
  background: var(--moss-soft);
  color: var(--moss);
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* ===== Footer ===== */
.site-footer {
  width: 100%;
  background: linear-gradient(180deg, #f4fafc, #eef5f8);
  color: var(--ink-soft);
  padding: 36px 0 28px;
  margin-top: auto;
  border-top: 1px solid rgba(70, 140, 160, 0.10);
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--water-deep);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  margin-bottom: 6px;
}
.footer-links { margin-top: 12px; }
.footer-links a {
  margin-right: 16px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.footer-links a:hover {
  color: var(--water-deep);
  border-bottom-color: rgba(27, 111, 137, 0.35);
}

/* reveal motion */
.reveal {
  animation: rise .7s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .layout-3col { grid-template-columns: 220px minmax(0, 1fr); }
  .col-right { display: none; }
}
@media (max-width: 860px) {
  .header-inner,
  .nav-inner,
  .main-inner,
  .footer-inner { width: calc(100% - 28px); }
  .brand-slogan { max-width: 100%; font-size: 12px; }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 0 20px;
  }
  .layout-3col, .layout-2col { grid-template-columns: 1fr; }
  .col-right { display: block; }
  .biz-list, .project-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 40px; }
  .nav-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .nav-inner > .nav-link,
  .nav-item {
    flex: 0 0 auto;
  }
  .nav-inner > .nav-link,
  .nav-item > .nav-link { padding: 14px 12px; font-size: 14px; letter-spacing: 0.03em; width: auto; }
  .nav-dropdown { min-width: 150px; }
}
/* ===== Portal hero / ads ===== */
.portal-home { display: flex; flex-direction: column; gap: 16px; }

.news-brief {
  display: flex;
  align-items: stretch;
  height: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.news-brief-label {
  flex: 0 0 86px;
  display: grid;
  place-items: center;
  background: #1799CD;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 2;
}
.news-brief-view {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  padding: 0 16px;
}
.news-brief-list {
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform .4s ease;
}
.news-brief-list li {
  height: 40px;
  line-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-brief-list a,
.news-brief-list span {
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}
.news-brief-list a:hover { color: var(--water); }

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) 320px;
  gap: 16px;
  align-items: stretch;
  height: 380px;
}
.banner-box {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  height: 380px;
  min-height: 380px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.banner-slider {
  position: absolute;
  inset: 0;
  height: auto;
  min-height: 0;
}
.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 22px 24px 28px;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .55s ease, transform .55s ease;
  pointer-events: none;
  background-size: cover !important;
  background-position: center !important;
}
.banner-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 70, 100, 0.18) 0%, rgba(8, 55, 85, 0.55) 100%);
  pointer-events: none;
}
.banner-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.banner-copy {
  position: relative;
  z-index: 1;
}
.banner-copy h2 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: 0.04em;
  text-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.banner-copy p {
  margin: 0;
  font-size: 13px;
  opacity: .92;
  max-width: 28em;
}
.banner-dots {
  position: absolute;
  right: 18px;
  bottom: 14px;
  left: auto;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.banner-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  padding: 0;
}
.banner-dots button.is-active { background: #fff; }
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ad-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 88px;
  padding: 16px 18px;
  border-radius: 0;
  border: 1px solid rgba(18, 144, 208, 0.28);
  text-decoration: none;
  color: #1799CD;
  background: #e8f6fc;
  box-shadow: none;
  transition: background .2s ease;
}
.ad-card:hover { transform: translateY(-2px); color: var(--water-deep); }
.ad-card strong { font-size: 15px; }
.ad-card span { font-size: 12px; color: var(--muted); }
.ad-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.ad-strip a,
.ad-mid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 0;
  border: 1px solid rgba(18, 144, 208, 0.22);
  color: #1799CD;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
  background: #d6f0fb !important;
}
.ad-strip a:hover,
.ad-mid a:hover {
  background: #c3e8f8 !important;
  color: #1286b5;
}
.ad-mid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.notice-mini { flex: 1; }
@media (max-width: 1100px) {
  .hero-row { grid-template-columns: 1fr; }
}

/* ===== Portal homepage denser layout ===== */
.hot-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hot-label {
  flex-shrink: 0;
  background: #1799CD;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}
.hot-track {
  display: flex;
  gap: 22px;
  white-space: nowrap;
  overflow: hidden;
  animation: ticker 28s linear infinite;
}
.hot-track a, .hot-track span {
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.channel-strip {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
}
.channel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.channel-item:hover {
  transform: translateY(-2px);
  border-color: rgba(42,143,173,.35);
}
.channel-item em {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #eaf6fa, #e8f5ee);
  color: var(--water-deep);
  font-style: normal;
  font-weight: 700;
}
.channel-item strong {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}
.focus-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px;
  box-shadow: var(--shadow);
}
.panel-cap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.panel-cap h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--water-deep);
}
.panel-cap a {
  font-size: 12px;
  color: var(--muted);
}
.focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.focus-list li a {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  text-decoration: none;
  color: var(--ink);
}
.focus-list li:last-child a { border-bottom: 0; }
.focus-rank {
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: var(--water-light);
  color: var(--water-deep);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.focus-list li:nth-child(-n+3) .focus-rank {
  background: #1799CD;
  color: #fff;
}
.focus-list strong {
  display: block;
  font-size: 13px;
  line-height: 1.45;
}
.focus-list em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
.ad-card.compact { min-height: 64px; }
.portal-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.portal-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.portal-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.portal-news {
  list-style: none;
  margin: 0;
  padding: 0;
}
.portal-news li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.portal-news li:last-child { border-bottom: 0; }
.portal-news a { color: var(--ink); text-decoration: none; }
.portal-news a:hover { color: var(--water); }
.portal-news span { color: var(--muted); white-space: nowrap; font-size: 12px; }
.supplier-grid, .solution-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.supplier-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 0;
  background: #e8f6fc;
  border: 1px solid rgba(18, 144, 208, 0.28);
  text-decoration: none;
  color: #1799CD;
  min-height: 88px;
}
.supplier-card:hover {
  background: #d6f0fb;
  border-color: rgba(18, 144, 208, 0.45);
}
.supplier-card.accent {
  background: #cceef9;
  border-color: rgba(18, 144, 208, 0.4);
}
.supplier-card strong { font-size: 15px; }
.supplier-card span { font-size: 12px; color: #5a8196; }
.solution-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px;
  border-radius: 0;
  background: #dff3fc;
  color: #1799CD;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(18, 144, 208, 0.25);
}
.solution-grid a:hover { background: #c8ebf8; color: #1286b5; }
.article-feed.compact .article-item { padding: 10px 0; }
.article-feed.compact h3 { font-size: 15px; }
.project-mini {
  display: grid;
  gap: 10px;
}
.project-mini-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 0;
  background: #eef7fc;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.project-mini-item .status {
  width: fit-content;
  font-size: 12px;
  color: #1799CD;
  background: #dff3fc;
  padding: 2px 8px;
  border-radius: 0;
}
.project-mini-item strong { font-size: 14px; }
.project-mini-item em { font-style: normal; color: var(--muted); font-size: 12px; }
.friend-strip .friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.friend-strip .friend-links a {
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
}
.friend-strip .friend-links a:hover { color: var(--water); }
@media (max-width: 1100px) {
  .channel-strip { grid-template-columns: repeat(3, 1fr); }
  .portal-grid-2, .portal-grid-3, .supplier-grid, .solution-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .channel-strip, .supplier-grid, .solution-grid, .portal-grid-2, .portal-grid-3 { grid-template-columns: 1fr; }
}

/* ===== Fixed first screen: headline + channel ===== */
.headline-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.headline-label {
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  background: #1799CD;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 3;
}
.headline-viewport {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  height: 42px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  padding: 0 16px;
  background: #fff;
}
.headline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform .45s ease;
  will-change: transform;
}
.headline-list li {
  height: 42px;
  line-height: 42px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.channel-bar { display: none !important; }
.focus-panel {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  height: 380px;
  min-height: 380px;
  max-height: 380px;
  box-sizing: border-box;
  overflow: hidden;
}
.focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow: hidden;
}
.hot-ticker,
.channel-strip { display: none !important; }

.headline-list a,
.headline-list span {
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}
.headline-list a:hover { color: var(--water); }

.quick-entries {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.quick-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  background: #fff;
  border: 1px solid rgba(23, 153, 205, 0.2);
  text-decoration: none;
  color: #1799CD;
  min-height: 72px;
}
.quick-card strong { font-size: 14px; }
.quick-card span { font-size: 12px; color: var(--muted); }
.quick-card:hover { background: #eef7fc; border-color: #1799CD; }
.stats-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.stat-card {
  background: linear-gradient(180deg, #eef7fc, #e3f3fa);
  border: 1px solid rgba(23, 153, 205, 0.16);
  padding: 14px 10px;
  text-align: center;
}
.stat-card strong {
  display: block;
  font-size: 22px;
  color: #1799CD;
  line-height: 1.2;
}
.stat-card span {
  font-size: 12px;
  color: var(--muted);
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.topic-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px;
  background: #dff3fc;
  border: 1px solid rgba(23, 153, 205, 0.25);
  color: #1799CD;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.topic-card:hover { background: #cceaf8; }

@media (max-width: 1100px) {
  .quick-entries, .stats-strip { grid-template-columns: repeat(3, 1fr); }
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .quick-entries, .stats-strip, .topic-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Inner channel pages ===== */
.channel-page {
  width: 100%;
}
.channel-panel {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px 32px 32px;
  border-radius: 8px;
}
.channel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0 0 16px;
  border-bottom: 1px solid #F2F3F5;
}
.channel-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(23, 153, 205, 0.22);
  background: #fff;
  color: #4E5969;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
}
.channel-tabs a.is-active {
  background: #e8f6fb;
  border-color: #1799CD;
  color: #0f7aa8;
}
.article-row {
  padding: 16px 4px;
}
.channel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(23, 153, 205, 0.14);
  margin-bottom: 18px;
}
.channel-crumb {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.channel-crumb a { color: var(--muted); }
.channel-crumb a:hover { color: var(--water); }
.channel-head h1,
.channel-head .page-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.6vw, 34px);
  color: #1799CD;
  letter-spacing: 0.04em;
  line-height: 1.25;
  font-weight: 700;
}
.channel-enter {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--water);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(23, 153, 205, 0.35);
}
.channel-enter:hover { color: var(--water-deep); }
.match-head-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
}
.match-head-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 6px;
  background: #1799CD;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.match-head-actions a:hover { background: #1287b8; color: #fff; }
.match-head-actions a.ghost {
  background: #fff;
  color: #1799CD;
  border: 1px solid #1799CD;
}
.match-head-actions a.ghost:hover { background: #e8f6fb; color: #0f7aa8; }

.channel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0 0 16px;
  border-bottom: 1px dashed var(--line);
}
.channel-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(23, 153, 205, 0.22);
  background: #fff;
  color: #4E5969;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.channel-tabs a:hover {
  background: #eef8fc;
  border-color: rgba(23, 153, 205, 0.4);
  color: #1799CD;
}
.channel-tabs a.is-active {
  background: #e8f6fb;
  border-color: #1799CD;
  color: #0f7aa8;
  box-shadow: none;
}
.channel-tabs a.tab-all.is-active {
  background: #fff;
  border-color: #1799CD;
  color: #1799CD;
}
.meta-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 4px;
  border: 1px solid rgba(23, 153, 205, 0.35);
  background: #f2fafd;
  color: #1799CD !important;
  font-size: 12px;
  font-weight: 600;
}
.meta-amount {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 4px;
  border: 1px solid rgba(217, 119, 6, 0.35);
  background: #fff8ef;
  color: #c2410c !important;
  font-size: 12px;
  font-weight: 600;
}
.pin-tag {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  padding: 1px 7px;
  border-radius: 4px;
  background: #e8f6fc;
  color: #1286b5;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.list-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 88px;
}
.side-feature {
  display: block;
  margin: 0 0 12px;
  text-decoration: none;
  color: #fff;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.side-feature-cover {
  height: 132px;
  background:
    linear-gradient(180deg, transparent 35%, rgba(8, 40, 58, 0.78)),
    linear-gradient(135deg, rgba(23,153,205,.35), rgba(15,90,130,.25)),
    url("/static/images/banners/banner-3.jpg") center/cover;
}
.side-feature strong {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}
@media (max-width: 980px) {
  .list-layout { grid-template-columns: 1fr; }
  .list-sidebar { position: static; }
}

.article-feed.elegant {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.article-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.article-row:last-child { border-bottom: 0; }
.article-row:hover { background: #f7fbfe; }
.article-row time {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 64px;
  padding: 8px 6px;
  background: linear-gradient(180deg, #eef7fc, #e3f3fa);
  border: 1px solid rgba(23, 153, 205, 0.16);
  color: #1799CD;
  text-align: center;
}
.article-row time strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.article-row time em {
  font-style: normal;
  font-size: 11px;
  color: #6b8799;
  letter-spacing: 0.04em;
}
.article-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-family: var(--font-serif);
  line-height: 1.45;
  font-weight: 700;
}
.article-body h3 a {
  color: var(--ink);
  text-decoration: none;
}
.article-body h3 a:hover { color: #1799CD; }
.article-body .summary {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-body .meta {
  gap: 14px;
}
.article-more {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(23, 153, 205, 0.28);
  color: #1799CD;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.article-more:hover {
  background: #1799CD;
  border-color: #1799CD;
  color: #fff;
}
.article-acts {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.article-more.is-down {
  border-color: rgba(196, 90, 18, 0.35);
  color: #c45a12;
}
.article-more.is-down:hover {
  background: #c45a12;
  border-color: #c45a12;
  color: #fff;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.article-detail .page-title {
  font-size: clamp(24px, 2.4vw, 32px);
  color: var(--ink);
}
.article-meta {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.article-meta .meta-source {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: 13px;
  word-break: break-all;
}
.article-meta.is-reprint .meta-source {
  flex: none;
}
.btn-like {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid #BEDAFF;
  border-radius: 999px;
  background: #F2F7FF;
  color: #165DFF;
  font-size: 12px;
  cursor: pointer;
  line-height: 1.4;
}
.btn-fav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 4px 10px;
  border: 1px solid #C9E6F5;
  border-radius: 999px;
  background: #F2FAFD;
  color: #1799CD;
  font-size: 12px;
  cursor: pointer;
  line-height: 1.4;
}
.btn-like em {
  font-style: normal;
  font-weight: 600;
  min-width: 1em;
}
.btn-like:hover {
  background: #165DFF;
  color: #fff;
  border-color: #165DFF;
}
.btn-fav:hover {
  background: #1799CD;
  color: #fff;
  border-color: #1799CD;
}
.btn-like.is-liked,
.btn-like:disabled {
  background: #E8F3FF;
  color: #0E42B3;
  border-color: #94BFFF;
  cursor: default;
}
.btn-fav.is-faved {
  background: #E6F6FB;
  color: #0E6E94;
  border-color: #7BC8E0;
}
.article-detail .summary.lead {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: #eef7fc;
  border-left: 3px solid #1799CD;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}
.content-body .reprint-meta {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.content-body .reprint-meta a { color: #1799CD; }
.content-body .art-lead {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
}
.content-body .art-source {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
}
.article-ads-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.article-ads-bottom-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 45, 70, 0.04);
}
.article-ads-bottom-inner:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.article-ad-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 10px;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  background: #1799CD;
}
.article-ad-tile.has-image {
  padding: 0;
  background: #f5f7fa;
}
.article-ad-tile img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}
.match-type-switch {
  display: flex;
  gap: 10px;
  margin: 0 0 20px;
}
.match-type-switch a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.match-type-switch a.is-active {
  background: #e8f6fb;
  border-color: #1799CD;
  color: #0f7aa8;
}
.match-form .form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.match-form label { font-size: 13px; color: var(--muted); font-weight: 600; }
.match-form input,
.match-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  box-sizing: border-box;
}
.match-form textarea { resize: vertical; min-height: 96px; }
.match-form .btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  border: 0;
  background: #1799CD;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  margin-right: 8px;
}
.match-form .btn-ghost {
  background: #fff;
  color: #1799CD !important;
  border: 1px solid rgba(23,153,205,.35);
}
.portal-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  min-width: 180px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #1d2129;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-8px);
  transition: .2s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.portal-toast.show { opacity: 1; transform: translateY(0); }
.portal-toast.ok { background: #0d7a5f; }
.portal-toast.err { background: #c0392b; }
.article-ad-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 16px 20px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.article-ad-banner img {
  max-height: 48px;
  margin-right: 12px;
}
@media (max-width: 720px) {
  .article-ads-bottom-inner,
  .article-ads-bottom-inner:has(> :nth-child(2):last-child) {
    grid-template-columns: 1fr;
  }
}
.article-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 88px;
}
.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 16px 12px;
  box-shadow: 0 8px 24px rgba(15, 45, 70, 0.04);
}
.side-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-family: var(--font-serif);
  color: #1799CD;
}
.side-related {
  list-style: none;
  margin: 0;
  padding: 0;
}
.side-related li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.side-related li:last-child { border-bottom: 0; }
.side-related a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.55;
}
.side-related a:hover { color: #1799CD; }
.side-related time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.side-empty { margin: 0; color: var(--muted); font-size: 13px; }
.article-ad-inline {
  margin: 22px 0;
  padding: 12px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.article-ad-inline .article-ad-banner {
  margin: 0;
}
.side-ads {
  display: grid;
  gap: 12px;
}
.side-ads .side-title {
  margin-bottom: 4px;
}
.side-ad {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 14px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  overflow: hidden;
}
.side-ad.has-image {
  padding: 0;
  background: #f5f7fa !important;
  min-height: 0;
}
.side-ad img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  margin: 0;
  border-radius: 10px;
}
.ad-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  pointer-events: none;
}
.article-ad-banner.has-image {
  padding: 0;
  background: transparent !important;
  min-height: 0;
}
.article-ad-banner.has-image img {
  display: block;
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0;
}
.related-box {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.related-box h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-family: var(--font-serif);
  color: #1799CD;
}
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.related-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.related-list li:last-child { border-bottom: 0; }
.related-list a {
  color: var(--ink);
  text-decoration: none;
}
.related-list a:hover { color: #1799CD; }
.related-list span { color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
}
.contact-body { font-size: 15px; line-height: 1.9; color: var(--ink-soft); }
.legal-body {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
  max-width: 860px;
}
.legal-body h2 {
  margin: 28px 0 10px;
  font-size: 18px;
  color: var(--ink);
  font-weight: 700;
}
.legal-body p { margin: 0 0 12px; }
.legal-body a { color: #1799CD; }
.legal-updated {
  margin-top: 28px !important;
  color: #86909c;
  font-size: 13px;
}

/* AI 试用工具 */
.ai-tools-page .channel-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 52em;
}
.ai-tool-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 22px;
}
.ai-tool-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ai-tool-nav-item:hover {
  border-color: #b9a0e0;
  box-shadow: 0 8px 20px rgba(114, 46, 209, 0.08);
  transform: translateY(-2px);
}
.ai-tool-nav-item.is-active {
  border-color: #722ED1;
  background: linear-gradient(180deg, #faf7ff, #fff);
}
.ai-tool-nav-item strong { font-size: 15px; }
.ai-tool-nav-item span:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.ai-hub-note {
  padding: 14px 16px;
  border-radius: 10px;
  background: #f7f8fa;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}
.ai-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}
.ai-qa-form label,
.ai-plan-form .form-row label,
.ai-upload-form .form-tip {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.ai-qa-form textarea,
.ai-plan-form input,
.ai-plan-form select,
.ai-plan-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.ai-qa-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}
.ai-chip {
  border: 1px solid #e5e6eb;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: #4e5969;
  cursor: pointer;
}
.ai-chip:hover { border-color: #722ED1; color: #722ED1; }
.ai-result {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  background: #fff;
}
.ai-result h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-family: var(--font-serif);
  color: #722ED1;
}
.ai-answer {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  white-space: pre-line;
}
.ai-tips { margin: 12px 0; color: var(--muted); font-size: 13px; }
.ai-hits { display: grid; gap: 10px; margin-top: 12px; }
.ai-hit {
  padding: 12px;
  border-radius: 8px;
  background: #f7f8fa;
}
.ai-hit strong { display: block; margin-bottom: 6px; font-size: 14px; }
.ai-hit p { margin: 0 0 8px; font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.ai-hit a { font-size: 12px; color: #1799CD; }
.ai-result-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}
.ai-result-actions .btn-ghost {
  margin-left: 8px;
}
.ai-plan-doc h2, .ai-plan-doc h3, .ai-plan-doc h4 {
  color: #1d2129;
  font-family: var(--font-serif);
}
.ai-plan-doc .ai-plan-meta {
  color: var(--muted);
  font-size: 13px;
  background: #f7f8fa;
  padding: 10px 12px;
  border-radius: 8px;
}
.ai-drop {
  position: relative;
  border: 1px dashed #c9cdd4;
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  background: #fafbfc;
  margin-bottom: 14px;
  overflow: hidden;
}
.ai-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.ai-drop p { margin: 0; color: var(--muted); font-size: 14px; }
.ai-drop img {
  display: block;
  max-width: 100%;
  max-height: 260px;
  margin: 14px auto 0;
  border-radius: 8px;
}
.ai-remote-preview-wrap {
  position: relative;
  margin: 14px auto 0;
  max-width: 100%;
  display: inline-block;
}
.ai-remote-preview-wrap img {
  display: block;
  max-width: 100%;
  max-height: 280px;
  border-radius: 8px;
}
.ai-remote-mask {
  position: absolute;
  inset: 12% 8% 18% 10%;
  border-radius: 40% 45% 38% 50% / 42% 38% 48% 40%;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.ai-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.ai-metric {
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #faf7ff, #f7f8fa);
  text-align: center;
}
.ai-metric span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.ai-metric strong {
  font-size: 22px;
  color: #722ED1;
  font-variant-numeric: tabular-nums;
}
.ai-tips-list {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}
.ai-disclaimer {
  font-size: 12px;
  color: #86909c;
  line-height: 1.6;
  margin: 0 0 10px;
}
.ai-rule-link {
  font-size: 13px;
  color: #1799CD;
  font-weight: 600;
}

/* 水利计算工具 */
.calc-tools-page .channel-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 52em;
}
.calc-tool-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 22px;
}
.calc-tool-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.calc-tool-nav-item:hover {
  border-color: #7ec8e3;
  box-shadow: 0 8px 20px rgba(23, 153, 205, 0.1);
  transform: translateY(-2px);
}
.calc-tool-nav-item.is-active {
  border-color: #1799CD;
  background: linear-gradient(180deg, #f3fafd, #fff);
}
.calc-tool-nav-item em {
  display: inline-flex;
  align-self: flex-start;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #1799CD;
  background: rgba(23, 153, 205, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}
.calc-tool-nav-item strong { font-size: 15px; }
.calc-tool-nav-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.calc-hub-note {
  padding: 14px 16px;
  border-radius: 10px;
  background: #f7f8fa;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}
.calc-workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: start;
}
.calc-form .form-row { margin-bottom: 12px; }
.calc-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.calc-form input,
.calc-form select,
.calc-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.calc-form textarea { min-height: 72px; resize: vertical; }
.calc-form .form-tip {
  margin-top: 12px;
  font-size: 12px;
  color: #86909c;
  line-height: 1.6;
}
.calc-result {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  background: #fff;
}
.calc-result h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-family: var(--font-serif);
  color: #1799CD;
}
.calc-metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.calc-metric {
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f3fafd, #f7f8fa);
  text-align: center;
}
.calc-metric span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.calc-metric strong {
  font-size: 20px;
  color: #1799CD;
  font-variant-numeric: tabular-nums;
}
.calc-metric small {
  margin-left: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.calc-level,
.calc-formula,
.calc-standard,
.calc-note {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.calc-table-wrap {
  overflow: auto;
  margin: 10px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.calc-table th,
.calc-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
.calc-table th {
  background: #f7f8fa;
  color: var(--muted);
  font-weight: 600;
}
.calc-table tr:last-child td { border-bottom: 0; }
.calc-group { margin: 6px 0 22px; }
.calc-group-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-family: var(--font-serif);
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.calc-group-title small {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.calc-group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.calc-group-tab {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  background: #fff;
}
.calc-group-tab.is-active {
  border-color: #1799CD;
  color: #1799CD;
  background: #f3fafd;
  font-weight: 600;
}
.calc-tool-nav-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}
.calc-tool-nav-compact .calc-tool-nav-item span { display: none; }
.calc-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.calc-form-actions .btn-ghost {
  background: #fff;
  color: #1799CD !important; /* 覆盖全局 .btn 的白色字，否则白底看不见文案 */
  border: 1px solid #1799CD;
  box-shadow: none;
}
.calc-form-actions .btn-ghost:hover:not([disabled]) {
  background: #f3fafd;
}
.calc-form-actions .btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
}
.calc-form-actions .btn-ghost[disabled] {
  color: #86909c !important;
  border-color: #c9cdd4;
  background: #f7f8fa;
}
.calc-export-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: #86909c;
  line-height: 1.5;
}
.calc-export-hint.is-ready {
  color: #0f7aa8;
}
@media (max-width: 980px) {
  .calc-tool-nav,
  .calc-tool-nav-compact,
  .calc-workbench,
  .calc-metric-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .ai-tool-nav,
  .ai-workbench,
  .ai-metric-row {
    grid-template-columns: 1fr;
  }
  .ai-result-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .channel-panel { padding: 20px 16px 24px; }
  .channel-head { flex-direction: column; align-items: flex-start; }
  .article-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .article-more { display: none; }
  .article-acts { grid-column: 1 / -1; flex-direction: row; padding-left: 74px; }
  .article-acts .article-more { display: inline-flex; }
  .article-row time strong { font-size: 20px; }
}

/* ===== Channel advanced filter ===== */
.channel-filter {
  margin: 0 0 22px;
  padding: 14px 16px 12px;
  border: 1px solid rgba(23, 153, 205, 0.28);
  background: #f7fbfe;
  border-radius: 6px;
}
.cf-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #0f7aa8;
}
.cf-head strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.cf-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background:
    linear-gradient(#1799CD, #1799CD) 4px 3px / 10px 2px no-repeat,
    linear-gradient(#1799CD, #1799CD) 4px 7px / 10px 2px no-repeat,
    linear-gradient(#1799CD, #1799CD) 4px 11px / 6px 2px no-repeat,
    radial-gradient(circle at 13px 13px, transparent 3px, #1799CD 3px, #1799CD 4.5px, transparent 4.6px);
  border: 1.5px solid #1799CD;
  border-radius: 3px;
}
.cf-row {
  display: grid;
  grid-template-columns: 76px 92px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px dashed rgba(23, 153, 205, 0.18);
}
.cf-label {
  padding-top: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #1d2129;
  white-space: nowrap;
}
.cf-select {
  height: 28px;
  padding: 0 6px;
  border: 1px solid #c9e6f2;
  background: #fff;
  color: #4e5969;
  font-size: 12px;
  border-radius: 3px;
}
.cf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  min-height: 28px;
}
.cf-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  color: #4e5969;
  text-decoration: none;
  font-size: 13px;
  border: 1px solid transparent;
  border-radius: 3px;
  line-height: 1.2;
}
.cf-tag:hover {
  color: #1799CD;
  background: #fff;
  border-color: rgba(23, 153, 205, 0.35);
}
.cf-tag.is-active {
  color: #c45a12;
  border-color: #e8a066;
  background: #fff;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(232, 160, 102, 0.25);
}
.cf-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(23, 153, 205, 0.2);
}
.cf-selected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  font-size: 13px;
  color: #4e5969;
}
.cf-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2ba471;
  position: relative;
  flex-shrink: 0;
}
.cf-check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 5px;
  height: 8px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}
.cf-selected-label { font-weight: 700; color: #1d2129; }
.cf-selected em { font-style: normal; color: #86909c; }
.cf-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1px solid #e8a066;
  color: #c45a12;
  background: #fff;
  text-decoration: none;
  font-size: 12px;
  border-radius: 3px;
}
.cf-chip i {
  font-style: normal;
  font-size: 14px;
  line-height: 1;
  color: #c45a12;
}
.cf-chip:hover { background: #fff7f0; }
.cf-clear {
  margin-left: 4px;
  color: #1799CD;
  font-size: 12px;
  text-decoration: none;
}
.cf-clear:hover { text-decoration: underline; }
.cf-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.cf-count {
  font-size: 13px;
  color: #4e5969;
}
.cf-count strong {
  margin: 0 2px;
  color: #c45a12;
  font-size: 16px;
}
.cf-search {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cf-search label {
  font-size: 13px;
  color: #1d2129;
  font-weight: 600;
  white-space: nowrap;
}
.cf-search input[type="search"] {
  width: 180px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #c9e6f2;
  border-radius: 3px;
  font-size: 13px;
  background: #fff;
}
.cf-search button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 3px;
  background: #1799CD;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.cf-search button:hover { background: #1286b5; }
@media (max-width: 860px) {
  .cf-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .cf-label {
    padding-top: 0;
  }
  .cf-select { display: none; }
  .cf-tags {
    gap: 6px 8px;
  }
  .cf-tag {
    max-width: 100%;
    word-break: break-word;
    white-space: normal;
    line-height: 1.35;
    min-height: auto;
    padding: 4px 8px;
  }
  .cf-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .cf-tools {
    width: 100%;
    justify-content: space-between;
  }
  .cf-search {
    width: 100%;
    flex-wrap: wrap;
  }
  .cf-search input[type="search"] {
    flex: 1;
    width: auto;
    min-width: 0;
  }
  .channel-filter {
    padding: 12px;
    overflow: hidden;
  }
  .article-body h3,
  .article-row h3,
  .feed-item h3,
  .elegant h3 {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .article-row,
  .feed-item,
  .link-list li {
    min-width: 0;
    max-width: 100%;
  }
  .link-list a,
  .portal-news a,
  .side-related a {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .content-body,
  .article-body {
    overflow-x: auto;
    max-width: 100%;
    word-break: break-word;
  }
  .content-body table,
  .article-body table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }
  .content-body img,
  .article-body img {
    max-width: 100% !important;
    height: auto !important;
  }
  .channel-head,
  .channel-head-main,
  .block-hd {
    min-width: 0;
    max-width: 100%;
  }
  .block-hd h2 {
    word-break: break-word;
  }
  .search-page-form .form-row {
    flex-direction: column;
    align-items: stretch;
  }
  .search-page-form label { width: auto; }
  .search-page-form .search-actions { padding-left: 0; }
  .main-inner,
  .header-inner,
  .footer-inner {
    max-width: 100%;
    box-sizing: border-box;
  }
}

.std-note {
  margin: 16px 0 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.7;
  color: #4e5969;
  background: #f7fbfe;
  border: 1px solid rgba(23, 153, 205, 0.18);
}
.std-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 20px;
}
.std-actions .btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  background: #1799CD;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.std-actions .btn-ghost {
  background: #fff;
  color: #1799CD;
  border: 1px solid #1799CD;
}
.std-tip { font-size: 13px; color: #86909c; }
.std-ai {
  margin: 28px 0 8px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}
.std-ai h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--ink);
}
.std-ai h3 {
  margin: 20px 0 10px;
  font-size: 16px;
  color: var(--ink);
}
.std-ai-lead {
  margin: 0 0 12px;
  font-size: 13px;
  color: #86909c;
}
.std-brief {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  white-space: pre-line;
}
.std-faq {
  margin: 0;
}
.std-faq dt {
  margin: 12px 0 4px;
  font-weight: 700;
  color: var(--ink);
}
.std-faq dd {
  margin: 0;
  padding: 8px 12px;
  background: #f7fbfe;
  border-left: 3px solid #1799CD;
  color: var(--ink-soft);
  line-height: 1.7;
}
.std-qa {
  margin-top: 20px;
  padding: 16px;
  background: #f7fbfe;
  border: 1px solid rgba(23, 153, 205, 0.18);
}
.std-meta {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 16px;
  font-size: 14px;
  table-layout: fixed;
}
.std-meta th,
.std-meta td {
  padding: 11px 12px;
  border: 1px solid #e8eef3;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
  word-break: break-word;
}
.std-meta th {
  width: 18%;
  background: #f5f8fb;
  color: #4e5969;
  font-weight: 600;
  white-space: nowrap;
}
.std-meta td { color: #1d2129; }

/* ===== 互动交流 / 建议论坛 ===== */
.channel-head-main { min-width: 0; flex: 1; }
.channel-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 46em;
}
.forum-boards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 28px;
}
.forum-board-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px 14px;
  border: 1px solid rgba(23, 153, 205, 0.18);
  background: linear-gradient(180deg, #f7fbfe 0%, #fff 58%);
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.forum-board-card:hover {
  border-color: #1799CD;
  box-shadow: 0 8px 20px rgba(23, 153, 205, 0.1);
  transform: translateY(-1px);
}
.forum-board-card strong {
  font-size: 16px;
  color: #1799CD;
  font-family: var(--font-serif);
  font-weight: 700;
}
.forum-board-card span {
  font-size: 13px;
  color: #4E5969;
  line-height: 1.55;
}
.forum-board-card em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.forum-sec-title {
  margin: 8px 0 14px;
  font-size: 18px;
  font-family: var(--font-serif);
  color: #1799CD;
  font-weight: 700;
}
.forum-side-tip {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #4E5969;
}
.forum-side-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  background: #1799CD;
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
}
.forum-side-btn:hover { background: #1286b5; }
.forum-side-link {
  display: inline-block;
  margin: 10px 0 0 8px;
  font-size: 13px;
  color: #1799CD;
  text-decoration: none;
}
.forum-side-link:hover { text-decoration: underline; }
.forum-search { margin: 0 0 18px; }
.forum-op,
.forum-reply {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.forum-op { padding-top: 6px; }
.forum-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e8f6fb;
  color: #0f7aa8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  font-family: var(--font-serif);
}
.forum-op-text {
  white-space: pre-line;
  line-height: 1.85;
  font-size: 15px;
  color: var(--ink);
  word-break: break-word;
}
.forum-reply-hd {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.forum-reply-hd strong { color: #0f7aa8; font-size: 14px; }
.forum-reply-hd time { font-size: 12px; color: var(--muted); }
.forum-comments {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: #f7fbfe;
  border: 1px solid rgba(23, 153, 205, 0.14);
  border-radius: 6px;
}
.forum-comment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(23, 153, 205, 0.12);
  font-size: 13px;
  line-height: 1.65;
}
.forum-comment:last-child { border-bottom: 0; padding-bottom: 0; }
.forum-comment:first-child { padding-top: 0; }
.forum-comment strong { color: #0f7aa8; }
.forum-comment span { color: #1d2129; white-space: pre-line; word-break: break-word; }
.forum-reply:target,
.forum-comment:target {
  background: #f3faff;
  box-shadow: inset 3px 0 0 #1799CD;
}
.forum-mini-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.forum-mini-form input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}
.forum-mini-form .btn {
  height: 36px;
  padding: 0 14px;
  border: 0;
  background: #1799CD;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}
.forum-mini-form .btn:disabled,
.forum-reply-form .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.forum-reply-box {
  margin-top: 8px;
  padding-top: 8px;
}
.forum-reply-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  line-height: 1.7;
  min-height: 120px;
  resize: vertical;
  margin-bottom: 12px;
}
.forum-reply-form .btn {
  height: 40px;
  padding: 0 18px;
  border: 0;
  background: #1799CD;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}
.forum-login-hint {
  padding: 16px 18px;
  background: #f7fbfe;
  border: 1px dashed rgba(23, 153, 205, 0.28);
  color: #4E5969;
  font-size: 14px;
  line-height: 1.7;
  border-radius: 6px;
}
.forum-login-hint a { color: #1799CD; }
.match-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  box-sizing: border-box;
  background: #fff;
}
@media (max-width: 860px) {
  .forum-boards { grid-template-columns: 1fr; }
  .forum-comment { grid-template-columns: 1fr; }
}

/* ===== 站内搜索 ===== */
.search-page-form {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 16px 18px;
  background: #f7fbfe;
  border: 1px solid rgba(23, 153, 205, 0.16);
  border-radius: 8px;
}
.search-page-form .form-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-page-form label {
  width: 64px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.search-page-form input[type="search"],
.search-page-form input[type="text"],
.search-page-form input[type="date"],
.search-page-form select {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  box-sizing: border-box;
}
.search-page-form .search-dates span {
  color: var(--muted);
  font-size: 13px;
}
.search-page-form .search-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 76px;
}
.search-page-form .btn {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: #1799CD;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.search-page-form .btn:hover { background: #1286b5; }
.search-page-form .search-actions a {
  font-size: 13px;
  color: #1799CD;
  text-decoration: none;
}
.search-page-form .search-actions a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .search-page-form .search-actions { padding-left: 0; }
  .search-page-form .search-dates { flex-wrap: wrap; }
}

/* ===== 湖南项目地图 ===== */
.pmap-layout .list-main { min-width: 0; }
.pmap-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}
.pmap-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: #4E5969;
}
.pmap-legend em { font-style: normal; color: var(--muted); }
.pmap-toolbar .cf-search select {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.pmap-stage {
  position: relative;
  height: 620px;
  min-height: 620px;
  background: #d7e8f0;
  border: 1px solid rgba(23, 153, 205, 0.18);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(23, 153, 205, 0.08);
}
.pmap-stage .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: inherit;
  background: #d7e8f0;
}
.pmap-stage .leaflet-control-zoom a {
  color: #1799CD;
  width: 32px;
  height: 32px;
  line-height: 30px;
  border: 0;
}
.pmap-stage .leaflet-control-layers,
.pmap-stage .leaflet-bar {
  border: 0;
  box-shadow: 0 6px 18px rgba(15, 45, 70, 0.12);
  border-radius: 8px;
  overflow: hidden;
}
.leaflet-div-icon.pmap-pin {
  background: transparent;
  border: none;
  width: 22px;
  height: 30px;
}
.pmap-pin {
  position: relative;
  width: 22px;
  height: 30px;
  cursor: pointer;
}
.pmap-pole {
  position: absolute;
  left: 3px;
  top: 8px;
  width: 3px;
  height: 22px;
  background: #6b4a2b;
  border-radius: 1px;
}
.pmap-flag {
  position: absolute;
  left: 6px;
  top: 0;
  width: 16px;
  height: 12px;
  background: #c23a2b;
  clip-path: polygon(0 0, 100% 18%, 86% 50%, 100% 82%, 0 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.pmap-pin.tone-info .pmap-flag { background: #1799CD; }
.pmap-flag-ico {
  display: inline-block;
  width: 12px;
  height: 9px;
  margin-right: 4px;
  background: #c23a2b;
  clip-path: polygon(0 0, 100% 18%, 86% 50%, 100% 82%, 0 100%);
  vertical-align: 1px;
}
.pmap-flag-ico.tone-info { background: #1799CD; }
.leaflet-div-icon.pmap-city-label {
  background: none;
  border: none;
  white-space: nowrap;
}
.pmap-city-label span {
  display: inline-block;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 600;
  color: #2f5366;
  text-shadow: 0 0 4px #fff, 0 1px 2px #fff, 1px 0 2px #fff;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.leaflet-div-icon.pmap-cluster-wrap,
.pmap-cluster-wrap {
  background: none;
  border: none;
}
.pmap-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2bb0e0 0%, #1799CD 100%);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(23, 153, 205, 0.38);
}
.pmap-cluster-md { width: 38px; height: 38px; font-size: 14px; }
.pmap-cluster-lg { width: 44px; height: 44px; font-size: 15px; }
.leaflet-popup.pmap-leaflet-pop .leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 45, 70, 0.16);
  padding: 0;
}
.leaflet-popup.pmap-leaflet-pop .leaflet-popup-content {
  margin: 12px 14px 10px;
  line-height: 1.5;
}
.pmap-pop-inner strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 6px;
}
.pmap-pop-inner p { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.pmap-pop-inner a { font-size: 13px; color: #1799CD; font-weight: 600; text-decoration: none; }
.leaflet-tooltip.pmap-tip {
  background: #fff;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(15, 45, 70, 0.12);
  color: #2f5366;
  font-weight: 600;
  padding: 4px 8px;
}
.pmap-city-list { list-style: none; margin: 0; padding: 0; }
.pmap-city-list li { border-bottom: 1px dashed var(--line); }
.pmap-city-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
}
.pmap-city-list a:hover,
.pmap-city-list a.is-active { color: #1799CD; }
.pmap-city-list em { font-style: normal; color: var(--muted); }
@media (max-width: 860px) {
  .pmap-stage { height: 420px; min-height: 420px; }
}

