/* Huahao cookware clad metal site stylesheet */
:root {
  --ink: #101b22;
  --body: #35474f;
  --muted: #61737c;
  --line: #dfe6ea;
  --line-strong: #c6d1d7;
  --bg: #ffffff;
  --soft: #f4f7f8;
  --soft-2: #eaf0f2;
  --brand: #1f3b46;
  --brand-dark: #14282f;
  --brand-2: #8a5327;
  --accent: #c9863c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 12px 30px rgba(11, 31, 51, .09);
  --shadow-sm: 0 4px 14px rgba(11, 31, 51, .07);
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 860px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; z-index: 99; border-radius: 6px; }

/* ---------- top bar ---------- */
.topbar { background: var(--ink); color: #cfdae6; font-size: 13.5px; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding: 8px 22px; flex-wrap: wrap; }
.topbar a { color: #eaf1f8; }
.topbar-links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.topbar-sep { opacity: .35; }
.topbar-note { opacity: .8; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-weight: 800; font-size: 20px; letter-spacing: -.03em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--ink); font-size: 20px; letter-spacing: -.02em; }
.brand-text em { color: var(--muted); font-style: normal; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 10px 12px; color: var(--ink); font-weight: 600; font-size: 15px; border-radius: 8px; }
.nav-item > a:hover { background: var(--soft-2); text-decoration: none; }
.nav-item > a.is-active { color: var(--brand); background: var(--soft-2); }
.nav-drop {
  position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 8px; display: none; flex-direction: column; gap: 2px;
}
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { display: flex; }
.nav-drop a { padding: 9px 12px; border-radius: 8px; color: var(--body); font-size: 14.5px; }
.nav-drop a:hover { background: var(--soft-2); text-decoration: none; color: var(--brand); }
.nav-cta { margin-left: 12px; }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 650; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .18s ease; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(13, 79, 134, .22); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #eef4fa; }
.btn-ghost-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .18); }
.btn-lg { padding: 14px 26px; font-size: 16px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(440px, 72vh, 600px); display: flex; align-items: center; overflow: hidden; background: var(--ink); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .96; filter: brightness(1.18) contrast(1.03); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(92deg, rgba(4, 16, 28, .93) 0%, rgba(4, 16, 28, .80) 40%, rgba(4, 16, 28, .34) 70%, rgba(4, 16, 28, .10) 100%);
}
.hero-in { position: relative; padding: 44px 22px; color: #fff; }
.hero-in > * { max-width: 760px; }
.hero h1 { color: #fff; max-width: 24ch; text-wrap: balance; }
.hero .lead { color: #dde8f2; font-size: clamp(1rem, 1.3vw, 1.12rem); max-width: 58ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 16px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #b9cbdc; font-size: 14px; }
.hero-points li { position: relative; padding-left: 20px; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent);
}

/* page hero */
.page-hero { position: relative; min-height: 380px; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.page-hero-compact { min-height: 280px; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; filter: brightness(1.12); }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6, 20, 34, .88) 0%, rgba(6, 20, 34, .62) 45%, rgba(6, 20, 34, .22) 100%); }
.page-hero-in { position: relative; padding: 52px 22px 40px; color: #fff; }
.page-hero-in > * { max-width: 780px; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { color: #d7e3ee; max-width: 66ch; margin-bottom: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #9fb3c6; margin-bottom: 14px; }
.crumbs a { color: #cfdcea; }
.crumbs i { font-style: normal; opacity: .5; margin-left: 6px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; font-weight: 700;
  color: var(--brand-2); margin: 0 0 10px;
}
.eyebrow-light { color: var(--accent); }

/* ---------- strip ---------- */
.strip { background: var(--ink); color: #fff; }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); }
.strip-in > div { background: var(--ink); padding: 22px 18px; display: flex; flex-direction: column; gap: 3px; }
.strip-in strong { font-size: 20px; color: #fff; letter-spacing: -.01em; }
.strip-in span { font-size: 13.5px; color: #9fb3c6; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section-intro { max-width: 72ch; color: var(--muted); font-size: 1.02rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split-reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 3; display: block; }
.split-body h2 { margin-bottom: .45em; }

.ticks { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--body); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(15, 127, 140, .12); color: var(--brand-2); font-size: 12px; display: grid; place-items: center; font-weight: 700;
}

.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }

/* product quick list on home */
.product-grid { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.product-grid a {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 20px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: .18s ease;
}
.product-grid a:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-2px); text-decoration: none; }
.product-grid strong { color: var(--ink); font-size: 17px; }
.product-grid span { color: var(--muted); font-size: 14.5px; }

/* ---------- cards ---------- */
.card-grid { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-strong); }
.card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body strong { color: var(--ink); font-size: 17.5px; line-height: 1.3; }
.card-text { color: var(--muted); font-size: 14.8px; flex: 1; }
.card-link { color: var(--brand); font-weight: 650; font-size: 14px; }
.card-link::after { content: " →"; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 20px; }
.step-n { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--accent); margin-bottom: 8px; }
.steps strong { display: block; color: var(--ink); margin-bottom: 6px; }
.steps p { margin: 0; font-size: 14.6px; color: var(--muted); }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; margin: 26px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.spec { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15px; }
table.spec caption { text-align: left; padding: 14px 18px; font-weight: 650; color: var(--ink); }
table.spec th, table.spec td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec thead th { background: var(--soft-2); color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec tbody tr:hover { background: #fafcfe; }
table.spec td:first-child { color: var(--ink); font-weight: 600; }

/* ---------- faq ---------- */
.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; padding: 15px 0; font-weight: 650; color: var(--ink); list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--body); }

/* ---------- rfq form ---------- */
.rfq { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 16px; }
.rfq label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.rfq input, .rfq select, .rfq textarea {
  font: inherit; font-size: 15px; color: var(--body); padding: 11px 13px;
  border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; width: 100%;
}
.rfq input:focus, .rfq select:focus, .rfq textarea:focus { outline: 2px solid rgba(13, 79, 134, .25); border-color: var(--brand); }
.rfq textarea { resize: vertical; }
.rfq .req { color: #c0392b; }
.rfq .lab { display: block; }
.file-field { margin-bottom: 16px; }
.check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: 14px !important; color: var(--body) !important; }
.check input { width: auto !important; margin-top: 3px; }
.rfq-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.rfq-note { font-size: 13.5px; color: var(--muted); }
.form-status { margin: 14px 0 0; font-weight: 600; }
.form-status.ok { color: #16794a; }
.form-status.err { color: #b3261e; }

/* ---------- cta band ---------- */
.cta-band { background: linear-gradient(110deg, var(--brand-dark), var(--brand) 55%, var(--brand-2)); color: #fff; padding: 54px 0; }
.cta-band-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #d9e6f2; margin: 0; max-width: 60ch; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-foot { background: #08192a; color: #a9bacb; padding: 58px 0 26px; font-size: 14.6px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.foot-col h3 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.foot-col a { display: block; color: #b9c8d8; padding: 4px 0; }
.foot-col a:hover { color: #fff; }
.foot-brand strong { color: #fff; font-size: 16px; display: block; margin-bottom: 10px; }
.foot-brand p { margin: 0 0 4px; }
.muted { color: #7f93a8; }
.foot-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.foot-legal { display: flex; gap: 18px; }
.foot-bottom p { margin: 0; }

/* ---------- whatsapp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37, 211, 102, .4);
}
.wa-float:hover { transform: scale(1.06); text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .strip-in { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split-reverse .split-media { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav-toggle {
    display: inline-flex; margin-left: auto; background: #fff; border: 1px solid var(--line-strong);
    border-radius: 9px; padding: 9px 14px; font: inherit; font-weight: 650; color: var(--ink); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column;
    align-items: stretch; gap: 2px; background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 18px 20px; box-shadow: var(--shadow); max-height: 78vh; overflow: auto;
  }
  .nav.open { display: flex; }
  .nav-drop { position: static; display: flex; border: 0; box-shadow: none; padding: 0 0 0 12px; min-width: 0; }
  .nav-item > a { padding: 11px 4px; }
  .nav-cta { margin: 12px 0 0; }
  .hero { min-height: 480px; }
  .hero-in { padding: 56px 18px 44px; }
  .grid-2 { grid-template-columns: 1fr; }
  .rfq { padding: 20px; }
  .section { padding: 54px 0; }
  .topbar-note { display: none; }
  .topbar-in { justify-content: center; }
}

@media (max-width: 560px) {
  .card-grid, .product-grid, .steps, .strip-in, .foot-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .cta-band-in { flex-direction: column; align-items: flex-start; }
}

/* ---------- mobile nav: link toggle, close row, no-JS :target fallback ---------- */
.nav-close { display: none; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
  .nav-toggle:hover { text-decoration: none; background: var(--soft-2); }
  .nav-bars { display: inline-grid; gap: 3px; width: 16px; }
  .nav-bars i { display: block; height: 2px; border-radius: 2px; background: var(--ink); }
  .nav:target { display: flex; }
  .nav-close { display: block; text-align: right; font-size: 13px; color: var(--muted); padding: 2px 4px 10px; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-item:last-of-type { border-bottom: 0; }
  .nav-drop a { padding: 9px 10px; }
}

/* mobile menu: icon morphs to an X while open */
@media (max-width: 820px) {
  .nav-bars i { transition: transform .18s ease, opacity .18s ease; }
  .nav-toggle[aria-expanded="true"] .nav-bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-bars i:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .nav { padding-bottom: 26px; }
}

/* 参考值说明（产品页层结构表上方） */
.muted-note{max-width:72ch;color:#5a6b70;font-size:.94rem;line-height:1.6;margin:-4px 0 18px}

/* 图片墙（工厂实拍） */
.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:22px}
.photo-card{margin:0;background:#fff;border:1px solid var(--line,rgba(0,0,0,.08));border-radius:10px;overflow:hidden}
.photo-card a{display:block;line-height:0}
.photo-card img{width:100%;height:230px;object-fit:cover;display:block;transition:transform .4s ease}
.photo-card a:hover img{transform:scale(1.03)}
.photo-card figcaption{display:flex;flex-direction:column;gap:3px;padding:12px 14px}
.photo-card strong{font-size:.95rem;color:var(--brand,#1f3b46)}
.photo-card span{font-size:.83rem;color:#5a6b70;line-height:1.45}

/* 证书与报告 */
.doc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:22px}
.doc-card{margin:0;background:#fff;border:1px solid var(--line,rgba(0,0,0,.08));border-radius:10px;overflow:hidden}
.doc-card a{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1.414;background:#f4f6f6;padding:10px;line-height:0;border-bottom:1px solid var(--line,rgba(0,0,0,.06))}
.doc-card img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block;box-shadow:0 2px 10px rgba(15,32,38,.10);background:#fff}
.doc-card-cta{display:flex;align-items:center;justify-content:center;background:var(--brand,#1f3b46);color:#fff;text-decoration:none;aspect-ratio:1/1.414;padding:24px}
.doc-card-cta .doc-cta-in{display:flex;flex-direction:column;gap:8px;text-align:center}
.doc-card-cta strong{font-size:1.02rem;line-height:1.3;color:#fff}
.doc-card-cta span{font-size:.85rem;line-height:1.5;color:rgba(255,255,255,.82)}
.doc-card-cta:hover{background:var(--brand-dark,#14282f)}
.doc-card figcaption{display:flex;flex-direction:column;gap:3px;padding:12px 14px}
.doc-card strong{font-size:.93rem;color:var(--brand,#1f3b46)}
.doc-card span{font-size:.82rem;color:#5a6b70;line-height:1.45;word-break:break-word}

@media (max-width:860px){
  .photo-grid{grid-template-columns:repeat(2,1fr)}
  .photo-card img{height:180px}
  .doc-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:520px){
  .photo-grid{grid-template-columns:1fr}
  .photo-card img{height:170px}
  .doc-grid{grid-template-columns:1fr;gap:16px}
  /* 窄屏不用 A4 比例框：图片区定高居中，避免 5 张巨型竖卡堆成墙 */
  .doc-card a{aspect-ratio:auto;height:240px;padding:8px}
  .doc-card-cta{aspect-ratio:auto;height:150px;padding:18px}
}


/* 窄屏：正文配图限高，文字与图间距收紧 */
@media (max-width:640px){
  .split-media img{aspect-ratio:auto;height:auto;max-height:260px;object-fit:cover;width:100%}
  .split{gap:18px}
  .section{padding-top:34px;padding-bottom:34px}
  .section h2{margin-bottom:10px}
  .prose p{margin-bottom:12px}
  .doc-card figcaption{padding:10px 12px}
}
