:root {
  --bg: #00001b;
  --panel: #5a1ac0;
  --card: #0a0830;
  --accent: #ff4260;
  --text: #ffffff;
  --design-width: 750;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: 100%;
  margin: 0 auto;
  background: #00001b;
  overflow-x: hidden;
  max-width: 750px;
}

.section-anchor {
  scroll-margin-top: calc(70 / 750 * 100vw);
}

.hero {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #00001b;
}

.hero h1,
.hero p,
.hero-time {
  position: relative;
  z-index: 1;
}

.hero-logo {
  position: absolute;
  z-index: 2;
  left: calc(34 / 750 * 100vw);
  top: calc(77 / 750 * 100vw);
  width: calc(194 / 750 * 100vw);
  height: calc(81 / 750 * 100vw);
  display: block;
}

.hero-city {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1;
  z-index: 1;
  filter: saturate(1.06);
}

.hero h1 {
  position: absolute;
  margin: 0;
  left: calc(116.4 / 750 * 100vw);
  top: calc(724 / 750 * 100vw);
  z-index: 2;
  font-size: calc(40.02 / 750 * 100vw);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.005em;
}

.hero p {
  position: absolute;
  margin: 0;
  left: calc(347 / 750 * 100vw);
  top: calc(106 / 750 * 100vw);
  z-index: 2;
  font-size: calc(18 / 750 * 100vw);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-time {
  position: absolute;
  right: calc(18 / 750 * 100vw);
  top: calc(202 / 750 * 100vw);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: calc(8 / 750 * 100vw);
  z-index: 2;
  text-align: right;
}

.hero-time span {
  font-size: calc(22.66 / 750 * 100vw);
  opacity: 1;
}

.hero-time strong {
  font-size: calc(43.58 / 750 * 100vw);
  letter-spacing: -0.05em;
}

.top-nav {
  height: calc(100 / 750 * 100vw);
  background: var(--panel);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  z-index: 20;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}

.top-nav.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 750px;
  margin: 0 auto;
}

.top-nav a {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: calc(30 / 750 * 100vw);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #ffffff;
  padding: 0 calc(16 / 750 * 100vw);
}

.top-nav a.active {
  position: relative;
  background: var(--accent);
  color: #ffffff;
  border-radius: calc(30 / 750 * 100vw);
  height: calc(60 / 750 * 100vw);
  margin: 0 calc(8 / 750 * 100vw);
}

.feature {
  padding: calc(53 / 750 * 100vw) calc(44 / 750 * 100vw) calc(40 / 750 * 100vw);
  background: url("../m/images/feature-card-bg.jpg") center / cover no-repeat;
}

.feature-card {
  display: block;
  border-radius: 6px;
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  display: block;
  aspect-ratio: 657 / 446;
  object-fit: cover;
}

.feature p {
  margin: calc(18 / 750 * 100vw) 0 0;
  font-size: calc(24 / 750 * 100vw);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.content-wrapper {
  background: url("../m/images/m-bd-bg.jpg") center / cover no-repeat;
}

.module {
  padding: calc(50 / 750 * 100vw) calc(28 / 750 * 100vw) calc(20 / 750 * 100vw);
}

#new-car {
}

#hot-model {
}

#media-matrix {
  /* margin-bottom: 2rem; */
  /* min-height: calc(1289 / 750 * 100vw); */
}

#platforms {
  /* min-height: calc(1710 / 750 * 100vw); */
}

.module-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: calc(28 / 750 * 100vw);
}

.module-header h2 {
  margin: 0;
  font-size: calc(48 / 750 * 100vw);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.003em;
}

.module-header span {
  color: var(--accent);
  font-size: calc(30 / 750 * 100vw);
  letter-spacing: -0.015em;
  line-height: 1;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(30 / 750 * 100vw) calc(14 / 750 * 100vw);
}

.card-grid a,
.logo-grid a {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.card-grid a {
  display: flex;
  flex-direction: column;
}

.card-grid img {
  width: 100%;
  display: block;
  aspect-ratio: 339 / 190;
  object-fit: cover;
}

.card-grid a p {
  margin: calc(10 / 750 * 100vw) 0 0;
  font-size: calc(30 / 750 * 100vw);
  line-height: 1.1;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-btn {
  display: block;
  width: calc(180 / 750 * 100vw);
  margin: calc(28 / 750 * 100vw) auto 0;
  text-align: center;
  font-size: calc(30 / 750 * 100vw);
  line-height: calc(64 / 750 * 100vw);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: calc(33 / 750 * 100vw);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(13 / 750 * 100vw) calc(13 / 750 * 100vw);
  background: #ffffff;
  padding: calc(20 / 750 * 100vw);
}

.logo-grid img {
  width: 100%;
  display: block;
  aspect-ratio: 338 / 120;
  object-fit: contain;
}

.footer {
  text-align: center;
  padding: calc(70 / 750 * 100vw) calc(12 / 750 * 100vw) calc(70 / 750 * 100vw);
  font-size: calc(30 / 750 * 100vw);
  color: rgba(255, 255, 255, 0.85);
}

.footer p {
  margin: calc(8 / 750 * 100vw) 0;
}

.footer img {
  width: calc(158 / 750 * 100vw);
  display: block;
  margin: 0 auto calc(16 / 750 * 100vw);
}

.design-back-top {
  position: fixed;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(100px, env(safe-area-inset-bottom));
  z-index: 46;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  padding: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.design-back-top.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.design-back-top span {
  width: 10px;
  height: 10px;
  border-left: 2px solid #111;
  border-top: 2px solid #111;
  transform: rotate(45deg) translateY(2px);
}

@media (max-width: 430px) {
  .design-back-top {
    width: 52px;
    height: 52px;
    border-radius: 8px;
  }
}

@media (max-width: 375px) {
  .design-back-top {
    width: 48px;
    height: 48px;
    right: 8px;
  }
}
