/* ============================================
   巴消消防 · 页面级组件（Page Components）
   ------------------------------------------------------------
   2026-10-18 新建：把原先散落在 10 个页面 <style> 里的
   页面专属样式收敛到本文件，统一取用 style.css 令牌，
   按苹果设计语言重写（18px 卡片 / 24px 大面板 / 发丝线 /
   600 字重标题 / 44px 触控目标）。
   目录：
     A 消防技术服务 services
     B 消防培训 training
     C 商城通用（fire / iot / oa 补充）
     D 购物车 cart
     E 联系我们 contact
     F 新闻资讯 news
     G 规范文库 norms
     H 收银台 pay
     I 扫码报修 repair
     J 法务长文 legal / privacy
   ============================================ */

/* ============================================
   A · 消防技术服务 services.html
   ============================================ */
.svc-block {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding: 48px;
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-lg);
  transition: border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}

.svc-block:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.svc-block.rev { flex-direction: row-reverse; }

.svc-num {
  flex-shrink: 0;
  min-width: 76px;
  font-size: 72px;
  line-height: .9;
  font-weight: 600;
  letter-spacing: -.04em;
  color: var(--accent);
  opacity: .18;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.svc-main { flex: 1; min-width: 0; }

.svc-main h3 {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 8px;
}

.svc-tagline {
  color: var(--accent-text);
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 28px;
}

.svc-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.svc-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .08em;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-base);
}

.svc-col li {
  position: relative;
  padding-left: 15px;
  color: var(--text-tertiary);
  font-size: 13.5px;
  line-height: 1.95;
}

.svc-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .7;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.scene {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-md);
  transition: border-color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}

.scene:hover { border-color: var(--border-light); transform: translateY(-2px); }

.scene h4 { font-size: 17px; line-height: 1.45; margin-bottom: 8px; }
.scene .need { color: var(--text-tertiary); font-size: 13.5px; line-height: 1.75; }
.scene .rec { color: var(--accent-text); font-size: 13px; font-weight: 600; margin-top: 14px; }

.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
}

.flow-step {
  padding: 28px 22px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-md);
}

.flow-step .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.flow-step h4 { font-size: 15.5px; margin: 14px 0 8px; }
.flow-step p { color: var(--text-tertiary); font-size: 12.5px; line-height: 1.65; }

@media (max-width: 900px) {
  .svc-block,
  .svc-block.rev { flex-direction: column; gap: 20px; padding: 28px; }
  .svc-num { font-size: 52px; min-width: 0; }
  .svc-cols,
  .scene-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .svc-main h3 { font-size: 21px; }
}

@media (max-width: 480px) {
  .svc-block { padding: 22px; border-radius: var(--r-md); }
  .flow { grid-template-columns: 1fr; }
}

/* ============================================
   B · 消防培训 training.html
   ============================================ */
.train-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

.spec-list {
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-md);
  overflow: hidden;
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-base);
  transition: background-color var(--dur-fast) var(--ease);
}

.spec-row:last-child { border-bottom: none; }
.spec-row:hover { background: var(--bg-hover); }

.spec-row .name { font-size: 14.5px; font-weight: 500; }
.spec-row .no { color: var(--text-muted); font-size: 12.5px; margin-left: 16px; font-variant-numeric: tabular-nums; }
.spec-row .src { color: var(--accent-text); font-size: 12.5px; font-weight: 500; flex-shrink: 0; margin-left: 24px; }

.quiz {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-lg);
}

.quiz-q {
  font-size: 19px;
  line-height: 1.7;
  font-weight: 600;
  margin-bottom: 22px;
}

.quiz-opt {
  display: block;
  padding: 15px 18px;
  margin-bottom: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border-base);
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.quiz-opt:hover { border-color: var(--accent-border); background: var(--bg-card); color: var(--text-primary); }

.quiz-opt.right {
  border-color: var(--success);
  background: color-mix(in srgb, var(--success) 10%, transparent);
  color: var(--text-primary);
}

.quiz-opt.wrong {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: var(--text-primary);
}

.quiz-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.quiz-progress { color: var(--text-muted); font-size: 12.5px; }

.quiz-result { display: none; padding: 40px 0; text-align: center; }
.quiz-result .score {
  color: var(--accent-text);
  font-size: 56px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.02em;
}

@media (max-width: 900px) {
  .train-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .quiz { padding: 24px; border-radius: var(--r-md); }
  .quiz-q { font-size: 16px; }
  .quiz-opt { padding: 13px 15px; font-size: 14px; }
  .spec-row { flex-wrap: wrap; gap: 4px 12px; padding: 14px 16px; }
  .spec-row .no { margin-left: 0; }
  .spec-row .src { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
  .train-grid { grid-template-columns: 1fr; }
  .quiz { padding: 18px; }
  .quiz-q { font-size: 15px; }
}

/* ============================================
   C · 商城补充（fire / iot / oa）
   ============================================ */
.match-sel select {
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.match-sel select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* 商品分类下的说明行 */
.tabs + .grid4,
.tabs + .grid3 { margin-top: 4px; }

/* ============================================
   D · 购物车 cart.html
   ============================================ */
.cart-body {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 48px 0 96px;
}

.cart-list { flex: 1; min-width: 0; }

.cart-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast) var(--ease);
}

.cart-row:hover { border-color: var(--border-light); }

.cart-row .info { flex: 1; min-width: 0; }
.cart-row .name { font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.cart-row .spec { color: var(--text-muted); font-size: 12.5px; margin-top: 4px; }

.qty { display: flex; align-items: center; gap: 8px; }

.qty a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border-base);
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.qty a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.qty .n {
  min-width: 36px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.row-price {
  width: 110px;
  text-align: right;
  color: var(--accent-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.row-del { color: var(--text-muted); font-size: 12.5px; cursor: pointer; transition: color var(--dur-fast) var(--ease); }
.row-del:hover { color: var(--danger); }

.panel {
  width: 380px;
  flex-shrink: 0;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-lg);
  position: sticky;
  top: 96px;
}

.panel h3 { font-size: 18px; margin-bottom: 18px; }
.panel .k { color: var(--text-muted); font-size: 12.5px; margin: 14px 0 6px; }

.panel input,
.panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border-base);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.panel input:focus,
.panel select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0;
}

.total-line .t {
  color: var(--accent-text);
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.empty { padding: 80px 0; text-align: center; color: var(--text-tertiary); font-size: 14px; line-height: 1.8; }

.success { display: none; padding: 60px 0; text-align: center; }
.success .ok { color: var(--accent-text); font-size: 44px; font-weight: 600; margin-bottom: 16px; }

@media (max-width: 900px) {
  .cart-body { flex-direction: column; padding: 32px 0 64px; }
  .cart-row { flex-wrap: wrap; padding: 16px; gap: 10px; }
  .cart-row .info { flex: 1 1 100%; }
  .row-price { width: auto; }
  .panel { width: 100%; position: static; }
}

@media (max-width: 480px) {
  .cart-row { align-items: flex-start; }
  .row-price { text-align: left; }
}

/* ============================================
   E · 联系我们 contact.html
   ============================================ */
.ch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.ch-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-md);
  transition: border-color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}

.ch-card:hover { border-color: var(--border-light); transform: translateY(-2px); }

.ch-card .k { color: var(--text-muted); font-size: 12.5px; margin-bottom: 10px; }
.ch-card .v { font-size: 21px; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }
.ch-card .v.red { color: var(--accent-text); }
.ch-card .s { color: var(--text-tertiary); font-size: 13px; line-height: 1.7; margin-top: 8px; }

.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.qr-card {
  padding: 28px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-md);
}

.qr-card img {
  width: 152px;
  height: 152px;
  margin: 0 auto;
  padding: 8px;
  background: var(--qr-paper);
  border: 1px solid var(--border-base);
  border-radius: var(--r-sm);
  object-fit: contain;
}

.qr-card h4 { font-size: 16px; margin-top: 18px; }
.qr-card p { color: var(--text-tertiary); font-size: 13px; line-height: 1.7; margin-top: 8px; }

.form-wrap {
  display: flex;
  gap: 48px;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-lg);
}

.form-left { flex: 1; min-width: 0; }
.form-left h3 { font-size: 26px; line-height: 1.35; }
.form-left .intro { color: var(--text-tertiary); font-size: 14.5px; line-height: 1.85; margin: 16px 0 24px; }

.form-left .point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.form-left .point::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
  flex-shrink: 0;
}

.form-right {
  width: 440px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-right .form-field { margin-bottom: 0; }

@media (max-width: 900px) {
  .ch-grid,
  .qr-grid { grid-template-columns: 1fr; }
  .form-wrap { flex-direction: column; gap: 32px; }
  .form-right { width: 100%; }
}

@media (max-width: 480px) {
  .form-wrap { padding: 22px; border-radius: var(--r-md); }
  .form-left h3 { font-size: 21px; }
  .qr-card img { width: 128px; height: 128px; }
}

/* ============================================
   F · 新闻资讯 news.html
   ============================================ */
.news-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  margin-bottom: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-sm);
  transition: background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.news-row:hover { background: var(--bg-hover); border-color: var(--border-light); }

.news-row .t {
  flex: 1;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  transition: color var(--dur-fast) var(--ease);
}

.news-row .t:hover { color: var(--accent-text); }

.news-row .src {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11.5px;
  font-weight: 600;
}

.update-note { color: var(--text-muted); font-size: 12px; margin-top: 16px; }

/* 资讯详情（JS 渲染） */
.news-detail-body { max-width: 860px; padding: 32px 0 64px; }
.news-detail-body h1 {
  font-size: 32px;
  line-height: 1.35;
  margin-bottom: 16px;
}
.news-detail-body .news-content {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.9;
}
.news-detail-body .news-content p { margin-bottom: 14px; }
.news-detail-body .news-content img { border-radius: var(--r-md); margin: 20px 0; }

@media (max-width: 768px) {
  .news-row { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; }
  .news-row .t { font-size: 14.5px; }
  .news-detail-body { padding: 20px 0 48px; }
  .news-detail-body h1 { font-size: 23px; }
  .news-detail-body .news-content { font-size: 15px; }
}

/* ============================================
   G · 规范文库 norms.html
   ============================================ */

/* 分类分段控件 */
.sec-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.sec-tab {
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--border-base);
  border-radius: var(--r-full);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.sec-tab:hover { border-color: var(--border-strong); color: var(--text-primary); }

.sec-tab.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

/* 全局检索条 */
.global-search-section { padding: 32px 0 0; }

.global-search-bar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.global-search-field {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.global-search-field label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
}

.global-search-input {
  width: 100%;
  min-height: 46px;
  padding: 0 15px;
  background: var(--bg-alt);
  border: 1px solid var(--border-base);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.global-search-input::placeholder { color: var(--text-muted); }
.global-search-input:hover { border-color: var(--border-light); }
.global-search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.global-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 26px;
  border: none;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.global-search-btn:hover { filter: brightness(1.07); }
.global-search-btn:active { transform: scale(.98); }

.global-search-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 11.5px;
}

.global-search-tips span { display: flex; align-items: center; gap: 4px; }

/* 搜索结果面板 */
.search-results-panel {
  display: none;
  margin: 16px 0 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.search-results-panel.active { display: block; }

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border-base);
}

.search-results-title { color: var(--accent-text); font-size: 13px; font-weight: 600; }

.search-results-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.search-results-close:hover { background: var(--bg-hover); color: var(--text-primary); }

.search-results-list { max-height: 420px; overflow-y: auto; padding: 6px; }

.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}

.search-result-item:hover { background: var(--bg-hover); }

.search-result-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-xs);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.search-result-icon.name { background: color-mix(in srgb, var(--success) 12%, transparent); }
.search-result-icon.content { background: color-mix(in srgb, var(--info) 12%, transparent); }

.search-result-main { flex: 1; min-width: 0; }

.search-result-title {
  margin-bottom: 4px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-snippet {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.65;
}

.search-result-snippet mark.std-kw,
.std-content mark.std-kw {
  padding: 0 3px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.std-content mark.std-kw.current {
  background: #FFD60A;
  color: #1A1A1A;
  box-shadow: 0 0 0 2px var(--accent);
}

.search-result-meta { margin-top: 6px; color: var(--text-muted); font-size: 11px; }

.search-result-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: var(--r-full);
  font-size: 10px;
}

.search-result-badge.ok { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.search-result-badge.pending { background: var(--bg-alt); color: var(--text-muted); }

.search-result-empty { padding: 48px 0; text-align: center; color: var(--text-muted); font-size: 13.5px; }

/* 文库主体 */
.lib {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 24px 0 96px;
}

.lib-side {
  width: 360px;
  flex-shrink: 0;
  position: sticky;
  top: 96px;
}

.lib-search {
  width: 100%;
  min-height: 44px;
  margin-bottom: 12px;
  padding: 0 15px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.lib-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.lib-list {
  max-height: 65vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-md);
  padding: 6px;
}

.lib-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--r-xs);
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.lib-item:hover { background: var(--bg-hover); color: var(--text-primary); }

.lib-item.on {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--accent);
}

.lib-item.pending { color: var(--text-muted); cursor: default; opacity: .65; }
.lib-item.pending:hover { background: transparent; color: var(--text-muted); }

.lib-badge {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 10px;
  white-space: nowrap;
}

.lib-badge.ok { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.lib-badge.pending { background: var(--bg-alt); color: var(--text-muted); }

.lib-main { flex: 1; min-width: 0; min-height: 60vh; }

.lib-empty {
  padding: 120px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.9;
}

/* 规范文档（公文纸面风格，刻意保持浅色纸张） */
.std-doc {
  --std-paper: #FAF8F3;
  --std-ink: #1A1A1A;
  --std-ink-soft: #4A4A4A;
  --std-red: #B91C1C;
  --std-border: #DED6C7;

  overflow: hidden;
  background: var(--std-paper);
  color: var(--std-ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-dropdown);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

.std-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: #F1ECE3;
  border-bottom: 1px solid var(--std-border);
  font-family: var(--font-sans);
  font-size: 12.5px;
}

.std-toolbar-left,
.std-toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.std-btn {
  padding: 6px 11px;
  background: var(--qr-paper);
  border: 1px solid var(--std-border);
  border-radius: var(--r-xs);
  color: var(--std-ink-soft);
  font-size: 12px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.std-btn:hover { border-color: var(--std-red); color: var(--std-red); }
.std-btn svg { display: inline-block; vertical-align: -2px; margin-right: 3px; }

.std-doc-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 72px 96px;
  font-size: 15.5px;
}

.std-cover {
  padding-bottom: 40px;
  margin-bottom: 40px;
  text-align: center;
  border-bottom: 2px solid var(--std-red);
}

.std-country {
  margin-bottom: 24px;
  color: var(--std-red);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .5em;
  text-indent: .5em;
}

.std-code-box {
  display: inline-block;
  margin-bottom: 26px;
  padding: 9px 28px;
  background: var(--qr-paper);
  border: 2px solid var(--std-red);
  color: var(--std-ink);
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .08em;
}

.std-title-zh {
  margin-bottom: 10px;
  color: var(--std-ink);
  font-size: 30px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: .02em;
}

.std-title-en {
  margin-bottom: 28px;
  color: #666;
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
}

.std-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
  text-align: left;
}

.std-meta-item {
  padding: 11px 13px;
  background: #F5F1E9;
  border: 1px solid var(--std-border);
  border-radius: var(--r-xs);
}

.std-meta-label {
  margin-bottom: 4px;
  color: #7A7468;
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.std-meta-value { color: var(--std-ink); font-size: 13px; font-weight: 600; }

.std-notice {
  margin-top: 24px;
  padding: 12px 16px;
  background: #FFF8E7;
  border-left: 3px solid #E0A21A;
  color: #7A5C22;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.7;
  text-align: left;
}

.std-toc {
  padding: 22px 26px;
  margin-bottom: 36px;
  background: #F5F1E9;
  border: 1px solid var(--std-border);
  border-radius: var(--r-sm);
}

.std-toc.std-toc-hidden { display: none; }

.std-toc-title {
  margin-bottom: 16px;
  color: var(--std-ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .3em;
  text-align: center;
  text-indent: .3em;
}

.std-toc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 28px; }

.std-toc-item {
  padding: 5px 0;
  border-bottom: 1px dashed #DDD6C8;
  color: var(--std-ink-soft);
  font-size: 13.5px;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.std-toc-item:hover { color: var(--std-red); border-bottom-color: var(--std-red); }

.std-section-title {
  margin: 42px 0 18px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--std-border);
  color: var(--std-ink);
  font-size: 21px;
  font-weight: 700;
  scroll-margin-top: 96px;
}

.std-subtitle {
  margin: 26px 0 12px;
  color: var(--std-ink);
  font-size: 17px;
  font-weight: 700;
}

.std-clause {
  position: relative;
  padding-left: 60px;
  margin-bottom: 14px;
  color: var(--std-ink);
  font-size: 15px;
  line-height: 1.95;
  text-align: justify;
}

.std-clause-num {
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--std-ink);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
}

.std-subitem {
  position: relative;
  padding-left: 84px;
  margin-bottom: 9px;
  color: var(--std-ink);
  font-size: 15px;
  line-height: 1.85;
  text-align: justify;
}

.std-subitem-num {
  position: absolute;
  left: 60px;
  top: 1px;
  color: #6B665C;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
}

.std-clause:hover { background: rgba(185, 28, 28, .04); }
.std-clause:hover .std-clause-copy { opacity: 1; }

.std-clause-copy {
  position: absolute;
  right: 0;
  top: 0;
  padding: 2px 8px;
  background: var(--qr-paper);
  border: 1px solid var(--std-border);
  border-radius: var(--r-xs);
  color: #7A7468;
  font-family: var(--font-sans);
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.std-clause-copy:hover { border-color: var(--std-red); color: var(--std-red); }

.std-note {
  padding: 15px 18px;
  margin: 18px 0;
  background: #F7F6F3;
  border-left: 3px solid #3B82F6;
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  color: var(--std-ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.std-note-label {
  display: inline-block;
  padding: 2px 10px;
  margin-bottom: 10px;
  background: #3B82F6;
  border-radius: var(--r-full);
  color: var(--on-accent);
  font-family: var(--font-sans);
  font-size: 10.5px;
}

.std-note .std-clause { margin-bottom: 10px; }

.std-term { color: var(--std-ink); font-weight: 700; }
.std-en { color: #555; font-style: italic; }

.std-p {
  margin-bottom: 14px;
  color: var(--std-ink);
  font-size: 15px;
  line-height: 1.95;
  text-align: justify;
  text-indent: 2em;
}

.std-list { padding-left: 2em; margin: 10px 0 16px; list-style: disc; }
.std-list li { margin-bottom: 7px; color: var(--std-ink); line-height: 1.8; }

.std-content b,
.std-content strong { color: var(--std-ink); font-weight: 700; }

.std-content code {
  padding: 1px 5px;
  background: #F0ECE3;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .92em;
}

/* 正文内查找 */
.std-findbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 3px 8px;
  background: #F6F2EA;
  border: 1px solid var(--std-border);
  border-radius: var(--r-xs);
}

.std-findbar input {
  width: 120px;
  padding: 4px 8px;
  background: var(--qr-paper);
  border: 1px solid var(--std-border);
  border-radius: 6px;
  color: var(--std-ink);
  font-family: var(--font-sans);
  font-size: 12px;
  outline: none;
}

.std-findbar input:focus { border-color: var(--std-red); }

.std-findbar .find-count {
  color: #7A7468;
  font-size: 11px;
  white-space: nowrap;
}

.std-findbar .find-btn {
  padding: 3px 8px;
  background: var(--qr-paper);
  border: 1px solid var(--std-border);
  border-radius: 6px;
  color: #7A7468;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.std-findbar .find-btn:hover { border-color: var(--std-red); color: var(--std-red); }

/* 分类导读 */
.lib-guide { margin: 40px 0 48px; }

.guide-desc {
  margin: 0 0 24px;
  color: var(--text-tertiary);
  font-size: var(--fs-body);
  line-height: 1.75;
}

.guide-count {
  margin-left: auto;
  padding-left: 16px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.guide-links { display: flex; flex-direction: column; margin-top: 12px; }

.guide-empty {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 13px;
}

#normStatBody th { color: var(--text-secondary); font-weight: 500; }
#normStatBody td { color: var(--text-tertiary); font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) {
  .std-doc-body { padding: 40px; }
  .std-meta { grid-template-columns: 1fr 1fr; }
  .std-toc-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .lib { flex-direction: column; }
  .lib-side { width: 100%; position: static; }
  .lib-list { max-height: 320px; }
  .std-doc-body { padding: 28px 24px 48px; }
  .std-title-zh { font-size: 22px; }
  .std-findbar { display: none; }
}

@media (max-width: 768px) {
  .sec-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .sec-tab { flex-shrink: 0; }
  .global-search-bar { padding: 14px; border-radius: var(--r-md); }
  .global-search-btn { width: 100%; }
  .lib { padding: 16px 0 64px; }
}

@media (max-width: 480px) {
  .global-search-section { padding-top: 20px; }
  .global-search-field { min-width: 100%; }
  .std-doc { border-radius: var(--r-md); }
  .std-doc-body { padding: 18px; font-size: 14px; }
  .std-cover { padding: 20px 8px; }
  .std-title-zh { font-size: 18px; }
  .std-title-en { font-size: 12px; }
  .std-code-box { font-size: 15px; padding: 7px 16px; }
  .std-toolbar { flex-direction: column; align-items: flex-start; }
  .std-meta { grid-template-columns: 1fr; }
  .std-clause { padding-left: 46px; font-size: 14px; }
  .std-subitem { padding-left: 64px; font-size: 14px; }
  .std-subitem-num { left: 46px; }
  .search-result-item { padding: 10px; }
}

@media print {
  .topbar, header, footer, .ai-float, .season-switcher,
  .lib-side, .std-toolbar, .mall-banner, .global-search-section,
  .lib-guide, .std-findbar { display: none !important; }
  .wrap { padding: 0; max-width: none; }
  .std-doc { box-shadow: none; border-radius: 0; background: var(--qr-paper); }
  .std-doc-body { padding: 0; max-width: none; }
  body { background: var(--qr-paper); }
  .std-clause-copy { display: none; }
}

/* ============================================
   H · 收银台 pay.html
   ============================================ */
.pay-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 0 96px;
}

.pay-order {
  padding: 24px 28px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-lg);
}

.pay-order .no { color: var(--text-muted); font-size: 12.5px; }

.pay-order .amount {
  margin-top: 8px;
  color: var(--accent-text);
  font-size: 36px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.pay-methods { display: flex; gap: 10px; margin-bottom: 24px; }

.pay-tab {
  flex: 1;
  padding: 14px 16px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-sm);
  color: var(--text-tertiary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.pay-tab:hover { border-color: var(--border-strong); }

.pay-tab.active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--text-primary);
  font-weight: 600;
}

.pay-panel {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-lg);
}

.bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-base);
  font-size: 14.5px;
}

.bank-row:last-child { border-bottom: none; }
.bank-row .k { color: var(--text-muted); }
.bank-row .v { display: flex; align-items: center; gap: 10px; font-weight: 500; text-align: right; }

.copy-btn {
  padding: 2px 10px;
  border: 1px solid var(--accent-border);
  border-radius: var(--r-full);
  color: var(--accent-text);
  font-size: 11.5px;
  font-weight: 400;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}

.copy-btn:hover { background: var(--accent-soft); }

.qr-pay { text-align: center; }

.qr-pay img {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  padding: 10px;
  background: var(--qr-paper);
  border: 1px solid var(--border-base);
  border-radius: var(--r-md);
  object-fit: contain;
}

.qr-pay .tip { margin-top: 14px; color: var(--warning); font-size: 12.5px; }

.pay-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.note { margin-top: 20px; color: var(--text-muted); font-size: 12px; line-height: 1.9; }

@media (max-width: 768px) {
  .pay-body { padding: 32px 0 64px; }
  .pay-panel { padding: 24px 20px; border-radius: var(--r-md); }
  .pay-methods { flex-direction: column; }
  .qr-pay img { width: 190px; height: 190px; }
  .pay-actions .btn { width: 100%; }
}

/* ============================================
   I · 扫码报修 repair.html
   ============================================ */
.rp-head {
  position: sticky;
  top: 0;
  z-index: 210;
  background: color-mix(in srgb, var(--bg-body) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-base);
}

.rp-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 13px;
}

.rp-head .back { color: var(--text-secondary); font-size: 14px; transition: color var(--dur-fast) var(--ease); }
.rp-head .back:hover { color: var(--text-primary); }
.rp-head .tel { color: var(--accent-text); font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; }

.rp-hero { padding: 80px 0 72px; }

.rp-hero .wrap {
  display: flex;
  align-items: center;
  gap: 56px;
}

.rp-hero-left { flex: 1; min-width: 0; }

.rp-hero h1 {
  margin: 18px 0;
  font-size: var(--fs-h1);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.015em;
}

.rp-hero .sub {
  margin-bottom: 28px;
  color: var(--text-tertiary);
  font-size: 15.5px;
  line-height: 1.8;
}

.rp-qr {
  width: 320px;
  flex-shrink: 0;
  padding: 28px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-lg);
}

.rp-qr img {
  width: 200px;
  height: 200px;
  margin: 12px auto;
  padding: 8px;
  background: var(--qr-paper);
  border: 1px solid var(--border-base);
  border-radius: var(--r-md);
  object-fit: contain;
}

.rp-qr .t { font-size: 15px; font-weight: 600; }
.rp-qr .s { margin-top: 6px; color: var(--text-muted); font-size: 12px; }

.dev-types {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0;
  margin-bottom: 52px;
  border-top: 1px solid var(--border-base);
  border-bottom: 1px solid var(--border-base);
}

.dev-types .lbl { margin-right: 8px; color: var(--text-muted); font-size: 12.5px; }

.flow4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.flow4 .f {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-md);
}

.flow4 .no { color: var(--accent-text); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.flow4 h4 { font-size: 16px; margin: 10px 0 7px; }
.flow4 p { color: var(--text-tertiary); font-size: 13px; line-height: 1.7; }

/* H5 三屏：表单 → 成功 → 进度 */
.h5 {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-lg);
}

.h5 .dev-ident {
  padding: 16px 18px;
  margin-bottom: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border-base);
  border-radius: var(--r-sm);
}

.h5 .dev-ident .k { color: var(--text-muted); font-size: 11.5px; }
.h5 .dev-ident .v { margin-top: 4px; font-size: 15.5px; font-weight: 600; }
.h5 .dev-ident .no2 { margin-top: 4px; color: var(--text-muted); font-size: 11.5px; }

.h5 .fault {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  margin-bottom: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border-base);
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.h5 .fault:hover { border-color: var(--border-strong); color: var(--text-primary); }

.h5 .fault.on {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--text-primary);
}

.h5 .fault .box {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  color: var(--on-accent);
  font-size: 11px;
}

.h5 .fault.on .box { background: var(--accent); border-color: var(--accent); }

.h5 .photo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin: 16px 0;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.h5 .photo:hover { border-color: var(--accent); color: var(--accent-text); }

.h5 .submit {
  width: 100%;
  min-height: 50px;
  padding: 0 24px;
  border: none;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: filter var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}

.h5 .submit:hover { filter: brightness(1.07); }
.h5 .submit:active { transform: scale(.985); }

.h5 .tip { margin-top: 10px; text-align: center; color: var(--text-muted); font-size: 11.5px; }

.h5 .manual { margin-top: 18px; }

.h5 .manual input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border-base);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.h5 .manual input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.h5 .ok-ico {
  width: 72px;
  height: 72px;
  margin: 8px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-border);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 32px;
}

.h5 .ok-t { text-align: center; font-size: 22px; font-weight: 600; }
.h5 .ok-no { margin: 10px 0 22px; text-align: center; color: var(--text-muted); font-size: 12.5px; }

.h5 .ok-rows {
  padding: 16px 18px;
  margin-bottom: 22px;
  background: var(--bg-alt);
  border: 1px solid var(--border-base);
  border-radius: var(--r-sm);
}

.h5 .ok-rows .r { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 13.5px; }
.h5 .ok-rows .r .k { color: var(--text-muted); }

.h5 .tl { display: flex; flex-direction: column; margin-bottom: 20px; }

.h5 .tl .s {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-base);
}

.h5 .tl .s:last-child { border-bottom: none; }

.h5 .tl .dot {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-text);
  font-size: 10px;
}

.h5 .tl .dot.done { background: var(--accent); color: var(--on-accent); }
.h5 .tl .dot.wait { border-color: var(--border-strong); color: var(--text-muted); }

.h5 .tl .s .m { flex: 1; }
.h5 .tl .s .t1 { font-size: 14.5px; font-weight: 500; }
.h5 .tl .s .t2 { margin-top: 3px; color: var(--text-muted); font-size: 11.5px; }

.h5 .stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 14px 0;
  color: var(--accent);
  font-size: 30px;
  cursor: pointer;
}

.h5 .stars span { opacity: .28; transition: opacity var(--dur-fast) var(--ease); }
.h5 .stars span.on { opacity: 1; }

.h5 .two-btns { display: flex; gap: 12px; margin-top: 20px; }
.h5 .two-btns .btn { flex: 1; }

/* 降级保障 */
.fb-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-4); }

.fb-card {
  padding: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-base);
  border-radius: var(--r-md);
}

.fb-card.main {
  border-color: var(--accent-border);
  background: linear-gradient(rgba(var(--accent-rgb), .06), rgba(var(--accent-rgb), .06)), var(--bg-card);
}

.fb-card .pct { color: var(--text-muted); font-size: 11.5px; }
.fb-card.main .pct { color: var(--accent-text); }
.fb-card h4 { font-size: 18px; margin: 10px 0 7px; }
.fb-card p { color: var(--text-tertiary); font-size: 13px; line-height: 1.7; }

.rp-foot a { color: inherit; }
.rp-foot a:hover { color: var(--text-primary); }

.rp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--border-base);
  color: var(--text-muted);
  font-size: 12px;
}

@media (max-width: 768px) {
  .rp-head .wrap { min-height: 56px; padding-block: 10px; }
  .rp-head .logo-mark { width: 44px; height: 27px; }
  .rp-head .logo-name { font-size: 15px; }
  .rp-head .logo-en { font-size: 6.5px; }
  .rp-hero { padding: 44px 0 40px; }
  .rp-hero .wrap { flex-direction: column; align-items: stretch; gap: 28px; }
  .rp-qr { width: 100%; }
  .rp-hero h1 { font-size: 28px; }
  .flow4 { grid-template-columns: repeat(2, 1fr); }
  .fb-grid { grid-template-columns: 1fr; }
  .h5 { padding: 24px 18px; border-radius: var(--r-md); }
  .h5 .two-btns { flex-direction: column; }
}

@media (max-width: 480px) {
  .flow4 { grid-template-columns: 1fr; }
  .rp-hero { padding: 32px 0; }
  .rp-hero h1 { font-size: 25px; }
}

/* ============================================
   J · 法务长文 legal / privacy
   ============================================ */
.legal-section { padding: 48px 0 96px; }
.legal-section .prose { max-width: 780px; }

@media (max-width: 768px) {
  .legal-section { padding: 32px 0 64px; }
  .prose h2 { font-size: 22px; margin-top: 34px; }
  .prose p { font-size: 15px; line-height: 1.85; }
}


/* 404 */
.err-wrap { padding: 80px 0 96px; text-align: center; }
.err-wrap p { color: var(--text-tertiary); font-size: 16px; line-height: 1.8; }
.err-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
