/* YK — Hebei Subke Rubber & Plastic Products Co., Ltd. */
:root {
  --blue: #1e5aa8;
  --blue-dark: #14406f;
  --blue-light: #eaf2fb;
  --orange: #f97316;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-text .cn { font-weight: 700; font-size: 17px; color: var(--blue-dark); line-height: 1.2; }
.brand-text .en { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--ink); font-weight: 600; font-size: 15px; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 8px;
  font-weight: 700; font-size: 15px; transition: all .15s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #ea580c; }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(rgba(10, 30, 60, .72), rgba(10, 30, 60, .72)),
              url("../img/factory_building.jpg") center 35% / cover no-repeat;
  padding: 110px 0 120px;
}
.hero h1 { font-size: 44px; line-height: 1.2; max-width: 760px; }
.hero p.lead { font-size: 19px; max-width: 680px; margin: 18px 0 34px; color: #e2e8f0; }
.hero .btn + .btn { margin-left: 12px; }

/* ---------- stats bar ---------- */
.stats { background: var(--blue-dark); color: #fff; padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats .num { font-size: 32px; font-weight: 800; color: #fff; }
.stats .num span { color: #fdba74; }
.stats .label { font-size: 14px; color: #cbd5e1; }

/* ---------- sections ---------- */
section.block { padding: 76px 0; }
section.block.alt { background: var(--bg); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sec-head .kicker {
  display: inline-block; color: var(--orange); font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em; font-size: 13px;
}
.sec-head h2 { font-size: 34px; margin: 8px 0 12px; color: var(--blue-dark); }
.sec-head p { color: var(--muted); font-size: 17px; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.p-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; transition: box-shadow .15s, transform .15s;
  display: flex; flex-direction: column;
}
.p-card:hover { box-shadow: 0 10px 28px rgba(15, 23, 42, .12); transform: translateY(-3px); }
.p-card img { height: 180px; width: 100%; object-fit: cover; }
.p-card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.p-card h3 { font-size: 17px; color: var(--blue-dark); margin-bottom: 8px; }
.p-card p { font-size: 14px; color: var(--muted); flex: 1; }
.p-card .std {
  display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700;
  color: var(--blue); background: var(--blue-light); padding: 4px 10px; border-radius: 999px;
  align-self: flex-start;
}

/* feature list */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature { display: flex; gap: 14px; }
.feature .ico {
  flex: 0 0 46px; height: 46px; border-radius: 10px; background: var(--blue-light);
  color: var(--blue); display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
}
.feature h4 { font-size: 16px; margin-bottom: 4px; color: var(--blue-dark); }
.feature p { font-size: 14px; color: var(--muted); }

/* photo strip */
.photo-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; margin-top: 40px; }
.photo-strip img { width: 100%; height: 240px; object-fit: cover; border-radius: 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: #fff; padding: 64px 0; text-align: center;
}
.cta-band h2 { font-size: 30px; margin-bottom: 10px; }
.cta-band p { color: #cbd5e1; margin-bottom: 26px; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin-top: 18px; }
table.spec { border-collapse: collapse; width: 100%; min-width: 900px; font-size: 13.5px; background: #fff; }
table.spec th, table.spec td {
  border: 1px solid var(--line); padding: 7px 10px; text-align: center; white-space: nowrap;
}
table.spec thead th {
  background: var(--blue); color: #fff; font-weight: 700; font-size: 13px;
}
table.spec tbody tr:nth-child(even) { background: #f1f7fd; }
table.spec tbody tr:hover { background: #e3eefb; }
.tbl-note { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* products page layout */
.series { padding: 56px 0; border-bottom: 1px solid var(--line); }
.series.alt { background: var(--bg); }
.series-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.series-head h2 { font-size: 26px; color: var(--blue-dark); }
.series-head .std-tag {
  font-size: 12.5px; font-weight: 700; color: var(--blue);
  background: var(--blue-light); padding: 4px 12px; border-radius: 999px;
}
.series > .desc { color: var(--muted); max-width: 860px; font-size: 15px; }
.series-cols { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.series-cols img { border-radius: 10px; border: 1px solid var(--line); width: 100%; }

/* sub-nav on products page */
.sub-nav {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 68px; z-index: 40;
  overflow-x: auto; white-space: nowrap;
}
.sub-nav .inner { display: flex; gap: 6px; padding: 10px 20px; }
.sub-nav a {
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
}
.sub-nav a:hover { color: #fff; background: var(--blue); border-color: var(--blue); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.info-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 26px;
}
.info-card h3 { color: var(--blue-dark); margin-bottom: 14px; }
.info-card ul { list-style: none; }
.info-card li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.info-card li:last-child { border-bottom: none; }
.info-card .k { font-weight: 700; color: var(--blue-dark); margin-right: 8px; }
form.rfq .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.rfq label { display: block; font-size: 13.5px; font-weight: 700; margin: 14px 0 6px; color: var(--ink); }
form.rfq input, form.rfq select, form.rfq textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 8px;
  font-size: 15px; font-family: inherit; background: #fff;
}
form.rfq input:focus, form.rfq select:focus, form.rfq textarea:focus {
  outline: 2px solid var(--blue); border-color: var(--blue);
}
form.rfq button { margin-top: 20px; width: 100%; border: none; cursor: pointer; font-size: 16px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { background: #0f172a; color: #94a3b8; padding: 52px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding: 18px 0; text-align: center; font-size: 13px; color: #64748b;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .card-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .series-cols { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .hero h1 { font-size: 32px; }
}
@media (max-width: 600px) {
  .card-grid, .feature-grid, .footer-grid { grid-template-columns: 1fr; }
  form.rfq .row { grid-template-columns: 1fr; }
}
