/* ============================================================
   TECHLY® — Public Service Portal Template (moban18)
   政务公开风：深蓝 + 正红、公告栏、服务窗口卡、公开表格
   ============================================================ */

:root {
  --bg: #F2F5F9;
  --paper: #FFFFFF;
  --navy: #16324F;
  --navy-deep: #0E2236;
  --red: #C62828;
  --red-deep: #A01B1B;
  --gold: #D9A441;
  --ink: #22303E;
  --muted: #5C6B7A;
  --line: #DCE3EA;
  --shadow: 0 4px 18px rgba(22, 50, 79, 0.08);
  --radius: 8px;
  --font: "PingFang SC", "Microsoft YaHei", "SimSun", "Hiragino Sans GB", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--red);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea {
  font-family: inherit;
}

::selection {
  background: rgba(198, 40, 40, 0.2);
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ============================================================
   政务顶部标识条
   ============================================================ */

.gov-top {
  background: var(--navy-deep);
  color: #C7D3E0;
  font-size: 12.5px;
  padding: 7px 0;
}

.gov-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gov-top .date {
  letter-spacing: 0.04em;
}

.gov-top .links {
  display: flex;
  gap: 18px;
}

.gov-top .links a {
  color: #C7D3E0;
}

.gov-top .links a:hover {
  color: var(--gold);
}

/* ============================================================
   头部（政务徽标式）
   ============================================================ */

.site-header {
  background: var(--navy);
  color: #fff;
}

.header-main {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
}

.gov-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gov-logo img {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.gov-title h1,
.gov-title .site-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1.3;
}

.gov-title small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #A9BCD0;
  letter-spacing: 0.12em;
  margin-top: 3px;
}

.header-aside {
  margin-left: auto;
  text-align: right;
}

.header-aside .hotline {
  font-size: 13px;
  color: #A9BCD0;
}

.header-aside .hotline strong {
  display: block;
  font-size: 19px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* 导航栏（红色强调条） */
.nav-bar {
  background: var(--red);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-inner a {
  position: relative;
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  padding: 13px 22px;
  transition: background 0.2s ease;
}

.nav-inner a:hover {
  background: var(--red-deep);
}

.nav-inner a.active {
  background: var(--red-deep);
}

.nav-inner a.active::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 3px;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  color: #fff;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
}

/* ============================================================
   Hero（政务蓝）
   ============================================================ */

.hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F5F9 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  padding: 52px 0 56px;
}

.hero h1 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.32;
  color: var(--navy-deep);
}

.hero h1 .hl {
  color: var(--red);
  position: relative;
}

.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 12px;
  background: rgba(217, 164, 65, 0.35);
  z-index: -1;
}

.hero p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 16px;
  max-width: 560px;
}

.hero p strong {
  color: var(--ink);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--red {
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: 0 6px 16px rgba(198, 40, 40, 0.3);
}

.btn--navy {
  background: var(--navy);
  color: #fff;
}

.btn--ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.hero-fig {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-fig img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-fig .cap {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--muted);
  background: #FBFCFE;
  border-top: 1px solid var(--line);
}

/* ============================================================
   公告栏
   ============================================================ */

.notice {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.notice .label {
  flex-shrink: 0;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 3px;
  letter-spacing: 0.12em;
}

.notice ul {
  flex: 1;
}

.notice li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  padding: 3px 0;
}

.notice li .d {
  color: var(--muted);
  flex-shrink: 0;
}

.notice a {
  color: var(--ink);
}

.notice a:hover {
  color: var(--red);
}

/* ============================================================
   Section
   ============================================================ */

.section {
  padding: 62px 0;
}

.section--paper {
  background: var(--paper);
}

.section--redband {
  background: var(--navy-deep);
  color: #fff;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--red);
}

.section-head h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  color: var(--navy-deep);
}

.section-head .eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}

.section-head .more {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.section-head .more:hover {
  color: var(--red);
}

/* ============================================================
   服务窗口卡
   ============================================================ */

.win-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.win-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.win-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.win-card .num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 34px;
  font-weight: 800;
  color: rgba(22, 50, 79, 0.08);
  font-variant-numeric: tabular-nums;
}

.win-card .tag {
  display: inline-block;
  background: rgba(198, 40, 40, 0.1);
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.win-card .tag.gold {
  background: rgba(217, 164, 65, 0.16);
  color: #A87B22;
}

.win-card .tag.navy {
  background: rgba(22, 50, 79, 0.1);
  color: var(--navy);
}

.win-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.win-card p {
  font-size: 13.5px;
  color: var(--muted);
}

.win-card .link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--red);
}

/* ============================================================
   数据公开表
   ============================================================ */

.pub-table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.pub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 760px;
}

.pub-table th,
.pub-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.pub-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 13.5px;
}

.pub-table tbody tr:hover {
  background: #F7FAFD;
}

.pub-table .st {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 3px;
}

.st--ok {
  background: rgba(34, 139, 34, 0.12);
  color: #1E7B1E;
}

.st--warn {
  background: rgba(198, 40, 40, 0.1);
  color: var(--red);
}

.st--info {
  background: rgba(22, 50, 79, 0.1);
  color: var(--navy);
}

/* ============================================================
   双栏
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split .frame {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.split .frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-deep);
  margin: 12px 0;
  line-height: 1.4;
}

.split p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 10px;
}

.split p strong {
  color: var(--ink);
}

/* 文件清单 */
.file-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.file-list li::before {
  content: "📄";
}

.file-list .meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 12.5px;
  flex-shrink: 0;
}

.file-list a {
  color: var(--ink);
  font-weight: 600;
}

.file-list a:hover {
  color: var(--red);
}

/* ============================================================
   领导/团队卡片
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.team-card .body {
  padding: 16px;
}

.team-card .name {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-deep);
}

.team-card .role {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* ============================================================
   数字概览
   ============================================================ */

.num-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.num-card {
  text-align: center;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.05);
  padding: 24px 14px;
  border-radius: 8px;
}

.num-card .n {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.num-card .n small {
  font-size: 16px;
  color: var(--gold);
  font-weight: 700;
}

.num-card p {
  color: #A9BCD0;
  font-size: 13.5px;
  margin-top: 8px;
}

/* ============================================================
   资讯列表（政务风格）
   ============================================================ */

.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.news-item {
  display: flex;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.news-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.news-item img {
  width: 150px;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.news-item .d {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.news-item h3 {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--navy-deep);
  margin: 6px 0;
  line-height: 1.5;
}

.news-item h3:hover {
  color: var(--red);
}

.news-item p {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   FAQ（政务问答）
   ============================================================ */

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.faq-item.open {
  border-color: var(--red);
}

.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-deep);
}

.faq-item button .ic {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-item.open button .ic {
  transform: rotate(45deg);
  background: var(--red);
  color: #fff;
}

.faq-answer {
  display: none;
  padding: 0 20px 16px;
  color: var(--muted);
  font-size: 14px;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer p {
  margin-bottom: 8px;
}

/* ============================================================
   表单（办事表单）
   ============================================================ */

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy-deep);
}

.field label .req {
  color: var(--red);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 13px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
  background: #FBFCFE;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--red);
  background: #fff;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.status-text {
  font-size: 13.5px;
  color: #1E7B1E;
  min-height: 20px;
}

/* ============================================================
   页脚
   ============================================================ */

.site-footer {
  background: var(--navy-deep);
  color: #A9BCD0;
  padding: 46px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}

.site-footer h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 13px;
}

.site-footer li {
  margin-bottom: 8px;
  font-size: 13.5px;
}

.site-footer a {
  color: #A9BCD0;
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer p {
  font-size: 13px;
  color: #8FA5BC;
  max-width: 340px;
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 12.5px;
  color: #8FA5BC;
}

.footer-bottom .beian {
  margin-top: 6px;
  font-size: 12px;
}

/* ============================================================
   页头（内页）
   ============================================================ */

.page-head {
  background: var(--navy);
  color: #fff;
  padding: 44px 0;
}

.page-head .crumbs {
  font-size: 12.5px;
  color: #A9BCD0;
  margin-bottom: 12px;
}

.page-head .crumbs a {
  color: var(--gold);
}

.page-head h1 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.page-head p {
  color: #C7D3E0;
  font-size: 14.5px;
  margin-top: 10px;
  max-width: 680px;
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 980px) {
  .hero-inner,
  .split {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .win-grid,
  .num-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

  .nav-inner.open {
    display: flex;
  }

  .nav-inner a {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .nav-inner a.active::after {
    display: none;
  }

  .header-aside {
    display: none;
  }

  .win-grid,
  .num-grid,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    flex-direction: column;
  }

  .news-item img {
    width: 100%;
  }

  .section {
    padding: 44px 0;
  }
}
