:root {
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  font-synthesis: none;
  --desk: #e9edf2;
  --desk-deep: #dfe5eb;
  --ink: #18212b;
  --muted: #697584;
  --line: rgb(21 33 46 / 11%);
  --navy: #13294b;
  --kami-ink: #1b365d;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0, rgb(255 255 255 / 94%) 0, transparent 34rem),
    linear-gradient(180deg, #f3f5f7 0, var(--desk) 38rem, var(--desk-deep) 100%);
  -webkit-font-smoothing: antialiased;
}

button,
iframe {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(19 41 75 / 24%);
  outline-offset: 3px;
}

.comparison-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 38px;
}

.comparison-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 68px;
  padding: 0 4px;
}

.comparison-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.comparison-brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 1px solid rgb(19 41 75 / 14%);
  border-radius: 13px;
  box-shadow: 0 6px 16px rgb(23 33 45 / 10%);
}

.comparison-brand strong,
.comparison-brand small {
  display: block;
}

.comparison-brand strong {
  color: #102a47;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.comparison-brand small {
  margin-top: 3px;
  color: #7b8590;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.comparison-intro {
  text-align: right;
}

.comparison-intro p,
.comparison-intro span {
  margin: 0;
}

.comparison-intro p {
  color: #24303d;
  font-size: 14px;
  font-weight: 650;
}

.comparison-intro span {
  display: block;
  margin-top: 5px;
  color: #7b8590;
  font-size: 12px;
}

.comparison-controls {
  position: sticky;
  top: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 28px;
  padding: 9px 10px;
  border: 1px solid rgb(255 255 255 / 86%);
  border-radius: 14px;
  background: rgb(248 250 252 / 82%);
  box-shadow:
    0 12px 30px rgb(44 56 70 / 9%),
    inset 0 0 0 1px var(--line);
  backdrop-filter: blur(18px) saturate(1.2);
}

.variant-switch {
  display: none;
}

.route-switch {
  min-width: 0;
  flex: 1;
  display: flex;
  gap: 3px;
}

.route-switch button,
.variant-switch button,
.reset-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #5f6b78;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.route-switch button:hover,
.variant-switch button:hover,
.reset-button:hover {
  background: rgb(19 41 75 / 6%);
  color: #13294b;
}

.route-switch button.is-active,
.variant-switch button.is-active {
  background: #13294b;
  color: #fff;
  box-shadow: 0 5px 12px rgb(19 41 75 / 20%);
}

.reset-button {
  border-left: 1px solid var(--line);
  border-radius: 0 9px 9px 0;
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

.variant-column {
  min-width: 0;
}

.variant-meta {
  width: 432px;
  max-width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  margin: 0 auto 14px;
  padding: 0 8px;
}

.variant-index {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #13294b;
  color: #fff;
  font-family: "DIN Alternate", "Arial Narrow", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.variant-meta-kami .variant-index {
  border: 1px solid #a9a79d;
  border-radius: 50%;
  background: transparent;
  color: #1b365d;
  font-family: Georgia, "Songti SC", serif;
  font-weight: 500;
}

.variant-meta h2,
.variant-meta p {
  margin: 0;
}

.variant-meta h2 {
  color: #1d2936;
  font-size: 16px;
  font-weight: 700;
}

.variant-meta p {
  margin-top: 3px;
  color: #7b8590;
  font-size: 11px;
}

.variant-meta-kami h2 {
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-weight: 500;
}

.phone-wrap {
  display: grid;
  place-items: center;
  padding: 30px 34px 42px;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 20%, #fff 0, rgb(255 255 255 / 30%) 42%, transparent 72%),
    rgb(215 222 230 / 46%);
  box-shadow: inset 0 0 0 1px rgb(26 39 53 / 5%);
}

.phone-wrap-kami {
  background:
    radial-gradient(circle at 50% 20%, #faf9f5 0, rgb(250 249 245 / 40%) 45%, transparent 74%),
    rgb(226 224 214 / 58%);
}

.compare-phone {
  position: relative;
  width: 408px;
  height: 866px;
  padding: 9px;
  border: 1px solid #050607;
  border-radius: 53px;
  background:
    linear-gradient(90deg, #060708 0%, #676b70 2%, #15171a 5%, #030405 50%, #272a2e 95%, #6d7177 98%, #08090a 100%);
  box-shadow:
    0 42px 70px rgb(22 31 42 / 26%),
    0 12px 26px rgb(22 31 42 / 18%),
    inset 0 0 0 1px rgb(255 255 255 / 26%),
    inset 0 0 0 3px rgb(0 0 0 / 74%);
}

.compare-phone::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: 0;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 49px;
  pointer-events: none;
}

.compare-phone::after {
  content: "";
  position: absolute;
  right: 32px;
  bottom: -25px;
  left: 32px;
  height: 22px;
  border-radius: 50%;
  background: rgb(24 34 45 / 22%);
  filter: blur(14px);
  pointer-events: none;
}

.hardware-button {
  position: absolute;
  z-index: 0;
  width: 4px;
  border: 1px solid #030405;
  background: linear-gradient(90deg, #24272b, #7d8186 50%, #131518);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 13%);
}

.silent-button {
  top: 126px;
  left: -5px;
  height: 31px;
  border-radius: 3px 0 0 3px;
}

.volume-up-button,
.volume-down-button {
  left: -5px;
  height: 62px;
  border-radius: 4px 0 0 4px;
}

.volume-up-button {
  top: 184px;
}

.volume-down-button {
  top: 259px;
}

.power-button {
  top: 210px;
  right: -5px;
  height: 92px;
  border-radius: 0 4px 4px 0;
}

.phone-screen {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #17191c;
  border-radius: 44px;
  background: #f6f7f9;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 25%),
    inset 0 0 18px rgb(12 20 29 / 9%);
}

.compare-phone-kami .phone-screen {
  background: #f5f4ed;
}

.phone-screen iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: transparent;
}

.phone-statusbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  height: 47px;
  display: grid;
  grid-template-columns: 1fr 118px 1fr;
  align-items: center;
  padding: 0 20px;
  color: #0f1318;
  font-size: 12px;
  font-weight: 750;
  pointer-events: none;
}

.phone-statusbar time {
  justify-self: start;
  font-variant-numeric: tabular-nums;
}

.dynamic-island {
  position: relative;
  width: 114px;
  height: 32px;
  justify-self: center;
  border-radius: 18px;
  background: #020304;
  box-shadow: inset 0 -1px 2px rgb(255 255 255 / 9%);
}

.dynamic-island i {
  position: absolute;
  top: 11px;
  right: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #203d65 0 16%, #09101a 45%, #020304 75%);
}

.status-icons {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
}

.cellular {
  height: 11px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.cellular b {
  width: 2.5px;
  border-radius: 1px;
  background: currentColor;
}

.cellular b:nth-child(1) { height: 4px; }
.cellular b:nth-child(2) { height: 6px; }
.cellular b:nth-child(3) { height: 8px; }
.cellular b:nth-child(4) { height: 10px; }

.wifi {
  position: relative;
  width: 14px;
  height: 10px;
  overflow: hidden;
}

.wifi::before,
.wifi::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.wifi::before {
  top: 1px;
  width: 12px;
  height: 12px;
}

.wifi::after {
  top: 6px;
  width: 4px;
  height: 4px;
}

.battery {
  position: relative;
  width: 20px;
  height: 10px;
  padding: 1.5px;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.battery::after {
  content: "";
  position: absolute;
  top: 2px;
  right: -3px;
  width: 2px;
  height: 4px;
  border-radius: 0 1px 1px 0;
  background: currentColor;
}

.battery b {
  display: block;
  width: 13px;
  height: 100%;
  border-radius: 1px;
  background: currentColor;
}

.home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  z-index: 20;
  width: 122px;
  height: 4px;
  border-radius: 3px;
  background: #111418;
  transform: translateX(-50%);
  pointer-events: none;
}

.comparison-foot {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
  padding: 20px 34px 0;
  color: #7b8590;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1020px) {
  .comparison-shell {
    width: min(620px, calc(100% - 24px));
    padding-top: 14px;
  }

  .comparison-head {
    min-height: 54px;
  }

  .comparison-intro {
    display: none;
  }

  .comparison-controls {
    top: 8px;
    display: grid;
    grid-template-columns: 1fr auto;
    margin: 12px 0 20px;
    padding: 8px;
  }

  .variant-switch {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 3px;
    border-radius: 11px;
    background: rgb(19 41 75 / 6%);
  }

  .variant-switch button {
    min-height: 36px;
  }

  .route-switch {
    overflow-x: auto;
    padding-top: 6px;
    scrollbar-width: none;
  }

  .route-switch::-webkit-scrollbar {
    display: none;
  }

  .reset-button {
    margin-top: 6px;
  }

  .variant-grid {
    display: block;
  }

  .variant-column {
    display: none;
  }

  .variant-column.is-active {
    display: block;
  }

  .comparison-foot {
    display: none;
  }
}

@media (max-width: 520px) {
  .comparison-shell {
    width: 100%;
    padding: 10px 0 20px;
  }

  .comparison-head,
  .comparison-controls,
  .variant-meta {
    margin-right: 12px;
    margin-left: 12px;
  }

  .comparison-head {
    padding: 0;
  }

  .comparison-brand img {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .comparison-brand strong {
    font-size: 16px;
  }

  .comparison-brand small {
    font-size: 10px;
  }

  .comparison-controls {
    border-radius: 12px;
  }

  .route-switch button,
  .reset-button {
    padding: 0 11px;
  }

  .variant-meta {
    width: auto;
    margin-bottom: 10px;
    padding: 0 3px;
  }

  .phone-wrap {
    padding: 12px 0 24px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .compare-phone {
    width: min(408px, calc(100vw - 20px));
    height: auto;
    aspect-ratio: 408 / 866;
    border-radius: 13vw;
  }

  .phone-screen {
    border-radius: calc(13vw - 9px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
