:root {
  --bg: #eef2f4;
  --surface: #ffffff;
  --ink: #14212b;
  --muted: #5c6b76;
  --line: #d5dee4;
  --accent: #0f6a5c;
  --hero-from: #0c3d4a;
  --hero-to: #145c4f;
  --radius: 18px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; }

/* 正文色强制：避免占位红字残留 / 缓存旧样式 */
.plain-ink,
.contact-list strong,
.contact-list .ink,
.contact-list .edit-me,
.doc .ink,
.card .ink,
.card .plain-ink,
.edit-me {
  color: #14212b !important;
  font-weight: 650;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.wrap.narrow { width: min(760px, calc(100% - 40px)); }

.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand {
  font-weight: 750; font-size: 1.2rem; color: var(--ink);
  letter-spacing: 0.04em; text-decoration: none;
}
.brand span { color: var(--accent); font-weight: 600; margin-left: 8px; font-size: 0.85rem; }
.reg {
  font-size: 0.55em;
  font-weight: 700;
  vertical-align: super;
  line-height: 0;
  margin-left: 1px;
  letter-spacing: 0;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 0.92rem;
  position: relative;
  z-index: 30;
}
.nav > a,
.nav-drop > a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  display: inline-block;
}
.nav > a:hover,
.nav > a.active,
.nav-drop > a:hover,
.nav-drop > a.active,
.nav-drop.active-parent > a {
  color: var(--accent);
}
.nav-drop {
  position: relative;
  display: inline-block;
}
.nav-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(20, 33, 43, 0.12);
  z-index: 40;
}
.nav-panel a,
.nav-panel .nav-parent-link {
  display: block;
  padding: 9px 12px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-panel a:hover,
.nav-panel a.active {
  background: #eef7f4;
  color: var(--accent);
}
.nav-drop:hover > .nav-panel,
.nav-drop:focus-within > .nav-panel {
  display: block;
}
.nav-drop.nested {
  display: block;
  position: relative;
}
.nav-panel.side {
  top: 0;
  left: calc(100% + 4px);
  min-width: 170px;
}
.nav-drop.nested:hover > .nav-panel.side,
.nav-drop.nested:focus-within > .nav-panel.side {
  display: block;
}


.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cert-card a.cert-thumb {
  display: block;
  aspect-ratio: 3 / 4;
  background: #f3f6f8;
  overflow: hidden;
}
.cert-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cert-card .cert-title {
  margin: 0;
  padding: 10px 12px 12px;
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.4;
  min-height: 3.2em;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.pager button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
}
.pager button:disabled {
  opacity: 0.45;
  cursor: default;
}
.pager .pager-info { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 980px) {
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-panel.side { left: 0; top: 100%; }
}

.hero {
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(26,143,124,0.32), transparent 55%),
    linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #f4faf8;
  padding: 84px 0 72px;
}
.hero-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 28px 36px;
}
.hero-copy {
  flex: 1 1 0;
  min-width: 0;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: 0.04em;
}
.hero h1 .reg { font-size: 0.42em; opacity: 0.95; }
.hero .tagline { margin: 0 0 18px; font-size: 1.15rem; opacity: 0.92; max-width: 28em; }
.hero .lead { margin: 0 0 28px; max-width: 36em; opacity: 0.88; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual {
  flex: 0 0 38%;
  max-width: 420px;
  min-width: 220px;
}
.hero-img {
  display: block; width: 100%; height: auto; max-height: 320px;
  object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent;
}
.btn.primary { background: #fff; color: var(--hero-to); }
.btn.ghost { border-color: rgba(255,255,255,0.45); color: #fff; }
.btn.dark { background: var(--accent); color: #fff; }
.btn.line { border-color: var(--line); color: var(--ink); background: #fff; }

.section { padding: 64px 0; }
.section.tint { background: #e7eef1; }
.section h2 { margin: 0 0 12px; font-size: 1.7rem; }
.section-desc { margin: 0 0 28px; color: var(--muted); max-width: 48em; }

.cards { display: grid; gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 0.95rem; }
.card .more { font-weight: 600; font-size: 0.92rem; }

.feature-list { margin: 0 0 24px; padding-left: 1.2em; }
.feature-list li { margin-bottom: 10px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shot {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-align: center;
}
.shot p { margin: 0; padding: 10px 12px 14px; font-size: 0.88rem; color: var(--muted); }
.shot img { width: 100%; height: auto; display: block; background: #eef2f4; }
.shot-art { height: 150px; }
.shot-art.a1 {
  background: radial-gradient(circle at 50% 45%, rgba(15,106,92,0.35), transparent 42%),
    linear-gradient(160deg, #d9efe9, #b7d8d0);
}
.shot-art.a2 {
  background: linear-gradient(135deg, rgba(12,61,74,0.15), transparent),
    repeating-linear-gradient(90deg, #dfe8ec 0 12px, #edf3f5 12px 24px);
}
.shot-art.a3 { background: linear-gradient(120deg, #cfe8e1, #9fc9be 45%, #0f6a5c); }

.video-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin: 0 0 32px;
}
.video-shot {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.video-shot video {
  width: 100%; height: auto; display: block; background: #0c1a1f;
  aspect-ratio: 16 / 9; object-fit: contain;
}
.video-shot figcaption {
  margin: 0; padding: 10px 12px 14px; font-size: 0.88rem; color: var(--muted); text-align: center;
}

.page-banner {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #f4faf8; padding: 48px 0;
}
.page-banner h1 { margin: 0 0 8px; font-size: 2rem; }
.page-banner p { margin: 0; opacity: 0.88; }

.contact-list {
  list-style: none; margin: 0 0 16px; padding: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.contact-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list span { color: var(--muted); }
.note { color: var(--muted); font-size: 0.92rem; }
.placeholder-box {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 28px; background: #f7fafb; color: var(--muted);
}

.download-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  align-items: stretch;
}
.download-card {
  flex: 1 1 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.download-card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.download-desc { margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; }
.qr-slot {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 14px;
  border-radius: 12px;
  overflow: hidden;
  background: #f7fafb;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.qr-slot.is-hidden,
.qr-slot[hidden] { display: none !important; }
.qr-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.download-btn { width: 100%; max-width: 220px; margin-top: auto; }
.download-meta { margin: 12px 0 0; font-size: 0.78rem; color: var(--muted); word-break: break-all; }

.doc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
}
.doc h1 { margin: 0 0 8px; font-size: 1.8rem; }
.doc .meta { color: var(--muted); margin-bottom: 24px; font-size: 0.92rem; }
.doc h2 { margin: 28px 0 10px; font-size: 1.2rem; }
.doc h3 { margin: 20px 0 8px; font-size: 1.05rem; color: var(--ink); }

.share-box {
  max-width: 520px; margin: 48px auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
}
.share-box h1 { margin: 0 0 12px; }

.foot {
  background: #101820; color: #c5d0d8; padding: 36px 0 40px; font-size: 0.9rem;
}
.foot a { color: #9fd6c8; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; margin-bottom: 0;
}
.foot h4 { margin: 0 0 10px; color: #fff; font-size: 0.95rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 8px; }
.foot .brand-block p { margin: 0 0 6px; }
.foot .brand-block .beian { margin: 8px 0 0; }
.beian { margin: 0; }
.beian a { color: #8fa0ab; }
.muted { opacity: 0.7; font-size: 0.85rem; }

.page-subnav {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  margin: 0 0 28px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  font-size: 0.92rem;
}
.page-subnav a { color: var(--muted); text-decoration: none; }
.page-subnav a:hover, .page-subnav a.active { color: var(--accent); font-weight: 600; }

.news-list {
  list-style: none; margin: 0 0 28px; padding: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.news-list li {
  border-bottom: 1px solid var(--line);
}
.news-list li:last-child { border-bottom: 0; }
.news-list a {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 16px; padding: 16px 18px; color: var(--ink); text-decoration: none;
}
.news-list a:hover { background: #f3f8f6; text-decoration: none; }
.news-list .news-title { font-weight: 650; flex: 1 1 240px; }
.news-list .news-date { color: var(--muted); font-size: 0.88rem; flex: 0 0 auto; }
.news-list .news-sum {
  flex: 1 1 100%; margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55;
}

@media (max-width: 860px) {
  .cards.three, .cards.two, .gallery, .video-gallery, .foot-grid { grid-template-columns: 1fr; }
  .nav { justify-content: flex-end; }
  .contact-list li { flex-direction: column; }
}
/* 仅极窄屏才纵向堆叠；桌面/平板保持同排 */
@media (max-width: 520px) {
  .hero-grid { flex-wrap: wrap; }
  .hero-visual { flex: 1 1 100%; max-width: none; }
  .download-grid { flex-wrap: wrap; }
  .download-card { flex: 1 1 100%; }
}

/* hard no-red */
.edit-me, .plain-ink, .card strong, .card .ink {
  color: #14212b !important;
}
