/* Tesla-inspired homepage: full-screen panels, minimal type, black/white. */
html { scroll-behavior: smooth; }
body.home {
  margin: 0;
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: #171a20;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
body.home a { text-decoration: none; color: inherit; }

/* header */
.t-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 56px; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.t-logo { font-size: 15px; font-weight: 600; letter-spacing: .38em; }
.t-logo small { display: block; letter-spacing: .18em; font-size: 9px; font-weight: 400; color: #5c5e62; margin-top: 2px; }
.t-nav { display: flex; gap: 26px; align-items: center; }
.t-nav a, .t-nav button {
  font-size: 14px; color: #171a20; background: none; border: 0; cursor: pointer;
  padding: 6px 2px; font-family: inherit;
}
.t-nav a:hover, .t-nav button:hover { color: #000; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .t-nav a.hide-m { display: none; } .t-header { padding: 0 16px; } }

/* full-screen panels */
.panel {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 104px 20px 56px;
  background-size: cover; background-position: center; position: relative;
  box-sizing: border-box;
}
.panel::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 34%, rgba(0,0,0,0) 70%, rgba(0,0,0,.28) 100%);
  pointer-events: none;
}
.panel > * { position: relative; z-index: 1; }
.panel h2 { font-size: 42px; font-weight: 500; margin: 0; letter-spacing: .02em; color: #fff; }
.panel .sub { margin-top: 10px; font-size: 16px; color: rgba(255,255,255,.92); }
.panel .cta-row { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
/* tire brand strip */
.brand-strip {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; max-width: 1200px;
}
.brand-chip {
  background: rgba(255,255,255,.94); border-radius: 10px; height: 62px;
  padding: 10px 20px; display: flex; align-items: center; box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.brand-chip img { max-height: 38px; max-width: 158px; width: auto; display: block; }
@media (max-width: 640px) {
  .brand-chip { height: 50px; padding: 8px 14px; }
  .brand-chip img { max-height: 28px; max-width: 118px; }
}
.btn-t {
  display: inline-block; min-width: 252px; padding: 11px 24px;
  font-size: 14px; border-radius: 4px; text-align: center; box-sizing: border-box;
}
.btn-t-dark { background: #171a20; color: #fff !important; }
.btn-t-light { background: rgba(244,244,244,.9); color: #393c41 !important; backdrop-filter: blur(6px); }
.btn-t-outline { border: 1px solid #171a20; color: #171a20 !important; background: transparent; }
.panel .phone-line { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.9); }
.panel .phone-line a { text-decoration: underline; text-underline-offset: 3px; }

/* hero video */
.hero-vid { overflow: hidden; background: #05070a url('images/hero-poster.jpg?v=21') center / cover no-repeat; }
.hero-vid .hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-vid::before {
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,.48) 100%);
}
.hero-vid h2, .hero-vid .sub { text-shadow: 0 1px 12px rgba(0,0,0,.55); }

/* hero carousel (video first, then images; starts after the video ends) */
.panel { min-height: 100vh; min-height: 100svh; }
.hero-vid .hero-carousel { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
.hero-vid { touch-action: pan-y; }
.hero-vid::before { pointer-events: none; }
.hero-slide img { -webkit-user-drag: none; user-select: none; }
.hero-slide { flex: 0 0 100%; height: 100%; position: relative; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-vid .hero-dots {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3;
  display: flex; gap: 8px; justify-content: center; align-items: center;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0;
  background: rgba(255,255,255,.45); cursor: pointer; transition: all .3s ease;
}
.hero-dot.on { background: #fff; width: 24px; }
.hero-track.dragging { transition: none; }
.hero-slide { overflow: hidden; }
/* gentle cinematic settle on the visible photo slide */
.hero-slide.on > img { animation: kb 3.4s ease-out both; }
@keyframes kb { from { transform: scale(1.1); } to { transform: scale(1); } }
/* hero text floats in on load */
.hero-vid h2, .hero-vid .sub, .hero-vid .cta-row, .hero-vid .phone-line { animation: fadeUp .9s ease both; }
.hero-vid .sub { animation-delay: .15s; }
.hero-vid .cta-row { animation-delay: .3s; }
.hero-vid .phone-line { animation-delay: .45s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* mobile-only slides (services/brands live in the carousel on phones) */
.hero-slide.slide-m { display: none; }
.hero-cap { position: absolute; left: 22px; bottom: 205px; text-align: left; color: #fff; }
.hero-cap h3 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: .06em; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.hero-cap h3::before { content: ""; display: block; width: 36px; height: 3px; border-radius: 2px; background: #e8862e; margin-bottom: 12px; }
.hero-cap p { margin: 7px 0 0; font-size: 13.5px; letter-spacing: .09em; color: rgba(255,255,255,.92); text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.slide-brands { background: #101216 url('images/tires-new.jpg') center / cover no-repeat; }
.slide-brands::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,10,12,.58) 0%, rgba(8,10,12,.42) 45%, rgba(8,10,12,.66) 100%);
}
.slide-brands .brands-box { position: relative; z-index: 1; }
.brands-box {
  height: 100%; box-sizing: border-box; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 84px 22px 56px; text-align: center;
}
.brands-eyebrow { margin: 0 0 8px; font-size: 13px; letter-spacing: .22em; color: #f5a95c; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.brands-box h3 { margin: 0 0 16px; font-size: 26px; color: #fff; font-weight: 700; letter-spacing: .14em; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.brands-box p { margin: 16px 0 0; font-size: 13px; letter-spacing: .08em; color: rgba(255,255,255,.88); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.brand-mini-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  align-items: center; width: 100%; max-width: 560px;
}
.bm-chip {
  background: rgba(255,255,255,.96); border-radius: 10px; height: 40px;
  display: flex; align-items: center; justify-content: center; padding: 6px 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.bm-chip img { max-width: 100%; max-height: 22px; object-fit: contain; display: block; }

/* before/after case grid */
.ba-grid {
  margin: 36px auto 0; max-width: 1180px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.ba-card {
  margin: 0; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.10); text-align: left;
}
.ba-imgwrap { position: relative; }
.ba-imgwrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px; background: rgba(255,255,255,.55);
}
.ba-imgwrap img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ba-mini {
  position: absolute; bottom: 10px; z-index: 1;
  padding: 3px 11px; border-radius: 999px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 12px; letter-spacing: .1em;
}
.ba-mini-l { left: 10px; }
.ba-mini-r { right: 10px; }
.ba-card figcaption { padding: 12px 16px 14px; font-size: 15px; color: #171a20; }
@media (max-width: 860px) { .ba-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }
/* phones: the showcase sections move into the top carousel; the page
   below is just mission -> about -> map/nav, one swipe per screen */
@media (max-width: 860px) {
  .hero-slide.slide-m { display: block; }
  #cases, #collision, #paint, #tesla, #luxury, #tires, #tire-list-section { display: none; }
  .t-nav a.hide-m { display: none; }
}

/* mission */
.mission-slogan { letter-spacing: .03em; }
.mission-grid {
  margin: 38px auto 0; max-width: 1020px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.mission-item {
  background: #fff; border-radius: 14px; padding: 28px 22px;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}
.mission-item h3 { margin: 0 0 12px; font-size: 23px; font-weight: 600; color: #171a20; }
.mission-item p { margin: 0; font-size: 15px; line-height: 1.85; color: #393c41; }
@media (max-width: 860px) { .mission-grid { grid-template-columns: 1fr; max-width: 520px; } }

/* light content sections */
.section-light { padding: 90px 20px; text-align: center; background: #fff; }
.section-light h2 { font-size: 32px; font-weight: 500; margin: 0 0 14px; }
.section-light .lead { max-width: 720px; margin: 0 auto; font-size: 16px; line-height: 1.9; color: #393c41; }
.section-grey { background: #f4f4f4; }

/* tire list */
.tire-wrap { max-width: 860px; margin: 34px auto 0; text-align: left; }
.tire-row {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 4px; border-bottom: 1px solid #e3e3e3;
}
.tire-name { font-size: 16px; font-weight: 500; flex: 1; }
.tire-size { font-size: 14px; color: #5c5e62; }
.tire-price { font-size: 16px; font-weight: 600; white-space: nowrap; }
.tire-stock { font-size: 12px; color: #8a8d91; white-space: nowrap; }
.tire-msg { text-align: center; color: #5c5e62; font-size: 14px; padding: 22px 0 6px; }
.svc-chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.svc-chips a {
  border: 1px solid #171a20; border-radius: 999px; padding: 8px 20px; font-size: 14px;
}
.svc-chips a:hover { background: #171a20; color: #fff; }

/* map + footer */
.map-frame { width: 100%; height: 420px; border: 0; display: block; }
.map-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 14px 20px 4px; }
.addr-line { text-align: center; padding: 26px 20px 6px; font-size: 15px; color: #393c41; }
.t-footer { padding: 34px 20px 44px; text-align: center; font-size: 12px; color: #5c5e62; line-height: 2; }

/* language toggle in the top nav */
.t-nav [data-lang-toggle] {
  border: 1.5px solid #171a20; border-radius: 999px; padding: 5px 13px;
  font-weight: 700; font-size: 13px; letter-spacing: .06em; cursor: pointer; background: transparent;
}
.t-nav [data-lang-toggle]:hover { background: #171a20; color: #fff; text-decoration: none; }

/* ---- entry splash: SEMA-style diagonal split + choice card ---- */
body.splash-on { overflow: hidden; }
.splash {
  position: fixed; inset: 0; z-index: 200; display: flex;
  align-items: center; justify-content: center; background: #060708;
  transition: opacity .55s ease, visibility .55s;
}
.splash.bye { opacity: 0; visibility: hidden; }
.splash-bg { position: absolute; inset: 0; overflow: hidden; }
.splash-half {
  position: absolute; top: 0; bottom: 0; width: 100%;
  background-size: cover; background-position: center;
  animation-duration: 1.4s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); animation-fill-mode: both;
}
.splash-half-l {
  background-image: linear-gradient(rgba(10, 26, 54, .45), rgba(6, 10, 18, .55)), url('images/tesla.jpg');
  animation-name: splashInL;
}
.splash-half-r {
  background-image: linear-gradient(rgba(74, 12, 12, .38), rgba(16, 6, 6, .52)), url('images/paint.jpg');
  clip-path: polygon(63% 0, 100% 0, 100% 100%, 39% 100%);
  filter: drop-shadow(-5px 0 0 rgba(255, 255, 255, .92));
  animation-name: splashInR;
}
@keyframes splashInL { from { transform: translateX(-38px) scale(1.1); } to { transform: translateX(0) scale(1.03); } }
@keyframes splashInR { from { transform: translateX(38px) scale(1.1); } to { transform: translateX(0) scale(1.03); } }
.splash-card {
  position: relative; z-index: 2; background: #fff; border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5); padding: 38px 34px 28px;
  width: min(540px, calc(100% - 36px)); box-sizing: border-box; text-align: center;
  animation: splashCard .8s cubic-bezier(.22, 1, .36, 1) .25s both;
}
@keyframes splashCard { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.splash-bar { display: block; width: 46px; height: 4px; background: #B92E3A; border-radius: 2px; margin: 0 auto 14px; }
.splash-name { font-size: 34px; font-weight: 800; letter-spacing: .3em; text-indent: .3em; color: #101216; }
.splash-logo-img { height: 44px; width: auto; max-width: 82%; }
.splash-sub { margin-top: 7px; font-size: 10.5px; letter-spacing: .32em; text-indent: .32em; color: #8a8d91; }
.splash-welcome { margin: 24px 0 14px; font-size: 13px; letter-spacing: .3em; text-indent: .3em; color: #5c5e62; }
.splash-choices { display: grid; grid-template-columns: 1fr; gap: 14px; }
.splash-choice {
  border: 0; border-radius: 14px; padding: 27px 8px 23px; cursor: pointer; color: #fff;
  display: flex; flex-direction: column; gap: 5px; align-items: center;
  transition: transform .25s ease, box-shadow .25s ease;
  animation: splashCard .7s cubic-bezier(.22, 1, .36, 1) both;
}
.splash-choice-zh { background: linear-gradient(135deg, #17548f, #0a2547); animation-delay: .45s; }
.splash-choice-en { background: linear-gradient(135deg, #b02329, #5f0f13); animation-delay: .58s; }
.splash-choice:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.sc-big { font-size: 31px; font-weight: 700; letter-spacing: .18em; text-indent: .18em; }
.sc-sub { font-size: 11.5px; letter-spacing: .22em; text-indent: .22em; opacity: .85; }
.splash-note { margin: 18px 0 0; font-size: 12px; letter-spacing: .14em; color: #8a8d91; }
@media (max-width: 560px) { .splash-name { font-size: 26px; } .sc-big { font-size: 27px; } .splash-card { padding: 30px 20px 22px; } }

/* v90: 手机端首页顶栏不再挤成竖排或截断：LOGO 一行，导航整块换行 */
@media (max-width: 760px) {
  .t-header { height: auto; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 16px 8px; padding-top: max(10px, env(safe-area-inset-top)); }
  .t-logo { font-size: 16px; letter-spacing: .30em; white-space: nowrap; }
  .t-logo small { font-size: 9px; letter-spacing: .12em; white-space: nowrap; }
  .t-nav { flex-wrap: wrap; gap: 14px 20px; justify-content: flex-start; }
  .t-nav a, .t-nav button { flex-shrink: 0; white-space: nowrap; }
}
