/* ============================================================
   东莞信泰金属表面处理有限公司 - 官网全局样式
   设计风格：工业制造 · 专业简洁 · GEO 友好
   维护说明：颜色/间距统一走 CSS 变量，改主题只改 :root
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 品牌色 */
  --c-primary: #0f4c75;
  --c-primary-dark: #0a3552;
  --c-primary-light: #3282b8;
  --c-accent: #ff8c1a;
  --c-ink: #1a1a1a;          /* 黑色电泳质感 */

  /* 中性色 */
  --c-bg: #f5f7fa;
  --c-surface: #ffffff;
  --c-surface-2: #fafbfc;
  --c-border: #e4e8ef;
  --c-border-strong: #cbd2dc;

  /* 文字 */
  --t-1: #1a2332;
  --t-2: #3a4655;
  --t-3: #6b7689;
  --t-4: #9ba4b3;
  --t-inv: #ffffff;

  /* 语义色 */
  --c-good: #1e7e34;
  --c-warn: #b86e00;
  --c-bad: #c0392b;

  /* 尺寸 */
  --maxw: 1200px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(15, 76, 117, .06);
  --shadow-hover: 0 8px 24px rgba(15, 76, 117, .12);

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
          "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--t-1);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary-light); }
ul, ol { list-style-position: inside; }

/* ---------- 3. 布局容器 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; }

/* ---------- 4. 顶部信息条 + 导航 ---------- */
.topbar {
  background: var(--c-primary-dark);
  color: rgba(255,255,255,.85);
  font-size: 12.5px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.9); }

.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  height: 36px; width: auto; flex-shrink: 0; display: block;
}

.brand-icon { display: none; width: 38px; height: 38px; flex-shrink: 0; }

.footer-logo { height: 34px; width: auto; display: block; margin-bottom: 16px; }

.brand-text { display: none; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 16px; font-weight: 700; color: var(--t-1); }
.brand-tag { font-size: 11.5px; color: var(--t-3); letter-spacing: .5px; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  color: var(--t-2); font-size: 14px; font-weight: 500;
  padding: 8px 13px; border-radius: var(--radius-sm);
  transition: background .2s, color .2s; white-space: nowrap;
}
.nav-menu a:hover { background: var(--c-bg); color: var(--c-primary); }
.nav-menu a.active { color: var(--c-primary); font-weight: 600; background: #e6f0f8; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  width: 42px; height: 38px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--t-1); transition: .25s; }

/* ---------- 5. 页头 Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 55%, var(--c-primary-light) 100%);
  color: var(--t-inv);
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 380px; height: 380px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block; background: rgba(255,255,255,.16);
  padding: 5px 14px; border-radius: 20px;
  font-size: 12.5px; letter-spacing: 1.5px; margin-bottom: 18px;
}
.hero h1 { font-size: 36px; font-weight: 700; line-height: 1.35; margin-bottom: 16px; letter-spacing: .5px; }
.hero-lead { font-size: 16px; opacity: .93; max-width: 780px; line-height: 1.85; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 内页页头 */
.page-hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  color: var(--t-inv); padding: 52px 0 44px;
}
.page-hero h1 { font-size: 30px; font-weight: 700; margin-bottom: 10px; }
.page-hero p { font-size: 15px; opacity: .92; max-width: 760px; line-height: 1.8; }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent; transition: all .2s; text-decoration: none;
}
.btn-primary { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn-primary:hover { background: #e67c0d; color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-dark { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn-dark:hover { background: var(--c-primary-dark); color: #fff; }

/* ---------- 7. 面包屑 ---------- */
.breadcrumb { background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: 12px 0; font-size: 13px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; color: var(--t-3); }
.breadcrumb a { color: var(--t-3); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--t-4); }

/* ---------- 8. 区块 ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--c-surface); }
.section-head { margin-bottom: 34px; }
.section-head.center { text-align: center; }
.section-eyebrow {
  display: inline-block; color: var(--c-primary); font-size: 12.5px;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px;
}
.section-title { font-size: 26px; font-weight: 700; color: var(--t-1); margin-bottom: 12px; }
.section-desc { font-size: 15px; color: var(--t-2); max-width: 780px; line-height: 1.8; }
.section-head.center .section-desc { margin: 0 auto; }

/* ---------- 9. 卡片网格 ---------- */
.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); }

.card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 24px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 21px; font-weight: 700; margin-bottom: 14px;
}
.card h3 { font-size: 17px; font-weight: 700; color: var(--t-1); margin-bottom: 9px; }
.card p { font-size: 14px; color: var(--t-2); line-height: 1.75; }

/* ---------- 10. 数据/参数展示 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 22px 18px; text-align: center;
}
.stat-num { font-size: 30px; font-weight: 700; color: var(--c-primary); line-height: 1.1; }
.stat-num small { font-size: 15px; font-weight: 600; }
.stat-label { font-size: 13px; color: var(--t-3); margin-top: 6px; }

/* 参数表 */
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; background: var(--c-surface); font-size: 14px; }
.spec-table th, .spec-table td { padding: 12px 14px; border: 1px solid var(--c-border); text-align: left; }
.spec-table th { background: var(--c-surface-2); font-weight: 600; color: var(--t-1); width: 30%; }
.spec-table td { color: var(--t-2); }

/* ---------- 11. 要点列表 ---------- */
.point-list { list-style: none; }
.point-list li {
  position: relative; padding-left: 26px; margin-bottom: 11px;
  font-size: 14.5px; color: var(--t-2); line-height: 1.75;
}
.point-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--c-primary); font-weight: 700;
}
.point-list.plain li::before { content: "\25AA"; color: var(--c-accent); }

/* ---------- 12. 问答 FAQ ---------- */
.faq-item {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  padding: 17px 52px 17px 22px; cursor: pointer; position: relative;
  font-size: 15.5px; font-weight: 600; color: var(--t-1);
  display: flex; align-items: flex-start; gap: 10px; user-select: none;
}
.faq-q::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px; color: var(--c-primary); font-weight: 400; transition: transform .25s;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-q:hover { background: var(--c-surface-2); }
.faq-a {
  padding: 0 22px; max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: 14.5px; color: var(--t-2); line-height: 1.85;
}
.faq-item.open .faq-a { max-height: 1200px; padding: 0 22px 20px; border-top: 1px solid var(--c-border); padding-top: 16px; }
.faq-a p { margin-bottom: 10px; }
.faq-a ul, .faq-a ol { margin: 8px 0 12px 20px; }
.faq-a li { margin-bottom: 6px; }

/* ---------- 13. 流程/时间轴 ---------- */
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 24px 0; }
.flow-step { text-align: center; position: relative; }
.flow-step .num {
  width: 46px; height: 46px; margin: 0 auto 10px;
  background: var(--c-primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
}
.flow-step .name { font-size: 13.5px; font-weight: 600; color: var(--t-1); margin-bottom: 3px; }
.flow-step .desc { font-size: 12px; color: var(--t-3); line-height: 1.55; }

/* ---------- 14. 表格（通用） ---------- */
.data-table { width: 100%; border-collapse: collapse; background: var(--c-surface); font-size: 14px; margin: 18px 0; }
.data-table th { background: var(--c-surface-2); padding: 12px 14px; text-align: left; font-weight: 600; color: var(--t-1); border-bottom: 2px solid var(--c-border-strong); }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--c-border); color: var(--t-2); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: var(--c-surface-2); }

/* ---------- 15. 标签 ---------- */
.tag {
  display: inline-block; font-size: 12px; padding: 3px 10px;
  border-radius: 12px; background: #e6f0f8; color: var(--c-primary);
  font-weight: 600; margin: 3px 4px 3px 0;
}
.tag-accent { background: #fff2e0; color: #b86e00; }
.tag-dark { background: #eceff3; color: var(--t-2); }

/* ---------- 16. 案例卡 ---------- */
.case-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.case-body { padding: 22px; flex: 1; }
.case-industry { font-size: 12px; color: var(--c-accent); font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; }
.case-card h3 { font-size: 17px; font-weight: 700; color: var(--t-1); margin-bottom: 10px; }
.case-card p { font-size: 14px; color: var(--t-2); line-height: 1.75; margin-bottom: 12px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- 17. 新闻列表 ---------- */
.news-item {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 14px;
  display: flex; gap: 22px; align-items: flex-start;
  transition: box-shadow .2s;
}
.news-item:hover { box-shadow: var(--shadow-hover); }
.news-date {
  flex-shrink: 0; width: 74px; text-align: center;
  background: var(--c-bg); border-radius: var(--radius-sm); padding: 10px 6px;
}
.news-date .d { font-size: 24px; font-weight: 700; color: var(--c-primary); line-height: 1; }
.news-date .m { font-size: 12px; color: var(--t-3); margin-top: 3px; }
.news-body h3 { font-size: 16.5px; font-weight: 700; color: var(--t-1); margin-bottom: 7px; }
.news-body p { font-size: 14px; color: var(--t-2); line-height: 1.75; }

/* ---------- 18. 联系信息 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.info-list { list-style: none; }
.info-list li {
  display: flex; gap: 14px; padding: 15px 0;
  border-bottom: 1px dashed var(--c-border);
}
.info-list li:last-child { border-bottom: 0; }
.info-key {
  flex-shrink: 0; width: 76px; font-size: 13.5px;
  color: var(--t-3); font-weight: 600;
}
.info-val { font-size: 14.5px; color: var(--t-1); line-height: 1.7; }

/* ---------- 19. 表单 ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--t-2); margin-bottom: 6px; }
.form-group label .req { color: var(--c-bad); }
.form-control {
  width: 100%; padding: 11px 14px; font-size: 14.5px; font-family: var(--font);
  border: 1px solid var(--c-border-strong); border-radius: var(--radius-sm);
  background: var(--c-surface); color: var(--t-1); transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  outline: none; border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(15,76,117,.1);
}
textarea.form-control { min-height: 110px; resize: vertical; }
.form-hint { font-size: 12.5px; color: var(--t-3); margin-top: 5px; }
.form-error { font-size: 12.5px; color: var(--c-bad); margin-top: 5px; display: none; }
.form-group.has-error .form-control { border-color: var(--c-bad); }
.form-group.has-error .form-error { display: block; }

/* ---------- 20. CTA 横幅 ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
  color: var(--t-inv); padding: 48px 0; text-align: center;
}
.cta-banner h2 { font-size: 25px; font-weight: 700; margin-bottom: 10px; }
.cta-banner p { font-size: 15px; opacity: .92; margin-bottom: 22px; }

/* ---------- 21. 页脚 ---------- */
.footer { background: #16212e; color: rgba(255,255,255,.72); padding: 48px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 34px; }
.footer h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: #fff; }
.footer-brand-name { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.footer p { line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0; font-size: 13px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
}

/* ---------- 22. 语义化辅助（GEO 友好） ---------- */
.entity-facts {
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-primary);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 20px 0;
}
.entity-facts h3 { font-size: 15px; color: var(--c-primary); margin-bottom: 10px; font-weight: 700; }
.entity-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.entity-facts dt { color: var(--t-3); font-weight: 600; white-space: nowrap; }
.entity-facts dd { color: var(--t-1); }

.qa-block { margin: 18px 0; }
.qa-block .q {
  font-size: 15.5px; font-weight: 700; color: var(--t-1);
  margin-bottom: 8px; display: flex; gap: 8px;
}
.qa-block .q::before { content: "Q"; color: var(--c-primary); font-weight: 700; }
.qa-block .a { font-size: 14.5px; color: var(--t-2); line-height: 1.85; display: flex; gap: 8px; }
.qa-block .a::before { content: "A"; color: var(--c-accent); font-weight: 700; }
.qa-block .a > div { flex: 1; }

/* 仅供爬虫的事实区块，视觉上弱化但不隐藏 */
.geo-facts { font-size: 13px; color: var(--t-3); line-height: 1.8; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- 23. 响应式：平板 ---------- */
@media (max-width: 1024px) {
  .brand-mark { display: none; }
  .brand-icon { display: block; }
  .nav-menu a { font-size: 13px; padding: 8px 9px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

/* ---------- 24. 响应式：手机 ---------- */
@media (max-width: 768px) {
  .brand-text { display: flex; flex-direction: column; line-height: 1.25; }
  .brand-name { font-size: 14.5px; }
  .brand-tag { font-size: 10px; }
  .container { padding: 0 18px; }

  .topbar { display: none; }

  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--c-border);
    flex-direction: column; align-items: stretch;
    padding: 10px 18px 18px; gap: 2px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-menu.show { display: flex; }
  .nav-menu a { padding: 12px 14px; font-size: 15px; border-radius: var(--radius-sm); }

  .hero { padding: 46px 0 40px; }
  .hero h1 { font-size: 25px; }
  .hero-lead { font-size: 15px; }
  .hero-actions .btn { flex: 1; justify-content: center; min-width: 140px; }

  .page-hero { padding: 36px 0 32px; }
  .page-hero h1 { font-size: 23px; }

  .section { padding: 38px 0; }
  .section-title { font-size: 21px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-num { font-size: 24px; }

  .flow { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }

  .news-item { flex-direction: column; gap: 12px; padding: 18px; }
  .news-date { width: 100%; display: flex; align-items: baseline; gap: 8px; padding: 8px 12px; }
  .news-date .d { font-size: 18px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .spec-table th { width: 34%; }
  .spec-table th, .spec-table td { padding: 10px; font-size: 13px; }

  .entity-facts dl { grid-template-columns: 1fr; gap: 4px 0; }
  .entity-facts dt { margin-top: 6px; }

  .info-list li { flex-direction: column; gap: 4px; }
  .info-key { width: auto; }
}

@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .hero h1 { font-size: 22px; }
}

/* ---------- 25. 滚动淡入动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 26. 打印友好 ---------- */
@media print {
  .navbar, .topbar, .footer, .cta-banner, .nav-toggle { display: none; }
  body { background: #fff; }
  .card, .faq-item { break-inside: avoid; }
}
