/* Datian Machine — Global Styles
   Light theme industrial B2B site with EN / ES / AR / RU support */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Kufi+Arabic:wght@400;500;600;700&display=swap');

:root {
  color-scheme: only light;
  --navy-950: #071324;
  --navy-900: #0B1F33;
  --navy-800: #12314D;
  --navy-700: #1B4566;
  --navy-600: #26608F;
  --accent: #17A673;
  --accent-dark: #128A5F;
  --accent-light: #E8F8F1;
  --accent-pale: #F1FCF7;
  --amber: #F5A524;
  --amber-pale: #FFF7E6;
  --ink: #0E1726;
  --body: #334155;
  --muted: #5A6B7F;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --surface: #FFFFFF;
  --surface-alt: #F5F7FA;
  --surface-dark: #0F1C2E;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(11,31,51,0.06);
  --shadow: 0 4px 16px rgba(11,31,51,0.08);
  --shadow-lg: 0 12px 32px rgba(11,31,51,0.14);
  --max-w: 1280px;
  --font: "Inter", "Noto Kufi Arabic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html[dir="rtl"] { direction: rtl; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  line-height: 1.6;
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

h1,h2,h3,h4,h5,h6 { color: var(--ink); margin: 0 0 .6em; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; }
ul,ol { margin: 0 0 1em; padding-inline-start: 1.2em; }

.container { width: min(92%, var(--max-w)); margin-inline: auto; }
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-dark { background: var(--navy-900); color: #cbd5e1; }
.section-dark h1,.section-dark h2,.section-dark h3,.section-dark h4 { color: #fff; }
.section-alt { background: var(--surface-alt); }

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--accent); border-radius: 2px; }
.section-dark .eyebrow { color: #7ee0be; }
.section-dark .eyebrow::before { background: #7ee0be; }

h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: .95rem;
  border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(23,166,115,.35); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 6px 18px rgba(23,166,115,.4); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-outline { background: transparent; color: var(--navy-800); border: 2px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-white { background: #fff; color: var(--navy-900); }
.btn-white:hover { background: #eef2f7; color: var(--navy-900); }

/* Top bar */
.topbar { background: var(--navy-900); color: #94a3b8; font-size: .8rem; padding: 8px 0; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #cbd5e1; }
.topbar a:hover { color: #fff; }
.topbar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-left span { display: inline-flex; align-items: center; gap: 6px; }
.lang-switch { display: flex; align-items: center; gap: 4px; }
.lang-switch button {
  background: transparent; border: 1px solid rgba(255,255,255,.2); color: #cbd5e1;
  padding: 4px 9px; border-radius: 4px; font-size: .72rem; font-weight: 600; cursor: pointer;
}
.lang-switch button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.lang-switch button:hover:not(.active) { border-color: #fff; color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 38px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-text strong { font-size: 1.35rem; font-weight: 800; color: var(--navy-900); line-height: 1; letter-spacing: .02em; }
.logo-text small { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--ink); font-weight: 600; font-size: .9rem; padding: 8px 12px; border-radius: 6px; }
.nav a:hover, .nav a.active { color: var(--accent); background: var(--accent-pale); }
.nav-cta { margin-inline-start: 10px; }

.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 5px; }
.has-dropdown > a::after { content: ""; width: 0; height: 0; border-inline-start: 4px solid transparent; border-inline-end: 4px solid transparent; border-top: 4px solid currentColor; }
.dropdown {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--body); font-weight: 500; }
.dropdown a:hover { background: var(--surface-alt); color: var(--accent); }
.dropdown a strong { display: block; color: var(--ink); font-size: .9rem; }
.dropdown.mega { min-width: 560px; padding: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; align-items: start; }
.dropdown.mega .mega-col { display: flex; flex-direction: column; }
@media (max-width: 1360px) { .dropdown.mega { inset-inline-start: auto; inset-inline-end: 0; } }
.dropdown.mega a { padding: 8px 10px; font-size: .85rem; line-height: 1.35; }
@media (max-width: 980px) { .dropdown.mega { min-width: 240px; grid-template-columns: 1fr; } }
.dropdown a small { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; }

.mobile-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(240,253,250,.92) 0%, rgba(248,250,252,.92) 50%, rgba(255,255,255,.92) 100%),
    linear-gradient(rgba(11,31,51,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,31,51,.04) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; min-height: 620px; padding: 80px 0; }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; color: var(--navy-900); line-height: 1.08; }
.hero h1 span { color: var(--accent); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 560px; margin: 20px 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats .stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--navy-900); }
.hero-stats .stat span { font-size: .8rem; color: var(--muted); }
.hero-visual { position: relative; }
.hero-visual .card {
  background: #fff; border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); position: relative; z-index: 2;
}
.hero-visual .card img { border-radius: var(--radius-lg); object-fit: contain; aspect-ratio: 4/3; background: #f1f5f9; }
.hero-visual .card img.portrait { aspect-ratio: 3/4; background: #f1f5f9; }
.hero-visual .card img.contain-white { background: #f1f5f9; }
.hero-visual .badge {
  position: absolute; inset-block-start: -16px; inset-inline-start: -16px;
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, #22C48B 0%, var(--accent) 50%, var(--accent-dark) 100%);
  color: #fff; padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: .78rem; letter-spacing: .02em; z-index: 3;
  box-shadow: 0 6px 18px rgba(23, 166, 115, .35);
  animation: badge-glow 2.8s ease-in-out infinite;
}
/* Gold spark dot — celebratory accent for the "New" badge, replacing the
   heavy navy pill (lighter, more festive, still on-brand green). */
.hero-visual .badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
  background: #FFD666; box-shadow: 0 0 0 3px rgba(255, 214, 102, .30);
}
@keyframes badge-glow {
  0%, 100% { box-shadow: 0 6px 18px rgba(23, 166, 115, .35); }
  50% { box-shadow: 0 6px 24px rgba(23, 166, 115, .55); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual .badge { animation: none; }
}
.hero-visual .blob {
  position: absolute; inset-inline-end: -50px; inset-block-end: -50px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(23,166,115,.18) 0%, transparent 70%); z-index: 1;
}

/* Trust strip */
.trust { padding: 28px 0; background: #fff; border-bottom: 1px solid var(--line); }
.trust .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trust-logos { display: flex; gap: 28px; align-items: center; opacity: .7; flex-wrap: wrap; }
.trust span { font-size: .8rem; color: var(--muted); font-weight: 600; }

/* Cards */
.card-grid { display: grid; gap: 24px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-5 { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-light); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-img { margin: -28px -28px 20px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; background: #f1f5f9; }
.card-img img { width: 100%; aspect-ratio: 16/10; object-fit: contain; padding: 20px; }
.card .link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; color: var(--accent); font-size: .9rem; }

/* Video panel — used on the About page "Our Story" block, where a factory clip
   sits in the same .card-img slot as product art. Static art uses contain +
   padding; a 16:9 clip would letterbox badly in that 16/10 box, so the video
   fills the frame edge-to-edge and keeps the navy backdrop behind it. */
.card-img.video-frame video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--navy-950); }

/* About — history wall: mirrors the factory exhibit wall, one panel per era.
   The wall's panels lead with huge decade numbers, so each step card opens
   with oversized gradient years over a rail dot on the left edge. */
.history-steps { position: relative; margin-top: 40px; padding-left: 34px; }
.history-steps::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--navy-700), var(--accent)); }
.history-step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; margin-bottom: 28px; }
.history-step:last-child { margin-bottom: 0; }
.history-step::before { content: ""; position: absolute; left: -34px; top: 34px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent); }
.history-step:last-child::before { background: var(--navy-700); box-shadow: 0 0 0 2px var(--navy-700); }
.history-step-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.history-step-years { font-size: 2.4rem; font-weight: 800; line-height: 1; letter-spacing: .01em; background: linear-gradient(135deg, var(--navy-800) 35%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--navy-800); }
.history-step-chapter { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-pale); padding: 4px 11px; border-radius: 999px; }
.history-step h3 { margin: 14px 0 6px; font-size: 1.15rem; }
.history-step > p { margin: 0 0 14px; color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* 逐年足迹：年份固定左列 + 事件文字，一事件一行，方便后续继续追加 */
.history-milestones { list-style: none; margin: 0 0 20px; padding: 2px 0 2px 18px; border-left: 2px solid var(--line); }
.history-milestones li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.history-milestones li:last-child { border-bottom: 0; padding-bottom: 2px; }
.history-milestones li::before { content: ""; position: absolute; left: -23px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.milestone-year { flex: 0 0 auto; min-width: 66px; font-size: 1.05rem; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--navy-800); }
.milestone-text { flex: 1 1 260px; color: var(--body); font-size: .95rem; line-height: 1.6; }

.history-step-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 2px; }
.history-step-photos img { width: 100%; aspect-ratio: 4/3; object-fit: contain; padding: 5px; box-sizing: border-box; border-radius: var(--radius); border: 1px solid var(--line); background: #f1f5f9; display: block; }
@media (max-width: 768px) {
  .history-step-photos { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
  .history-steps { padding-left: 22px; }
  .history-steps::before { left: 6px; }
  .history-step { padding: 20px; }
  .history-step::before { left: -22px; top: 26px; }
  .history-step-years { font-size: 1.7rem; }
  .history-milestones { padding-left: 14px; }
  .history-milestones li { gap: 2px 10px; padding: 9px 0; }
  .history-milestones li::before { left: -19px; top: 16px; }
  .milestone-year { min-width: 52px; font-size: .98rem; }
}

/* Clickable card: the .card-link anchor covers the whole card area */
.card.clickable { position: relative; }
.card.clickable .card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Product families */
.family-card { display: flex; flex-direction: column; height: 100%; }
.family-card .card-img { aspect-ratio: 16/10; background: #f1f5f9; }
.family-card .card-img img { aspect-ratio: 16/10; }

/* Product variant compare card — used on series pages with two cabinet sizes
   (DT-T1 vs DT-T2, etc.). Strong model-code badge anchors the variant. */
.variant-compare { align-items: stretch; }
.variant-card { display: flex; flex-direction: column; height: 100%; }
.variant-card .card-img { background: #f1f5f9; }
.variant-card .card-img img { aspect-ratio: 4/3; object-fit: contain; padding: 18px; }
.variant-body { padding: 0 4px 4px; }
.variant-tag {
  display: inline-block;
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.variant-card h3 { margin-bottom: 4px; }
.variant-skus { color: var(--muted); font-size: .88rem; margin: 0 0 14px; font-family: var(--font-mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace); }
.variant-best { color: var(--muted); font-size: .88rem; font-style: italic; margin-top: 14px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--line); }
th { background: var(--surface-alt); color: var(--ink); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
tr:hover td { background: #f8fafc; }

/* Feature list */
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 8px 0 8px 30px; position: relative; }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 12px; width: 18px; height: 18px;
  background: var(--accent); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--body); font-weight: 600; cursor: pointer; font-size: .88rem; }
.tab.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Series quick-switcher — pill row of sibling links */
.series-nav-bar { padding: 28px 0 0; }
.series-nav-bar .tabs { margin-bottom: 0; }
.series-nav-bar .tab { text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.series-nav-bar .tab:hover { background: var(--surface-alt); }
.series-nav-bar .tab.active:hover { background: var(--navy-900); }

/* Flagship GreenGuard */
.flagship { background: var(--navy-900); color: #e2e8f0; position: relative; overflow: hidden; }
.flagship::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(23,166,115,.15), transparent 50%); }
.flagship .container { position: relative; z-index: 2; }
.flagship-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.flagship h2 { color: #fff; }
.flagship .lead { color: #94a3b8; font-size: 1.05rem; }
.flagship .spec-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 28px; }
.flagship .spec-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 18px; }
.flagship .spec-card strong { display: block; color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.flagship .spec-card span { font-size: .85rem; color: #94a3b8; }
.flagship-visual { text-align: center; }
/* The GreenGuard art is a transparent cut-out, so it carries its own white
   rounded mat here -- otherwise the unit floats naked on the navy backdrop.
   width:auto is load-bearing: build.py stamps width/height attributes on
   every <img>, and a max-height-only box would stretch the art sideways.
   The cap is 520px rather than 420px: the art is a tall portrait crop (0.86)
   that fills only 86% of its own frame, so a 420px box rendered the unit just
   312px wide inside a ~620px column -- visually half-empty. 520px brings it to
   about 387px without the mat outgrowing the two-line heading beside it. */
  .flagship-visual img { width: auto; max-height: 520px; margin-inline: auto; background: #f1f5f9; padding: 30px; border-radius: var(--radius-xl); }

/* ROI calculator */
.calculator { background: var(--surface); border-radius: var(--radius-xl); padding: 32px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.calculator h3 { margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .85rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.roi-results { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 24px; }
.roi-result { background: var(--accent-pale); border-radius: var(--radius); padding: 18px; text-align: center; }
.roi-result strong { display: block; font-size: 1.5rem; color: var(--accent-dark); }
.roi-result span { font-size: .8rem; color: var(--muted); }

/* Accordion */
.accordion { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 0; }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; background: #fff; border: 0; font-weight: 700; color: var(--ink); font-size: .95rem; text-align: start;
}
.acc-head::after { content: "+"; font-size: 1.4rem; color: var(--accent); }
.acc-item.open .acc-head::after { content: "−"; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.acc-body > div { padding: 0 22px 18px; color: var(--muted); font-size: .95rem; }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #e8f8f1; max-width: 640px; margin: 0 auto 24px; }

/* Quick-spec stat strip — dark band, 6 cells side-by-side */
.stats-strip { padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.stat-cell { padding: 18px 16px; border-left: 1px solid rgba(255,255,255,.1); text-align: center; }
.stat-cell:first-child { border-left: 0; }
.stat-num { font-size: clamp(1.1rem, 1.8vw, 1.55rem); font-weight: 800; color: #fff; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.6); margin-top: 6px; }
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .stat-cell:nth-child(-n+2) { border-top: 0; }
}

/* Configuration list — pump / tier / form-factor choice (vertical entries)
   The red code on the right ("V: Vane Pump", "E: Economy", etc.) doubles as
   the heading for each entry, so we promote it and drop the duplicated
   badge-letter + plain title that used to sit on the left. */
.config-list { max-width: 880px; margin: 0; }
.config-item { padding: 28px 0; border-top: 1px solid var(--line); }
.config-item:first-child { border-top: 0; padding-top: 0; }
.config-item h3.config-code {
  margin: 0 0 12px;
  color: #E24B4A;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.config-item > p { margin: 12px 0 0; color: var(--body); line-height: 1.7; }
.config-item ul { margin: 12px 0; padding-left: 20px; color: var(--body); line-height: 1.7; }
.config-item ul li { margin-bottom: 4px; }
.config-item .config-best { margin-top: 14px; color: var(--muted); font-size: .9rem; font-style: italic; }

/* Anatomy grid — 6 core components */
.anatomy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.anatomy-tile { background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; display: flex; gap: 16px; align-items: flex-start; }
.anatomy-tile .anatomy-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-light); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.anatomy-tile .anatomy-icon svg { width: 22px; height: 22px; }
.anatomy-tile h4 { margin: 0 0 4px; font-size: .95rem; color: var(--ink); }
.anatomy-tile p { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 768px) { .anatomy-grid { grid-template-columns: 1fr; } }
.cta-band .btn-white { margin-inline-end: 12px; }

/* Footer */
.site-footer { background: var(--navy-950); color: #94a3b8; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text small { color: #64748b; }
.footer-brand .logo img { background: #fff; padding: 6px 10px; border-radius: 6px; box-shadow: var(--shadow-sm); }
.footer-brand p { font-size: .9rem; margin: 16px 0; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-col a { display: block; color: #94a3b8; font-size: .88rem; padding: 6px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; }

/* Breadcrumbs */
.breadcrumbs { background: var(--surface-alt); padding: 14px 0; font-size: .82rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* Breadcrumb bar (inserted by main.js after .page-header) */
.breadcrumbs-bar { background: transparent; padding: 18px 0 6px; font-size: .82rem; color: var(--muted); }
.breadcrumbs-bar .container { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.breadcrumbs-bar a { color: var(--muted); text-decoration: none; }
.breadcrumbs-bar a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs-bar span { color: var(--ink); font-weight: 600; }
.breadcrumbs-bar .sep { color: var(--line-strong); padding: 0 4px; }
.breadcrumbs-bar:empty { display: none; }
html[dir="rtl"] .breadcrumbs-bar .container { direction: rtl; }

/* Page header */
.page-header { background: var(--surface-alt); padding: 56px 0 40px; }
.page-header h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.page-header p { color: var(--muted); font-size: 1.05rem; max-width: 760px; }

/* Model grid */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.model-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.model-card .tag { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border-radius: 4px; background: var(--accent-pale); color: var(--accent-dark); margin-bottom: 10px; }
.model-card h4 { font-size: 1rem; margin-bottom: 6px; }
.model-card p { font-size: .85rem; color: var(--muted); margin: 0; }

/* Numbered parts list — construction / spare parts breakdown */
.parts-list { list-style: none; padding: 0; margin: 0; counter-reset: part;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 26px; }
.parts-list > li { position: relative; padding-left: 32px; font-size: .92rem; color: var(--body); counter-increment: part; }
.parts-list > li::before {
  content: counter(part); position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy-900); color: #fff;
  font-size: .66rem; font-weight: 700; line-height: 20px; text-align: center;
}
.parts-list > li > ul { list-style: none; padding: 4px 0 0 0; margin: 0; }
.parts-list > li > ul > li { font-size: .85rem; color: var(--muted); }
.parts-list > li > ul > li::before { content: none; }

/* Inline breadcrumb (inside page container) */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--ink); font-weight: 600; }

/* Product detail pages */
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.product-detail-img { background: #f1f5f9; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.product-detail-img img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.product-detail-copy .tag { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 5px 10px; border-radius: 4px; background: var(--accent-pale); color: var(--accent-dark); margin-bottom: 14px; }
.product-detail-copy h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-bottom: 14px; }
.product-detail-copy > p { color: var(--muted); margin-bottom: 22px; }
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
}
html[dir="rtl"] .breadcrumb { text-align: right; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); }
.gallery-item img { aspect-ratio: 1/1; object-fit: contain; background: #f1f5f9; display: block; }
.gallery-cap { position: absolute; left: 12px; right: 12px; bottom: 10px; padding: 6px 10px; background: rgba(11,31,51,.82); color: #fff; font-size: .78rem; line-height: 1.35; border-radius: 6px; opacity: 0; transform: translateY(8px); transition: opacity .18s, transform .18s; pointer-events: none; }
.gallery-item:hover .gallery-cap { opacity: 1; transform: translateY(0); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch; }
.contact-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px 28px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
/* 顶部工业风渐变细条 */
.contact-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--navy-600) 76%, var(--navy-800) 100%);
}
.contact-card:last-child { margin-bottom: 0; }
.contact-card h4 { margin-bottom: 16px; font-size: 1.06rem; letter-spacing: .01em; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item b {
  color: var(--ink); display: block; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px;
}
/* 用 > div > 限定，避免命中 .contact-ico 图标 span */
.contact-item > div > span { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.contact-ico {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px;
  background: var(--accent-light); color: var(--accent);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(23,166,115,.16);
}
.contact-ico svg {
  width: 19px; height: 19px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.gap-2 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.items-center { align-items: center; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { order: -1; }
  .flagship-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 10px 0 0; }
  .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-inline-start: 12px; }
  .mobile-toggle { display: block; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4, .card-grid.cols-5 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .roi-results { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}

/* RTL tweaks */
html[dir="rtl"] .hero-visual .badge { inset-inline-start: auto; inset-inline-end: -16px; }
html[dir="rtl"] .check-list li { padding-inline-start: 0; padding-inline-end: 30px; }
html[dir="rtl"] .check-list li::before { inset-inline-start: auto; inset-inline-end: 0; }


/* Certificates */
.cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cert-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cert-card h3 { margin-bottom: 0; }
.cert-card p { color: var(--muted); font-size: .92rem; }
.cert-card .btn { margin-top: auto; }

/* Specification tables */
.spec-subtitle { font-size: 1.02rem; font-weight: 700; margin: 34px 0 14px; color: var(--ink); }
.spec-subtitle:first-of-type { margin-top: 8px; }
.spec-table th { white-space: nowrap; }
.spec-table td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.spec-table tbody tr:nth-child(even) { background: #f8fafc; }
.spec-note { margin-top: 34px; padding: 22px 24px; background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.spec-note h4 { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; color: var(--accent-dark); }
.spec-note p { color: var(--body); font-size: .92rem; margin-bottom: 10px; }
.spec-note p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .cert-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Series blocks — 每个机柜型号独立成块，图文左右交替
   共用：dt-classic-series / dt-g-series / dt-l-series / dt-t-series
   ============================================================ */
.series-block {
  /* --bleed: 色带比正文左右各宽出的量。窄屏必须归零，否则横向溢出 */
  --bleed: 0px;
  position: relative;
  isolation: isolate;            /* 把 ::before 的 z-index:-1 关在本块内 */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding: 54px var(--bleed);
  margin-inline: calc(-1 * var(--bleed));
  border-top: 1px solid var(--line);
}
.series-block:first-of-type { border-top: 0; padding-top: 6px; }
.series-block.reversed .series-media { order: 2; }
.series-block.reversed .series-copy  { order: 1; }

/* 只有容器两侧留得下 34px 时才外扩色带（≥901px 屏幕） */
@media (min-width: 901px) {
  .series-block { --bleed: 34px; }
}

/* 层理 —— 偶数层一块冷蓝灰面板。
   上下各内缩 14px，不贴分隔线；四角同圆角；纯色不渐隐
   （之前"上沿硬 + 下沿渐隐"上下不对称，看着别扭）。
   色值 #E5EAF2：比 --surface-alt 深一档、略偏冷蓝，白底上一眼能区分 */
.series-block:nth-of-type(even)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  bottom: 14px;
  border-radius: var(--radius-lg);
  background: #E5EAF2;
  z-index: -1;
  pointer-events: none;
}

/* 分层标记 —— 分隔线**正中**一小段强调绿。
   之前挂在左端，整条线一边重一边轻；改居中后左右对称 */
.series-block:not(:first-of-type)::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
  pointer-events: none;
}

.series-media { position: sticky; top: 96px; }
.series-hero {
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 14px;
}
.series-hero img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  display: block;
}
.series-thumbs { display: flex; gap: 10px; }
.series-thumbs img {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f1f5f9;
  transition: transform .2s ease, box-shadow .2s ease;
}
.series-thumbs img:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(11,31,51,.14); }

/* Compact media stack — opt-in modifier for tall portrait products
   (e.g., DT-HF cabinet dispensers) where the hero would otherwise
   dwarf the right-hand copy. Keeps the site-wide series-block layout
   pattern unchanged for DT-G, STP and others. */
.series-block.is-compact { align-items: center; }
.series-block.is-compact .series-hero {
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.series-block.is-compact .series-hero img {
  width: auto;
  max-width: 100%;
  max-height: 440px;
  aspect-ratio: auto;          /* use the photo's natural ratio, no forced 3/4 */
  margin: 0 auto;
}
/* Gallery hero frame - main.js tags the hero with .hero-fixed and feeds in
   --hero-ratio measured from the tallest image in the group. Result: the frame
   keeps one size while the thumbs swap, and wider photos letterbox instead of
   resizing the block. Galleries with their own fixed ratio are never tagged. */
.series-block .series-hero img.hero-fixed {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: var(--hero-ratio);
  object-fit: contain;
}
.series-block.is-compact .series-thumbs { justify-content: center; }
.series-block.is-compact .series-thumbs img {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  aspect-ratio: 1 / 1;
}

/* Gallery: thumbs under .series-hero that swap the main image on click */
.series-thumbs [data-hero] { cursor: pointer; }
.series-thumbs [data-hero].is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-pale), 0 6px 14px rgba(11,31,51,.12);
}
.series-thumbs:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius);
}

/* Product detail: hero card + thumbs layer (main.js seriesGallery) */
.product-detail-img.series-hero { padding: 28px; margin-bottom: 0; }
.product-detail-img.series-hero img { aspect-ratio: 4 / 3; max-height: 480px; }
.product-detail .series-thumbs { margin-top: 14px; }
.product-detail .series-thumbs img { flex: 0 0 auto; width: 68px; height: 68px; object-fit: cover; }

.series-copy .tag {
  display: inline-block; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 5px 10px; border-radius: 4px;
  background: var(--accent-pale); color: var(--accent-dark); margin-bottom: 14px;
}
.series-copy h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: 10px; }
.series-copy h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: 10px; }
.series-copy .series-sum { color: var(--muted); margin-bottom: 20px; line-height: 1.75; }
.series-copy .check-list { margin-bottom: 22px; }
.series-copy .cta-row { margin-top: 28px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.model-chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 14px 0 4px; margin-bottom: 24px;
  border-top: 1px dashed var(--line);
}
.model-chips .chips-label {
  font-size: .8rem; color: var(--muted); margin-right: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.model-chips .chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem; font-weight: 600;
  padding: 5px 10px; border-radius: 5px;
  background: var(--navy-900); color: #fff; letter-spacing: .02em;
}

/* Per-series model code breakdown — compact table that lives under each
   series description (replaces the page-bottom consolidated reference). */
.model-codes {
  margin: 6px 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.model-codes .mct-h {
  margin: 0;
  padding: 8px 14px;
  font-size: .72rem;
  color: var(--muted);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.model-codes .mct-hint {
  text-transform: none;
  font-weight: 400;
  color: var(--body);
  font-size: .78rem;
  letter-spacing: 0;
}
.model-codes table { width: 100%; border-collapse: collapse; }
.model-codes td {
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
  vertical-align: top;
}
.model-codes tr:last-child td { border-bottom: 0; }
.model-codes td.mct-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  color: var(--navy-900);
  width: 92px;
  white-space: nowrap;
}
.model-codes td.mct-spec { color: var(--body); }

.series-note {
  background: var(--surface-alt); border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0; padding: 18px 22px; margin-top: 32px;
}
.series-note h3 { font-size: 1.05rem; margin-bottom: 6px; }
.series-note p { color: var(--body); font-size: .92rem; margin: 0; }

/* 车间实拍 / 装配过程小图廊 */
.shot-gallery { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.shot-gallery img {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: #f1f5f9;
}

/* 产品图侧下方的「Request a Quote」小按钮 —— 紧贴缩略图 */
.series-media-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding: 11px 16px;
  font-family: var(--font-sans);
  font-size: .88rem; font-weight: 700; letter-spacing: .02em;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 16px rgba(23,166,115,.22);
}
.series-media-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(23,166,115,.28);
}

@media (max-width: 900px) {
  .series-block { grid-template-columns: 1fr; gap: 26px; padding: 32px 0; }
  .series-block.reversed .series-media { order: 0; }
  .series-block.reversed .series-copy  { order: 0; }
  .series-media { position: static; }
  .series-hero img { aspect-ratio: 4 / 3; }
  .shot-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Image Lightbox — 点 [data-lightbox] 图片弹大图预览
   ============================================================ */
[data-lightbox] { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(11, 31, 51, .92);
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  background: #fff;
}
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff;
  font-size: 1.6rem; line-height: 1; border: 0; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,.32); transform: scale(1.06); }
.lightbox-caption {
  position: absolute; left: 0; right: 0; bottom: 22px;
  text-align: center; color: rgba(255,255,255,.86);
  font-size: .92rem; padding: 0 32px;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* Zoom badge — 链接内图片右上角的放大镜角标，点开大图不跳转 */
.img-zoom {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--ink);
  display: grid; place-items: center; cursor: zoom-in;
  box-shadow: 0 2px 8px rgba(11,31,51,.28);
  opacity: 0; transform: scale(.9);
  transition: opacity .18s ease, transform .18s ease;
}
.img-zoom svg { width: 17px; height: 17px; }
.card-img:hover .img-zoom,
.product-detail-img:hover .img-zoom,
.img-zoom:hover,
.img-zoom:focus-visible { opacity: 1; transform: scale(1); }
.img-zoom:hover { box-shadow: 0 4px 14px rgba(11,31,51,.34); }
@media (hover: none) {
  .img-zoom { opacity: 1; transform: none; }
}

/* About — philosophy: motto on its own line, invitation below */
.philosophy-motto { margin: 4px 0 10px; font-size: 1.45rem; font-weight: 700; letter-spacing: .01em; color: var(--navy-800); }
.philosophy-invite { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* ================= Blog ================= */
.blog-post { max-width: 820px; margin: 0 auto; }
.blog-post p { margin: 0 0 18px; line-height: 1.85; font-size: 1.03rem; }
.blog-post h2 { margin: 34px 0 14px; font-size: 1.5rem; line-height: 1.3; }
.blog-post h3 { margin: 28px 0 10px; font-size: 1.2rem; }
.blog-post h4 { margin: 22px 0 8px; font-size: 1.05rem; }
.blog-post ul, .blog-post ol { margin: 0 0 18px 22px; line-height: 1.85; }
.blog-post li { margin-bottom: 6px; }
.blog-post img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); margin: 26px 0; }
.blog-post blockquote { margin: 24px 0; padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--surface-alt); border-radius: var(--radius); }
.blog-post a { color: var(--accent-dark); text-decoration: underline; }
.blog-post em { font-style: italic; }
.blog-hero { width: 100%; height: auto; border-radius: var(--radius-lg); margin-bottom: 30px; }
.blog-date { color: var(--muted); font-size: .9rem; margin-top: 8px; }

/* ================= Pagination ================= */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 44px 0 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--muted); font-size: .95rem; font-weight: 600; text-decoration: none; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.pagination a:hover { border-color: var(--accent); color: var(--accent-dark); }
.pagination .is-current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .is-disabled { opacity: .4; }
@media (max-width: 600px) {
  .pagination { gap: 6px; }
  .pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 10px; }
}
