/* ==========================================================
   ASME SA-204/SA-204M 钼合金压力容器钢板专题站
   设计风格：Astryx 设计系统 · Butter 主题（暖奶油/黄油金）
   组件：AppShell / Card / Table / List / Grid / Badge / 线性图标
   颜色、间距、圆角均采用语义化设计令牌（semantic tokens）。
   ========================================================== */

:root {
  /* 品牌色 Brand tokens */
  --brand: #FF6100;          /* 主色 Primary */
  --brand-dark: #D94F00;
  --brand-2: #007175;        /* 辅助色 Secondary */
  --accent: #f7d260;         /* 点缀 Accent（黄油金） */

  /* Butter 暖中性色 Warm neutral tokens */
  --text: #33271A;
  --text-muted: #6E5B43;
  --text-inverse: #ffffff;
  --bg: #FBF4E8;
  --surface: #FFFDF8;
  --surface-2: #F6E8CF;
  --border: #EAD9BC;
  --border-strong: #D9C29A;

  /* 圆角与间距 Radius & spacing */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;

  --shadow-sm: 0 1px 2px rgba(20, 30, 40, .08);
  --shadow-md: 0 6px 18px rgba(20, 30, 40, .10);
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--brand); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-2); }

/* ---------- 顶部导航 Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #2B2117;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-2);
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: var(--space-2);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-mark {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 15px;
}
.brand-text strong { display: block; font-size: 16px; letter-spacing: .5px; }
.brand-text span { font-size: 12px; color: #b8c2cb; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); color: #fff; padding: 8px 12px; cursor: pointer;
}
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; }
.main-nav a {
  display: block; color: #e6ebef; padding: 10px 13px; font-size: 14.5px;
  border-radius: var(--radius-sm);
}
.main-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.main-nav a.active { color: var(--accent); background: rgba(255,97,0,.16); }

/* ---------- 横幅 Banner（高度 360px） ---------- */
.banner {
  height: 360px; position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.banner img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,22,28,.82) 0%, rgba(15,22,28,.55) 55%, rgba(15,22,28,.25) 100%);
}
.banner-content { position: relative; z-index: 1; color: #fff; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-2); width: 100%; }
.banner-content .eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.banner-content h1 { font-size: clamp(24px, 4vw, 36px); line-height: 1.3; margin-bottom: 10px; }
.banner-content p { max-width: 640px; color: #dde4e9; font-size: 15px; }

/* ---------- 面包屑 ---------- */
.breadcrumb { padding: 14px 0 0; font-size: 13.5px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- 页面主体 ---------- */
.page { padding: var(--space-4) 0 var(--space-5); }
.section { margin-bottom: var(--space-5); }
.section-head { margin-bottom: var(--space-3); }
.section-head h2 {
  font-size: 24px; margin-bottom: 8px; color: var(--text);
  border-left: 4px solid var(--brand); padding-left: 12px;
}
.section-head p { color: var(--text-muted); }

.lead { font-size: 17px; color: var(--text); }
.muted { color: var(--text-muted); }
.en { color: var(--text-muted); font-size: 13px; }

/* 卡片栅格 */
.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 14.5px; }
.card .icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--brand-2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}

/* 数据卡片 */
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3); text-align: center; }
.stat-card .num { font-size: 26px; font-weight: 700; color: var(--brand-2); }
.stat-card .label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--bg); }
caption { text-align: left; padding: 12px 14px; font-weight: 600; background: var(--surface); border-bottom: 1px solid var(--border); }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: center; }
th { background: var(--surface-2); font-weight: 600; white-space: nowrap; }
td.l, th.l { text-align: left; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbfc; }
.note { font-size: 13px; color: var(--text-muted); margin-top: 10px; }

/* 提示框 */
.callout {
  border-left: 4px solid var(--brand-2); background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: var(--space-2) var(--space-3);
  margin: var(--space-3) 0; font-size: 14.5px;
}
.callout.warn { border-left-color: var(--brand); }

/* 图片展厅 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.gallery figure { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.gallery img { height: 200px; width: 100%; object-fit: cover; }
.gallery figcaption { padding: 10px 12px; font-size: 13.5px; color: var(--text-muted); }

/* 关键词区 Keywords */
.keywords {
  margin-top: var(--space-5); padding-top: var(--space-3);
  border-top: 1px dashed var(--border-strong);
}
.keywords h3 { font-size: 15px; margin-bottom: 12px; }
.keyword-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.keyword-list a {
  display: inline-block; padding: 7px 14px; border: 1px solid var(--border-strong);
  border-radius: 999px; font-size: 13.5px; background: var(--surface);
}
.keyword-list a:hover { border-color: var(--brand); color: var(--brand); background: #fff; }

/* 企业列表 */
.company-item { display: flex; gap: var(--space-2); padding: var(--space-2) 0; border-bottom: 1px solid var(--border); }
.company-item:last-child { border-bottom: none; }
.company-item .rank {
  flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--brand-2); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.company-item h3 { font-size: 16px; }
.company-item .region { font-size: 13px; color: var(--brand-2); margin-left: 8px; }
.company-item p { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* 页脚 Footer */
.site-footer { background: #2B2117; color: #D8C9AD; margin-top: var(--space-5); }
.footer-top { padding: var(--space-4) 0; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-3); }
.footer-top h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.footer-top ul { list-style: none; }
.footer-top li { margin-bottom: 8px; font-size: 14px; }
.footer-top a { color: #c7d0d7; }
.footer-top a:hover { color: var(--accent); }
.footer-contact { font-size: 14.5px; line-height: 1.9; }
.footer-contact strong { color: #fff; }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 13.5px; color: #93a1ab;
}
.footer-contact-line {
  background: rgba(255,97,0,.12); border: 1px solid rgba(255,97,0,.35);
  border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 12px; color: #ffe9d9; font-size: 14.5px;
}
.footer-contact-line strong { color: #fff; }

/* 图标线性 */
.icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #141a20; border-top: 1px solid rgba(255,255,255,.1);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: var(--space-2); }
  .banner { height: 360px; }
  .grid-2, .grid-3, .grid-4, .gallery { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  body { font-size: 15px; }
}
