/* ============================================================
  ROFilter 公开内容站样式（/ro/、/brand/）
  与主应用解耦：独立字号与栅格，面向阅读与搜索引擎
  配色沿用主应用：深蓝 #002f5b
   ============================================================ */
:root {
  --c-primary: #002f5d;
  --c-primary-dark: #002548;
  --c-text: #1a2733;
  --c-text-sub: #5a6b7b;
  --c-border: #d5e2ee;
  --c-bg-soft: #f4f7f9;
  --c-accent: #f39c12;
  --c-link: #005596;
  --w: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-link); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- 椤堕儴瀵艰埅 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-primary);
  border-bottom: 3px solid var(--c-accent);
}
.site-header-inner {
  max-width: var(--w); margin: 0 auto; padding: 0 20px;
  height: 62px; display: flex; align-items: center; gap: 24px;
}
.site-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; letter-spacing: .3px; }
.site-logo:hover { text-decoration: none; }
.site-logo img { height: 30px; width: auto; background: #fff; border-radius: 4px; padding: 2px; }
.site-logo .rf-mark { width: 28px; height: 28px; color: #fff; }
.site-logo .rf-word { font-size: 17px; color: #fff; }
.site-logo span.sub { font-size: 12px; font-weight: 400; opacity: .75; letter-spacing: 0; }
.site-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.site-nav a {
  color: #dbe8f4; font-size: 14px; padding: 6px 11px; border-radius: 4px; white-space: nowrap;
}
.site-nav a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.site-nav a.on { background: rgba(243,156,18,.16); color: #ffd08a; }
.site-nav a.cta { background: var(--c-accent); color: #3a2400; font-weight: 600; }
.site-nav a.cta:hover { background: #ffb129; color: #3a2400; }

/* ---------- 闈㈠寘灞?---------- */
.crumb {
  max-width: var(--w); margin: 0 auto; padding: 14px 20px 0;
  font-size: 13px; color: var(--c-text-sub);
}
.crumb a { color: var(--c-text-sub); }
.crumb span.sep { margin: 0 7px; color: #b7c6d4; }

/* ---------- 涓讳綋 ---------- */
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px 60px; }

.hero {
  background: linear-gradient(135deg, #002f5d 0%, #01467f 55%, #0a5f96 100%);
  color: #fff; padding: 46px 0 42px; margin-bottom: 0;
}
.hero-inner { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.hero h1 { font-size: 34px; line-height: 1.35; font-weight: 700; letter-spacing: -.2px; }
.hero p.lead { margin-top: 14px; font-size: 17px; color: #cfe3f5; max-width: 860px; }
.hero .meta { margin-top: 18px; font-size: 13px; color: #a9c8e2; }

article { max-width: 860px; }
article.wide { max-width: none; }

h2 {
  font-size: 24px; line-height: 1.4; margin: 44px 0 16px;
  padding-left: 12px; border-left: 4px solid var(--c-accent); font-weight: 700;
}
h3 { font-size: 18px; margin: 28px 0 10px; font-weight: 600; }
h4 { font-size: 16px; margin: 20px 0 8px; font-weight: 600; color: #24425f; }
p { margin: 12px 0; }
ul, ol { margin: 12px 0 12px 24px; }
li { margin: 6px 0; }
strong { font-weight: 600; }
code { background: var(--c-bg-soft); padding: 1px 5px; border-radius: 3px; font-size: 14px; }

.lead-box {
  background: #f7fafd; border: 1px solid var(--c-border); border-left: 4px solid var(--c-primary);
  padding: 16px 20px; margin: 24px 0; border-radius: 6px; font-size: 15.5px; color: #24425f;
}
.note {
  background: #fff8ec; border: 1px solid #f6dcaa; border-left: 4px solid var(--c-accent);
  padding: 14px 18px; margin: 20px 0; border-radius: 6px; font-size: 14.5px;
}
.note b { color: #8a5b00; }

/* ---------- 琛ㄦ牸 ---------- */
.table-scroll { overflow-x: auto; margin: 18px 0; border: 1px solid var(--c-border); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; }
th, td { padding: 9px 12px; border-bottom: 1px solid #e6eef6; text-align: left; vertical-align: top; }
th { background: #eef4fa; color: #16324c; font-weight: 600; white-space: nowrap; }
tbody tr:hover { background: #fafcfe; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
caption { caption-side: top; text-align: left; font-size: 13px; color: var(--c-text-sub); padding: 8px 12px; }

/* ---------- 鍗＄墖 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 22px 0; }
.card {
  border: 1px solid var(--c-border); border-radius: 8px; padding: 18px 18px 16px;
  background: #fff; transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 6px 18px rgba(0,47,93,.09); transform: translateY(-2px); }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card h3 a { color: var(--c-primary); }
.card p { margin: 0; font-size: 14px; color: var(--c-text-sub); }
.card .tag { display: inline-block; font-size: 12px; color: #0a5f96; background: #e8f2fa; padding: 2px 8px; border-radius: 10px; margin-bottom: 8px; }

/* ---------- 目录 ---------- */
.toc {
  background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: 8px;
  padding: 16px 20px; margin: 28px 0; font-size: 15px;
}
.toc b { display: block; margin-bottom: 8px; font-size: 14px; color: #24425f; letter-spacing: .5px; }
.toc ol { margin: 0 0 0 20px; columns: 2; column-gap: 28px; }
.toc li { margin: 4px 0; }

/* ---------- FAQ ---------- */
.faq { margin: 18px 0; }
.faq details {
  border: 1px solid var(--c-border); border-radius: 6px; padding: 12px 16px; margin-bottom: 10px; background: #fff;
}
.faq details[open] { background: #fbfdff; }
.faq summary { cursor: pointer; font-weight: 600; color: #16324c; }
.faq p { margin: 10px 0 2px; font-size: 15px; color: #2c3e50; }

/* ---------- 相关阅读 ---------- */
.related { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--c-border); }
.related h2 { font-size: 18px; border-left: 3px solid var(--c-accent); margin: 0 0 12px; padding-left: 10px; }
.related ul { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 24px; }
.related li { margin: 0; font-size: 15px; }
.related li::before { content: "\2192"; color: var(--c-accent); margin-right: 8px; font-weight: 700; }

/* ---------- CTA ---------- */
.cta-box {
  margin: 40px 0 0; padding: 26px 28px; border-radius: 10px;
  background: linear-gradient(135deg, #eef5fc, #f8fbfe); border: 1px solid #cfe0f0;
}
.cta-box h2 { margin: 0 0 8px; border: 0; padding: 0; font-size: 20px; }
.cta-box p { margin: 0 0 16px; color: #3b556e; font-size: 15px; }
.btn {
  display: inline-block; background: var(--c-primary); color: #fff; padding: 10px 22px;
  border-radius: 6px; font-size: 15px; font-weight: 600;
}
.btn:hover { background: #01467f; text-decoration: none; }
.btn.ghost { background: #fff; color: var(--c-primary); border: 1px solid #a9c4dc; margin-left: 10px; }
.btn.ghost:hover { background: #f2f8fd; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #17324c; color: #9fb6ca; font-size: 13.5px; padding: 34px 0 26px; margin-top: 20px;
}
.site-footer-inner { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.site-footer .fnav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 16px; }
.site-footer .fnav a { color: #cfe0ee; font-size: 13.5px; }
.site-footer p { margin: 0; }
.site-footer .footer-line {
  font-size: 13.5px; line-height: 1.8; color: #9fb6ca; margin: 2px 0;
}
/* 备案号连同图标整体不换行：窄屏只允许在两条备案之间折行 */
.site-footer .footer-line a { color: #d7e6f2; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.site-footer .footer-line a:hover { color: #fff; }
.site-footer a { color: #cfe0ee; }
/* 公安备案图标：按原图 36x40 等比缩到 18x20，与文字基线对齐 */
.site-footer .beian-ico {
  width: 18px;
  height: 20px;
  margin-right: 4px;
  vertical-align: -4px;
  display: inline-block;
}

/* ICP 备案图标（SVG）：与公安备案图标同尺寸对齐 */
.site-footer .beian-icp-ico {
  width: 18px;
  height: 20px;
  margin-right: 4px;
  vertical-align: -4px;
  display: inline-block;
}

/* ---------- 品牌页头部 ---------- */
.brand-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.brand-badge {
  width: 64px; height: 64px; border-radius: 8px; background: #fff; border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: var(--c-primary);
}

/* ---------- 示意图 ---------- */
figure.diagram {
  margin: 26px 0; padding: 14px 16px 10px; background: #fbfdff;
  border: 1px solid var(--c-border); border-radius: 8px;
}
figure.diagram svg, figure.diagram img { width: 100%; height: auto; display: block; }
figure.diagram figcaption {
  margin-top: 8px; font-size: 13px; color: var(--c-text-sub); line-height: 1.7;
}

/* ---------- 瀹樻柟鑱旂郴 ---------- */
.contact-box {
  margin: 22px 0; padding: 18px 22px 16px; border: 1px solid var(--c-border);
  border-radius: 8px; background: #f8fbfe;
}
.contact-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.contact-head .brand-badge {
  width: 44px; height: 44px; font-size: 15px; letter-spacing: .5px;
  background: var(--c-primary); color: #fff; border: 0; border-radius: 6px;
}
.contact-head strong { font-size: 16px; color: var(--c-primary); }
table.contact-table { font-size: 15px; background: transparent; }
table.contact-table th {
  width: 110px; background: transparent; color: var(--c-text-sub);
  font-weight: 400; padding: 6px 12px 6px 0; border-bottom: 1px solid #e6eef6; white-space: nowrap;
}
table.contact-table td { padding: 6px 0; border-bottom: 1px solid #e6eef6; }
.contact-note { margin: 10px 0 0; font-size: 13px; color: var(--c-text-sub); line-height: 1.7; }

/* ---------- 鍝嶅簲寮?---------- */
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .hero { padding: 32px 0; }
  .hero h1 { font-size: 25px; }
  .hero p.lead { font-size: 15.5px; }
  h2 { font-size: 20px; margin-top: 34px; }
  .toc ol { columns: 1; }
  .site-header-inner { height: auto; flex-wrap: wrap; padding: 8px 16px; gap: 6px; }
  .site-nav { display: flex; width: 100%; margin-left: 0; overflow-x: auto; padding-bottom: 2px; }
  .site-nav a { font-size: 13px; padding: 5px 9px; }
  .site-logo { font-size: 16px; }
  .site-footer { padding: 26px 0; }
}
