/* ============================================================
   页面复刻 · 基础样式
   ============================================================ */
:root {
  --blue: #0d5fa6;
  --blue-deep: #0a4f8b;
  --blue-dark: #083f70;
  --blue-light: #1476c6;
  --red: #b5241f;
  --gold: #e8b04b;
  --text: #24384c;
  --muted: #647788;
  --line: #e3ebf3;
  --bg-soft: #f4f7fb;
  --wrap: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; }

.wrap {
  width: var(--wrap);
  max-width: calc(100% - 40px);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 演示角标 */
.demo-ribbon {
  position: fixed;
  top: 0; left: 0;
  z-index: 5000;
  padding: 3px 12px;
  font-size: 11px;
  letter-spacing: .5px;
  color: #7a5200;
  background: #ffe9ae;
  border-radius: 0 0 6px 0;
  pointer-events: none;
}

/* ============================================================
   顶部工具条
   ============================================================ */
.topbar {
  height: 52px;
  padding-top: 18px; /* 给演示角标留白 */
  background: #f2f5f8;
  border-bottom: 1px solid #e6ecf2;
  font-size: 12px;
  color: #5b6b7b;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
}

.today { letter-spacing: .3px; }

.toplinks { display: flex; align-items: center; gap: 8px; }
.toplinks a:hover { color: var(--blue); }
.toplinks i { color: #c7d3de; font-style: normal; }
.toplinks .login {
  margin-left: 8px;
  padding: 2px 12px;
  border: 1px solid #c9d8e6;
  border-radius: 12px;
  color: var(--blue);
  background: #fff;
}
.toplinks .login:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ============================================================
   站点头部
   ============================================================ */
.site-header {
  background: url("header-bg.jpg") center center / cover no-repeat;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 18px 0;
}

.brand { display: block; flex: none; }
.brand-logo { display: block; height: 64px; width: auto; }

.search-block { width: 430px; max-width: 100%; }
.search-box {
  display: flex;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(4, 40, 72, .14);
}
.search-box input {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  outline: none;
  font-size: 13px;
  color: var(--text);
  background: transparent;
}
.search-box input::placeholder { color: #9fadb9; }
.search-box button {
  width: 58px;
  border: 0;
  background: var(--blue-deep);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.search-box button:hover { background: var(--blue); }

.hotwords {
  margin-top: 7px;
  font-size: 12px;
  color: rgba(255, 255, 255, .62);
}
.hotwords a { margin-left: 8px; color: rgba(255, 255, 255, .88); }
.hotwords a:hover { color: #ffe6ad; }

/* ============================================================
   主导航
   ============================================================ */
.main-nav {
  background: linear-gradient(90deg, #0a4f8b 0%, #0e63ad 55%, #0f6db8 100%);
  box-shadow: 0 2px 8px rgba(10, 79, 139, .18);
}
.nav-list { display: flex; align-items: stretch; }
.nav-item { position: relative; }

.nav-item > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 48px;
  padding: 0 26px;
  color: #fff;
  font-size: 15px;
  letter-spacing: .5px;
  transition: background .2s;
  position: relative;
}
.nav-item > a:hover,
.nav-item > a:focus-visible { background: rgba(255, 255, 255, .12); outline: none; }

.nav-item.is-active > a { background: var(--blue-dark); }
.nav-item.is-active > a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 26px; height: 3px;
  transform: translateX(-50%);
  background: var(--gold);
  border-radius: 2px 2px 0 0;
}

.nav-online { cursor: pointer; }
.nav-online .caret { opacity: .8; transition: transform .2s; }
.nav-item.has-panel:hover .nav-online .caret { transform: rotate(180deg); }

/* 在线服务下拉面板 */
.nav-panel {
  position: absolute;
  top: 48px;
  left: 50%;
  z-index: 60;
  width: 940px;
  transform: translate(-50%, 8px);
  display: grid;
  grid-template-columns: repeat(3, 1fr) 250px;
  gap: 26px;
  padding: 26px 28px;
  background: #fff;
  border-top: 3px solid var(--gold);
  box-shadow: 0 14px 32px rgba(12, 52, 90, .22);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-item.has-panel:hover .nav-panel,
.nav-item.has-panel:focus-within .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.panel-col h4 {
  padding-bottom: 9px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--blue);
  border-bottom: 1px solid var(--line);
}
.panel-col li { padding: 5px 0; }
.panel-col a {
  font-size: 13px;
  color: #4a5c6d;
  transition: color .15s, padding-left .15s;
}
.panel-col a:hover { color: var(--blue); padding-left: 3px; }

.panel-cta {
  padding: 16px 18px;
  background: linear-gradient(160deg, #f2f8fe, #e8f2fb);
  border: 1px solid #dbe9f6;
  border-radius: 4px;
}
.cta-title { font-size: 16px; font-weight: 700; color: var(--blue-dark); }
.cta-desc { margin-top: 6px; font-size: 12px; line-height: 1.7; color: #62758a; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 18px;
  border: 0;
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
}
.cta-btn:hover { background: var(--blue-light); }
.cta-hotline { margin-top: 12px; font-size: 12px; color: #7b8c9c; }
.cta-hotline b { font-size: 18px; color: #c22f27; letter-spacing: .5px; }

/* ============================================================
   要闻区
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: 20px;
  margin-top: 24px;
}

.hero-banner {
  position: relative;
  min-height: 356px;
  padding: 38px 42px;
  overflow: hidden;
  border-radius: 4px;
  color: #fff;
  background:
    radial-gradient(900px 340px at 88% -10%, rgba(74, 165, 235, .55), transparent 60%),
    radial-gradient(500px 260px at 0% 120%, rgba(26, 104, 170, .85), transparent 70%),
    linear-gradient(128deg, #083d6b 0%, #0a5590 46%, #0f6fb8 100%);
}
.hero-deco {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  pointer-events: none;
}
.hero-deco-a { width: 420px; height: 420px; right: -120px; top: -160px; }
.hero-deco-b {
  width: 260px; height: 260px; right: 90px; bottom: -160px;
  background: radial-gradient(circle, rgba(255, 255, 255, .08), transparent 65%);
}

.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero-tag {
  display: inline-block;
  padding: 3px 12px;
  font-size: 12px;
  letter-spacing: 1px;
  background: rgba(232, 176, 75, .18);
  border: 1px solid rgba(232, 176, 75, .55);
  color: #f4d495;
  border-radius: 2px;
}
.hero-content h1 {
  margin: 16px 0 12px;
  font-size: 30px;
  line-height: 1.45;
  letter-spacing: 1px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 22, 44, .25);
}
.hero-content p {
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .78);
  max-width: 580px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
  font-size: 12px;
  color: rgba(255, 255, 255, .65);
}
.hero-more { color: #fff; }
.hero-more i { font-style: normal; color: var(--gold); }
.hero-more:hover { color: #f4d495; }

.hero-thumbs {
  position: absolute;
  right: 34px;
  bottom: 30px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.thumb {
  width: 74px; height: 50px;
  display: flex;
  align-items: flex-end;
  padding: 6px 7px;
  font-size: 11px;
  color: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 2px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.thumb:hover { background: rgba(255, 255, 255, .18); border-color: rgba(232, 176, 75, .8); }
.thumb-1 { background: rgba(30, 120, 190, .55); }
.thumb-2 { background: rgba(19, 93, 152, .55); }
.thumb-3 { background: rgba(12, 70, 118, .55); }

/* 通知公告 */
.notice, .policy {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  position: relative;
  padding-left: 12px;
  font-size: 18px;
  color: #17334d;
  letter-spacing: .5px;
}
.panel-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 4px; height: 17px;
  transform: translateY(-50%);
  background: var(--blue);
  border-radius: 2px;
}
.panel-head > a { font-size: 12px; color: #8b9aa8; }
.panel-head > a:hover { color: var(--blue); }

.notice-list { padding: 4px 18px 10px; }
.notice-list li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px dashed #edf2f7;
  font-size: 13px;
  line-height: 1.6;
}
.notice-list li:last-child { border-bottom: 0; }
.notice-list a {
  flex: 1;
  color: #3d5164;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notice-list a:hover { color: var(--blue); }
.notice-list span { flex: none; color: #9aa9b7; font-size: 12px; padding-top: 1px; }

/* ============================================================
   快捷入口
   ============================================================ */
.quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.quick-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.quick-card:hover {
  transform: translateY(-2px);
  border-color: #cfe0f0;
  box-shadow: 0 8px 20px rgba(18, 72, 120, .1);
}
.quick-icon {
  flex: none;
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.icon-blue { color: #1668b3; background: #e8f2fc; }
.icon-cyan { color: #0f7f92; background: #e4f6f9; }
.icon-gold { color: #a97412; background: #fdf3df; }
.icon-red { color: #b22d25; background: #fcebea; }
.quick-card b { display: block; font-size: 15px; color: #213b52; }
.quick-card em { font-style: normal; font-size: 12px; color: #8b9aa8; }
.quick-card.is-chat { border-color: #f0d7d4; background: linear-gradient(180deg, #fff, #fff8f7); }

/* ============================================================
   新闻 + 政策
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: 20px;
  margin-top: 26px;
}
.news-main { border: 1px solid var(--line); border-radius: 4px; }

.panel-head.with-tabs { padding-bottom: 0; border-bottom: 1px solid var(--line); }
.panel-head.with-tabs h2 { margin-bottom: 10px; }
.tabs { display: flex; gap: 4px; }
.tab {
  position: relative;
  padding: 8px 16px 11px;
  border: 0;
  background: transparent;
  color: #647788;
  font-size: 14px;
  cursor: pointer;
}
.tab:hover { color: var(--blue); }
.tab.is-active { color: var(--blue); font-weight: 700; }
.tab.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 2px;
  background: var(--blue);
}

.news-list { padding: 8px 18px 12px; }
.news-list li {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 11px 0;
  border-bottom: 1px dashed #edf2f7;
}
.news-list li:last-child { border-bottom: 0; }
.news-list a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  color: #33485c;
}
.news-list a:hover { color: var(--blue); }
.news-list span { flex: none; font-size: 12px; color: #9aa9b7; }
.news-list .is-top a { font-weight: 700; color: #1c3a55; }
.news-list .is-top a::before {
  content: "置顶";
  display: inline-block;
  margin-right: 8px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 400;
  line-height: 16px;
  color: #fff;
  background: #c22f27;
  border-radius: 2px;
  vertical-align: 1px;
}

.policy-list { padding: 8px 18px 12px; }
.policy-list li {
  position: relative;
  padding: 10px 0 10px 16px;
  border-bottom: 1px dashed #edf2f7;
  font-size: 13.5px;
}
.policy-list li:last-child { border-bottom: 0; }
.policy-list li::before {
  content: "";
  position: absolute;
  left: 3px; top: 18px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #b9cbdc;
}
.policy-list a { color: #3d5164; }
.policy-list a:hover { color: var(--blue); }

/* ============================================================
   专题
   ============================================================ */
.topics { margin-top: 26px; }
.topics .panel-head { padding-left: 0; padding-right: 0; }
.topics .panel-head h2::before { left: 0; }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.topic {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 118px;
  padding: 18px;
  overflow: hidden;
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(135deg, #135c97, #0b3f6b);
  transition: transform .2s, box-shadow .2s;
}
.topic::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 22px solid rgba(255, 255, 255, .07);
}
.topic:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(13, 63, 107, .22); }
.topic b { position: relative; z-index: 1; font-size: 15px; line-height: 1.5; }
.topic span { position: relative; z-index: 1; margin-top: 6px; font-size: 11px; letter-spacing: 2px; opacity: .68; }
.topic-1 { background: linear-gradient(135deg, #12588f, #0a3c67); }
.topic-2 { background: linear-gradient(135deg, #a4372c, #7e241c); }
.topic-3 { background: linear-gradient(135deg, #1d6a6f, #124b50); }
.topic-4 { background: linear-gradient(135deg, #2e5a94, #1b3a63); }

/* ============================================================
   页脚
   ============================================================ */
.site-footer { margin-top: 36px; background: #0a3c67; color: rgba(255, 255, 255, .72); }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding: 34px 0 30px;
}
.footer-brand b { display: block; margin-bottom: 12px; font-size: 18px; color: #fff; letter-spacing: 1px; }
.footer-brand p { font-size: 12px; line-height: 2; color: rgba(255, 255, 255, .55); }
.footer-col h4 { margin-bottom: 10px; font-size: 13px; color: #fff; }
.footer-col a { display: block; padding: 3px 0; font-size: 12px; color: rgba(255, 255, 255, .62); }
.footer-col a:hover { color: #f4d495; }
.hotline { font-size: 26px; font-weight: 700; color: #f4d495; line-height: 1.2; }
.hotline span { display: block; margin-top: 6px; font-size: 11px; font-weight: 400; letter-spacing: .5px; color: rgba(255, 255, 255, .55); }
.footer-bottom {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12px;
  text-align: center;
  color: rgba(255, 255, 255, .45);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero-thumbs { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .nav-panel { width: 720px; grid-template-columns: repeat(3, 1fr); }
  .panel-cta { display: none; }
  .nav-item > a { padding: 0 16px; }
}

@media (max-width: 860px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .search-block { width: 100%; }
  .nav-list { overflow-x: auto; }
  .nav-item > a { white-space: nowrap; padding: 0 14px; }
  .nav-panel { display: none !important; }
  .quick-row { grid-template-columns: repeat(2, 1fr); }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .toplinks a:nth-of-type(n+4) { display: none; }
}

@media (max-width: 560px) {
  .brand-logo { height: 44px; }
  .hero-content { padding: 0; }
  .hero-banner { padding: 26px 22px; min-height: 300px; }
  .hero-content h1 { font-size: 22px; }
  .quick-row, .topic-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 20px; }
  .news-list a { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .news-list li { align-items: flex-start; }
  .topbar { padding-top: 22px; height: 56px; }
  .today { display: none; }
  .topbar-inner { justify-content: flex-end; }
}
