/* ============================================================
   标准查新助手 — 全站样式
   ============================================================ */
:root {
  --brand: #1657c4;
  --brand-dark: #0d3f96;
  --brand-light: #eaf1fe;
  --brand-mid: #3b82f6;
  --ok: #16a34a;
  --ok-bg: #e8f7ee;
  --warn: #ea8a0b;
  --warn-bg: #fff5e2;
  --danger: #dc2626;
  --danger-bg: #fdecec;
  --ink: #1f2937;
  --ink-2: #4b5563;
  --ink-3: #8b95a5;
  --line: #e6eaf0;
  --bg: #f5f7fb;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 8px 28px rgba(16, 24, 40, .10);
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: Consolas, "SF Mono", Menlo, monospace; }

/* ---------------- 顶部导航 ---------------- */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 2px rgba(16,24,40,.03);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: 72px; display: flex; align-items: center; gap: 26px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19.5px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-mid), var(--brand-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.nav-links { display: flex; gap: 6px; flex: 1; align-items: center; }
.nav-links a {
  padding: 10px 20px; border-radius: 10px; color: var(--ink-2);
  font-size: 16px; font-weight: 600; letter-spacing: .2px;
  transition: background .15s, color .15s, box-shadow .15s;
}
.nav-links a:hover { background: var(--brand-light); color: var(--brand); text-decoration: none; }
.nav-links a.active {
  background: var(--brand); color: #fff;
  box-shadow: 0 3px 10px rgba(22, 87, 196, .25);
}
.nav-links a.active:hover { background: var(--brand-dark); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 8px;
  padding: 9px 18px; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .15s; font-family: inherit;
  white-space: nowrap; line-height: 1.3;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn-green { background: var(--ok); color: #fff; }
.btn-green:hover:not(:disabled) { background: #128a3e; }
.btn-warn { background: var(--warn); color: #fff; }
.btn-warn:hover:not(:disabled) { background: #cf7608; }
.btn-outline { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-outline:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.btn-gray { background: #eef1f6; color: var(--ink-2); border-color: transparent; }
.btn-gray:hover:not(:disabled) { background: #e3e8f0; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--brand-light); color: var(--brand); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f6c9c9; }
.btn-danger:hover:not(:disabled) { background: var(--danger-bg); }
.btn-sm { padding: 4px 11px; font-size: 12.5px; border-radius: 6px; }
.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------------- 布局 ---------------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 26px 20px 60px; }
.wrap-narrow { max-width: 460px; margin: 0 auto; padding: 46px 20px 60px; }

.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid rgba(230,234,240,.7);
  padding: 22px; margin-bottom: 18px;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.card-title { font-size: 16px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-title .sub { font-size: 12.5px; font-weight: 400; color: var(--ink-3); }

/* ---------------- 首页 Hero ---------------- */
.hero {
  background: linear-gradient(150deg, #123f9e 0%, #1657c4 45%, #2f74e0 100%);
  color: #fff; padding: 54px 20px 62px; text-align: center;
}
.hero h1 { font-size: 32px; font-weight: 700; letter-spacing: .5px; }
.hero p.lead { font-size: 15px; opacity: .92; margin-top: 12px; }
.hero-search {
  max-width: 640px; margin: 28px auto 0; display: flex; gap: 10px;
  background: rgba(255,255,255,.14); padding: 8px; border-radius: 12px;
  backdrop-filter: blur(6px);
}
.hero-search input {
  flex: 1; border: none; border-radius: 8px; padding: 13px 16px;
  font-size: 15px; font-family: inherit; color: var(--ink);
}
.hero-search input:focus { outline: 2px solid rgba(255,255,255,.6); }
.hero-search .btn { padding: 13px 26px; }
.hero-hint { margin-top: 14px; font-size: 12.5px; opacity: .8; }
.hero-hint a { color: #fff; text-decoration: underline; }

/* 统计条 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: -34px auto 22px; max-width: 1160px; padding: 0 20px; position: relative; z-index: 2; }
/* 首页只放「即将实施 / 已实施」两项时用两列 */
.stats.stats-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
.stat {
  background: #fff; border-radius: var(--radius); padding: 17px 20px;
  box-shadow: var(--shadow); border-left: 3px solid var(--brand);
}
.stat .num { font-size: 26px; font-weight: 700; color: var(--brand); line-height: 1.2; }
.stat .label { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.stat.red { border-left-color: var(--danger); } .stat.red .num { color: var(--danger); }
.stat.orange { border-left-color: var(--warn); } .stat.orange .num { color: var(--warn); }
.stat.green { border-left-color: var(--ok); } .stat.green .num { color: var(--ok); }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left; padding: 10px 12px; background: #f8fafc; color: var(--ink-2);
  font-weight: 600; font-size: 12.5px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td { padding: 11px 12px; border-bottom: 1px solid #f0f3f7; vertical-align: middle; }
tbody tr:hover td, tr:hover td { background: #f9fbff; }
tr.hl-red td { background: #fff7f7; }
tr.hl-orange td { background: #fffcf3; }

/* ---------------- 状态徽章 ---------------- */
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge.latest { background: var(--ok-bg); color: var(--ok); }
.badge.updated { background: var(--danger-bg); color: var(--danger); }
.badge.soon { background: var(--warn-bg); color: var(--warn); }
.badge.not_found, .badge.error { background: #f1f3f6; color: var(--ink-3); }
.badge.iso_manual { background: #eef2ff; color: #4f46e5; }
.badge.not_checked { background: #eef2ff; color: var(--brand); }
.badge.new { background: var(--ok-bg); color: var(--ok); }
.badge.dup { background: #f1f3f6; color: var(--ink-3); }
.badge.pro { background: #fff4d6; color: #a16207; }
.badge.trial { background: var(--brand-light); color: var(--brand); }
.badge.free { background: #f1f3f6; color: var(--ink-3); }

/* ---------------- 表单 ---------------- */
label.field { display: block; margin-bottom: 14px; }
label.field span.lbl { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
input[type=text], input[type=password], input[type=email], input[type=tel], textarea, select {
  width: 100%; border: 1px solid #d7dde6; border-radius: 8px;
  padding: 10px 13px; font-size: 14px; font-family: inherit; color: var(--ink);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22,87,196,.10);
}
textarea { resize: vertical; line-height: 1.7; font-family: Consolas, monospace; }
input.note-input { width: 130px; padding: 4px 8px; font-size: 12.5px; border-radius: 6px; }

/* ---------------- 提示消息 ---------------- */
.msg { margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: 13px; display: none; }
.msg.show { display: block; }
.msg.ok { background: var(--ok-bg); color: #15803d; }
.msg.err { background: var(--danger-bg); color: var(--danger); }
.msg.info { background: var(--brand-light); color: var(--brand-dark); }
.flash { padding: 11px 15px; border-radius: 8px; font-size: 13.5px; margin-bottom: 16px; }
.flash.ok { background: var(--ok-bg); color: #15803d; }
.flash.err { background: var(--danger-bg); color: var(--danger); }

/* ---------------- 文档拖拽上传 ---------------- */
.dropzone {
  border: 2px dashed #cbd6e6; border-radius: var(--radius); padding: 26px 20px;
  text-align: center; cursor: pointer; transition: all .15s; background: #fbfcfe;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--brand); background: var(--brand-light);
}
.dropzone.dragover { box-shadow: 0 0 0 3px rgba(22,87,196,.10); }
.dz-icon { font-size: 30px; line-height: 1; }
.dz-text { font-size: 14px; color: var(--ink-2); margin-top: 8px; font-weight: 500; }

.preview-box { max-height: 380px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.preview-box th { position: sticky; top: 0; z-index: 1; }
.preview-box td { padding: 7px 10px; }
.ctx { color: var(--ink-3); font-size: 12px; }

/* ---------------- 加载遮罩 ---------------- */
.loading-mask {
  position: fixed; inset: 0; background: rgba(247,249,252,.82); z-index: 99;
  display: none; align-items: center; justify-content: center; flex-direction: column;
  backdrop-filter: blur(2px);
}
.loading-mask.show { display: flex; }
.spinner {
  width: 42px; height: 42px; border: 3.5px solid #dbe6fb; border-top-color: var(--brand);
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-mask p { margin-top: 15px; color: var(--ink-2); font-size: 14px; }
.progress-wrap { width: 300px; height: 7px; background: #e7ecf4; border-radius: 4px; margin-top: 15px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--ok)); transition: width .3s; }

/* ---------------- 杂项 ---------------- */
.small { font-size: 12.5px; color: var(--ink-3); }
.nowrap { white-space: nowrap; }

/* 官方来源链接（最新版本旁边的「查看官方原文 ↗」） */
.src-link {
  display: inline-block; margin-left: 7px; padding: 1px 8px; border-radius: 5px;
  font-family: inherit; font-size: 12px; font-weight: 500; white-space: nowrap;
  background: var(--brand-light); color: var(--brand); text-decoration: none;
  vertical-align: 1px; transition: background .15s, color .15s;
}
.src-link:hover { background: var(--brand); color: #fff; text-decoration: none; }
.src-note { font-size: 12px; color: var(--ink-3); }
.empty { text-align: center; color: var(--ink-3); padding: 38px 0; font-size: 14px; }
.fold { cursor: pointer; user-select: none; }
.row-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

.history-item {
  padding: 8px 2px; border-bottom: 1px dashed #eef1f6; font-size: 13px;
  display: flex; gap: 12px; align-items: baseline;
}
.history-item .time { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.history-item .code { font-family: Consolas, monospace; font-weight: 600; white-space: nowrap; }

/* ---------------- 定价 ---------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 24px; display: flex; flex-direction: column; position: relative;
}
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan .tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 600;
  padding: 3px 14px; border-radius: 20px;
}
.plan h3 { font-size: 17px; font-weight: 650; }
.plan .price { font-size: 34px; font-weight: 750; color: var(--brand); margin: 12px 0 2px; }
.plan .price small { font-size: 14px; font-weight: 400; color: var(--ink-3); }
.plan ul { list-style: none; margin: 18px 0; flex: 1; }
.plan li { padding: 7px 0 7px 24px; position: relative; font-size: 13.5px; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan li.no { color: var(--ink-3); }
.plan li.no::before { content: "—"; color: var(--ink-3); }
/* 「加微信免费用半年」的联系方式小方块 */
.wechat-box {
  margin-top: auto; padding: 12px 14px; border-radius: 10px; text-align: center;
  background: var(--ok-bg); border: 1px dashed rgba(0, 128, 96, .35); color: var(--ok);
  font-size: 14px;
}
.wechat-box b { font-size: 17px; letter-spacing: .5px; }

/* ---------------- 价格页：标题 + 微信开通卡 ---------------- */
.price-hero { text-align: center; margin-bottom: 28px; }
.price-hero h1 { font-size: 27px; font-weight: 750; letter-spacing: .3px; }
.price-hero .sub { margin-top: 9px; font-size: 13.5px; color: var(--ink-3); }

.plans.plans-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px; margin: 8px auto 0;
}
/* 只推会员：单卡居中 */
.plans.plans-1 {
  grid-template-columns: 1fr;
  max-width: 440px; margin: 8px auto 0;
}

.wx-open {
  margin-top: 16px; padding: 16px 16px 14px; border-radius: 12px;
  background: linear-gradient(180deg, #f5f9ff, #eaf3ff);
  border: 1px solid #d3e4ff;
}
.wx-open-title { font-size: 14.5px; font-weight: 700; color: var(--brand); }
.wx-line { display: flex; gap: 10px; align-items: center; margin: 10px 0 2px; flex-wrap: wrap; }
.wx-id {
  font-family: Consolas, monospace; font-size: 20px; font-weight: 700; letter-spacing: 1px;
  color: var(--ink); background: #fff; border: 1px dashed var(--brand);
  border-radius: 8px; padding: 5px 14px; user-select: all;
}
.wx-steps { margin: 12px 0 10px; padding-left: 20px; }
.wx-steps li { font-size: 13px; color: var(--ink-2); padding: 3px 0; list-style: decimal; }
.wx-free {
  margin-top: 6px; padding: 8px 10px; border-radius: 8px; text-align: center;
  background: var(--ok-bg); color: var(--ok); font-size: 13px;
}
.wx-open--on { background: var(--ok-bg); border-color: rgba(0, 128, 96, .3); }
.wx-open--on .wx-open-title { color: var(--ok); }

/* 价格页：开通方式（二维码大字报） */
.open-card {
  margin: 22px auto 0; max-width: 880px; background: #fff; border: 2px solid var(--brand);
  border-radius: 16px; padding: 24px 26px; box-shadow: var(--shadow-lg);
}
.open-head { text-align: center; }
.open-title { font-size: 19px; font-weight: 750; color: var(--ink); }
.open-sub { margin-top: 7px; font-size: 13px; color: var(--ink-3); }
.open-body {
  display: flex; gap: 30px; align-items: center; justify-content: center;
  margin-top: 20px; flex-wrap: wrap;
}
.open-qr { text-align: center; }
.open-qr img {
  width: 190px; height: 190px; display: block; border-radius: 12px;
  border: 1px solid var(--line); padding: 6px; background: #fff;
  box-shadow: 0 4px 16px rgba(22, 87, 196, .10);
}
.qr-tip { margin-top: 9px; font-size: 12.5px; color: var(--ink-3); }
.open-side { flex: 1; min-width: 280px; max-width: 460px; }
.wx-note {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--ink-3);
}

@media (max-width: 900px) {
  .plans.plans-2 { grid-template-columns: 1fr; }
  .open-body { gap: 18px; }
  .open-side { min-width: 100%; }
}


/* 首页「即将实施」列表：标准号/名称可点，直接跳查标准页 */
a.feed-code { font-weight: 700; color: var(--brand); text-decoration: none; }
a.feed-code:hover { text-decoration: underline; }
a.feed-name { color: var(--ink); text-decoration: none; }
a.feed-name:hover { color: var(--brand); text-decoration: underline; }

/* ---------------- 页脚 ---------------- */
.footer {
  border-top: 1px solid var(--line); background: #fff; padding: 26px 20px;
  text-align: center; color: var(--ink-3); font-size: 12.5px;
}
.footer a { color: var(--ink-2); }

/* ---------------- 首次访问引导弹窗 ---------------- */
.welcome-mask {
  position: fixed; inset: 0; z-index: 9998; padding: 20px;
  background: rgba(15, 23, 42, .55);
  display: flex; align-items: center; justify-content: center; overflow-y: auto;
}
.welcome-mask[hidden] { display: none; }
.welcome-card {
  position: relative; width: 100%; max-width: 520px; background: #fff;
  border-radius: 16px; padding: 26px 26px 20px;
  box-shadow: 0 24px 60px rgba(2, 12, 40, .35);
}
.welcome-close {
  position: absolute; top: 8px; right: 10px; width: 32px; height: 32px;
  border: none; background: transparent; font-size: 24px; line-height: 1;
  color: #94a3b8; cursor: pointer; border-radius: 8px;
}
.welcome-close:hover { color: var(--ink); background: #f1f5f9; }
.welcome-title { font-size: 20px; font-weight: 750; }
.welcome-sub { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.welcome-list { list-style: none; margin: 14px 0 12px; padding: 0; }
.welcome-list li { display: flex; gap: 10px; padding: 7px 0; font-size: 13.5px; color: var(--ink-2); }
.welcome-list .wi { font-size: 18px; line-height: 1.25; }
.welcome-list b { color: var(--ink); }
.welcome-wx {
  display: flex; gap: 14px; align-items: center; padding: 12px 14px;
  background: var(--ok-bg); border: 1px dashed rgba(0, 128, 96, .35); border-radius: 12px;
}
.welcome-wx img { border-radius: 8px; background: #fff; padding: 3px; border: 1px solid #e2eee9; flex: none; }
.welcome-wx-text { flex: 1; }
.welcome-wx-title { font-weight: 700; color: var(--ok); font-size: 14.5px; margin-bottom: 5px; }
.welcome-actions { display: flex; gap: 10px; margin-top: 16px; }
.welcome-actions .btn { flex: 1; }
.welcome-foot { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--ink-3); }

/* ---------------- 标准详情落地页（SEO） ---------------- */
.std-hero { margin-bottom: 18px; }
.bread { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 6px; flex-wrap: wrap; }
.bread a { color: var(--ink-3); }
.std-hero h1 { font-size: 24px; font-weight: 750; margin: 10px 0 8px; line-height: 1.4; }
.std-hero h1 em { font-style: normal; color: var(--brand); }
.std-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.std-conclusion {
  margin-top: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.85;
  background: var(--brand-light); border-left: 3px solid var(--brand);
  padding: 12px 14px; border-radius: 0 8px 8px 0;
}
table.kv { width: 100%; border-collapse: collapse; }
table.kv th {
  width: 132px; text-align: left; font-weight: 600; font-size: 12.5px; color: var(--ink-3);
  padding: 10px 12px; border-bottom: 1px solid #f0f3f7; background: #fafbfe;
  text-transform: none; letter-spacing: 0;
}
table.kv td { padding: 10px 12px; font-size: 13.5px; border-bottom: 1px solid #f0f3f7; }
.std-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.faq-item { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-q { font-weight: 650; font-size: 14px; color: var(--ink); }
.faq-a { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }

.link-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; padding: 6px 12px; border-radius: 8px; background: #f2f6fc;
  color: var(--brand); font-family: Consolas, monospace; font-size: 12.5px; text-decoration: none;
}
.chip:hover { background: var(--brand); color: #fff; text-decoration: none; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 6px; }

.std-cta {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(120deg, #0d3f96, #1657c4); color: #fff; border: none;
}
.std-cta .std-cta-title { font-size: 17px; font-weight: 700; }
.std-cta .small { color: rgba(255, 255, 255, .85); }
.std-cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.std-cta .btn-outline:hover { background: rgba(255, 255, 255, .15); color: #fff; border-color: #fff; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .nav-inner { gap: 14px; height: auto; padding: 10px 16px; flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; gap: 4px; }
  .nav-links a { font-size: 14.5px; padding: 8px 13px; }
  .welcome-card { padding: 22px 18px 16px; }
  .welcome-wx { flex-direction: column; text-align: center; }
  .welcome-actions { flex-direction: column; }
  .hero { padding: 36px 16px 48px; }
  .hero h1 { font-size: 24px; }
  .hero-search { flex-direction: column; }
}

.src-logo { width:18px; height:18px; border-radius:4px; vertical-align:-3px; margin-right:6px; }
