/* =========================================================
   站A · 轻钢出口情报站 全局样式
   主题：light steel（钢蓝主色 + 浅灰底 + 暖橙CTA）
   浅色主题，响应式，符合 a11y 对比度
   ========================================================= */

:root {
  --steel-900: #0f2d44;
  --steel-700: #1f4e79;
  --steel-600: #2c5f8a;
  --steel-500: #3b78a8;
  --steel-100: #e7eef5;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --paper: #ffffff;
  --bg: #f6f8fb;
  --bg-2: #eef3f8;
  --line: #d8e0e8;
  --accent: #c8761a;      /* 暖橙 CTA */
  --accent-dark: #a35f12;
  --ok: #2e7d4f;
  --warn: #b5791a;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(15, 45, 68, .08);
  --shadow-lg: 0 6px 24px rgba(15, 45, 68, .12);
  --maxw: 1120px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  /* 中文排版：严格避头尾，长链接不撑破容器 */
  line-break: strict;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--steel-600); text-decoration: none; }
a:hover { color: var(--steel-700); text-decoration: underline; }

/* ---------- 中文排版：避免「只剩一两个字」的孤字断行 ---------- */
/* .nb：把末尾短单元粘成一个整体，使其整体换行，杜绝「准。」这类 1–2 字孤行 */
.nb { white-space: nowrap; }
/* 标题用均衡分行：多行标题字数更平均 */
h1, h2, h3, .section-title, .mini-title, .pack-hero h1, .pack-hero-s h1, .country-sec > h2 {
  text-wrap: balance;
}
/* 正文优先「漂亮换行」：浏览器会自动回填末行、避免孤字（不支持则优雅降级） */
p, li, .section-sub, .note, .quiz-note, .src-note,
.article p, .news-item p, .box p, .block p, .block ul.sub > li {
  text-wrap: pretty;
}

/* ---------- 布局 ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px; max-width: var(--maxw); margin: 0 auto;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--steel-900); }
.brand .logo {
  width: 30px; height: 30px; border-radius: 7px;
  background: linear-gradient(135deg, var(--steel-600), var(--steel-900));
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px;
}
.brand small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-soft); }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; color: var(--ink-soft); font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { background: var(--steel-100); color: var(--steel-700); text-decoration: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 9px;
  font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: .15s; font-size: 15px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.btn-steel { background: var(--steel-700); color: #fff; }
.btn-steel:hover { background: var(--steel-900); color: #fff; text-decoration: none; }
.btn-ghost { background: #fff; color: var(--steel-700); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--steel-500); text-decoration: none; }
.btn-sm { padding: 7px 14px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--steel-900), var(--steel-600));
  color: #fff; padding: 54px 0 46px;
}
.hero h1 { font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 14px; line-height: 1.25; }
.hero p { font-size: 17px; color: #d6e4f0; max-width: 720px; margin: 0 0 22px; }
.hero .tag {
  display: inline-block; background: rgba(255,255,255,.12); color: #fff;
  padding: 5px 12px; border-radius: 20px; font-size: 13px; margin-bottom: 16px;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 区块 ---------- */
section { padding: 40px 0; }
.section-title { font-size: 24px; color: var(--steel-900); margin: 0 0 6px; }
.section-sub { color: var(--ink-soft); margin: 0 0 24px; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; color: var(--steel-700); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- 情报三栏 ---------- */
.intel-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .intel-cols { grid-template-columns: 1fr; } }
.intel-col { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.intel-col h3 { margin-top: 0; color: var(--steel-700); display: flex; align-items: center; gap: 8px; }
.intel-col .ico { width: 26px; height: 26px; border-radius: 6px; background: var(--steel-100); color: var(--steel-700); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.article { border-bottom: 1px dashed var(--line); padding: 12px 0; }
.article:last-child { border-bottom: none; }
.article h4 { margin: 0 0 4px; font-size: 16px; }
.article h4 a { color: var(--ink); }
.article p { margin: 4px 0 6px; color: var(--ink-soft); font-size: 14px; }
.article .meta { font-size: 12px; color: #8a96a3; }
.article .meta a { color: var(--steel-600); }

/* ---------- 合规包「以美国为例」示例块（与完整包同款样式） ---------- */
.sample-pack .block { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.sample-pack .block h4 { margin: 0 0 6px; color: var(--steel-700); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.sample-pack .block h4 .n { background: var(--steel-600); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.sample-pack .block p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.sample-pack .block ul.sub { margin: 8px 0 0; padding-left: 4px; list-style: none; }
.sample-pack .block ul.sub > li { position: relative; padding-left: 16px; margin: 0 0 6px; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.sample-pack .block ul.sub > li:before { content: "▸"; position: absolute; left: 0; top: 0; color: var(--steel-600); }
.sample-pack .block ul.sub > li b { color: var(--steel-900); }
.sample-pack .block .src { display: block; font-size: 12px; color: #8a96a3; margin-top: 8px; }
.sample-pack .block .src a { color: var(--steel-600); }
.article .meta a, .news-item .meta a { color: var(--steel-600); font-weight: 600; }
.article .meta a:hover, .news-item .meta a:hover { text-decoration: underline; }
.article .cta-inline { font-size: 13px; color: var(--accent); font-weight: 600; }

/* ---------- 数据条 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 4px; }
@media (max-width: 860px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--bg-2); border-radius: 10px; padding: 16px; text-align: center; }
.stat b { display: block; font-size: 22px; color: var(--steel-700); }
.stat span { font-size: 13px; color: var(--ink-soft); }

/* ---------- 产业版图 ---------- */
.cluster-map { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.cluster-map svg { width: 100%; height: auto; display: block; }
.cluster-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.cluster-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: middle; }

/* ---------- 合规包页 ---------- */
.pack-hero { background: linear-gradient(160deg, #103a2c, #1c6b4a); color: #fff; padding: 46px 0; }
.pack-hero h1 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 36px); }
.pack-price { font-size: 38px; font-weight: 800; }
.pack-price small { font-size: 16px; font-weight: 400; opacity: .8; }
.limited-banner { display:inline-block; background:var(--accent); color:#fff; font-size:14px; font-weight:700; padding:7px 14px; border-radius:999px; margin-bottom:14px; box-shadow:0 2px 10px rgba(200,118,26,.35); }
.free-tag { display:inline-block; background:#eaf7ef; color:var(--ok); border:1px solid #bfe6cb; font-size:14px; font-weight:700; padding:3px 12px; border-radius:999px; vertical-align:middle; }
.pack-hero .free-tag { background:rgba(255,255,255,.16); color:#fff; border-color:rgba(255,255,255,.4); }
.price-now { font-size:32px; font-weight:800; vertical-align:middle; margin:0 8px; }
.pack-hero .price-now { color:#fff; }
.price-was { font-size:15px; color:#9aa7b0; text-decoration:line-through; vertical-align:middle; }
.pack-hero .price-was { color:#cfe0d6; }
.buy-price { margin:6px 0 4px; }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 14px; }
.approval-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.approval-card { border: 1px solid var(--line); border-left: 3px solid var(--steel-600); border-radius: 10px; padding: 14px 16px; background: var(--paper); box-shadow: var(--shadow); }
.approval-card h4 { margin: 0 0 6px; color: var(--steel-700); font-size: 15px; }
.approval-card .badge { font-size: 12px; background: var(--steel-100); color: var(--steel-700); padding: 2px 8px; border-radius: 20px; }
.approval-card p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.7; }
/* 报建规划：目的国客户责任，视觉上降级（轻边框、浅底） */
.approval-card.approval-soft { border-left-color: #c9d3dc; background: #f7fafc; }
.approval-card.approval-soft p { font-size: 12.5px; color: #5f6b76; }
/* 建筑规范与强制认证（核心重块）：突出强调 */
.approval-card.buildspec-core { border-left-color: var(--accent); }
.approval-card.buildspec-core h4 { color: #b5651d; }
.country-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--paper); }
.country-card h4 { margin: 0 0 6px; color: var(--steel-700); }
.country-card .badge { font-size: 12px; background: var(--steel-100); color: var(--steel-700); padding: 2px 8px; border-radius: 20px; }
.disclaimer {
  background: #fff8ec; border: 1px solid #f0d8a8; color: #7a5a16;
  border-radius: 10px; padding: 12px 16px; font-size: 13px; margin: 14px 0;
}

/* ---------- 自测问卷 ---------- */
.quiz { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); max-width: 720px; }
.quiz label { display: block; font-weight: 600; margin: 14px 0 6px; }
.quiz select, .quiz input[type=text] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px;
}
.quiz .q { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.quiz .q:last-child { border-bottom: none; }
.quiz .options { display: flex; gap: 18px; margin-top: 6px; }
.quiz .options label { font-weight: 400; margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.quiz-result { margin-top: 16px; padding: 16px; border-radius: 10px; background: var(--bg-2); display: none; }
.quiz-result.show { display: block; }

/* ---------- 表单 ---------- */
.form-row { margin: 14px 0; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-family: inherit;
}
.form-row textarea { min-height: 110px; }
.note { font-size: 13px; color: var(--ink-soft); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--steel-900); color: #cdd9e4; padding: 34px 0 26px; margin-top: 20px; }
.site-footer a { color: #bcd2e6; }
.site-footer .cols { display: grid; grid-template-columns: 2.1fr 1fr 1fr 1.15fr; gap: 24px; }
.foot-qr { display: block; width: 104px; height: 104px; border-radius: 8px; background: #fff; padding: 5px; }
.foot-hint { margin: 8px 0 0; font-size: 13px; color: #9fb2c4; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin: 6px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 22px; padding-top: 14px; font-size: 13px; color: #9fb2c4; }

/* ---------- 提示条 ---------- */
.notice { background: #eef6ff; border: 1px solid #cfe0f5; color: #1f4e79; border-radius: 10px; padding: 12px 16px; font-size: 14px; }
.todo-flag { background: #fff3e0; border: 1px solid #ffcc80; color: #8a5300; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin: 10px 0; }

/* ---------- 面包屑 ---------- */
.crumbs { font-size: 13px; color: var(--ink-soft); margin: 14px 0 0; }
.crumbs a { color: var(--steel-600); }

/* ---------- 焦点可见（a11y） ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--steel-500); outline-offset: 2px;
}

/* 跳转链接（屏幕阅读器） */
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 10px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }

/* ---------- 首页：海外动向佐证（mini） ---------- */
.mini-title { font-size: 17px; color: var(--steel-700); margin: 22px 0 8px; }
.news-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.news-mini li { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--steel-500); border-radius: 8px; padding: 10px 14px; font-size: 14px; color: var(--ink-soft); }
.news-mini .src { display: block; font-size: 12px; color: #8a96a3; margin-top: 3px; }

/* ---------- 情报页：各国合规政策最新动向 ---------- */
.news-block { margin-top: 30px; }
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 860px) { .news-list { grid-template-columns: 1fr; } }
.news-item { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; box-shadow: var(--shadow); }
.news-item h4 { margin: 6px 0 4px; font-size: 15px; }
.news-item h4 a { color: var(--ink); }
.news-item p { margin: 4px 0 6px; color: var(--ink-soft); font-size: 13px; }
.news-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.news-date { background: var(--steel-100); color: var(--steel-700); padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.news-country { color: var(--accent); font-weight: 600; }
.crit { display:inline-block; font-size:11px; color:#b3261e; background:#fdecea; border:1px solid #f5c2bd; border-radius:4px; padding:0 5px; margin-left:6px; font-weight:600; }
.quiz-note { font-size:12px; color:#8a96a3; margin:12px 0 0; line-height:1.5; }
.quiz-list { margin:8px 0 0; padding-left:18px; color:var(--ink-soft); font-size:14px; line-height:1.7; }

/* ---------- 首页：出海两件事（小标题框） ---------- */
.box-row { margin-top: 6px; }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow); }
.box-tag { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--steel-600); padding: 3px 11px; border-radius: 999px; margin-bottom: 10px; letter-spacing: .04em; }
.box h3 { margin: 0 0 8px; font-size: 18px; color: var(--steel-900); }
.box p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.box p a { font-weight: 600; white-space: nowrap; margin-left: 2px; }
.src-note { font-size: 12px; color: #8a96a3; margin: 12px 0 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 16px; }

/* =========================================================
   响应式：手机 / 平板适配
   ========================================================= */

/* 平板（≤900px）：页脚三栏收窄比例 */
@media (max-width: 900px) {
  .site-footer .cols { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 18px; }
}

/* 手机（≤720px） */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }

  /* 导航：品牌一行，菜单一行可横向滑动，不再挤成多行 */
  .nav { padding: 10px 16px; gap: 8px; }
  .brand { font-size: 15px; }
  .brand .logo { width: 26px; height: 26px; font-size: 12px; }
  .nav-links {
    width: 100%; flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; padding: 7px 12px; font-size: 14px; }

  /* 版式节奏收紧 */
  .hero { padding: 36px 0 32px; }
  .hero p { font-size: 15.5px; }
  .hero .tag { font-size: 12px; }
  section { padding: 28px 0; }
  .section-title { font-size: 20px; }
  .card { padding: 18px; }
  .intel-col { padding: 16px; }
  .box { padding: 18px; }
  .quiz { padding: 18px; }
  .quiz .options { flex-wrap: wrap; gap: 10px 18px; }

  .pack-hero { padding: 34px 0; }
  .pack-price { font-size: 32px; }
  .price-now { font-size: 26px; }
  .approval-grid { grid-template-columns: 1fr; }

  .site-footer { padding: 26px 0 20px; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 20px; }

  /* 长表格（后台页）横向滚动，不撑破页面 */
  .tbl { display: block; overflow-x: auto; white-space: nowrap; }
}

/* 小屏手机（≤480px） */
@media (max-width: 480px) {
  .wrap { padding: 0 14px; }

  .hero { padding: 30px 0 26px; }
  .hero h1 { font-size: 23px; }
  .hero .cta-row { flex-direction: column; align-items: stretch; }
  .hero .cta-row .btn { width: 100%; text-align: center; }

  .btn { padding: 10px 18px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 13px 10px; }
  .stat b { font-size: 19px; }
  .stat span { font-size: 12px; }

  /* 领取后的两个入口按钮：竖排占满，方便拇指点击 */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; text-align: center; box-sizing: border-box; }

  .block { padding: 13px 14px; }
  .block ul.sub > li { font-size: 13.5px; }
  .news-item, .news-mini li { padding: 12px 14px; }
  .footer-bottom { font-size: 12px; }
}

/* ============ 合规包不可去除水印（网页端覆盖层） ============
   平铺中英文两行：中国轻钢房屋出海情报站 / lightsteelhouseoverseas.com
   固定覆盖、不可选中、不拦截点击；打印时转为 absolute 仍保留。 */
.wm-overlay {
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none; user-select: none; -webkit-user-select: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='210'%3E%3Cg transform='rotate(-28 180 105)'%3E%3Ctext x='8' y='100' font-family='Microsoft YaHei, sans-serif' font-size='17' fill='%23999' fill-opacity='0.38'%3E中国轻钢房屋出海情报站%3C/text%3E%3Ctext x='8' y='122' font-family='Arial, sans-serif' font-size='12' fill='%23999' fill-opacity='0.38'%3Elightsteelhouseoverseas.com%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 360px 210px; background-attachment: fixed;
}
@media print { .wm-overlay { position: absolute; } }

/* ---------- 厂家库规模数据条（5 个产区并排一行，避免出现孤行） ---------- */
.lib-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 8px 0 4px; }
.lib-stats .stat { padding: 16px 10px; }
@media (max-width: 860px) {
  .lib-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .lib-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lib-stats .stat { padding: 13px 10px; }
  .lib-stats .stat b { font-size: 19px; }
  .lib-stats .stat span { font-size: 12px; }
  /* 窄屏 2 列时第 5 个占满整行，不留下单个孤行 */
  .lib-stats .stat:last-child { grid-column: 1 / -1; }
}
