/* ===================================================================
   中国商标网 · 首页新版样式（仅 index.html 引用，完全独立）
   自带基础重置与全部版块样式，不依赖 home.css，可与旧版并存互不影响
   =================================================================== */

/* 锚点跳转平滑滚动 */
html { scroll-behavior: smooth; }
/* 禁止移动端浏览器自动放大文字（华为等 Android 浏览器 font boosting 会导致布局溢出） */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* 横向溢出兜底：任何异常元素都不允许把页面撑出屏幕 */
html, body { overflow-x: clip; }
/* 锚点定位时预留顶部吸顶导航高度，避免标题被遮挡 */
#wyb { scroll-margin-top: 78px; }

:root {
  --brand: #1e5cb3;
  --brand-deep: #0d3161;
  --brand-light: #e8f1fb;
  --brand-line: #d8e6f6;
  --alert: #c23a2b;
  --ink: #1a2533;
  --ink-2: #3d4a5c;
  --ink-3: #7a8aa0;
  --bg: #f5f8fc;
  --card: #fff;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(18, 65, 126, .06);
  --shadow-lg: 0 14px 34px rgba(18, 65, 126, .12);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px;
}

/* ============ 基础重置（本页自带，不依赖任何外部样式） ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6;
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans CN", "Helvetica Neue", Arial, sans-serif;
}
.trademark-home { background: var(--bg); padding-bottom: 0; }
.trademark-home h1, .trademark-home h2, .trademark-home h3, .trademark-home h4,
.trademark-home p, .trademark-home ul, .trademark-home li {
  padding: 0; margin: 0; line-height: inherit;
}
.trademark-home a { text-decoration: none;}
.trademark-home img { border: 0; }
.trademark-home button, .trademark-home input { font-family: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ 顶部工具条 ============ */
.topbar { background: var(--brand-deep); }
.topbar .wrap {
  display: flex; justify-content: flex-end; gap: 24px;
  padding-top: 7px; padding-bottom: 7px;
}
.topbar a {
  color: #b8cbe6; font-size: 14px; display: inline-flex; align-items: center;
  transition: color .2s;
}
.topbar a:hover { color: #fff; }

/* ============ 页头 ============ */
.header {
  background: #fff; border-bottom: 1px solid #e6edf5;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(18,65,126,.04);
}
.header .wrap { display: flex; align-items: center; gap: 16px; height: 84px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 52px; width: auto; display: block; }
.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: nowrap; white-space: nowrap; }
.nav a {
  padding: 10px 15px; border-radius: 10px; font-size: 16px; font-weight: 500;
  color: var(--ink-2); transition: all .2s; display: inline-block;
}
.nav a:hover { color: var(--brand); background: var(--brand-light); }
.nav a.active { color: #fff; background: var(--brand); box-shadow: 0 4px 10px rgba(30,92,179,.3); }

/* ============ Banner ============ */
.hero {
  background:
    radial-gradient(900px 320px at 85% -10%, rgba(96,165,250,.35), transparent 60%),
    radial-gradient(700px 300px at 10% 110%, rgba(37,99,235,.25), transparent 60%),
    linear-gradient(120deg, #0d3161 0%, var(--brand-deep) 55%, #1a5aa8 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -60px; top: -80px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 60px rgba(255,255,255,.02);
}
.hero .wrap {
  display: grid; grid-template-columns: 1fr 380px; gap: var(--s5);
  align-items: center; padding-top: 44px; padding-bottom: 44px;
  position: relative; z-index: 1;
}
.hero-copy .kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; letter-spacing: 3px; color: #cfe2f8;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  padding: 6px 16px; margin-bottom: 20px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.hero-copy .kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #ffd76e; box-shadow: 0 0 0 3px rgba(255,215,110,.22);
}
.hero-copy h2 { font-size: 34px; letter-spacing: 4px; font-weight: 700; margin-bottom: 10px; }
.hero-copy h2 span { color: #ffd76e; }
.hero-copy p { color: #c3d7ef; font-size: 16px; margin-bottom: var(--s3); }

/* 搜索框：banner 视觉主角 */
.search-box {
  display: flex; align-items: center;
  background: #fff; border-radius: 14px; padding: 7px 7px 7px 18px;
  max-width: 620px; box-shadow: 0 12px 32px rgba(4,20,45,.38);
  border: 1px solid rgba(255,255,255,.65);
  transition: box-shadow .25s ease, transform .25s ease;
}
.search-box:focus-within {
  box-shadow: 0 16px 42px rgba(4,20,45,.45), 0 0 0 4px rgba(120,175,255,.35);
  transform: translateY(-1px);
}
.search-box .search-ico { width: 20px; height: 20px; flex: none; color: #9db1c9; margin-right: 10px; }
.search-box input {
  flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16.5px;
  padding: 13px 0 13px 6px; color: var(--ink); background: transparent;
}
.search-box input::placeholder { color: #9aa9bd; }
.search-box button {
  border: 0; cursor: pointer; border-radius: 10px;
  background: linear-gradient(135deg, #2f7be0, var(--brand));
  color: #fff; font-size: 16px; padding: 13px 34px; letter-spacing: 3px;
  box-shadow: 0 6px 14px rgba(30,92,179,.35);
  transition: filter .2s, transform .2s, box-shadow .2s;
}
.search-box button:hover {
  filter: brightness(1.08); transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(30,92,179,.42);
}
.search-box button:active { transform: translateY(0); box-shadow: 0 5px 12px rgba(30,92,179,.35); }
.search-box button:focus-visible { outline: 2px solid #ffd76e; outline-offset: 2px; }
.hot-words { margin-top: 16px; font-size: 14px; color: #9db9dd; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.hot-words .hw-label { display: inline-flex; align-items: center; gap: 5px; }
.hot-words .hw-label svg { width: 14px; height: 14px; color: #ffd76e; }
.hot-words a {
  color: #dceafa; background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  padding: 3.5px 14px; transition: all .2s;
}
.hot-words a:hover {
  background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.32);
  transform: translateY(-1px);
}
/* 搜索空值提示弹窗 */
.search-modal-mask {
  position: fixed; inset: 0; background: rgba(4,20,45,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; animation: search-fade-in .2s ease-out;
}
@keyframes search-fade-in { from { opacity: 0; } to { opacity: 1; } }
.search-modal {
  background: #fff; border-radius: 14px; width: 320px;
  max-width: calc(100vw - 48px); padding: 30px 26px 22px; text-align: center;
  box-shadow: 0 20px 60px rgba(4,20,45,.4);
  transform: scale(.9); animation: search-pop-in .22s .04s ease-out forwards;
}
@keyframes search-pop-in { from { transform: scale(.9); opacity: .5; } to { transform: scale(1); opacity: 1; } }
.search-modal .sm-ico { width: 52px; height: 52px; margin: 0 auto; display: block; }
.search-modal h4 { font-size: 17px; color: var(--ink); margin: 14px 0 6px; letter-spacing: 1px; }
.search-modal p { font-size: 14px; color: #5a6b80; margin-bottom: 20px; line-height: 1.6; }
.search-modal .sm-btn {
  border: 0; cursor: pointer; border-radius: 9px; width: 100%;
  background: linear-gradient(135deg, #2f7be0, var(--brand));
  color: #fff; font-size: 15px; padding: 11px 0; letter-spacing: 2px;
  transition: filter .2s;
}
.search-modal .sm-btn:hover { filter: brightness(1.08); }
.search-modal .sm-btn:focus { outline: 0; }
/*
.hero {
  background:
    radial-gradient(900px 320px at 85% -10%, rgba(96,165,250,.35), transparent 60%),
    radial-gradient(700px 300px at 10% 110%, rgba(37,99,235,.25), transparent 60%),
    linear-gradient(120deg, #0d3161 0%, #144a8f 55%, #1a5aa8 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px;
  align-items: center; min-height: 280px; padding-top: 40px; padding-bottom: 40px;
}
.hero .wrap {
  display: grid; grid-template-columns: 1fr 380px; gap: var(--s5);
  align-items: center; padding-top: 56px; padding-bottom: 56px;
  position: relative; z-index: 1;
}
.hero-copy h2 {
  font-size: 34px; font-weight: 700; letter-spacing: 3px; margin-bottom: 10px;
}
.hero-copy h2 em {
  font-style: normal;
  background: linear-gradient(90deg, #6db3ff, #9fd0ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy > p { color: #c3d7ef; font-size: 16px; margin-bottom: 24px; }
.search-box {
  display: flex; background: #fff; border-radius: 12px; padding: 6px;
  box-shadow: 0 10px 30px rgba(4, 24, 54, .35);
  width: 100%; margin-bottom: 0;
}
.search-input {
  flex: 1; border: 0; outline: 0; font-size: 16px; padding: 0 16px; color: var(--ink);
  background: transparent;
}
.search-input::placeholder { color: #9aa9bd; }
.search-box .search-btn {
  border: 0; cursor: pointer; border-radius: 9px;
  background: linear-gradient(135deg, #2f7be0, var(--brand));
  color: #fff; font-size: 16px; padding: 12px 30px; letter-spacing: 2px;
  transition: filter .2s;
}
.search-box .search-btn:hover { filter: brightness(1.1); }
.hot-words {
  margin-top: 14px; font-size: 14px; color: #9db9dd;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.hot-item { cursor: pointer; color: #c3d7ef; transition: color .2s; margin: 0; }
.hot-item:hover { color: #fff; }
*/

/* Banner 右侧：一网通办（与左侧同一视觉容器体系） */
.hero-card {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px; padding: var(--s3);
  backdrop-filter: blur(6px);
}
.hero-card h3 { font-size: 20px; letter-spacing: 2px; margin-bottom: 4px; }
.hero-card h3 span { color: #ffd76e; }
.hero-card > p { font-size: 13px; color: #b8cfe9; margin-bottom: var(--s2); }
.hero-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-links a {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px; padding: 11px 13px; font-size: 14px; color: #eaf3fd;
  transition: all .2s;
}
.hero-links a:hover { background: #fff; color: var(--brand-deep); transform: translateY(-2px); }
.hero-links svg { width: 20px; height: 20px; flex: none; }

/* 轮播面板（active/leaving 机制由首页专属 index.js 驱动） */
.hero-panel { display: flex; justify-content: flex-end; }
.banner-carousel {
  position: relative; width: 380px; height: 208px; overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(4,24,54,.35);
}
.banner-right-content {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 24px; color: #fff;
  opacity: 0; transform: translateY(60%);
  transition: all .5s ease-in-out; pointer-events: none;
}
.banner-right-content.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.banner-right-content.leaving { opacity: 0; transform: translateY(-60%); }
.banner-right-content h2 {
  font-size: 26px; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.banner-right-content .banner-desc {
  font-size: 14.5px; color: #c3d7ef; margin-bottom: 18px; font-weight: 400;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.banner-right-content .banner-desc::before,
.banner-right-content .banner-desc::after { content: none; }
.banner-right-content .banner-btn {
  background: rgba(255,255,255,.92); color: var(--brand);
  padding: 8px 26px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  transition: all .2s;
}
.banner-right-content .banner-btn:hover { background: #fff; transform: translateY(-2px); }

/* ============ 通用版块 ============ */
.sec { padding-top: var(--s3); }
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--s2);
}
.sec-head h2 {
  font-size: 26px; color: var(--ink); letter-spacing: 2px; font-weight: 700;
  display: flex; align-items: center; gap: 12px;
}
.sec-head h2::before {
  content: ""; width: 5px; height: 24px; border-radius: 3px; flex: none;
  background: linear-gradient(180deg, #2f7be0, var(--brand));
}
.sec-head .more {
  font-size: 16px; color: var(--brand); font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--brand-light); border-radius: 999px; padding: 5px 16px;
  height: 34px; transition: all .2s;
}
.sec-head .more:hover { background: var(--brand); color: #fff; transform: translateX(3px); }

/* ============ 工作动态 / 通知公告 ============ */
.news-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3);
}
.news-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: var(--s3);
}
.headline {
  display: block; padding-bottom: var(--s2); margin-bottom: var(--s2);
  border-bottom: 1px dashed var(--brand-line); cursor: pointer;
}
.headline .tag {
  display: inline-block; vertical-align: 2px;
  background: linear-gradient(135deg, #ffd76e, #f6b93d); color: #6d4a00;
  font-size: 12px; line-height: 1; padding: 4px 9px; border-radius: 999px;
  font-weight: 600; margin-right: 9px; flex: none;
}
.headline-info h3 {
  font-size: 19px; color: var(--ink); font-weight: 600; line-height: 1.55;
  margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .2s;
}
.headline-info h3 .tag { vertical-align: 2px; }
.headline:hover h3 { color: var(--brand); }
.headline-info p {
  font-size: 15px; color: var(--ink-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-list { list-style: none; }
.news-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.news-list li + li { border-top: 1px solid #f0f4f9; }
.news-list .dot {
  width: 5px; height: 5px; border-radius: 50%; background: #b9c9dc; flex: none;
  transition: background .2s;
}
.news-list li a {
  flex: 1; color: var(--ink-2); font-size: 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s;
}
.news-list li:hover .dot { background: var(--brand); }
.news-list li:hover a { color: var(--brand); }
.news-list time { font-size: 14px; color: var(--ink-3); flex: none; font-variant-numeric: tabular-nums; }

/* 工作动态/通知公告：默认收起第 3 条及之后条目，悬停/聚焦时两栏同时展开 */
.news-list li {
  overflow: hidden; max-height: 60px;
  transition: max-height .35s ease, opacity .35s ease,
              padding-top .35s ease, padding-bottom .35s ease, border-color .35s ease;
}
.news-card.collapsed .news-list li:nth-child(n+4) {
  max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0;
  border-top-color: transparent; pointer-events: none; visibility: hidden;
  transition: max-height .35s ease, opacity .3s ease,
              padding-top .35s ease, padding-bottom .35s ease,
              border-color .35s ease, visibility 0s .35s;
}
@media (prefers-reduced-motion: reduce) {
  .news-list li, .news-card.collapsed .news-list li:nth-child(n+3) { transition: none; }
}

/* ============ 我要办理 ============ */
.handle-sec { padding-top: var(--s3); }
.handle-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s2); }
.handle-card {
  background: var(--card); border: 1px solid #e9f0f8; border-radius: var(--radius);
  padding: var(--s2) var(--s2) var(--s1); position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.handle-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.handle-card h3 {
  font-size: 17px; color: var(--ink); font-weight: 600; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.handle-card h3 .ico {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, color .25s;
}
.handle-card h3 .ico svg { width: 19px; height: 19px; }
.handle-card h3 .ico img { width: 22px; height: 22px; object-fit: contain; }
.handle-card:hover h3 .ico { background: var(--brand); color: #fff; }
.handle-card h3 .badge { margin-left: auto; flex: none; }
.handle-card ul { list-style: none; }
.handle-card li a {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15.5px; color: var(--ink-2); padding: 8px 2px; border-radius: 6px;
  transition: color .2s, padding-left .2s;
}
.handle-card li a::after { content: "›"; color: #c4d2e3; transition: all .2s; margin-left: 6px; }
.handle-card li a:hover { color: var(--brand); padding-left: 6px; }
.handle-card li a:hover::after { color: var(--brand); }
.badge {
  font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  margin-left: auto; flex: none;
}
.badge.hot { background: #fdecea; color: var(--alert); }
.badge.new { background: #e6f7ee; color: #15864d; }

/* ============ 商标数据 + 常见问题 ============ */
.faq-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3); align-items: stretch;
}
.faq-grid > div { display: flex; flex-direction: column; }
.faq-grid .sec-head { margin-bottom: 14px; }
.faq-grid .data-card, .faq-grid .faq-card { flex: 1; }
.faq-card { display: flex; flex-direction: column; justify-content: space-between; }

/* 商标数据卡片：与常见问题卡片同一视觉体系，列表复用 .news-list 的交互语言 */
.data-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: var(--s2) var(--s3);
}
.data-card .data-list li { padding: 13px 0; }
.data-card .data-list li a { font-size: 16.5px; }
.data-card .data-list li:first-child { padding-top: 4px; }
.data-card .data-list li:last-child { padding-bottom: 4px; }

/* 常见问题卡片 */
.faq-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: var(--s2) var(--s3);
}
/*
.faq-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 8px; margin: 0; background: transparent; flex-shrink: 0;
  text-decoration: none; transition: background .2s;
  border-radius: 8px;
}
.faq-item:hover { background: var(--brand-light); }
.faq-item + .faq-item { border-top: 1px solid #f0f4f9; }
.faq-item .q {
  flex: none; font-size: 13px; font-weight: 700; color: var(--brand);
  background: var(--brand-light); border-radius: 6px; padding: 2px 7px; margin-top: 2px;
}
.faq-item .faq-t {
  font-size: 16px; color: var(--ink); font-weight: 500; line-height: 1.55;
  transition: color .2s;
}
.faq-item:hover .faq-t { color: var(--brand); }
*/
.faq-item { border-bottom: 1px solid #f0f4f9; }
.faq-item:last-child { border-bottom: 0; }
.faq-item .faq-q {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 2px 3px; font-size: 16.5px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-q:hover { color: var(--brand); }
.faq-item .q {
  width: 24px; height: 24px; border-radius: 7px; flex: none;
  background: var(--brand-light); color: var(--brand);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.faq-item .answer { padding: 0 2px 8px 38px; line-height: 1.6; font-size: 16px; color: var(--ink-2); }

/* ============ 互动咨询 ============ */
.consult-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s2); }
.consult-card {
  background: var(--card); border: 1px solid #e9f0f8; border-radius: var(--radius);
  padding: 26px 16px 20px; text-align: center; display: block;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
  position: relative; color: inherit;
}
a > .consult-card:hover,
.consult-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg); text-decoration: none;
}
.icon-wrap {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 16px;
  background: linear-gradient(135deg, #2f7be0, var(--brand));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(30, 92, 179, .28);
  transition: transform .3s ease, border-radius .3s ease;
}
.icon-wrap svg { width: 34px; height: 34px; }
.consult-card:hover .icon-wrap { transform: rotate(6deg); border-radius: 50%; }
.card-title { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 4px; transition: color .2s; }
.consult-card:hover .card-title { color: var(--brand); }
.card-sub { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.arrow-hint {
  display: inline-block; margin-top: 12px; font-size: 13px; color: #b9c9dc;
  transition: color .2s, transform .2s;
}
.consult-card:hover .arrow-hint { color: var(--brand); transform: translateX(3px); }

/* ============ 友情链接 ============ */
.links-sec { padding-bottom: var(--s6); }
.links-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2);
}
.link-badge {
  display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid #e9f0f8; border-radius: var(--radius);
  padding: 12px 10px; height: 104px;
  transition: all .25s ease;
}
.link-badge:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.link-badge img { max-width: 94%; max-height: 84px; object-fit: contain; display: block; }

/* ============ 页脚（inc_footer.html 结构） ============ */
.footer { background: var(--brand-deep); color: #b8cbe6; }
.footer .container { max-width: 1200px; margin: 0 auto; padding: 40px 24px 28px; }
.footer p, .footer a { font-size: 15px; color: #b8cbe6; }
.footer-content {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.footer-imgs { display: flex; gap: 14px; }
.footer-img img { height: 48px; display: block; }
.footer-img:hover { opacity: .85; }
.footer-links { display: flex; gap: 28px; }
.footer-link-item, .footer-qr { text-align: center; }
.footer-qr img, .footer-link-item img { width: 84px; height: 84px; display: block; margin: 0 auto 8px; }
.footer-qr span, .footer-link-item span { font-size: 13.5px; line-height: 1.5; display: inline-block; }
.footer-copyright { text-align: right; }
.footer-copyright p { line-height: 2; }
.footer-copyright img { height: 16px; vertical-align: -2px; margin-right: 4px; }
.footer-hr { border-top: 1px solid rgba(255,255,255,.14); margin: 26px 0 18px; }
.footer-top { display: flex; justify-content: center; }
.footer-top-info { display: flex; gap: 40px; }
.footer .info-item {
  display: inline-flex; align-items: center; gap: 8px; color: #d5e2f3;
  transition: color .2s;
}
.footer .info-item:hover { color: #fff; }
.footer .info-item .icon { display: inline-flex; }
.footer-badges { margin-top: 10px; }

/* ============ 弹窗（home_popup 图块） ============ */
.popup-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(10, 25, 47, .55);
  display: flex; align-items: center; justify-content: center;
}
.popup-overlay a { display: block; max-width: 72vw; max-height: 76vh; }
.popup-overlay img { max-width: 100%; max-height: 76vh; display: block; border-radius: 10px; }
.popup-overlay .close-btn {
  position: absolute; top: 24px; right: 32px;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 26px; line-height: 1;
  box-shadow: var(--shadow-lg);
}
.popup-overlay .close-btn:hover { background: #fff; }

/* ============ 页脚 ============ */
.footer { background: linear-gradient(180deg, var(--brand-deep), #0d3161); color: #b8cbe6; }
.footer .wrap {
  display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: var(--s5);
  padding-top: var(--s5); padding-bottom: var(--s4);
}
.footer h4 { color: #fff; font-size: 17.5px; margin-bottom: var(--s2); letter-spacing: 1px; }
.footer p, .footer a { font-size: 15.5px; color: #b8cbe6; }
.footer a:hover { color: #fff; }
.footer .about p { margin-bottom: 6px; }
.qr-row { display: flex; gap: var(--s2); }
.qr-item { text-align: center; }
.qr-item .qr {
  width: 84px; height: 84px; border-radius: 10px; background: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.qr-item .qr svg { width: 58px; height: 58px; }
.qr-item .qr img { width: 84px; height: 84px; border-radius: 6px; }
.qr-item span { font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: var(--s2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; padding-bottom: 16px; font-size: 12.5px; color: #8fabd0;
}

/* ============ 移动端导航（汉堡 + 抽屉，仅 ≤1080px 由 JS 注入并显示） ============ */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px; flex: none;
  border: 0; background: transparent; cursor: pointer;
  border-radius: 10px; padding: 10px 9px;
}
.nav-toggle span {
  display: block; height: 2.5px; border-radius: 2px;
  background: var(--brand-deep); margin: 5px 0;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-mask {
  display: none;
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 25, 47, .45);
  opacity: 0; transition: opacity .25s ease;
}
.nav-mask.show { opacity: 1; }
.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95;
  width: min(78vw, 320px);
  background: #fff;
  box-shadow: -12px 0 32px rgba(4, 20, 45, .18);
  transform: translateX(105%);
  transition: transform .28s ease;
  padding: 14px 14px 24px;
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  display: block; padding: 13px 14px; margin: 2px 0;
  border-radius: 10px; font-size: 16px; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
}
.nav-drawer a.active { color: #fff; background: var(--brand); }
.nav-drawer-close {
  display: block; margin-left: auto;
  width: 40px; height: 40px; border: 0; background: transparent;
  font-size: 26px; line-height: 1; color: var(--ink-3); cursor: pointer;
}

/* ============ 响应式 ============ */
/* 网格子项允许收缩到 0，防止 nowrap 长标题撑破窄屏布局 */
.news-grid > *, .handle-grid > *, .consult-grid > *,
.faq-grid > *, .links-row > * { min-width: 0; }

/* 平板横屏 / 小屏笔记本 */
@media (max-width: 1080px) {
  #wyb { scroll-margin-top: 74px; }
  .header .wrap { height: 72px; }
  .logo img { height: 44px; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .nav-mask.show { display: block; }

  .hero .wrap { grid-template-columns: 1fr; gap: var(--s3); padding-top: 32px; padding-bottom: 36px; }
  .hero-panel { justify-content: flex-start; }
  .hero-copy h2 { font-size: 30px; }

  .handle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .consult-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .links-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 平板竖屏 / 大屏手机 */
@media (max-width: 820px) {
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .handle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consult-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .banner-carousel { width: 100%; }
  .sec-head h2 { font-size: 22px; }
  .sec-head h2::before { height: 20px; }
  .sec-head .more { height: 30px; padding: 4px 13px; font-size: 14.5px; }

  .footer .wrap { grid-template-columns: 1fr; gap: var(--s4); }
  .footer-bottom .wrap { flex-direction: column; gap: 6px; text-align: center; }
}

/* 手机 */
@media (max-width: 560px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  #wyb { scroll-margin-top: 68px; }

  .topbar .wrap { gap: 14px; padding-top: 6px; padding-bottom: 6px; }
  .topbar a { font-size: 12.5px; }
  .header .wrap { height: 60px; gap: 10px; }
  .logo { min-width: 0; flex: 1; }
  .logo img { height: auto; max-height: 36px; max-width: 100%; object-fit: contain; object-position: left center; }
  .nav-toggle { width: 40px; height: 40px; padding: 9px 8px; }
  .nav-toggle span { margin: 4px 0; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .hero .wrap { padding-top: 26px; padding-bottom: 30px; gap: var(--s2); }
  .hero-copy .kicker { font-size: 12px; letter-spacing: 2px; padding: 5px 12px; margin-bottom: 14px; }
  .hero-copy h2 { font-size: 24px; letter-spacing: 2px; }
  .search-box { padding: 5px 5px 5px 12px; border-radius: 12px; }
  .search-box input { padding: 11px 0 11px 4px; font-size: 16px; } /* ≥16px 避免 iOS 聚焦自动放大 */
  .search-box button { padding: 11px 18px; letter-spacing: 2px; font-size: 15px; }
  .hot-words { font-size: 13px; gap: 7px; }

  .hero-card { padding: 18px 16px; }
  .hero-card h3 { font-size: 18px; }
  .hero-links { gap: 8px; }
  .hero-links a { padding: 10px; font-size: 13px; gap: 7px; }
  .hero-links svg { width: 17px; height: 17px; }

  .sec { padding-top: var(--s2); }
  .sec-head { margin-bottom: 12px; }
  .sec-head h2 { font-size: 20px; }
  .news-card { padding: 16px; }
  .news-list li { padding: 9px 0; gap: 8px; }
  .news-list li a { font-size: 15px; }
  .news-list time { font-size: 12.5px; }

  .handle-grid { gap: 10px; }
  .handle-card { padding: 14px 12px 10px; }
  .handle-card h3 { font-size: 15px; white-space: normal; gap: 7px; margin-bottom: 8px; }
  .handle-card h3 .ico { width: 30px; height: 30px; border-radius: 8px; }
  .handle-card h3 .ico svg { width: 17px; height: 17px; }
  .handle-card li a { font-size: 14px; padding: 7px 2px; }

  .data-card, .faq-card { padding: 12px 16px; }
  .data-card .data-list li a, .faq-item .faq-q { font-size: 15px; }

  .consult-grid { gap: 10px; }
  .consult-card { padding: 18px 10px 14px; }
  .consult-card:last-child { grid-column: 1 / -1; } /* 第 5 张卡片独占一行 */
  .icon-wrap { width: 52px; height: 52px; border-radius: 13px; margin-bottom: 10px; }
  .icon-wrap svg { width: 28px; height: 28px; }
  .card-title { font-size: 15px; }
  .card-sub { font-size: 12.5px; }
  .arrow-hint { margin-top: 8px; font-size: 12px; }

  .links-row { gap: 10px; }
  .link-badge { height: 72px; padding: 10px 8px; }
  .link-badge img { max-height: 56px; }

  .footer .wrap { padding-top: var(--s4); }
  .footer h4 { font-size: 16px; }
  .footer .about p { font-size: 14px; }
  .footer p, .footer a { font-size: 14px; }
  .qr-row { flex-wrap: wrap; gap: 14px; }
  .qr-item .qr { width: 68px; height: 68px; }
  .qr-item .qr img { width: 68px; height: 68px; }
  .qr-item .qr svg { width: 46px; height: 46px; }

  .popup-overlay a { max-width: 88vw; max-height: 70vh; }
  .popup-overlay img { max-height: 70vh; }
  .popup-overlay .close-btn { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 22px; }
}

/* ============ 重要通知提醒（悬浮框，临时静态版，后续可改后台数据驱动） ============ */
.notice-float {
  position: fixed; left: 18px; top: 46%; transform: translateY(-50%);
  z-index: 80; /* 低于导航抽屉(95)与遮罩(90) */
  width: 172px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(10, 30, 60, .18), 0 2px 8px rgba(10, 30, 60, .08);
  padding: 40px 16px 16px;
  text-align: center;
  animation: noticeIn .45s ease both;
}
@keyframes noticeIn {
  from { opacity: 0; transform: translateY(calc(-50% + 14px)); }
  to   { opacity: 1; transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .notice-float { animation: none; }
}
.notice-float .notice-close {
  position: absolute; top: 8px; right: 10px;
  width: 24px; height: 24px; padding: 0;
  border: 0; background: transparent; cursor: pointer;
  color: #b6c2d4; font-size: 18px; line-height: 24px;
  transition: color .2s;
}
.notice-float .notice-close:hover { color: #7a8aa0; }
.notice-float .notice-bell {
  position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(145deg, #2f7be0, #1e5cb3);
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(30, 92, 179, .32);
  display: flex; align-items: center; justify-content: center;
}
.notice-float .notice-bell svg { width: 28px; height: 28px; }
.notice-float h4 { margin: 0 0 8px; font-size: 16px; color: #1a2533; letter-spacing: .5px; }
.notice-float p { margin: 0 0 12px; font-size: 13px; color: #7a8aa0; line-height: 1.65; }
.notice-float .notice-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 15px; font-weight: 600; color: #c23a2b;
  text-decoration: none; transition: opacity .2s;
}
.notice-float .notice-link:hover { opacity: .8; text-decoration: none; }
.notice-float .notice-arrow { font-size: 11px; transform: translateY(-1px); }

@media (max-width: 560px) {
  .notice-float { left: 12px; width: 150px; padding: 34px 12px 12px; }
  .notice-float .notice-bell { width: 48px; height: 48px; top: -24px; }
  .notice-float .notice-bell svg { width: 24px; height: 24px; }
  .notice-float h4 { font-size: 14.5px; }
  .notice-float p { font-size: 12px; }
  .notice-float .notice-link { font-size: 13.5px; }
}
