/* Jingxin Auto Parts — demo site. Dark engineering look, brand teal #31B1AE, heat amber for the "hot side". */
:root {
  --bg: #080d10; --bg2: #0d1418; --panel: #111a1f; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --ink: #e9f0f0; --muted: #8c9ea1; --dim: #5d6f72;
  --teal: #31b1ae; --teal2: #7fdcd8; --heat: #e98a3c;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1240px, 100% - 48px); margin: 0 auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.skip { position: absolute; left: -9999px; }

/* demo ribbon + header */
.demo-bar { background: #04080a; color: var(--muted); font-size: 12px; text-align: center; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.demo-bar strong { color: var(--teal2); font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8,13,16,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand img { width: 150px; height: auto; }
.menu { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.menu a { text-decoration: none; font-size: 14px; color: #c4d0d1; position: relative; padding: 6px 0; }
.menu a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: var(--teal); transition: left .3s var(--ease), right .3s var(--ease); }
.menu a:hover::after, .menu a[aria-current]::after { left: 0; right: 0; }
.menu a:hover, .menu a[aria-current] { color: #fff; }
.lang { display: flex; border: 1px solid var(--line2); border-radius: 999px; padding: 2px; }
.lang button { background: none; border: 0; color: var(--muted); font: 600 12px/1 var(--sans); padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-current] { background: var(--teal); color: #032423; }
.lang button:hover:not([aria-current]) { color: #fff; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--teal); color: #032423; font-weight: 700; font-size: 15px; padding: 14px 24px; border-radius: 2px; text-decoration: none; border: 1px solid var(--teal); cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--teal2); border-color: var(--teal2); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--teal); color: var(--teal2); }
.btn.sm { padding: 10px 16px; font-size: 13px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line2); color: var(--ink); width: 42px; height: 42px; border-radius: 2px; font-size: 18px; cursor: pointer; }

/* toast for RU / 中文 */
.toast { position: fixed; left: 50%; top: 96px; z-index: 120; transform: translate(-50%, -14px); opacity: 0; pointer-events: none; width: min(460px, calc(100% - 32px)); background: rgba(13,20,24,.96); border: 1px solid rgba(49,177,174,.45); border-left: 3px solid var(--teal); color: var(--ink); padding: 16px 20px; font-size: 14px; line-height: 1.6; box-shadow: 0 24px 60px rgba(0,0,0,.5); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast b { display: block; color: var(--teal2); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; margin-bottom: 6px; }

/* hero */
.hero { padding: 0; position: relative; min-height: calc(100vh - 108px); min-height: calc(100svh - 108px); display: flex; align-items: center; overflow: hidden; background: radial-gradient(1200px 700px at 72% 45%, #0f2427 0%, #0a1215 45%, var(--bg) 75%); isolation: isolate; cursor: crosshair; }
.hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(8,13,16,.82) 0%, rgba(8,13,16,.5) 38%, rgba(8,13,16,0) 56%); }
.hero .wrap { position: relative; z-index: 2; padding: 72px 0 96px; pointer-events: none; }
.hero .wrap a, .hero .wrap button { pointer-events: auto; }
.hero-copy { max-width: 760px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.025em; font-weight: 700; margin: 18px 0 22px; }
.hero h1 em { font-style: normal; color: var(--teal2); text-shadow: 0 0 40px rgba(49,177,174,.35); }
.hero .lead { color: #b5c3c5; font-size: clamp(16px, 1.4vw, 18px); max-width: 520px; margin: 0 0 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-hint { position: absolute; z-index: 2; right: 24px; bottom: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; pointer-events: none; }
.hero-hint i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--heat); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 10px var(--heat); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(30px, 3.2vw, 46px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat b small { font-size: .5em; color: var(--teal); margin-left: 4px; font-weight: 600; }
.stat span { display: block; color: var(--muted); font-size: 13px; margin-top: 8px; }

/* sections */
section { padding: 120px 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -.02em; margin: 12px 0 0; font-weight: 700; }
.sec-head p { color: var(--muted); margin: 0; max-width: 520px; }
h3 { font-size: 20px; margin: 0 0 10px; letter-spacing: -.01em; }

/* markets */
.markets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.market { background: var(--bg); padding: 40px 32px 44px; position: relative; }
.market .mono { display: block; margin-bottom: 40px; }
.market p { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.market ul { margin: 0; padding: 0; list-style: none; font-size: 14px; color: #c4d0d1; }
.market li { padding: 9px 0; border-top: 1px solid var(--line); }
.market::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--heat), var(--teal)); transition: width .6s var(--ease); }
.market:hover::before { width: 100%; }

/* thermal loop (new energy) */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.unit { background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; transition: border-color .3s, opacity .4s, filter .4s; }
.unit figure { margin: 0; background: linear-gradient(180deg, #f3f5f5, #dfe4e4); aspect-ratio: 1 / 1; overflow: hidden; }
.unit figure img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8%; transition: transform .8s var(--ease); }
.unit:hover figure img { transform: scale(1.06); }
.unit .cap { padding: 22px 22px 26px; }
.unit .cap .mono { display: block; margin-bottom: 10px; }
.unit .cap p { color: var(--muted); font-size: 14px; margin: 0; }
@media (hover: hover) { .loop:hover .unit:not(:hover), .cv-grid:hover .unit:not(:hover) { opacity: .45; filter: grayscale(.8); } }
.loop-line { position: relative; height: 34px; margin: 0 0 18px; }
.loop-line svg { width: 100%; height: 100%; display: block; }

/* about */
.about { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: start; }
.about-text p { color: #b5c3c5; margin: 0 0 18px; }
.about-text p:first-child { font-size: 20px; color: var(--ink); line-height: 1.55; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line2); }
.timeline li { position: relative; padding: 0 0 30px 32px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg2); border: 2px solid var(--teal); }
.timeline b { display: block; font-family: var(--mono); color: var(--teal2); font-size: 13px; letter-spacing: .08em; margin-bottom: 4px; }
.timeline span { color: #c4d0d1; font-size: 15px; }

/* capability */
.capab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.capab > div { background: var(--panel); border: 1px solid var(--line); padding: 30px 28px; }
.capab .ico { width: 40px; height: 40px; margin-bottom: 24px; color: var(--teal); }
.capab p { color: var(--muted); font-size: 14.5px; margin: 0; }
.systems { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.systems span { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; border: 1px solid var(--line2); padding: 8px 14px; color: var(--teal2); }

/* qualifications */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cert { background: var(--bg); padding: 34px 28px; }
.cert svg { width: 34px; height: 34px; color: var(--teal); margin-bottom: 22px; }
.cert p { color: var(--muted); font-size: 14px; margin: 0; }
.note { color: var(--dim); font-size: 13px; margin-top: 18px; }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; }
.faq-grid details { min-width: 0; overflow-wrap: anywhere; }
.faq-grid details { border-top: 1px solid var(--line2); padding: 22px 0; }
.faq-grid summary { overflow: hidden; cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 18px; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after { content: "+"; color: var(--teal); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .3s var(--ease); }
.faq-grid details[open] summary::after { transform: rotate(45deg); }
.faq-grid details p { color: var(--muted); margin: 14px 0 0; font-size: 15px; }

/* contact */
.contact { background: radial-gradient(900px 500px at 15% 0%, #0f2427, var(--bg) 70%); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-list li { border-top: 1px solid var(--line); padding: 18px 0; }
.contact-list .mono { display: block; margin-bottom: 4px; color: var(--dim); }
.contact-list a { color: var(--teal2); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
form.inquiry { background: var(--panel); border: 1px solid var(--line); padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form.inquiry .full { grid-column: 1 / -1; }
form.inquiry label { display: block; font-size: 12px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
form.inquiry input, form.inquiry select, form.inquiry textarea { width: 100%; background: var(--bg); border: 1px solid var(--line2); color: var(--ink); font: 15px/1.4 var(--sans); padding: 13px 14px; border-radius: 0; }
form.inquiry input:focus, form.inquiry select:focus, form.inquiry textarea:focus { outline: none; border-color: var(--teal); }
form.inquiry textarea { min-height: 120px; resize: vertical; }
form.inquiry .hint { font-size: 12.5px; color: var(--dim); margin: 0; }

/* products page */
.page-hero { padding: 96px 0 72px; border-bottom: 1px solid var(--line); background: radial-gradient(900px 500px at 80% 0%, #0f2427, var(--bg) 70%); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -.025em; margin: 16px 0 20px; max-width: 900px; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.jump a { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--line2); padding: 9px 14px; color: #c4d0d1; }
.jump a:hover { border-color: var(--teal); color: var(--teal2); }
.cv-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cv-grid .unit .cap { padding: 18px; }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
.spec td { border-top: 1px solid var(--line); padding: 7px 0; color: #c4d0d1; }
.spec td:first-child { color: var(--dim); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; width: 44%; }
.brands { display: flex; flex-wrap: wrap; gap: 8px; }
.brands span { border: 1px solid var(--line2); padding: 8px 14px; font-size: 14px; color: #c4d0d1; transition: border-color .25s, color .25s; }
.brands span:hover { border-color: var(--teal); color: #fff; }
.brand-groups { display: grid; gap: 40px; }
.brand-groups h3 { font-size: 15px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.am-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.am-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.am-photos figure { margin: 0; background: linear-gradient(180deg, #f3f5f5, #dfe4e4); aspect-ratio: 3 / 4; overflow: hidden; }
.am-photos img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 6%; }
.range { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.range div { background: var(--bg); padding: 26px 22px; }
.range b { display: block; font-size: 17px; margin-bottom: 6px; }
.range span { color: var(--muted); font-size: 13.5px; }
.cta-band { border: 1px solid var(--line2); padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; background: linear-gradient(90deg, rgba(233,138,60,.08), rgba(49,177,174,.10)); }
.cta-band h2 { margin: 0; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -.02em; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--dim); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer img { width: 120px; opacity: .85; }

/* ===== Motion layer (html.motion set by site.js; never disabled — the motion is the product) ===== */
@keyframes rise { from { opacity: 0; transform: translateY(.5em); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
.motion .hero h1 .w, .motion .page-hero h1 .w { display: inline-block; opacity: 0; animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 65ms + var(--h1d, 900ms)); }
.motion .page-hero { --h1d: 150ms; }
.motion .hero .mono, .motion .page-hero .mono { animation: fadeUp .8s .7s both; }
.motion .hero .lead { animation: fadeUp .9s 1.5s both; }
.motion .hero .cta-row { animation: fadeUp .9s 1.7s both; }
.motion .page-hero p, .motion .page-hero .jump { animation: fadeUp .9s .6s both; }
.motion .hero-hint { animation: fadeUp .9s 2.4s both; }

.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .sec-head.reveal h2 { clip-path: inset(0 0 100% 0); transform: translateY(40%); transition: clip-path 1s .12s var(--ease), transform 1s .12s var(--ease); }
.motion .sec-head.reveal.in h2 { clip-path: inset(-10% -5% -20% -5%); transform: none; }
.motion .unit.reveal figure img, .motion .am-photos .reveal img { clip-path: inset(100% 0 0 0); scale: 1.15; transition: clip-path 1.2s cubic-bezier(.7,0,.2,1), scale 1.6s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.motion .unit.reveal.in figure img, .motion .am-photos .reveal.in img { clip-path: inset(0); scale: 1; }
.motion [data-count].counted { text-shadow: 0 0 28px rgba(49,177,174,.35); transition: text-shadow .6s; }

.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-size: clamp(26px, 3.6vw, 48px); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px #3d4d50; white-space: nowrap; transition: color .3s, -webkit-text-stroke-color .3s; }
.marquee span:hover { color: var(--teal); -webkit-text-stroke-color: var(--teal); }
.marquee i { font-style: normal; color: var(--heat); font-size: 14px; }

.motion .tilt { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--ease), border-color .3s, opacity .8s var(--ease), filter .4s; }
.motion .tilt.reveal:not(.in) { transform: perspective(900px) translateY(28px); }
.motion .tilt::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(340px circle at var(--gx, 50%) var(--gy, 50%), rgba(49,177,174,.16), transparent 60%); z-index: 2; }
.motion .tilt:hover::after { opacity: 1; }
.motion .tilt:hover { border-color: rgba(49,177,174,.5); }
.motion .btn { translate: var(--bx, 0px) var(--by, 0px); transition: background .2s, color .2s, border-color .2s, translate .25s var(--ease); }

.motion .site-header { transition: background .3s, box-shadow .3s; }
.motion .site-header .nav { transition: height .3s var(--ease); }
.motion .site-header.scrolled { background: rgba(8,13,16,.92); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.motion .site-header.scrolled .nav { height: 62px; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--heat), var(--teal)); transform: scaleX(0); transform-origin: 0 50%; z-index: 100; pointer-events: none; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .loop { grid-template-columns: repeat(2, 1fr); }
  .loop-line { display: none; }
  .cv-grid { grid-template-columns: repeat(3, 1fr); }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .range { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; place-items: center; margin-left: auto; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; background: rgba(8,13,16,.98); border-bottom: 1px solid var(--line); padding: 8px 24px 18px; display: none; }
  .menu.open { display: flex; }
  .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn.sm { display: none; }
  .nav { gap: 14px; height: 66px; }
  .brand img { width: 118px; }
  .sec-head, .about-grid, .contact-grid, .am-row { grid-template-columns: 1fr; gap: 28px; }
  .markets { grid-template-columns: 1fr; }
  .capab { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  section { padding: 84px 0; }
  .hero { align-items: flex-start; min-height: 0; }
  .hero .wrap { padding: 360px 0 72px; }
  .hero::before { background: linear-gradient(180deg, rgba(8,13,16,0) 0%, rgba(8,13,16,0) 34%, rgba(8,13,16,.7) 46%, rgba(8,13,16,.88) 60%); }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .hero { align-items: flex-start; min-height: 0; }
  .hero .wrap { padding: 320px 0 56px; }
  .hero h1 { font-size: 38px; }
  .hero-hint { left: 16px; right: 16px; top: 16px; bottom: auto; font-size: 9.5px; letter-spacing: .06em; white-space: nowrap; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 16px; border-right: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(3) { border-right: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat:last-child { grid-column: 1 / -1; border-right: 0; }
  .loop, .capab, .certs { grid-template-columns: 1fr; }
  .cv-grid { grid-template-columns: 1fr 1fr; }
  .range { grid-template-columns: 1fr 1fr; }
  form.inquiry { grid-template-columns: 1fr; padding: 24px; }
  .lang button { padding: 7px 8px; }
  .cta-band { padding: 28px; }
  .page-hero { padding: 64px 0 48px; }
}
