/* ============================================================
   广东瑞恒建材科技有限公司 — 官网样式
   工业质感：石墨灰 / 铝本色 / 工业橙
   ============================================================ */

:root {
  --ink: #0E1114;
  --ink-2: #171B20;
  --ink-3: #242A31;
  --paper: #FFFFFF;
  --mist: #F4F5F7;
  --line: #E4E7EB;
  --line-dark: #2C333B;
  --muted: #5C6470;
  --muted-light: #8A929D;
  --accent: #E4572E;
  --accent-soft: rgba(228, 87, 46, 0.10);
  --radius: 2px;
  --wrap: 1240px;
  --pad: 24px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
          "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 17, 20, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex; align-items: center; gap: 32px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 800; letter-spacing: 0.02em;
  border-radius: var(--radius);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
.brand-sub { font-size: 10px; color: var(--muted-light); letter-spacing: 0.14em; text-transform: uppercase; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; font-size: 14px; color: #C8CDD4;
  border-radius: var(--radius); transition: color .18s, background .18s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav a.is-active { color: #fff; background: rgba(255,255,255,0.09); }
.nav a.is-active::after {
  content: ""; display: block; height: 2px; margin-top: 6px;
  background: var(--accent); border-radius: 2px;
}

.nav-toggle {
  display: none; margin-left: auto;
  width: 40px; height: 40px; border: 1px solid var(--line-dark);
  background: transparent; border-radius: var(--radius);
  color: #fff; font-size: 18px; cursor: pointer;
}

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 40px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 17px; }
.section--ink .section-head p { color: var(--muted-light); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: 96px 0 72px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    115deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 9px
  );
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: -20%;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(228,87,46,0.16), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

/* 首屏照片背景 */
.hero--photo {
  background-image:
    linear-gradient(to top, rgba(14, 17, 20, 0.96) 0%, rgba(14, 17, 20, 0.55) 18%, rgba(14, 17, 20, 0) 46%),
    linear-gradient(92deg, rgba(14, 17, 20, 0.95) 0%, rgba(14, 17, 20, 0.88) 38%, rgba(14, 17, 20, 0.45) 66%, rgba(14, 17, 20, 0.30) 100%),
    url("/assets/img/hero-facade.jpg");
  background-size: cover, cover, cover;
  background-position: center 58%;
  background-repeat: no-repeat;
}

/* 配图 */
.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.panel-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.panel-visual--plain::after { display: none; }

.hero-visual {
  position: absolute; right: -70px; top: -30px;
  width: 460px; height: 460px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  transform: rotate(-8deg); opacity: .55; pointer-events: none;
}
.hero-visual span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  max-width: 860px; letter-spacing: -0.02em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead {
  margin-top: 24px; max-width: 620px;
  font-size: 17px; color: #B9C0C9; line-height: 1.85;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; font-size: 15px; font-weight: 600;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #C9461F; }
.btn--ghost { border-color: rgba(255,255,255,0.28); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }

/* ---------- 数字条 ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  margin-top: 64px; padding-top: 36px; gap: 24px;
}
.stat-value { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
.stat-value span { font-size: 15px; font-weight: 600; color: var(--accent); margin-left: 4px; }
.stat-label { font-size: 13px; color: #B9C0C9; margin-top: 6px; }
.stat-note { font-size: 11px; color: var(--muted-light); margin-top: 2px; letter-spacing: 0.04em; }

/* ---------- 资质条 ---------- */
.cred-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.cred-item { background: #fff; padding: 22px 20px; }
.cred-item strong { display: block; font-size: 14px; margin-bottom: 6px; }
.cred-item span { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; }
.cred-item code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; color: var(--accent); letter-spacing: 0.02em;
}

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

.card {
  position: relative; background: #fff;
  border: 1px solid var(--line);
  padding: 28px 26px 26px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(14,17,20,0.07);
}
.card-index {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--muted-light); margin-bottom: 14px;
}
.card h3 { font-size: 19px; margin-bottom: 6px; }
.card .card-en {
  font-size: 11px; color: var(--muted-light);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px;
}
.card p { font-size: 14px; color: var(--muted); line-height: 1.75; }
.card .card-link {
  margin-top: auto; padding-top: 20px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.card .card-link::after { content: "→"; transition: transform .2s; }
.card:hover .card-link::after { transform: translateX(4px); }

/* ---------- 案例 ---------- */
.case-item {
  display: grid; grid-template-columns: 1fr auto; gap: 16px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.case-item:first-child { border-top: 1px solid var(--line); }
.case-main h3 { font-size: 18px; margin-bottom: 6px; }
.case-main p { font-size: 14px; color: var(--muted); max-width: 720px; }
.case-meta {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 4px; font-size: 12px; color: var(--muted); white-space: nowrap;
}
.case-area { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.case-area small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.case-tag {
  display: inline-block; padding: 2px 8px; font-size: 11px;
  background: var(--accent-soft); color: #A93B19; border-radius: 2px;
}

/* ---------- 图文分栏 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--wide { grid-template-columns: 1.15fr 0.85fr; }

.panel-visual {
  position: relative; aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(90deg, #E9ECEF 0 2px, #F3F5F7 2px 6px),
    linear-gradient(160deg, #F7F8FA, #DFE3E8);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
}
.panel-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.65) 50%, transparent 60%);
}
.panel-visual .pv-label {
  position: relative; z-index: 1;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted-light);
}

/* ---------- 参数表 ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:first-child { border-top: 1px solid var(--line); }
.spec-table th {
  text-align: left; font-weight: 600; color: var(--muted);
  padding: 13px 16px 13px 0; width: 34%; vertical-align: top;
  font-size: 13px;
}
.spec-table td { padding: 13px 0; color: var(--ink); }

/* ---------- 列表 ---------- */
.check-list li {
  position: relative; padding-left: 22px; margin-bottom: 12px;
  font-size: 15px; color: var(--ink);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 8px; height: 8px; background: var(--accent); border-radius: 1px;
}

/* ---------- 面包屑 ---------- */
.crumbs { font-size: 12px; color: var(--muted); padding: 20px 0 0; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 8px; color: var(--line); }

/* ---------- 页头（内页） ---------- */
.page-head {
  background: var(--ink); color: #fff; padding: 56px 0 64px;
  position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    115deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 9px
  );
}
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(28px, 4vw, 44px); margin-top: 12px; }
.page-head p { margin-top: 16px; color: #B9C0C9; max-width: 680px; font-size: 16px; }

/* ---------- 证书 ---------- */
.cert-card {
  border: 1px solid var(--line); padding: 28px; background: #fff;
  display: flex; flex-direction: column;
}
.cert-card h3 { font-size: 17px; margin-bottom: 4px; }
.cert-issuer { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.cert-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); font-size: 13px; }
.cert-row span:first-child { color: var(--muted); flex-shrink: 0; }
.cert-row span:last-child { text-align: right; font-weight: 600; }

/* ---------- 文章 ---------- */
.prose { max-width: 760px; font-size: 16px; line-height: 1.95; }
.prose h2 { font-size: 24px; margin: 44px 0 16px; }
.prose h3 { font-size: 18px; margin: 30px 0 10px; }
.prose p { color: #33383F; }
.prose ul { margin: 0 0 1.2em; padding-left: 0; }
.prose ul li {
  position: relative; padding-left: 20px; margin-bottom: 8px; color: #33383F;
}
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; background: var(--accent); border-radius: 1px;
}
.prose strong { color: var(--ink); }

.article-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.article-meta .tag {
  display: inline-block; padding: 1px 8px; margin-right: 10px;
  background: var(--accent-soft); color: #A93B19; border-radius: 2px; font-size: 11px;
}

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(228,87,46,0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 14px; }
.form-status { font-size: 14px; margin-top: 14px; }
.form-status[data-state="ok"] { color: #1F7A4D; }
.form-status[data-state="err"] { color: #B3261E; }

/* ---------- 联系信息 ---------- */
.contact-list { display: grid; gap: 0; }
.contact-row {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.contact-row:first-child { border-top: 1px solid var(--line); }
.contact-row dt { color: var(--muted); font-size: 13px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 64px 0 0; margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px; padding-bottom: 48px;
}
.footer-brand p { color: #9AA3AE; font-size: 13px; margin-top: 16px; max-width: 320px; line-height: 1.8; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; font-size: 13px; color: #9AA3AE; }
.footer-col a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding: 26px 0 32px; text-align: center;
  font-size: 13px; color: #9AA3AE; line-height: 2;
}
.footer-legal a { color: #B9C0C9; }
.footer-legal a:hover { color: #fff; }
.footer-legal .sep { margin: 0 10px; color: var(--line-dark); }
.icp-line { margin-top: 6px; }

/* ---------- 提示条 ---------- */
.notice {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 20px; font-size: 14px; color: #7A2E15;
}

/* ---------- 响应式 ---------- */@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .cred-strip { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split--wide { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-visual { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 52px; }
  .header-inner { height: 62px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    padding: 8px 16px 16px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav a.is-active::after { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cred-strip { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .case-item { grid-template-columns: 1fr; }
  .case-meta { flex-direction: row; align-items: baseline; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   English site adjustments
   ============================================================ */

html[lang="en"] body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  letter-spacing: 0.004em;
}
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3 { letter-spacing: -0.022em; }
html[lang="en"] .hero h1 { font-size: clamp(30px, 4.4vw, 54px); }
html[lang="en"] .hero-lead { font-size: 16px; line-height: 1.8; }
html[lang="en"] .section-head h2 { font-size: clamp(24px, 2.9vw, 36px); }
html[lang="en"] .eyebrow { letter-spacing: 0.13em; }
html[lang="en"] .prose { font-size: 16px; line-height: 1.85; }

.header-cta {
  margin-left: 14px;
  padding: 9px 18px;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .header-cta { display: none; }
}

/* WhatsApp 浮动按钮（英文站） */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #25d366;
  color: #0b3d1f;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s, box-shadow 0.18s;
}
.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}
.wa-float svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 720px) {
  .wa-float { right: 14px; bottom: 14px; padding: 11px 15px; font-size: 13px; }
}
