/* ============================================================
   Qingdao Orient Industrial Supplies — site stylesheet
   Modern static, no framework. CSS custom properties + grid.
   ============================================================ */

:root {
  --brand: #f5821f;
  --brand-600: #d96a0f;
  --brand-50: #fff4e8;
  --gold: #ffd200;
  --ink: #14181c;
  --ink-2: #333c45;
  --muted: #5f6b76;
  --line: #e3e7eb;
  --line-2: #eef1f4;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-1: 0 1px 2px rgba(20, 24, 28, .06), 0 4px 14px rgba(20, 24, 28, .05);
  --shadow-2: 0 8px 30px rgba(20, 24, 28, .12);
  --maxw: 1200px;
  --header-h: 68px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1f4;
    --ink-2: #c7d0d9;
    --muted: #9aa7b4;
    --line: #2a323b;
    --line-2: #232a32;
    --bg: #10151a;
    --bg-soft: #161c22;
    --brand-50: #2a1d0d;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3);
    --shadow-2: 0 10px 34px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------------- Header ---------------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  display: grid; place-items: center; color: #10151a; font-weight: 900; font-size: 15px;
}
.logo-txt { display: flex; flex-direction: column; line-height: 1.15; }
.logo-txt b { font-size: 15px; }
.logo-txt span { font-size: 11px; color: var(--muted); font-weight: 500; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 550;
  color: var(--ink-2); transition: background .18s, color .18s;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-soft); color: var(--brand-600); }
.lang-sw {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 8px;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink-2); background: transparent; cursor: pointer;
}
.lang-sw:hover { border-color: var(--brand); color: var(--brand-600); }
.burger {
  display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line);
  border-radius: 9px; background: transparent; cursor: pointer; color: var(--ink);
}
.burger span { display: block; width: 18px; height: 2px; background: currentColor; margin: 3px auto; border-radius: 2px; }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none; box-shadow: var(--shadow-2);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
  .lang-sw { align-self: flex-start; margin: 8px 0 0; }
}

/* ---------------- Hero ---------------- */
.hero { position: relative; min-height: 460px; display: grid; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,13,16,.88) 0%, rgba(10,13,16,.68) 45%, rgba(10,13,16,.32) 100%);
}
.hero-in { position: relative; padding: 72px 0; color: #fff; max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.025em; font-weight: 800; }
.hero p.lede { font-size: 17.5px; color: rgba(255,255,255,.86); margin: 0 0 26px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px;
  font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer;
  transition: transform .16s, box-shadow .16s, background .16s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #14181c; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-dark { background: var(--ink); color: var(--bg); }

/* ---------------- Sections ---------------- */
.sec { padding: 72px 0; }
.sec-soft { background: var(--bg-soft); }
.sec-head { max-width: 720px; margin: 0 0 36px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 12px; letter-spacing: -.02em; font-weight: 800; }
.sec-head p { margin: 0; color: var(--muted); font-size: 16.5px; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 10px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; margin-top: 34px; }
.stat { padding: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.stat b { display: block; font-size: 28px; font-weight: 800; color: var(--brand-600); letter-spacing: -.02em; }
.stat span { font-size: 13.5px; color: var(--muted); }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.cat-card {
  position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg); box-shadow: var(--shadow-1); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.cat-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.cat-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-card:hover .thumb img { transform: scale(1.05); }
.cat-card .body { padding: 16px 18px 18px; }
.cat-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.cat-card p { margin: 0; font-size: 14px; color: var(--muted); }
.cat-card .count {
  display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 700;
  color: var(--brand-600); background: var(--brand-50); padding: 3px 9px; border-radius: 999px;
}

/* Product grid — 大图优先 */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 20px; }
.prod-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg);
  box-shadow: var(--shadow-1); transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.prod-card .thumb { aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; overflow: hidden; }
.prod-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .35s ease; }
.prod-card:hover .thumb img { transform: scale(1.06); }
.prod-card .body { padding: 13px 15px 16px; border-top: 1px solid var(--line-2); }
.prod-card .model { font-weight: 800; font-size: 15.5px; letter-spacing: -.01em; }
.prod-card .meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* Breadcrumb */
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); padding: 18px 0 6px; }
.crumb a:hover { color: var(--brand-600); }
.crumb .sep { opacity: .5; }

/* Product detail */
.pd { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 44px; padding: 26px 0 70px; align-items: start; }
@media (max-width: 860px) { .pd { grid-template-columns: 1fr; gap: 26px; } }
.pd-media { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.pd-media img { width: 100%; aspect-ratio: 1/1; object-fit: contain; padding: 10px; }
.pd h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 8px; letter-spacing: -.025em; font-weight: 800; }
.pd .sub { color: var(--muted); margin: 0 0 20px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { padding: 11px 0; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.spec-table th { width: 42%; color: var(--muted); font-weight: 600; padding-right: 14px; }
.spec-table td { font-weight: 600; }
.notes { margin-top: 16px; font-size: 14px; color: var(--muted); }
.notes li { margin-bottom: 4px; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-1); width: 100%; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; list-style: none; padding: 0; }
.values li { padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 650; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.values li > span:first-child {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #10151a; font-weight: 800; font-size: 15px; flex: none;
}
.values li .v-txt { display: block; min-width: 0; }
.values li .v-txt b { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.values li .v-txt em { display: block; margin-top: 3px; font-style: normal; font-weight: 500; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* News */
.news-list { display: grid; gap: 12px; }
.news-item { display: flex; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.news-date { font-size: 13px; font-weight: 700; color: var(--brand-600); flex: 0 0 108px; font-variant-numeric: tabular-nums; }
.news-item h3 { margin: 0; font-size: 16.5px; font-weight: 700; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }
.c-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.c-card .k { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.c-card .v { margin-top: 6px; font-weight: 650; font-size: 15.5px; word-break: break-word; }
.c-card a.v:hover { color: var(--brand-600); }

/* Footer */
.ftr { background: #0e1216; color: #b9c3cc; padding: 54px 0 26px; margin-top: 20px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 860px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr-grid { grid-template-columns: 1fr; } }
.ftr h4 { color: #fff; font-size: 14px; margin: 0 0 12px; letter-spacing: .04em; text-transform: uppercase; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.ftr a:hover { color: var(--gold); }
.ftr-btm { border-top: 1px solid #1e252c; margin-top: 34px; padding-top: 18px; font-size: 13px; color: #7d8894; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* Reveal animation */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Notice */
.notice { padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); font-size: 14.5px; background: var(--bg-soft); }

/* ---------------- Capabilities: factory / video / certificates / customers ---------------- */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cap-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; box-shadow: var(--shadow-1); }
.cap-media { background: var(--bg-soft); }
.cap-card h3 { margin: 0; padding: 16px 18px 4px; font-size: 17px; font-weight: 700; }
.cap-card p { margin: 0; padding: 0 18px 18px; font-size: 14px; color: var(--muted); }
.mini-grid { display: grid; gap: 4px; }
.mini-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-soft); cursor: zoom-in; transition: opacity .18s ease; }
.mini-grid img:hover { opacity: .88; }
.video-emb { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-emb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------- Language anchor (中英互链) ---------------- */
.langx { padding: 4px 0 40px; font-size: 14px; }
.langx a {
  display: inline-flex; align-items: center; gap: 8px; color: var(--brand-600);
  font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.langx a::after { content: "→"; font-weight: 700; }
.langx a:hover { color: var(--brand); }

/* ---------------- Product gallery (多图展示) ---------------- */
.gal { display: grid; gap: 12px; }
.gal-main { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); overflow: hidden; }
.gal-main img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; cursor: zoom-in; transition: transform .3s ease; }
.gal-main img:hover { transform: scale(1.02); }
.gal-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.gal-th { padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg-soft); cursor: pointer; line-height: 0; transition: border-color .18s ease; }
.gal-th img { width: 74px; height: 74px; object-fit: cover; }
.gal-th:hover { border-color: var(--brand-600); }
.gal-th.is-on { border-color: var(--brand); }
.gal-meta { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.prod-card .thumb { position: relative; }
.prod-card .ph {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  background: rgba(16, 21, 26, .78); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; letter-spacing: .02em;
}
.prod-card .ph::before { content: "◎ "; }

/* ---------------- News ---------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tab {
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .18s ease;
}
.tab:hover { border-color: var(--brand-600); color: var(--brand-600); }
.tab.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.news-card {
  display: grid; grid-template-columns: 168px 1fr; gap: 16px; align-items: start;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  overflow: hidden; box-shadow: var(--shadow-1); text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--brand-600); }
.news-card .n-thumb { background: var(--bg-soft); height: 100%; min-height: 132px; }
.news-card .n-thumb img { width: 100%; height: 100%; min-height: 132px; object-fit: cover; display: block; }
.news-card .n-body { padding: 14px 16px 16px 0; }
.n-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; margin-bottom: 6px; }
.n-date { color: var(--muted); font-variant-numeric: tabular-nums; }
.n-tag { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; color: var(--brand-600); font-weight: 700; }
.news-card h3 { margin: 0 0 6px; font-size: 16.5px; line-height: 1.35; font-weight: 700; }
.news-card p { margin: 0 0 10px; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.n-more { font-size: 13.5px; font-weight: 700; color: var(--brand-600); }
.news-card:hover .n-more { color: var(--brand); }
@media (max-width: 560px) {
  .news-card { grid-template-columns: 1fr; }
  .news-card .n-body { padding: 14px 16px 16px; }
  .news-card .n-thumb img { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ---------------- Article ---------------- */
.art { max-width: 820px; }
.art-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 22px; }
.art-head h1 { margin: 0; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.24; }
.art-body h3 { margin: 26px 0 8px; font-size: 19px; }
.art-body p { margin: 0 0 14px; font-size: 16px; line-height: 1.78; color: var(--ink-2, var(--ink)); }
.art-body a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.art-body .mini-grid { margin-top: 10px; }
.np { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; border-top: 1px solid var(--line); padding-top: 18px; }
.np a { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: inherit; }
.np a:hover { border-color: var(--brand-600); }
.np a:last-child { text-align: right; }
.np .np-k { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.np .np-t { font-size: 14.5px; font-weight: 600; }
@media (max-width: 620px) { .np { grid-template-columns: 1fr; } .np a:last-child { text-align: left; } }

/* ---------------- Lightbox ---------------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(8, 11, 14, .92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lb.on { display: flex; }
.lb img { max-width: min(1100px, 96vw); max-height: 88vh; object-fit: contain; border-radius: 6px; background: #fff; }
.lb button { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 30px; line-height: 1; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,.22); }
.lb .lb-prev { left: 18px; } .lb .lb-next { right: 18px; }
.lb .lb-x { top: 18px; right: 18px; transform: none; width: 44px; height: 44px; font-size: 22px; }
.lb .lb-n { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #cfd8e0; font-size: 14px; }
@media (max-width: 560px) { .lb button { width: 42px; height: 42px; font-size: 24px; } }

/* ---------------- Hero v2：标题双色断行 + 示意图角标 + 数据条 ---------------- */
.hero h1 em { display: block; font-style: normal; color: var(--brand); }
.img-note {
  position: absolute; right: 14px; bottom: 12px; z-index: 3;
  font-size: 11.5px; color: rgba(255,255,255,.72);
  background: rgba(10,13,16,.45); border: 1px solid rgba(255,255,255,.16);
  padding: 3px 10px; border-radius: 999px; letter-spacing: .02em;
  pointer-events: none;
}
.statbar { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 20px 0; }
.statbar .stats { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.statbar .stat { display: grid; gap: 2px; padding: 14px 18px; background: var(--bg); }
.statbar .stat b { font-size: clamp(19px, 2.2vw, 25px); line-height: 1.15; }
.statbar .stat span { line-height: 1.4; }
@media (max-width: 640px) {
  .statbar .stats { grid-template-columns: repeat(2, 1fr); }
  .hero h1 br { display: none; }
}

/* 可翻阅的照片组（工厂 / 资质 / 客户） */
.mini-wrap { position: relative; }
.mini-wrap .mini-count {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  background: rgba(16, 21, 26, .78); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; pointer-events: none;
}
.mini-wrap .mini-count::before { content: "◎ "; }
