/* ============================================================
   Taiming Hardware - English Site Styles
   Light industrial theme · SEO-first semantic design
   ============================================================ */

:root {
  --p: #0050b3;
  --p-d: #003a85;
  --p-l: #e8f1fc;
  --p-l2: #dce9fa;
  --a: #1a7bf9;
  --a-d: #0f63d4;
  --ink: #333333;
  --muted: #666666;
  --line: #e5e5e5;
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --shadow-sm: 0 1px 2px rgba(0, 80, 179, .06), 0 2px 8px rgba(0, 80, 179, .05);
  --shadow-md: 0 4px 14px rgba(0, 80, 179, .09), 0 12px 32px rgba(0, 80, 179, .07);
  --r: 14px;
  --font-h: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --font-b: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-b); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; }

img, svg { display: inline-block; vertical-align: middle; max-width: 100%; }
a { color: var(--p); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--a); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-h); font-weight: 700; line-height: 1.18; letter-spacing: .2px; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 .9em; }
strong { font-weight: 600; }
time { font-variant-numeric: tabular-nums; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: 78px 0; }
.section-alt { background: var(--bg-alt); }
.section-deep { background: linear-gradient(135deg, var(--p-d) 0%, var(--p) 100%); color: #fff; }

.kicker { display: inline-block; font-family: var(--font-h); font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; font-size: .78rem; color: var(--a); margin-bottom: 10px; }
.sec-head { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.sec-head h2 { margin-bottom: 12px; }
.sec-head p { color: var(--muted); font-size: 1.03rem; }
.sec-head-light .kicker { color: #9cc6ff; }
.sec-head-light p { color: rgba(255,255,255,.82); }
.sec-more { text-align: center; margin-top: 40px; }

.lead { font-size: 1.1rem; color: var(--muted); }

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-h); font-weight: 700; font-size: .98rem; padding: 13px 26px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; transition: all .18s ease; line-height: 1.2; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--a); color: #fff; box-shadow: 0 4px 14px rgba(26,123,249,.35); }
.btn-accent:hover { background: var(--a-d); color: #fff; transform: translateY(-1px); }
.btn-primary { background: var(--p); color: #fff; }
.btn-primary:hover { background: var(--p-d); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--p); border-color: rgba(15,77,140,.35); }
.btn-ghost:hover { border-color: var(--p); color: var(--p); background: var(--p-l); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--p); border-color: var(--p); }
.btn-outline:hover { background: var(--p); color: #fff; }

/* ---------------- topbar ---------------- */
.topbar { background: var(--p-d); color: rgba(255,255,255,.85); font-size: .83rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 7px 0; min-height: 34px; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.85); }
.topbar-item:hover { color: #fff; }
.topbar-right { display: flex; gap: 18px; }
.topbar-lang { font-weight: 600; color: #9cc6ff; }

/* ---------------- header ---------------- */
.site-header { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-h); font-size: 1.28rem; font-weight: 800; letter-spacing: .3px; color: var(--p-d); }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .6px; text-transform: uppercase; }
.brand-light .brand-text strong { color: var(--p-d); }
.brand-light .brand-text small { color: var(--muted); }
.logo-mark { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: transparent; display: block; flex-shrink: 0; }
.brand img.logo-mark { margin-right: 0; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav ul li { position: relative; }
.main-nav ul li > a { display: flex; align-items: center; gap: 5px; padding: 10px 13px; font-family: var(--font-h); font-weight: 600; font-size: 1rem; color: var(--ink); border-radius: 8px; }
.main-nav ul li > a:hover, .main-nav ul li.active > a { color: var(--p); background: var(--p-l); }
.chev { transition: transform .18s ease; }
.has-drop:hover .chev { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease; z-index: 99; }
.dropdown a { display: block; padding: 10px 14px; border-radius: 8px; font-size: .93rem; color: var(--ink); }
.dropdown a:hover { background: var(--p-l); color: var(--p); }
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--p-d); border-radius: 3px; transition: all .22s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------- hero ---------------- */
.hero { background: linear-gradient(135deg, var(--p-d) 0%, var(--p) 55%, #1a7bf9 140%); padding: 84px 0 96px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-bottom: 0; }
.hero-badge { display: inline-block; font-size: .8rem; font-weight: 700; font-family: var(--font-h); letter-spacing: 1px; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); padding: 7px 14px; border-radius: 100px; margin-bottom: 20px; backdrop-filter: blur(4px); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero-sub { color: rgba(255,255,255,.88); font-size: 1.12rem; max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-points { display: grid; gap: 8px; }
.hero-points li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.92); font-size: .95rem; }
.hero-points li::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 50%; background: rgba(255,255,255,.16) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4L19 7"/></svg>') center/12px no-repeat; }
.hero-art-wrap { display: flex; justify-content: center; }
.hero-art { width: 100%; max-width: 520px; height: auto; filter: drop-shadow(0 18px 40px rgba(15,45,90,.14)); }
.hero-art-image { width: 100%; max-width: 560px; aspect-ratio: 4 / 3; object-fit: contain; object-position: center; background: #fff; border-radius: 24px; padding: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.18); }

.stats-band { display: grid; grid-template-columns: repeat(6, 1fr); background: #fff; border-bottom: 1px solid var(--line); color: var(--ink); margin-top: 0; position: relative; z-index: 2; box-shadow: var(--shadow-sm); }
.stat { text-align: center; padding: 30px 12px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-h); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; color: var(--p); }
.stat span { font-size: .82rem; color: var(--muted); }

/* ---------------- products ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-sm); transition: all .2s ease; color: var(--ink); }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--p-l2); color: var(--ink); }
.p-icon { width: 62px; height: 62px; display: flex; align-items: center; justify-content: center; background: var(--p-l); border-radius: 14px; margin-bottom: 16px; }
.p-icon svg { width: 44px; height: 44px; }
.p-icon-lg { width: 84px; height: 84px; }
.p-icon-lg svg { width: 60px; height: 60px; }
.p-icon-hero { width: 110px; height: 110px; }
.p-icon-hero svg { width: 76px; height: 76px; }
.product-card h3 { margin-bottom: 4px; }
.p-tag { color: var(--a); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.p-more { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: .92rem; color: var(--p); font-family: var(--font-h); }
.product-card:hover .p-more { color: var(--a); }

/* ---------------- quality ---------------- */
.quality-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quality-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.q-icon { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; background: var(--p-l); border-radius: 12px; margin-bottom: 14px; }
.q-icon svg { width: 38px; height: 38px; }
.quality-card h3 { margin-bottom: 8px; font-size: 1.06rem; }
.quality-card p { color: var(--muted); font-size: .92rem; flex-grow: 1; }
.q-highlight { margin-top: 12px; font-weight: 700; font-size: .9rem; color: var(--a); background: #fdf3ea; border-radius: 8px; padding: 8px 12px; }

/* ---------------- showcase ---------------- */
.showcase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.showcase-item { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow-sm); }
.s-num { font-family: var(--font-h); font-weight: 800; font-size: 1.2rem; color: var(--p-l2); }

/* ---------------- process ---------------- */
.process-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.step { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r); padding: 22px 16px; text-align: center; transition: background .2s ease; }
.step:hover { background: rgba(255,255,255,.13); }
.step-num { display: inline-block; font-family: var(--font-h); font-weight: 800; font-size: 1.5rem; color: var(--p); margin-bottom: 8px; }
.step h3 { font-size: 1rem; margin-bottom: 6px; color: #fff; }
.step p { font-size: .82rem; color: rgba(255,255,255,.72); margin: 0; }

/* ---------------- strength ---------------- */
.strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.strength-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.strength-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--a), var(--p)); }
.str-num { font-family: var(--font-h); font-weight: 800; font-size: 2.4rem; color: var(--p-l2); line-height: 1; display: block; margin-bottom: 10px; }
.strength-card h3 { margin-bottom: 10px; }
.strength-card p { color: var(--muted); font-size: .94rem; }

/* ---------------- clients ---------------- */
.client-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.client-chip { font-family: var(--font-h); font-weight: 700; font-size: 1.12rem; letter-spacing: .5px; color: var(--p); background: #fff; border: 1px solid var(--p-l2); border-radius: 100px; padding: 12px 30px; box-shadow: var(--shadow-sm); }

/* ---------------- flow ---------------- */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow-step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; min-height: 96px; }
.flow-num { font-family: var(--font-h); font-weight: 800; font-size: 1.1rem; color: var(--a); margin-bottom: 6px; }
.flow-step p { font-size: .92rem; margin: 0; font-weight: 600; }

/* ---------------- about ---------------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; }
.about-copy h2 { margin-bottom: 14px; }
.about-copy p { color: var(--muted); }
.about-copy p.lead { color: var(--ink); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.badge { font-size: .8rem; font-weight: 700; font-family: var(--font-h); letter-spacing: .4px; color: var(--p); background: var(--p-l); border: 1px solid var(--p-l2); border-radius: 100px; padding: 7px 15px; }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.media-main { grid-column: 1 / -1; background: linear-gradient(135deg, var(--p-d), var(--p)); color: #fff; border-radius: var(--r); min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-family: var(--font-h); font-weight: 700; font-size: 1.2rem; box-shadow: var(--shadow-md); }
.media-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--p); font-family: var(--font-h); font-weight: 700; font-size: .95rem; box-shadow: var(--shadow-sm); }

/* ---------------- articles ---------------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .2s ease; color: var(--ink); }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); color: var(--ink); }
.ac-thumb { height: 130px; background: linear-gradient(135deg, var(--p-l2), var(--p-l)); display: flex; align-items: flex-end; padding: 16px; }
.ac-thumb span { font-size: .72rem; font-weight: 700; font-family: var(--font-h); letter-spacing: 1.5px; text-transform: uppercase; color: var(--p); background: #fff; border-radius: 100px; padding: 5px 12px; }
.ac-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.ac-body time { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.ac-body h3, .ac-body h2 { font-size: 1.08rem; margin-bottom: 8px; }
.ac-body p { color: var(--muted); font-size: .9rem; flex-grow: 1; }

/* ---------------- faq ---------------- */
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.faq-head h2 { margin-bottom: 12px; }
.faq-head p { color: var(--muted); margin-bottom: 20px; }
.faq-list, .faq-single { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--p); transition: transform .2s ease; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px 18px; color: var(--muted); font-size: .95rem; }
.faq-a p { margin: 0; }
.faq-single { max-width: 820px; margin-inline: auto; }
.faq-cta { text-align: center; margin-top: 44px; padding: 40px; background: var(--p-l); border-radius: var(--r); }
.faq-cta h2 { margin-bottom: 6px; }
.faq-cta p { color: var(--muted); margin-bottom: 18px; }

/* ---------------- cta band ---------------- */
.cta-band { background: linear-gradient(120deg, var(--p-d) 0%, var(--p) 60%, var(--a) 140%); color: #fff; padding: 62px 0; }
.cta-in { text-align: center; }
.cta-in h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 10px; }
.cta-in p { color: rgba(255,255,255,.92); max-width: 640px; margin: 0 auto 24px; }
.cta-in .hero-cta { justify-content: center; margin: 0; }

/* ---------------- page hero / crumbs ---------------- */
.page-hero { background: linear-gradient(180deg, #f4f7fb, #e8f1fc); padding: 46px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { color: var(--p-d); margin-bottom: 10px; }
.page-hero > .container > p { color: var(--muted); max-width: 680px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--p); }
.crumbs em { font-style: normal; color: var(--ink); font-weight: 600; }

/* ---------------- product pages ---------------- */
/* two-column layout: left category sidebar + right content (mirrors Chinese site) */
.cat-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; }
.cat-side { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.cat-side-head { font-family: var(--font-h); font-weight: 800; font-size: .95rem; letter-spacing: .4px; color: #fff; background: linear-gradient(135deg, var(--p), var(--p-d)); padding: 14px 18px; }
.cat-nav { padding: 10px; display: grid; gap: 4px; }
.cat-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 9px; color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; transition: all .15s ease; cursor: pointer; }
.cat-link:hover { background: var(--p-l); color: var(--p-d); }
.cat-link.on { background: var(--p); color: #fff; }
.cat-link .chev { transition: transform .18s ease; opacity: .6; }
.cat-group[open] > .cat-link .chev { transform: rotate(180deg); }
.cat-sub { display: grid; gap: 2px; padding: 2px 0 6px 14px; border-left: 2px solid var(--p-l2); margin-left: 14px; }
.cat-sub-link { padding: 7px 12px; border-radius: 8px; color: var(--muted); font-size: .86rem; text-decoration: none; transition: all .15s ease; }
.cat-sub-link:hover { color: var(--p-d); background: var(--p-l); }
.cat-sub-link.on { color: var(--p); font-weight: 700; background: var(--p-l); }
.cat-all { display: block; text-align: center; font-weight: 700; font-size: .88rem; color: var(--p); border-top: 1px solid var(--line); padding: 12px 10px; text-decoration: none; transition: all .15s ease; }
.cat-all:hover { background: var(--p-l); }
.cat-side .cat-group summary { list-style: none; }
.cat-side .cat-group summary::-webkit-details-marker { display: none; }
.product-page-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product-page-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px; box-shadow: var(--shadow-sm); }
.ppc-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.ppc-head .p-icon { margin: 0; }
.ppc-desc { color: var(--muted); }
.ppc-feats { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.ppc-feats li { font-size: .82rem; font-weight: 600; color: var(--p); background: var(--p-l); border-radius: 100px; padding: 5px 13px; }

.pp-hero-grid { display: flex; align-items: center; gap: 24px; }
.pp-hero-grid h1 { margin: 0 0 4px; }
.pp-hero-grid p { color: var(--muted); margin: 0; }
.pp-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.pp-main h2 { margin: 26px 0 10px; }
.pp-main h3 { margin: 22px 0 8px; color: var(--p-d); }
.pp-main p { color: var(--muted); }
.pp-feats { display: grid; gap: 10px; margin: 8px 0 18px; }
.pp-feats li { position: relative; padding-left: 26px; color: var(--ink); }
.pp-feats li::before { content: ''; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--p-l) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230050b3" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4L19 7"/></svg>') center/12px no-repeat; }
.pp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pp-aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.pp-aside h3 { margin-bottom: 12px; }
.pp-related { display: grid; gap: 14px; }
.pp-related .product-card { padding: 16px; box-shadow: none; }
.pp-related .p-icon { width: 44px; height: 44px; margin-bottom: 10px; }
.pp-related .p-icon svg { width: 32px; height: 32px; }
.pp-related .product-card h3 { font-size: 1rem; }
.aside-note { background: var(--p-l); border: 1px solid var(--p-l2); border-radius: var(--r); padding: 20px; }
.aside-note strong { color: var(--p-d); display: block; margin-bottom: 8px; }
.aside-note p { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.aside-note a { font-weight: 700; }

/* ---------------- articles single ---------------- */
.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.pill { font-family: var(--font-h); font-weight: 700; font-size: .9rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 8px 20px; cursor: pointer; transition: all .18s ease; }
.pill:hover { color: var(--p); border-color: var(--p-l2); }
.pill.on { background: var(--p); color: #fff; border-color: var(--p); }
.article-single { max-width: 900px; }
.article-single .crumbs { margin: 26px 0 0; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 44px 48px; box-shadow: var(--shadow-sm); }
.post-head { text-align: center; margin-bottom: 28px; }
.post-cat { display: inline-block; font-size: .74rem; font-weight: 700; font-family: var(--font-h); letter-spacing: 1.5px; text-transform: uppercase; color: var(--p); background: var(--p-l); border-radius: 100px; padding: 6px 14px; margin-bottom: 14px; }
.post-head h1 { color: var(--p-d); margin-bottom: 12px; }
.post-meta { display: flex; justify-content: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.post-body { font-size: 1.03rem; color: #24384d; }
.post-body h2 { margin: 34px 0 12px; color: var(--p-d); font-size: 1.5rem; }
.post-body h3 { margin: 26px 0 8px; color: var(--p-d); }
.post-body p { margin-bottom: 1.05em; }
.post-body ul, .post-body ol { margin: 0 0 1.1em; padding-left: 1.4em; display: grid; gap: 6px; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { padding-left: 4px; }
.post-body blockquote { border-left: 4px solid var(--a); background: var(--bg-alt); padding: 14px 20px; border-radius: 0 10px 10px 0; margin: 1.2em 0; color: var(--muted); }
.post-body code { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; font-size: .92em; }
.post-body a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.post-share { display: flex; align-items: center; gap: 14px; margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.post-share a { font-weight: 600; }
.post-cta { margin-top: 34px; background: linear-gradient(120deg, var(--p-d), var(--p)); color: #fff; border-radius: var(--r); padding: 30px; text-align: center; }
.post-cta h3 { color: #fff; margin-bottom: 6px; }
.post-cta p { color: rgba(255,255,255,.85); margin-bottom: 16px; }
.related { margin-top: 46px; }
.related h2 { margin-bottom: 20px; }

/* ---------------- contact ---------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info h2 { margin-bottom: 12px; }
.contact-info > p { color: var(--muted); margin-bottom: 26px; }
.contact-list { display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.ci-icon { font-size: 1.4rem; line-height: 1.3; }
.contact-list strong { display: block; font-size: .92rem; margin-bottom: 2px; }
.contact-list p { margin: 0; color: var(--muted); font-size: .95rem; }
.contact-list a { font-weight: 600; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 34px; box-shadow: var(--shadow-md); }
.contact-form h2 { margin-bottom: 20px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-row input, .form-row textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: .95rem; color: var(--ink); background: #fcfdff; transition: border-color .18s ease, box-shadow .18s ease; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 3px rgba(15,77,140,.12); background: #fff; }
.form-note { font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.form-status { margin-top: 14px; font-weight: 600; font-size: .92rem; }

/* ---------------- 404 ---------------- */
.not-found { text-align: center; padding: 80px 0; }
.not-found h1 { font-size: 6rem; color: var(--p-l2); line-height: 1; }
.not-found h2 { margin: 6px 0 10px; }
.not-found p { color: var(--muted); margin-bottom: 22px; }

/* ---------------- footer ---------------- */
.site-footer { background: var(--bg-alt); color: var(--muted); border-top: 4px solid var(--p); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0 40px; }
.footer-brand p { font-size: .9rem; margin: 16px 0; color: var(--muted); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-badges span { font-size: .72rem; font-weight: 600; letter-spacing: .5px; color: var(--p); border: 1px solid var(--p-l2); border-radius: 100px; padding: 4px 11px; }
.footer-col h4 { color: var(--p); font-size: 1rem; margin-bottom: 16px; letter-spacing: .5px; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: var(--muted); font-size: .92rem; }
.footer-col a:hover { color: var(--p); }
.footer-contact li { display: grid; gap: 2px; font-size: .9rem; }
.footer-contact strong { color: var(--ink); }
.footer-contact span { color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px 0; font-size: .83rem; color: var(--muted); }
.footer-bottom-in a { color: var(--p); }

/* ---------------- back to top ---------------- */
.back-top { position: fixed; right: 22px; bottom: 90px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--p); color: #fff; font-size: 1.15rem; cursor: pointer; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; z-index: 80; }
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--p-d); }

/* ---------------- floating contact widget ---------------- */
.float-widget { position: fixed; right: 22px; bottom: 22px; z-index: 85; }
.fw-toggle { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--p); color: #fff; cursor: pointer; box-shadow: var(--shadow-md); transition: all .25s ease; position: relative; }
.fw-toggle:hover { background: var(--p-d); transform: scale(1.06); }
.fw-toggle .fw-ic-close { display: none; }
.float-widget.open .fw-toggle { background: var(--p-d); }
.float-widget.open .fw-toggle .fw-ic-open { display: none; }
.float-widget.open .fw-toggle .fw-ic-close { display: block; }
.fw-toggle::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--a); opacity: 0; animation: fwPulse 2.2s ease-out infinite; }
@keyframes fwPulse { 0% { transform: scale(1); opacity: .5; } 70% { transform: scale(1.3); opacity: 0; } 100% { opacity: 0; } }
.fw-panel { position: absolute; right: 0; bottom: 68px; display: flex; flex-direction: column; gap: 8px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .28s cubic-bezier(.22,.61,.36,1); pointer-events: none; }
.float-widget.open .fw-panel { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.fw-item { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 30px; background: #fff; color: var(--ink); font-size: .88rem; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-md); border: 1.5px solid var(--line); transition: all .18s ease; }
.fw-item:hover { transform: translateX(-4px); box-shadow: 0 6px 20px rgba(0,80,179,.14); }
.fw-item svg { flex-shrink: 0; }
.fw-qq { color: #1a7bf9; }
.fw-qq:hover { background: #e8f1fc; border-color: #1a7bf9; }
.fw-wa { color: #25d366; }
.fw-wa:hover { background: #e7fbef; border-color: #25d366; }
.fw-mail { color: var(--p-d); }
.fw-mail:hover { background: var(--p-l); border-color: var(--p-d); }
.fw-inq { color: var(--p); }
.fw-inq:hover { background: var(--p-l); border-color: var(--p); }

@media (max-width: 640px) {
  .fw-toggle { width: 50px; height: 50px; }
  .fw-item { font-size: .82rem; padding: 9px 14px 9px 12px; }
}

/* ---------------- reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------- responsive ---------------- */
@media (max-width: 1024px) {
  .product-grid, .strength-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .flow-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-band { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .pp-wrap { grid-template-columns: 1fr; }
  .pp-aside { position: static; }
  .cat-layout { grid-template-columns: 1fr; gap: 24px; }
  .cat-side { position: static; }
  .cat-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .cat-sub { grid-column: 1 / -1; }
  .cat-all { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); background: #fff; flex-direction: column; align-items: stretch; padding: 84px 24px 30px; transform: translateX(100%); transition: transform .25s ease; box-shadow: -10px 0 40px rgba(15,45,90,.15); z-index: 95; overflow-y: auto; gap: 8px; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav ul li > a { padding: 13px 12px; }
  .has-drop .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; display: none; }
  .has-drop.open .dropdown { display: block; }
  .nav-cta { margin-top: 14px; }
  .hero-grid, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .stats-band { margin-top: 0; border-radius: 18px; }
  .hero { padding-top: 44px; }
  .topbar-right .topbar-item:nth-child(1) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .section { padding: 56px 0; }
  .product-grid, .strength-grid, .article-grid, .quality-grid, .process-grid, .flow-grid, .product-page-grid, .showcase-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2), .stat:nth-child(4) { border-right: 0; }
  .post { padding: 26px 20px; }
  .topbar-item.topbar-lang { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   Image integration styles
   ============================================================ */

/* hero background image */
.hero { position: relative; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: .12;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, var(--p-d) 0%, var(--p) 55%, #1a7bf9 140%);
}
.hero-grid, .hero .stats-band { position: relative; z-index: 2; }

/* product cards with images */
.product-card { padding: 0; overflow: hidden; }
.pc-img {
  height: 180px;
  background: var(--p-l);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.pc-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  transition: transform .4s ease;
}
.product-card:hover .pc-img img { transform: scale(1.05); }
.pc-img .p-icon { margin: 0; background: transparent; }
.pc-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex-grow: 1; }
.pc-body h3 { margin-bottom: 4px; }
.pc-body .p-tag { margin-bottom: 8px; }
.pc-body .p-more { margin-top: auto; }

/* product page cards */
.product-page-card { padding: 0; overflow: hidden; }
.product-page-card .ppc-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 26px 26px 18px;
  border-bottom: 1px solid var(--line);
}
.ppc-head .ppc-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 6px;
}
.ppc-head .p-icon { margin-bottom: 4px; }
.ppc-head h2 { margin: 0; }
.product-page-card .ppc-desc,
.product-page-card .ppc-feats,
.product-page-card .btn {
  margin: 0 26px;
}
.product-page-card .ppc-desc { margin-top: 18px; }
.product-page-card .btn { margin-bottom: 26px; align-self: flex-start; }

/* product detail hero image */
.p-icon-hero-img {
  width: 220px;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  background: #fff;
  padding: 14px;
}
.pp-hero-img {
  margin: 0 0 26px;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pp-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* showcase with images */
.showcase-grid { grid-template-columns: repeat(4, 1fr); }
.showcase-item {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.showcase-item img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 6px;
}
.showcase-item span {
  display: block;
  padding: 14px 16px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
}

/* production flow icons */
.flow-step {
  align-items: center;
  text-align: center;
  padding: 18px 14px;
  gap: 8px;
}
.flow-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 4px 0;
}

/* article thumbs */
.ac-thumb {
  position: relative;
  padding: 0;
  height: 190px;
  overflow: hidden;
}
.ac-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  transition: transform .4s ease;
}
.article-card:hover .ac-thumb img { transform: scale(1.05); }
.ac-thumb span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  background: rgba(255,255,255,.95);
}

/* about page gallery */
.about-gallery { margin: 28px 0 22px; }
.ag-main {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 14px;
}
.ag-main img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  display: block;
}
.ag-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ag-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ag-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  display: block;
}
.ag-label {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: .9rem;
}

/* article single hero image */
.post-hero-img {
  margin: 0 0 28px;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.post-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* responsive image tweaks */
@media (max-width: 1024px) {
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .pc-img { height: 160px; }
  .ppc-head .ppc-img { height: 180px; }
  .showcase-item img { height: 150px; }
  .ag-main img { height: 200px; }
  .ag-sub { grid-template-columns: 1fr; }
}

/* ------------------- FAQ category groups (faq.html) ------------------- */
.faq-single { max-width: 900px; }
.faq-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: -8px 0 38px; }
.faq-chip {
  padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--p); font-size: .9rem; font-weight: 600;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.faq-chip:hover { background: var(--p); border-color: var(--p); color: #fff; }
.faq-group { margin-bottom: 36px; scroll-margin-top: 90px; }
.faq-cat-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; color: var(--p); margin-bottom: 14px;
}
.faq-cat-title::before {
  content: ''; width: 4px; height: 18px; border-radius: 2px; background: var(--a);
}
.faq-group-list { display: grid; gap: 12px; }
@media (max-width: 620px) {
  .faq-chips { gap: 8px; margin-bottom: 30px; }
  .faq-chip { padding: 7px 14px; font-size: .85rem; }
}

/* ---------------- engineering / drawing support ---------------- */
.eng-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 42px; align-items: start; }
.eng-visual img { width: 100%; border-radius: var(--r); box-shadow: var(--shadow-md); margin-bottom: 22px; }
.eng-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.eng-feats h4 { font-size: 1rem; color: var(--p); margin-bottom: 6px; }
.eng-feats p { font-size: .9rem; color: var(--muted); margin: 0; }
.eng-details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-sm); }
.eng-details h3 { margin-bottom: 18px; }
.eng-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.eng-detail-grid figure { background: var(--bg); border-radius: 10px; padding: 10px; margin: 0; }
.eng-detail-grid img { width: 100%; border-radius: 6px; }

/* ---------------- industries ---------------- */
.industry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.industry-card { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; }
.industry-card img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: #fff; display: block; padding: 6px; }
.industry-card figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px; background: linear-gradient(transparent, rgba(0,32,72,.82)); color: #fff; font-family: var(--font-h); font-weight: 700; font-size: .95rem; text-align: center; }

/* ---------------- certificates ---------------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cert-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow-sm); text-align: center; }
.cert-card img { width: 100%; border-radius: 8px; margin-bottom: 10px; }
.cert-card figcaption { font-size: .9rem; font-weight: 600; color: var(--ink); }

/* ---------------- clients (logo chips) ---------------- */
.client-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.client-chip { display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--p-l2); border-radius: 12px; padding: 12px 22px; box-shadow: var(--shadow-sm); height: 68px; }
.client-chip img { max-height: 38px; max-width: 110px; object-fit: contain; filter: grayscale(100%); opacity: .85; transition: .25s; }
.client-chip:hover img { filter: grayscale(0%); opacity: 1; }

/* ---------------- company album ---------------- */
.album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0 30px; }
.album-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.album-card img { width: 100%; height: 170px; object-fit: contain; object-position: center; background: #fff; display: block; padding: 6px; }
.album-card figcaption { padding: 10px 12px; font-size: .88rem; font-weight: 600; color: var(--ink); text-align: center; }

/* ---------------- product details gallery ---------------- */
.pp-details-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 6px 0 22px; }
.pp-detail-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin: 0; box-shadow: var(--shadow-sm); text-align: center; }
.pp-detail-card img { width: 100%; height: 180px; object-fit: contain; object-position: center; background: #fff; border-radius: 8px; margin-bottom: 8px; display: block; }
.pp-detail-card figcaption { font-size: .9rem; font-weight: 600; color: var(--ink); }

@media (max-width: 960px) {
  .eng-grid { grid-template-columns: 1fr; }
  .eng-feats { grid-template-columns: 1fr; }
  .eng-detail-grid { grid-template-columns: repeat(3, 1fr); }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .album-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .eng-detail-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
  .client-chip { padding: 10px 16px; height: 58px; }
  .client-chip img { max-height: 30px; max-width: 90px; }
}
