/* JI SU brand site — one deliberate showroom look (owner approved the design preview
   2026-10-08): light ground, white and black display tiles, brand blue from the logo.
   Product photos are framed (rounded) because their backgrounds differ; the hero photo
   sits on a flat #1e1e1e and melts into its tile. */
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ground: #f5f5f7;
  --paper: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: #d2d2d7;
  --brand: #0e70be;       /* JI SU logo blue */
  --brand-ink: #0a5a9a;
  --night: #000000;
  --hero: #1e1e1e;        /* the hero photo's own ground */
  --night-ink: #f5f5f7;
  --night-2: #a1a1a6;
  --night-link: #5aa9ff;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Manrope", sans-serif;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.47; -webkit-font-smoothing: antialiased;
}
html:lang(zh-Hans) body { font-family: var(--font-zh); line-height: 1.6; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(245, 245, 247, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.nav-in { max-width: 1024px; margin: 0 auto; padding-inline: 16px; height: 52px; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; letter-spacing: .06em; font-size: 15px; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo img { width: auto; height: 26px; }
.logo b { color: var(--brand); font-weight: 800; }
.links { display: flex; gap: 22px; margin-inline: auto; font-size: 13px; }
.links a { color: #424245; }
.links a:hover { color: var(--ink); text-decoration: none; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; font-size: 12px; font-weight: 600; }
.lang a { color: var(--ink-2); padding: 5px 9px; border-radius: 999px; }
.lang a:hover { text-decoration: none; color: var(--ink); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
.chat-pill { font-size: 13px; font-weight: 700; color: #fff; background: var(--brand); padding: 6px 13px; border-radius: 999px; white-space: nowrap; }
.chat-pill:hover { background: var(--brand-ink); text-decoration: none; }
@media (max-width: 860px) { .links { display: none; } .lang { margin-left: auto; } }
@media (max-width: 440px) { .chat-pill { display: none; } .nav-in { gap: 12px; } .logo { font-size: 13px; letter-spacing: .03em; gap: 6px; } .logo img { height: 22px; } }

/* layout */
/* minmax(0, 1fr) everywhere: a grid track's minimum is otherwise the content's
   intrinsic width, and a 1600px photo then pushes the page wider than a phone. */
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; max-width: 1440px; margin: 0 auto; }
.group-title { margin: 28px 0 0; padding-inline: 12px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.group-title small { display: block; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); margin-top: 4px; }

/* tiles */
.tile { min-width: 0; text-align: center; overflow: hidden; border-radius: 22px; padding-block: 48px; padding-inline: 16px; background: var(--paper); }
.tile.dark { background: var(--night); color: var(--night-ink); }
.tile.dark .sub { color: var(--night-2); }
.tile.dark .cta a, .tile.dark .eyebrow { color: var(--night-link); }
.tile h2, .hero h1 { margin: 0; font-weight: 800; letter-spacing: -.025em; line-height: 1.05; text-wrap: balance; }
.tile h2 { font-size: clamp(38px, 5.6vw, 60px); }
.tile .sub { margin: 8px auto 0; font-size: clamp(18px, 2vw, 24px); font-weight: 500; max-width: 30ch; text-wrap: balance; }
.tile .cta { margin-top: 14px; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; font-size: 17px; font-weight: 600; }
.tile .cta a::after { content: " \203A"; }
.tile figure { margin: 28px auto 0; max-width: 720px; }
.tile figure img { width: 100%; max-height: 520px; object-fit: contain; border-radius: 18px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 6px; }
html:lang(zh-Hans) .eyebrow, html:lang(zh-Hans) .region h3, html:lang(zh-Hans) .main-branch .tag { letter-spacing: .06em; }

.pair, .trio { display: grid; gap: 12px; }
.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pair .tile h2, .trio .tile h2 { font-size: clamp(32px, 4vw, 44px); }
.pair .tile .sub, .trio .tile .sub { font-size: clamp(16px, 1.7vw, 20px); }
.pair .tile figure img { max-height: 440px; }
.trio .tile { padding-block: 40px; }
.trio .tile figure img { max-height: 380px; }
@media (max-width: 960px) { .trio { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trio .tile:last-child { grid-column: 1 / -1; } }
@media (max-width: 734px) { .pair, .trio { grid-template-columns: minmax(0, 1fr); } .trio .tile:last-child { grid-column: auto; } .tile { border-radius: 18px; } }

/* hero */
.hero { background: var(--hero); color: var(--night-ink); padding-block-end: 0; }
.hero .eyebrow, .hero .cta a { color: var(--night-link); }
.hero h1 { font-size: clamp(44px, 7.5vw, 84px); }
.hero .sub { color: var(--night-2); max-width: 36ch; }
.hero figure { max-width: 520px; }
.hero figure img { border-radius: 0; max-height: 600px; }

/* sections */
.section { background: var(--paper); border-radius: 22px; padding-block: 56px; padding-inline: 16px; }
.section-in { max-width: 980px; margin: 0 auto; }
.section h2 { margin: 0 0 6px; font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
.section .lead { margin: 0 0 32px; color: var(--ink-2); font-size: clamp(17px, 1.8vw, 21px); max-width: 52ch; }
.families { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px; }
.family { background: var(--ground); border-radius: 18px; padding: 22px; }
.family h3 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.family .wheels { margin: 2px 0 14px; color: var(--ink-2); font-size: 14px; }
.family ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.family li a { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.family li a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.family .note { margin: 14px 0 0; font-size: 13px; color: var(--ink-2); }

.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; }
.reason svg { width: 32px; height: 32px; color: var(--brand); }
.reason h3 { margin: 12px 0 6px; font-size: 21px; font-weight: 800; }
.reason p { margin: 0; color: var(--ink-2); }

.main-branch { background: var(--hero); color: var(--night-ink); border-radius: 18px; padding: 24px; display: grid; gap: 4px; margin-bottom: 28px; }
.main-branch .tag { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--night-link); text-transform: uppercase; }
.main-branch strong { font-size: 24px; letter-spacing: -.01em; }
.main-branch .addr { color: var(--night-2); }
.main-branch .tel { font-variant-numeric: tabular-nums; font-weight: 600; }
.regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 28px 40px; }
.region h3 { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.store { padding-block: 12px; border-top: 1px solid #e8e8ed; display: grid; gap: 2px; }
.store b { font-size: 16px; }
.store span { color: var(--ink-2); font-size: 14px; }
.store .tel { color: var(--ink); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; }

.closing { background: var(--brand); color: #fff; }
.closing .sub { color: rgba(255, 255, 255, .85); }
.big-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; background: #fff; color: var(--brand); font-weight: 800; font-size: 17px; padding: 14px 24px; border-radius: 999px; }
.big-btn:hover { text-decoration: none; background: #eef6ff; }
.big-btn svg { width: 22px; height: 22px; }
.hotline { margin: 22px 0 0; font-size: 14px; color: rgba(255, 255, 255, .85); display: grid; gap: 2px; justify-items: center; }
.hotline a { color: #fff; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; }

footer { max-width: 980px; margin: 0 auto; padding-block: 28px 96px; padding-inline: 16px; color: var(--ink-2); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
footer img { height: 22px; width: auto; }
footer a[href^="tel:"] { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.float-chat {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; font-weight: 800; font-size: 15px;
  padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 10px 30px rgba(14, 112, 190, .35);
}
.float-chat:hover { background: var(--brand-ink); text-decoration: none; }
.float-chat svg { width: 22px; height: 22px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 12px; padding-inline: 16px; }
.notfound h1 { margin: 0; font-size: clamp(40px, 7vw, 72px); letter-spacing: -.02em; }
.notfound p { margin: 0; color: var(--ink-2); }
.notfound img { margin: 0 auto; }
.notfound section + section { border-top: 1px solid var(--line); padding-top: 12px; }
