/* ==========================================================================
   废料价官网 · 站点公共布局（site.css）
   用途：official/index.html 以外的子页面（关于我们/商务合作/隐私/协议）复用，
   保证导航、页脚、正文口径与落地页一致。复用 design-system.css 的 Token，零新增色值。
   无障碍：主按钮实色 --primary-dark 白字 6.04:1；正文 16px / 行高 1.7（老花眼友好）。
   ========================================================================== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.site {
  margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航（与首页一致） ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border-light);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--primary-gradient);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: var(--shadow-brand);
}
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.nav-menu { display: flex; gap: 28px; margin-left: 8px; }
.nav-menu a {
  text-decoration: none; color: var(--text); font-size: 15px; font-weight: 500; padding: 8px 0;
  border-bottom: 2px solid transparent; transition: border-color .18s var(--ease);
}
.nav-menu a:hover, .nav-menu a:focus-visible { border-bottom-color: var(--primary); color: var(--primary-dark); }
.nav-cta { margin-left: auto; }

/* ---------- 汉堡菜单（移动端展开，纯 CSS + 少量 JS 关闭，适配 40-60 岁大点击区） ---------- */
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-burger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; flex: none; margin-left: auto; cursor: pointer; border-radius: 10px;
}
.nav-burger span { display: block; width: 22px; height: 2.5px; background: var(--primary-dark); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-burger:hover, .nav-burger:focus-visible { background: var(--primary-light); outline: none; }
.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn-site {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  font-size: 17px; font-weight: 600; font-family: inherit; cursor: pointer;
  background: var(--primary-dark); color: #fff; border: none; text-decoration: none;
  box-shadow: var(--shadow-brand); transition: filter .18s var(--ease), transform .18s var(--ease);
}
.btn-site:hover, .btn-site:focus-visible { filter: brightness(1.06); transform: translateY(-1px); }
.btn-site:active { filter: brightness(.95); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-ghost { background: #fff; color: var(--primary-dark); border: 1.5px solid var(--border-brand); box-shadow: none; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--primary-light); }

/* ---------- 正文（文章页） ---------- */
.article { max-width: 860px; margin: 0 auto; padding: 40px 24px 72px; }
.article h1 { font-size: 32px; line-height: 1.3; font-weight: 700; letter-spacing: -.4px; margin: 0 0 8px; color: var(--text); }
.article .lead { font-size: 17px; color: var(--text-sub); margin: 0 0 28px; line-height: 1.7; }
.article .updated { font-size: 13px; color: var(--text-sub); margin: 0 0 28px; }
.article hr.sep { border: none; border-top: 1px solid var(--border); margin: 36px 0; }
.article h2 { font-size: 22px; font-weight: 700; margin: 40px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); color: var(--text); }
.article h3 { font-size: 17px; font-weight: 700; margin: 26px 0 10px; color: var(--primary-dark); }
.article p { margin: 0 0 14px; }
.article ul { margin: 0 0 16px; padding-left: 22px; }
.article ul li { margin-bottom: 8px; }
.article a.inline { color: var(--primary-dark); text-decoration: underline; }
.article .card-soft {
  background: var(--primary-light); border-radius: var(--r-card); padding: 18px 20px; margin: 24px 0;
}
.article .card-soft p:last-child { margin-bottom: 0; }
.article table.tbl { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 15px; }
.article table.tbl th, .article table.tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.article table.tbl th { background: var(--head-bg); color: var(--text-sub); font-weight: 600; font-size: 14px; }
.article table.tbl tr:last-child td { border-bottom: none; }

/* ---------- 页脚（与首页一致） ---------- */
.foot { background: var(--gradient-deep); color: #fff; padding: 48px 0 28px; margin-top: 40px; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-desc { font-size: 14px; line-height: 1.7; opacity: .85; margin: 12px 0 0; max-width: 380px; }
.foot-col h4 { font-size: 15px; font-weight: 700; margin: 0 0 14px; }
.foot-col a { display: block; color: #fff; opacity: .82; text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.foot-col a:hover, .foot-col a:focus-visible { opacity: 1; text-decoration: underline; }
.foot-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 13px; opacity: .8; }
.foot-icp a { color: inherit; text-decoration: none; opacity: .9; }
.foot-icp a:hover, .foot-icp a:focus-visible { opacity: 1; text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  /* 移动端：导航改为汉堡展开面板（不再直接隐藏，保证手机可导航） */
  .nav-burger { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 28px rgba(31, 17, 4, .10);
    padding: 6px 0; display: none;
  }
  .nav-toggle:checked ~ .nav-menu { display: flex; }
  .nav-menu a {
    padding: 16px 24px; font-size: 17px; border-bottom: 1px solid var(--border-light);
  }
  .nav-menu a:last-child { border-bottom: none; }
  .nav-menu a:hover, .nav-menu a:focus-visible { border-bottom-color: var(--border-light); background: var(--primary-light); color: var(--primary-dark); }
  .foot-in { grid-template-columns: 1fr; gap: 28px; }
  .article h1 { font-size: 26px; }
}
/* 超小屏微调 */
@media (max-width: 380px) {
  .wrap { padding: 0 18px; }
  .brand-name { font-size: 16px; }
}
