:root,
[data-theme="teal"] {
  --brand: #318f7f;
  --brand-dark: #2e8b79;
  --brand-deep: #246f61;
  --ink: #24332f;
  --muted: #6d7c77;
  --line: #e3eeea;
  --bg: #f4faf8;
  --soft: #e7f6f2;
  --soft-line: #d5ebe5;
  --hover: #eef7f5;
  --foot-text: #e8f7f3;
  --foot-muted: #dff3ef;
  --card: #fff;
}
[data-theme="lake"] {
  --brand: #1a8a9d;
  --brand-dark: #14798a;
  --brand-deep: #0e6270;
  --ink: #1e3338;
  --muted: #5f757b;
  --line: #dcecee;
  --bg: #f3f9fb;
  --soft: #e5f4f7;
  --soft-line: #c9e4ea;
  --hover: #eaf6f8;
  --foot-text: #e6f5f8;
  --foot-muted: #d5eef2;
}
[data-theme="navy"] {
  --brand: #1f4e79;
  --brand-dark: #1a4268;
  --brand-deep: #143552;
  --ink: #1d2a38;
  --muted: #62707e;
  --line: #e1e8ef;
  --bg: #f5f8fb;
  --soft: #e7f0f7;
  --soft-line: #cfddec;
  --hover: #eef4f9;
  --foot-text: #e8f1f8;
  --foot-muted: #d7e5f1;
}
[data-theme="cinnabar"] {
  --brand: #a84540;
  --brand-dark: #8f3b37;
  --brand-deep: #73302d;
  --ink: #3a2826;
  --muted: #7c6864;
  --line: #f0e4e2;
  --bg: #fbf7f6;
  --soft: #f8eeec;
  --soft-line: #ead6d3;
  --hover: #faf3f2;
  --foot-text: #f8eeed;
  --foot-muted: #f0dfdd;
}
[data-theme="amber"] {
  --brand: #a67c2d;
  --brand-dark: #8d6824;
  --brand-deep: #70521b;
  --ink: #332b1e;
  --muted: #7a705f;
  --line: #eee6d8;
  --bg: #fbf8f3;
  --soft: #f7f1e4;
  --soft-line: #e6dcc6;
  --hover: #faf6ee;
  --foot-text: #f8f3e8;
  --foot-muted: #efe4d0;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-width: 320px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.top { background: var(--brand); color: #fff; }
.top-bar { display: flex; align-items: center; gap: 18px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; }
.brand strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: .5px; }
.brand small { display: block; margin-top: 2px; font-size: 10px; letter-spacing: .4px; opacity: .85; }
.brand-logo { display: block; height: 54px; width: auto; max-width: min(460px, 62vw); object-fit: contain; }
.nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.nav > a, .nav-item > a {
  color: #fff; padding: 8px 12px; border-radius: 4px; font-size: 15px; display: inline-block;
}
.nav > a.active, .nav-item > a.active, .nav a:hover { background: rgba(255,255,255,.16); }
.nav-item { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 160px;
  background: #fff; color: var(--ink); border-radius: 8px; box-shadow: 0 8px 24px rgba(20,60,50,.15);
  padding: 6px; z-index: 20;
}
.dropdown a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); }
.dropdown a:hover { background: var(--hover); color: var(--brand-deep); }
.nav-item:hover .dropdown { display: block; }
.search { display: flex; background: #fff; border-radius: 4px; overflow: hidden; }
.search input { border: 0; width: 140px; padding: 8px 10px; outline: none; }
.search button { border: 0; background: var(--brand-deep); color: #fff; padding: 0 12px; cursor: pointer; }
.nav-toggle { display: none; margin-left: auto; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; border-radius: 4px; padding: 6px 10px; }
.banner { text-align: center; padding: 34px 16px 42px; }
.banner h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: 1px; }
.banner p { margin: 12px 0 0; opacity: .92; }
.home { padding: 10px 0 40px; }
.block { margin-top: 28px; }
.block-head, .card h3 { display: flex; align-items: center; justify-content: space-between; }
.block-head h2, .page h1, .card h3 {
  margin: 0; color: var(--brand-deep); font-size: 22px; font-weight: 650;
  border-left: 4px solid var(--brand); padding-left: 10px;
}
.block-head a, .more, .corner { color: var(--brand); font-size: 14px; }
.intro, .card, .channel, .icon-card, .cert, .article, .form, .info-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
}
.intro { margin-top: 14px; padding: 26px 32px 22px; line-height: 2; color: #3a4a46; font-size: 15px; }
.intro p { margin: 0 0 10px; text-align: justify; }
.intro-more { display: inline-block; margin-top: 6px; color: var(--brand); font-size: 14px; }
.intro-more:hover { color: var(--brand-deep); }
.grid-3, .grid-2, .grid-4, .logo-wall { display: grid; gap: 16px; margin-top: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 16px 16px 12px; min-height: 180px; position: relative; }
.card h3 { font-size: 16px; margin-bottom: 8px; }
.line { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); color: #33423e; }
.line span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line em, .news-list em, .meta { color: var(--muted); font-style: normal; font-size: 13px; }
.tag { display: inline-block; background: var(--soft); color: var(--brand-deep); border-radius: 3px; padding: 0 6px; font-style: normal; font-size: 12px; }
.tag.warn { background: #fff1e6; color: #c56a1a; }
.corner { position: absolute; right: 16px; bottom: 12px; }
.icon-card, .cert, .channel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 140px; padding: 16px; text-align: center; gap: 8px;
}
.icon-card img, .cert img { width: 54px; height: 54px; object-fit: contain; }
.icon-card strong, .cert strong, .channel strong { color: var(--brand-deep); }
.icon-card em, .channel span { color: var(--muted); font-style: normal; font-size: 13px; }
.glyph { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--brand); font-size: 20px; }
.logo-wall { grid-template-columns: repeat(6, 1fr); }
.logo-wall a {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; min-height: 84px;
  display: grid; place-items: center; color: #8aa099; padding: 8px;
}
.logo-wall img { max-height: 48px; }
.not-found { text-align: center; padding: 56px 16px 72px; }
.not-found .code { margin: 0; font-size: 72px; line-height: 1; font-weight: 700; color: var(--brand); }
.not-found h1 { margin: 12px 0; font-size: 28px; }
.not-found .more { margin-top: 8px; }
.page { padding: 28px 0 48px; }
.page h1 { margin-bottom: 18px; }
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.crumb a:hover { color: var(--brand); }
.news-list a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; }
.news-list strong { display: block; margin-bottom: 4px; }
.news-list p { margin: 6px 0 0; color: var(--muted); }
.article { padding: 28px; }
.article h1 { border: 0; padding: 0; font-size: 28px; color: var(--ink); }
.article h1.article-title {
  margin: 6px 0 8px; text-align: center; white-space: pre-line;
  font-size: 26px; font-weight: 500; line-height: 1.6; color: #3e6f8c;
}
.article .meta { text-align: center; color: #8b98a0; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid #e6eef2; }
.article .lead { margin: 0 0 18px; color: var(--ink); font-size: 16px; line-height: 1.8; text-align: center; }
.rich { line-height: 1.9; font-size: 16px; }
.rich img, .rich video { max-width: 100%; height: auto; }
.cover { display: block; max-height: 360px; margin: 12px auto; }
.files a { display: inline-block; margin: 6px 12px 0 0; color: var(--brand-deep); }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.pager a, .form button, .more {
  background: var(--brand); color: #fff; border: 0; border-radius: 4px; padding: 8px 14px; display: inline-block;
}
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 3px solid var(--soft-line); }
.timeline li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin: 0 0 12px 12px; }
.timeline em { color: var(--brand); font-style: normal; }
.timeline strong {
  display: block; margin: 6px 0 8px; text-align: center; white-space: pre-line;
  font-size: 26px; font-weight: 500; line-height: 1.6; color: #3e6f8c;
}
.form { max-width: 640px; padding: 20px; display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; color: var(--muted); }
.form input, .form textarea { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font: inherit; }
.form textarea { min-height: 120px; }
.hp { position: absolute; left: -9999px; }
.info-card { padding: 16px 18px; margin-bottom: 16px; line-height: 1.8; }
.map { width: 100%; height: 320px; border: 0; border-radius: 8px; margin-top: 8px; }
.note { background: var(--soft); color: var(--brand-deep); padding: 10px 12px; border-radius: 6px; }
.note.warn, .empty { color: var(--muted); }
.foot { background: var(--brand-dark); color: var(--foot-text); margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; padding: 28px 0; }
.foot h3 { margin: 0 0 10px; font-size: 16px; }
.foot p { margin: 0 0 6px; line-height: 1.7; color: var(--foot-muted); }
.foot a:hover { text-decoration: underline; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); text-align: center; padding: 12px; font-size: 13px; }
.copyright a { margin-right: 8px; }
@media (max-width: 980px) {
  .grid-3, .grid-4, .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .brand { min-width: 0; }
}
@media (max-width: 800px) {
  .top-bar { flex-wrap: wrap; padding: 10px 0; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; background: var(--brand-deep); border-radius: 8px; padding: 8px; }
  .nav.open { display: flex; }
  .dropdown { position: static; display: block; box-shadow: none; background: transparent; }
  .dropdown a { color: #fff; }
  .search { width: 100%; }
  .search input { flex: 1; }
  .grid-2, .grid-3, .grid-4, .logo-wall { grid-template-columns: 1fr; }
  .banner h1 { font-size: 24px; }
}
