/* ============================================
   安全熊 Safety Bear · 公共样式
   品牌三色:深海军蓝 + 朱红 + 琥珀黄
   ============================================ */

:root {
  /* 品牌三色 - 来自 Logo */
  --navy: #0A2540;
  --navy-2: #0F3460;
  --navy-3: #1E5BA8;
  --red: #DC2626;
  --red-soft: #EF4444;
  --amber: #F59E0B;
  --amber-soft: #FCD34D;

  /* 中性色 */
  --white: #FFFFFF;
  --bg: #FAFAF7;
  --bg-2: #F4F2EC;
  --ink: #0A2540;
  --ink-soft: #2A3F5C;
  --ink-mute: #6B7B8E;
  --line: #E5E0D5;
  --line-soft: #EFEBE0;
  --ok: #16A34A;

  /* 字体 */
  --font-cn: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-cn-serif: 'Noto Serif SC', 'DM Serif Display', serif;
  --font-en: 'Outfit', var(--font-cn);
  --font-mono: 'JetBrains Mono', monospace;

  /* 尺寸 */
  --fs-h1: clamp(32px, 4.5vw, 52px);
  --fs-h2: clamp(24px, 2.8vw, 32px);
  --fs-h3: 19px;
  --fs-body: 15px;
  --fs-small: 13.5px;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-1: 0 1px 2px rgba(10,37,64,.05), 0 2px 8px rgba(10,37,64,.04);
  --shadow-2: 0 4px 16px -4px rgba(10,37,64,.10), 0 2px 6px rgba(10,37,64,.04);
  --shadow-3: 0 16px 48px -8px rgba(10,37,64,.18), 0 4px 12px rgba(10,37,64,.05);
  --shadow-red: 0 8px 24px -6px rgba(220,38,38,.35);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-en);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .2s; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.font-serif { font-family: var(--font-cn-serif); }
.font-mono { font-family: var(--font-mono); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ====== 顶部联系条 ====== */
.topbar-info { background: var(--navy); color: rgba(255,255,255,.7); font-size: 12.5px; padding: 9px 0; }
.topbar-info-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.topbar-info .left, .topbar-info .right { display: flex; gap: 22px; align-items: center; }
.topbar-info a { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 5px; }
.topbar-info a:hover { color: var(--amber); }
.topbar-info .ico { font-size: 13px; opacity: 0.7; }

/* ====== 主导航 ====== */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(250,250,247,.92); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line-soft); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; position: relative; flex-shrink: 0; }
.brand-mark .ring { position: absolute; inset: 0; background: var(--red); border-radius: 50%; }
.brand-mark .ring::after { content: ""; position: absolute; inset: 3px; background: var(--navy); border-radius: 50%; }
.brand-mark .star { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; background: var(--amber); border-radius: 50%; }
.brand-mark .face { position: absolute; inset: 9px 9px 7px; background: var(--white); border-radius: 50% 50% 45% 45%; }
.brand-mark .face::before, .brand-mark .face::after { content: ""; position: absolute; top: 4px; width: 2.5px; height: 2.5px; background: var(--navy); border-radius: 50%; }
.brand-mark .face::before { left: 3.5px; } .brand-mark .face::after { right: 3.5px; }
.brand-mark .face .nose { position: absolute; top: 6.5px; left: 50%; transform: translateX(-50%); width: 3px; height: 2.5px; background: var(--navy); border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-cn { font-family: var(--font-cn-serif); font-size: 16px; font-weight: 600; color: var(--navy); }
.brand-en { font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.15em; text-transform: uppercase; margin-top: 2px; font-weight: 500; }

.nav-list { display: flex; gap: 28px; }
.nav-list a { color: var(--ink-soft); font-size: 14px; font-weight: 500; padding: 6px 0; position: relative; transition: color .2s; }
.nav-list a:hover, .nav-list a.active { color: var(--navy); }
.nav-list a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -26px; height: 2px; background: var(--red); }

.nav-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 8px; font-size: 13.5px; font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: all .2s; text-decoration: none; font-family: inherit; white-space: nowrap; }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-2); }
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); box-shadow: var(--shadow-red); }
.btn-red:hover { background: #B91C1C; }
.btn-line { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-line:hover { border-color: var(--navy); background: var(--white); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--navy); }
.btn-amber { background: var(--amber); color: var(--navy); border-color: var(--amber); }
.btn-amber:hover { background: #D97706; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-lg { padding: 13px 28px; font-size: 14.5px; }

/* 移动端菜单按钮 */
.menu-toggle { display: none; width: 40px; height: 40px; background: var(--bg-2); border-radius: 8px; align-items: center; justify-content: center; color: var(--navy); }
.menu-toggle svg { width: 20px; height: 20px; }

/* ====== Banner(各页面通用) ====== */
.banner { padding: 80px 0 60px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); position: relative; overflow: hidden; }
.banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 800px 400px at 80% 30%, rgba(245,158,11,.06), transparent), radial-gradient(ellipse 600px 300px at 20% 80%, rgba(220,38,38,.04), transparent); pointer-events: none; }
.banner-inner { position: relative; z-index: 1; max-width: 760px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-mute); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { color: var(--line); }
.breadcrumb .current { color: var(--navy); font-weight: 500; }
.banner-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--white); border: 1px solid var(--line-soft); border-radius: 999px; font-size: 12px; color: var(--navy); margin-bottom: 22px; font-weight: 600; letter-spacing: 0.05em; }
.banner-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(220,38,38,.18); }
.banner h1 { font-family: var(--font-cn-serif); font-size: var(--fs-h1); line-height: 1.18; letter-spacing: -0.025em; font-weight: 600; color: var(--navy); margin-bottom: 22px; }
.banner h1 em { font-style: normal; color: var(--red); }
.banner h1 .amber { color: var(--amber); }
.banner p { font-size: 16.5px; color: var(--ink-soft); line-height: 1.75; max-width: 60ch; margin-bottom: 32px; }
.banner-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ====== Section 通用 ====== */
section { padding: 80px 0; }
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-eyebrow { font-size: 12px; color: var(--red); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.section-title { font-family: var(--font-cn-serif); font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.015em; color: var(--navy); line-height: 1.3; }
.section-title em { font-style: normal; color: var(--red); }
.section-desc { font-size: 15px; color: var(--ink-mute); line-height: 1.7; margin-top: 14px; }

/* ====== 卡片 ====== */
.card { padding: 32px 28px; background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); transition: all .3s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line); }
.card-icon { width: 48px; height: 48px; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--red); margin-bottom: 22px; }
.card-icon.amber { color: var(--amber); }
.card h3 { font-family: var(--font-cn-serif); font-size: 19px; font-weight: 500; color: var(--navy); margin-bottom: 10px; letter-spacing: -0.005em; }
.card p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.card-tags span { font-size: 11.5px; padding: 3px 9px; background: var(--bg-2); color: var(--ink-soft); border-radius: 4px; }
.card-link { font-size: 13px; color: var(--red); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; margin-top: 18px; }
.card-link:hover { color: #B91C1C; gap: 6px; }

/* ====== 网格 ====== */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ====== 数据条(深色) ====== */
.data-band { padding: 64px 0; background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.data-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 600px 200px at 50% 0%, rgba(245,158,11,.12), transparent); }
.data-band > * { position: relative; z-index: 1; }
.data-band-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 48px; align-items: center; }
.data-quote { font-family: var(--font-cn-serif); font-size: 26px; line-height: 1.45; font-weight: 500; color: var(--white); letter-spacing: -0.01em; }
.data-quote em { color: var(--amber); font-style: normal; }
.data-meta { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.55); }
.data-block { text-align: center; padding: 0 8px; }
.data-num { font-family: var(--font-en); font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.data-num.amber { color: var(--amber); }
.data-num.red { color: var(--red-soft); }
.data-num small { font-size: 18px; opacity: 0.8; font-weight: 500; margin-left: 2px; }
.data-lbl { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 10px; line-height: 1.4; }
.data-source { font-family: var(--font-mono); font-size: 10.5px; color: rgba(255,255,255,.4); margin-top: 6px; }

/* ====== 数字统计(4 列) ====== */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.stat-item .num { font-family: var(--font-en); font-size: 36px; font-weight: 600; color: var(--navy); letter-spacing: -0.02em; line-height: 1; }
.stat-item .num em { font-style: normal; color: var(--amber); }
.stat-item .label { font-size: 13px; color: var(--ink-mute); margin-top: 6px; line-height: 1.5; }

/* ====== 列表卡片(案例 / 新闻) ====== */
.list-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: all .3s; display: flex; flex-direction: column; }
.list-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.list-card-cover { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.list-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.list-card-cover .tag { position: absolute; top: 12px; left: 12px; font-size: 11px; padding: 4px 10px; background: rgba(255,255,255,.92); color: var(--navy); border-radius: 4px; font-family: var(--font-mono); letter-spacing: 0.05em; font-weight: 600; }
.list-card-cover .tag.red { background: var(--red); color: var(--white); }
.list-card-cover .tag.amber { background: var(--amber); color: var(--navy); }
.list-card-body { padding: 22px 24px; }
.list-card-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; font-size: 12.5px; color: var(--ink-mute); }
.list-card-meta .src { color: var(--red); font-weight: 500; }
.list-card h4 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; line-height: 1.5; }
.list-card p { font-size: 13.5px; color: var(--ink-mute); line-height: 1.65; }
.list-card-foot { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-mute); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

/* ====== CTA Section ====== */
.cta-section { padding: 96px 0; background: var(--bg); text-align: center; position: relative; }
.cta-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 600px 350px at 50% 50%, rgba(245,158,11,.08), transparent); }
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2 { font-family: var(--font-cn-serif); font-size: 36px; font-weight: 600; color: var(--navy); margin-bottom: 16px; letter-spacing: -0.015em; }
.cta-section h2 em { color: var(--red); font-style: normal; }
.cta-section p { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 32px; max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ====== Footer ====== */
.footer { padding: 64px 0 28px; background: var(--navy); color: rgba(255,255,255,.65); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 24px; }
.footer-brand .tagline { font-family: var(--font-cn-serif); font-size: 18px; color: var(--white); line-height: 1.5; margin-bottom: 12px; font-weight: 500; }
.footer-brand .tagline em { color: var(--amber); font-style: normal; }
.footer-brand p { font-size: 12.5px; color: rgba(255,255,255,.5); line-height: 1.6; }
.footer-col h6 { font-size: 12px; font-weight: 600; color: var(--white); margin-bottom: 16px; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.6); font-size: 13px; }
.footer-col a:hover { color: var(--amber); }
.footer-col .contact-line { display: flex; gap: 6px; align-items: flex-start; line-height: 1.5; }
.footer-col .contact-line .ico { flex-shrink: 0; margin-top: 1px; opacity: 0.7; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; }
.footer-bottom .legal { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; }

/* ====== 工具类 ====== */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }

/* ====== 内页 - 文章排版 ====== */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-family: var(--font-cn-serif); font-size: 26px; font-weight: 500; color: var(--navy); margin: 40px 0 18px; letter-spacing: -0.01em; }
.article h2:first-child { margin-top: 0; }
.article p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.85; margin-bottom: 18px; }
.article ul { list-style: none; margin: 18px 0; padding: 0; }
.article li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-soft); line-height: 1.8; margin-bottom: 12px; }
.article li::before { content: ""; position: absolute; left: 0; top: 12px; width: 12px; height: 1.5px; background: var(--red); }
.article blockquote { border-left: 3px solid var(--amber); background: var(--bg-2); padding: 20px 24px; margin: 24px 0; border-radius: 0 8px 8px 0; font-family: var(--font-cn-serif); font-size: 17px; color: var(--ink); line-height: 1.65; }

.aside-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.aside-card h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: 0.05em; }
.kv-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13px; }
.kv-row:last-child { border-bottom: none; }
.kv-row .k { color: var(--ink-mute); }
.kv-row .v { color: var(--ink); font-weight: 500; font-family: var(--font-mono); font-size: 12.5px; }

/* ====== 表单 ====== */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; color: var(--ink); font-weight: 500; margin-bottom: 6px; }
.form-input, .form-textarea, .form-select { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-family: inherit; background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,37,64,.08); }
.form-textarea { resize: vertical; min-height: 100px; }

/* ====== 时间线 ====== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--red), var(--amber)); }
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item::before { content: ""; position: absolute; left: -28px; top: 4px; width: 14px; height: 14px; background: var(--white); border: 2px solid var(--red); border-radius: 50%; }
.timeline-date { font-family: var(--font-mono); font-size: 12px; color: var(--red); font-weight: 600; margin-bottom: 4px; }
.timeline-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.timeline-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

/* ====== 响应式 ====== */
@media (max-width: 1024px) {
  .nav-list { gap: 18px; }
  .nav-list a { font-size: 13px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .data-band-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .data-quote { grid-column: 1 / -1; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .topbar-info { font-size: 11.5px; padding: 7px 0; }
  .topbar-info .left, .topbar-info .right { gap: 14px; }
  .topbar-info .right { display: none; }
  .nav-list { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-actions .btn-ghost { display: none; }
  .navbar-inner { height: 64px; }
  .brand-cn { font-size: 15px; }
  .brand-en { font-size: 9.5px; }
  .brand-mark { width: 36px; height: 36px; }
  section { padding: 56px 0; }
  .banner { padding: 56px 0 40px; }
  .banner h1 { font-size: 30px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .data-band-grid { grid-template-columns: 1fr; gap: 24px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-item .num { font-size: 28px; }
  .cta-section h2 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }

  /* 移动端导航 */
  .nav-list.mobile-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 20px; border-top: 1px solid var(--line-soft); box-shadow: var(--shadow-2); gap: 4px; }
  .nav-list.mobile-open a { padding: 12px 16px; border-radius: 8px; }
  .nav-list.mobile-open a:hover, .nav-list.mobile-open a.active { background: var(--bg-2); }
  .nav-list.mobile-open a.active::after { display: none; }
}
