/* ===== 华舞九州查询系统 · 官方网站主题样式 ===== */
:root {
  --red-deep: #8E1425;      /* 主色：庄重红（深） */
  --red: #A6112B;           /* 主色：官方红 */
  --gold: #C9A24B;          /* 点缀：鎏金 */
  --gold-light: #F7F0E0;
  --ink: #2B2B33;
  --ink-soft: #6B6B76;
  --bg: #F5F3EF;
  --card: #FFFFFF;
  --line: #E4DFD6;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(60, 20, 25, 0.07);
  --serif: "Songti SC", "STSong", "SimSun", "STZhongsong", serif;
}

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

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ===== 顶部机构条 ===== */
.top-strip {
  background: var(--red-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}

.top-strip__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-strip__date { letter-spacing: 1px; }

/* ===== 站头（白底机构标识） ===== */
.masthead {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.masthead__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.masthead__logo {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
}

.masthead__logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.masthead__title h1 {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--red-deep);
  font-weight: 700;
}

.masthead__sub {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.masthead__org {
  text-align: right;
  font-size: 12px;
  color: var(--ink-soft);
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}

.masthead__org-name {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ===== 主导航（红色导航条，链接式） ===== */
.main-nav {
  background: var(--red);
  box-shadow: 0 2px 6px rgba(60, 20, 25, 0.18);
}

.main-nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
}

.main-nav .tab {
  display: block;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 14px 26px;
  position: relative;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.main-nav .tab:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.main-nav .tab:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }

.main-nav .tab.is-active { background: #7C1021; color: #fff; }

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

/* ===== 首图 Hero（16:9，桌面限制最大高度避免篇幅过大） ===== */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 360px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #6E0E20 0%, #8E1425 45%, #A6112B 100%);
  color: #fff;
  overflow: hidden;
}

/* 背景装饰层 */
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-deco svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  padding: 14px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(8px, 1.6vw, 16px);
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 0.7vw, 8px);
}

.hero-slogan {
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 34px);
  letter-spacing: 8px;
  color: #FFDFA0;
  font-weight: 700;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.3);
  position: relative;
  padding: 0 clamp(34px, 4.5vw, 52px);
  white-space: nowrap;
}

.hero-slogan2 {
  font-size: clamp(11px, 1.3vw, 14px);
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.85);
}

/* 标语两侧装饰线 */
.hero-slogan::before,
.hero-slogan::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #E8C77E);
}

.hero-slogan::before { left: 0; }
.hero-slogan::after { right: 0; transform: scaleX(-1); }

.hero-meta {
  display: flex;
  gap: clamp(6px, 1vw, 10px);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(232, 199, 126, 0.45);
  border-radius: 4px;
  padding: clamp(6px, 0.9vw, 9px) clamp(12px, 1.6vw, 18px);
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-chip-label {
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: 2px;
  color: #E8C77E;
  border-right: 1px solid rgba(232, 199, 126, 0.4);
  padding-right: 10px;
}

.hero-chip-value {
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 600;
  letter-spacing: 1px;
}

/* ===== 子页首图（查询页顶部横幅，比首页更紧凑） ===== */
.hero--sub {
  max-height: 200px;
  min-height: 130px;
}

.hero--sub .hero-inner { padding: 18px 24px; gap: 6px; }

.hero--sub .hero-slogan {
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: 6px;
  padding: 0 clamp(26px, 4vw, 44px);
}

.hero--sub .hero-slogan::before,
.hero--sub .hero-slogan::after { width: 20px; }

.hero--sub .hero-slogan2 {
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: 3px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb [aria-current="page"] { color: var(--red-deep); font-weight: 600; }

/* ===== 首页查询入口卡片 ===== */
.entry-heading {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--red-deep);
  letter-spacing: 3px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 18px;
  position: relative;
  padding: 0 60px;
}

.entry-heading::before,
.entry-heading::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 46px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.entry-heading::before { left: calc(50% - 180px); }
.entry-heading::after { right: calc(50% - 180px); transform: scaleX(-1); }

.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}

.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(60, 20, 25, 0.14);
  border-top-color: var(--gold);
}

.entry-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.entry-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 1px solid var(--gold);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.entry-card__icon svg { width: 28px; height: 28px; }

.entry-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--red-deep);
  letter-spacing: 1px;
}

.entry-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.7; flex: 1; }

.entry-card__go {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ===== 首页品牌区块 ===== */
.brand-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px 24px;
  margin-bottom: 22px;
}

.brand-block__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.brand-block__bar { border-left: 4px solid var(--red); padding-left: 14px; }

.brand-block__title {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--red-deep);
  letter-spacing: 2px;
  font-weight: 700;
  line-height: 1.3;
}

.brand-block__meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }

.brand-block__status {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2px;
  border-radius: 999px;
  padding: 5px 16px;
}

.brand-block__status--live {
  color: #fff;
  background: var(--red);
}

.brand-block__status--soon {
  color: #8A6B2E;
  background: var(--gold-light);
  border: 1px dashed var(--gold);
}

/* 敬请期待卡片（不可点击） */
.entry-card--soon {
  border-top-color: var(--gold);
  background: #FCFAF5;
  color: var(--ink-soft);
}

.entry-card--soon .entry-card__icon {
  background: #fff;
  color: var(--gold);
}

.entry-card--soon h3 { color: #8A6B2E; }
.entry-card--soon .entry-card__go { color: var(--gold); }

/* ===== 查询主区 ===== */
.query-section {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 20px 44px;
}

/* 公告栏 */
.notice-bar {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 12px 18px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.notice-bar__label {
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  padding: 1px 12px;
  letter-spacing: 3px;
  border-radius: 3px;
}

.notice-bar__text { font-size: 14px; color: var(--ink); }

/* 说明条（金色标签变体） */
.notice-bar--plain { border-left-color: var(--gold); }
.notice-bar__label--gold { background: var(--gold); }

/* 查询面板 */
.panel-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 32px 36px;
}

.panel-title {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--red-deep);
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 4px solid var(--red);
  line-height: 1.3;
}

.panel-hint { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }

.query-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.query-form input {
  flex: 1;
  min-width: 220px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  background: #FCFBF8;
  transition: border-color 0.2s;
}

.query-form input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(166, 17, 43, 0.12);
}

.btn-primary {
  padding: 11px 34px;
  border: none;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover { background: var(--red-deep); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 状态提示 */
.query-status { margin-top: 14px; font-size: 14px; min-height: 22px; }
.query-status.loading { color: var(--ink-soft); }
.query-status.error { color: var(--red); font-weight: 600; }

/* ===== 证书图片结果 ===== */
.result-area { margin-top: 16px; display: grid; gap: 24px; }

/* ===== 按活动分组容器 ===== */
.cert-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FBF9F4;
  padding: 0 0 6px;
  overflow: hidden;
}

.cert-group__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: linear-gradient(90deg, var(--red-deep), var(--red));
  color: #fff;
}

.cert-group__bar h3 {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 2px;
  position: relative;
  padding-left: 12px;
}

.cert-group__bar h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: var(--gold);
}

.cert-group__count {
  font-size: 12px;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(232, 199, 126, 0.55);
  border-radius: 999px;
  padding: 3px 12px;
  color: #F2D28C;
  white-space: nowrap;
}

.cert-group .cert-result { margin: 14px 16px 6px; }

.cert-result {
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.cert-result__bar {
  background: var(--red-deep);
  color: #fff;
  padding: 12px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cert-result__bar h3 {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 2px;
}

.verified-badge {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 3px 12px;
}

/* 成绩保留期倒计时提醒条（30 天到期自动删除） */
.score-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 22px;
  font-size: 13px;
  line-height: 1.6;
  color: #7A5A16;
  background: var(--gold-light, #F7F0E2);
  border-bottom: 1px dashed var(--gold);
}
.score-countdown__icon { font-size: 16px; }
.score-countdown__time {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--red);
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
/* 剩余不足 7 天：转紧急红色警示 */
.score-countdown.is-urgent {
  color: #fff;
  background: var(--red);
  border-bottom-color: var(--red-deep);
}
.score-countdown.is-urgent .score-countdown__time { color: #FFE9B8; }
.score-countdown.is-urgent .score-countdown__icon { animation: countdown-blink 1s steps(2, start) infinite; }
@keyframes countdown-blink {
  50% { opacity: 0.25; }
}

/* 证书 SVG 自适应 */
.cert-img-wrap { padding: 14px 14px 4px; background: #fff; }
.cert-img-wrap svg { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
/* 后台批量导入的证书原图 */
.cert-img-wrap img.cert-photo { width: 100%; height: auto; display: block; border: 1px solid var(--line); }

.cert-actions {
  padding: 14px 22px 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-outline {
  padding: 9px 22px;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  background: #fff;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover { background: var(--red); color: #fff; }
.btn-outline:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ===== 演示提示 ===== */
.demo-tip {
  margin-top: 20px;
  background: var(--gold-light);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 13px;
  color: #7A5B1E;
}

.demo-tip ul { margin: 8px 0 0 18px; display: grid; gap: 4px; }
.demo-tip code {
  background: #fff;
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12px;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #2A2226;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
  padding: 34px 0 26px;
}

.footer-col h4 {
  font-family: var(--serif);
  font-size: 15px;
  color: #E8C77E;
  letter-spacing: 3px;
  margin-bottom: 10px;
  font-weight: 700;
}

.footer-col p { line-height: 1.9; }

.site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 14px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== 无障碍辅助 ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 打印样式（只打印证书图片） ===== */
@media print {
  .top-strip, .masthead, .main-nav, .hero, .notice-bar, .demo-tip,
  .site-footer, .query-form, .query-status, .panel-title, .panel-hint,
  .breadcrumb, .cert-result__bar, .cert-actions, .cert-group__bar,
  .score-countdown { display: none !important; }
  .panel-wrap { box-shadow: none; border: none; padding: 0; }
  .result-area { margin: 0; }
  .cert-group { border: none; background: none; padding: 0; }
  .cert-group .cert-result { margin: 0; }
  .cert-result { border: none; page-break-inside: avoid; }
  .cert-img-wrap { padding: 0; }
  .cert-img-wrap svg { border: none; }
}

/* ===== 平板适配（720px ~ 1024px） ===== */
@media (max-width: 1024px) {
  .masthead__inner, .main-nav__inner, .query-section, .site-footer__inner, .top-strip__inner {
    max-width: 100%;
  }
  .entry-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
  .hero-inner { padding: 20px 24px; }
}

/* ===== 手机适配（≤720px） ===== */
@media (max-width: 720px) {
  /* 顶部机构条：单行居中，日期换行 */
  .top-strip__inner { justify-content: center; text-align: center; padding: 5px 12px; }
  .top-strip__date { width: 100%; letter-spacing: 0; }

  /* 站头 */
  .masthead__inner { padding: 14px; gap: 10px; }
  .masthead__logo { width: 46px; height: 46px; font-size: 22px; border-width: 2px; }
  .masthead__brand { gap: 12px; }
  .masthead__title h1 { font-size: 20px; letter-spacing: 1px; }
  .masthead__sub { font-size: 11px; letter-spacing: 2px; }
  .masthead__org { display: none; }

  /* 主导航：横向等分两行排布 */
  .main-nav__inner { padding: 0; }
  .main-nav .tab {
    flex: 1 0 50%;
    padding: 12px 6px;
    font-size: 14px;
    letter-spacing: 1px;
    text-align: center;
  }
  .main-nav .tab.is-active::after { display: none; }

  /* 首图：手机上进一步压低高度，避免占用过多篇幅 */
  .hero { aspect-ratio: auto; min-height: 180px; }
  .hero--sub { min-height: 120px; }
  .hero--sub .hero-inner { padding: 16px 14px; gap: 6px; }
  .hero--sub .hero-slogan { letter-spacing: 3px; font-size: 20px; padding: 0 20px; white-space: normal; line-height: 1.4; }
  .hero--sub .hero-slogan2 { letter-spacing: 1px; font-size: 11px; }
  .hero-inner { padding: 18px 14px; gap: 10px; }
  .hero-slogan {
    padding: 0 14px;
    letter-spacing: 3px;
    white-space: normal;
    line-height: 1.4;
  }
  .hero-slogan2 { letter-spacing: 2px; }
  .hero-meta { gap: 8px; width: 100%; }
  .hero-chip {
    flex: 1 1 100%;
    justify-content: space-between;
    padding: 8px 14px;
  }
  .hero-chip-label { letter-spacing: 2px; padding-right: 10px; }

  /* 面包屑与入口卡片 */
  .breadcrumb { margin-bottom: 12px; font-size: 12px; gap: 6px; flex-wrap: wrap; }
  .entry-heading { font-size: 19px; padding: 0 20px; }
  .entry-heading::before, .entry-heading::after { display: none; }
  .entry-grid { grid-template-columns: 1fr; gap: 12px; }
  .entry-card { padding: 18px 16px 16px; }
  .entry-card__icon { width: 44px; height: 44px; }
  .entry-card__icon svg { width: 24px; height: 24px; }
  .brand-block { padding: 16px 14px 18px; }
  .brand-block__title { font-size: 18px; }

  /* 查询面板：输入框 16px 防 iOS 聚焦自动缩放，按钮加大触控面积 */
  .query-section { padding: 18px 14px 36px; }
  .panel-wrap { padding: 20px 14px 24px; }
  .panel-title { font-size: 19px; }
  .query-form { gap: 10px; }
  .query-form input {
    min-width: 100%;
    font-size: 16px;           /* iOS 聚焦不缩放的关键字号 */
    padding: 12px 12px;
  }
  .query-form .btn-primary { width: 100%; padding: 13px 20px; min-height: 46px; }

  /* 证书图片：手机上允许横向滚动查看，保证文字可读 */
  .cert-img-wrap { padding: 10px 10px 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cert-img-wrap svg { min-width: 680px; }
  .cert-actions { padding: 12px 14px 18px; }
  .cert-actions .btn-primary,
  .cert-actions .btn-outline { flex: 1 1 100%; min-height: 44px; }

  /* 公告栏与提示 */
  .notice-bar { flex-direction: column; gap: 8px; align-items: flex-start; padding: 12px 14px; }
  .notice-bar__text { font-size: 13.5px; }
  .demo-tip { padding: 12px 14px; font-size: 12.5px; }
  .demo-tip code { font-size: 11.5px; word-break: break-all; }

  /* 页脚：两列，超窄屏单列 */
  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 18px; padding: 26px 0 20px; }
  .site-footer__bar { padding: 12px 10px; font-size: 11.5px; line-height: 1.8; }
}

/* ===== 超窄屏（≤400px） ===== */
@media (max-width: 400px) {
  .masthead__title h1 { font-size: 18px; }
  .hero-slogan { letter-spacing: 2px; font-size: 22px; }
  .site-footer__cols { grid-template-columns: 1fr; }
  .hero-chip { flex-direction: column; align-items: flex-start; gap: 2px; }
  .hero-chip-label { border-right: none; padding-right: 0; }
}

/* ===== 触屏设备优化 ===== */
@media (hover: none) and (pointer: coarse) {
  .entry-card:hover { transform: none; }   /* 触屏无悬停位移 */
  .btn-primary, .btn-outline, .main-nav .tab, .entry-card { min-height: 44px; }
  .entry-card { min-height: 44px; }
}
