:root {
  --bg: #efeae5;
  --text: #1d1d1f;
  --muted: rgba(255,255,255,.7);
  --toyota: #e60012;
  --shadow: 0 18px 48px rgba(0,0,0,.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f6f1eb 0%, #ece8e5 100%);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.page-bg {
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.55), transparent 20%),
    radial-gradient(circle at 85% 10%, rgba(255,255,255,.35), transparent 16%),
    linear-gradient(180deg, rgba(255,255,255,.32), transparent 40%);
  pointer-events: none;
  z-index: -1;
}
.topbar img { width: 100%; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(54.2vw, 1041px);
  background: #000;
}
.hero-image {
  width: 100%;
  min-height: min(54.2vw, 1041px);
  object-fit: cover;
  transform: scale(1.01);
  animation: slowZoom 12s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.18));
}
.hero-player,
.slide-player,
.detail-player {
  position: absolute;
  display: grid;
  place-items: center;
}
.hero-player {
  left: 50%; top: 47%;
  width: 135px; height: 135px;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.hero-player img,
.slide-player img,
.detail-player img { width: 100%; height: 100%; }
.pulse-player img { animation: pulse 2.1s ease-in-out infinite; }

.hero-bottom-card {
  position: absolute;
  left: clamp(24px, 7vw, 110px);
  right: clamp(24px, 7vw, 110px);
  bottom: clamp(18px, 2vw, 34px);
  z-index: 4;
}
.card-link {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  padding: 12px 14px;
  background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,.15));
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
}
.card-link img {
  width: clamp(80px, 9vw, 134px);
  flex: 0 0 auto;
}
.card-texts { flex: 1; }
.card-texts h2 {
  margin: 0 0 4px;
  font-size: clamp(16px, 1.65vw, 22px);
  font-weight: 500;
}
.card-texts p {
  margin: 0;
  font-size: clamp(12px, 1.05vw, 16px);
  opacity: .9;
}
.more-link {
  white-space: nowrap;
  font-size: clamp(14px, 1.1vw, 18px);
  transition: transform .3s ease;
}
.card-link:hover .more-link { transform: translateX(6px); }

.floating-particles span {
  position: absolute;
  display: block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.75);
  box-shadow: 0 0 16px rgba(255,255,255,.8);
  animation: twinkle 3s infinite ease-in-out;
  z-index: 2;
}
.floating-particles span:nth-child(1) { left: 14%; top: 16%; animation-delay: .3s; }
.floating-particles span:nth-child(2) { left: 28%; top: 8%; animation-delay: 1.1s; }
.floating-particles span:nth-child(3) { left: 78%; top: 12%; animation-delay: .7s; }
.floating-particles span:nth-child(4) { left: 85%; top: 24%; animation-delay: 1.4s; }
.floating-particles span:nth-child(5) { left: 10%; top: 44%; animation-delay: 2s; }
.floating-particles span:nth-child(6) { left: 92%; top: 6%; animation-delay: .9s; }

.showcase {
  position: relative;
  min-height: 760px;
  padding-bottom: 36px;
}
.showcase-bg {
  width:100%;
  height:100%;
  position: absolute; inset: 0;
  background: url('assets/3.jpg') center top /100% 100% no-repeat;
}
.tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: min(100%, 1920px);
  margin: 0 auto;
  background: rgba(255,255,255,.94);
  box-shadow: 0 5px 20px rgba(0,0,0,.05);
  float:inherit;
}
.tab {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: clamp(18px, 1.5vw, 22px);
  padding: 18px 10px;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.tab.active {
  background: #e9dfcf;
  color: #3c342e;
}
.tab:hover { transform: translateY(-1px); }

.showcase-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 26px clamp(16px, 4vw, 72px) 0;
}
.panel { display: none; }
.panel.active {
  display: block;
  animation: fadeUp .55s ease;
}
.panel-title {
  margin: 0 0 20px;
  text-align: center;
  color: #fff;
  font-size: clamp(30px, 2.6vw, 52px);
  font-weight: 400;
  letter-spacing: 2px;
  text-shadow: 0 8px 26px rgba(0,0,0,.12);
}

.carousel {
  position: relative;
  padding: 0 0 68px 0;
}
.swiper-container {
  overflow: visible;
}
.gallery-swiper {
  width: 100%;
}
.swiper-wrapper {
  align-items: stretch;
  height:inherit;
}
.media-card.swiper-slide {
  width: min(72vw, 1120px);
  max-width: 1120px;
  height:inherit;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  transform: translateZ(0);
  transition: transform .45s ease, box-shadow .45s ease, opacity .45s ease;
}
.media-card.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .85s ease;
}
.media-card:hover img { transform: scale(1.04); }
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 62px rgba(0,0,0,.18);
}
.media-card:not(.is-video)::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(0,0,0,.05));
}

.is-video .slide-player {
  width: 110px;
  height: 110px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.carousel .nav {
  position: absolute;
  bottom: 0;
  right: 0;
  width:70px; height: 70px;
  border: 0;
  background: transparent;
  font-size: 80px;
  color: #fff;
  cursor: pointer;
  transition: transform .25s ease, color .25s ease, opacity .25s ease;
  z-index: 6;
  
  /*-webkit-text-stroke: 1px #000;
  text-shadow: 0 0 1px #000;*/
}
.carousel .nav.prev { right: 48px; }
.carousel .nav:hover {
  transform: scale(1.12);
  color: #fff;
}
.carousel .nav.swiper-button-disabled {
  opacity: .35;
  pointer-events: none;
}

.detail-page { min-height: 100vh; }
.detail-main {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 72px;
}
.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.glass-card {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}
.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 28px;
  align-items: center;
  padding: clamp(20px, 3vw, 36px);
  border-radius: 28px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--toyota);
  font-weight: 700;
  letter-spacing: .12em;
}
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,255,255,.25)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 18px rgba(255,255,255,.55)); }
}
@keyframes twinkle {
  0%,100% { opacity: .2; transform: translateY(0) scale(.8); }
  50% { opacity: 1; transform: translateY(-10px) scale(1.15); }
}
@keyframes slowZoom {
  from { transform: scale(1.01); }
  to { transform: scale(1.055); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {
  .media-card.swiper-slide { width: min(78vw, 980px); }
}
@media (max-width: 960px) {
  .showcase { min-height: 620px; }
  .tabs { grid-template-columns: repeat(3, 1fr); }
  .tab { padding: 14px 8px; font-size: 16px; }
  .showcase-inner { padding-top: 22px; }
  .panel-title { margin-bottom: 16px; font-size: 34px; }
  .media-card.swiper-slide { width: min(86vw, 760px); }
  .is-video .slide-player { width: 84px; height: 84px; }
  .hero-player { width: 92px; height: 92px; }
}
@media (max-width: 640px) {
  .card-link { gap: 10px; padding: 10px; }
  .card-link img { width: 72px; }
  .card-texts h2 { font-size: 13px; }
  .card-texts p, .more-link { font-size: 11px; }
  .showcase { min-height: 540px; }
  .showcase-inner { padding-left: 14px; padding-right: 14px; }
  .panel-title { font-size: 28px; }
  .media-card.swiper-slide { width: calc(100vw - 28px); }
  .carousel { padding-bottom: 58px; }
  .carousel .nav { width: 36px; height: 36px; font-size: 32px; }
  .carousel .nav.prev { right: 40px; }
}


html, body {
  max-width: 100%;
}

body {
  width: 100%;
  overflow-x: hidden;
}

main,
.hero,
.showcase,
.showcase-inner,
.carousel {
  max-width: 100%;
}

.showcase,
.showcase-inner,
.carousel {
  /* overflow-x: clip; */
}

.gallery-swiper {
  max-width: 100%;
  overflow: visible;
}

.swiper-wrapper {
  width: max-content;
  max-width: none;
}

.media-card.swiper-slide {
  flex-shrink: 0;
}


.gallery-swiper,
.gallery-swiper .swiper-wrapper {
  will-change: transform;
}

.gallery-swiper .swiper-wrapper {
  transform: translate3d(0px, 0px, 0px);
}
