:root {
  --page: #0d0a07;
  --panel: #17110b;
  --line: #a77e2a;
  --gold: #d6ad43;
  --cream: #f7f1e4;
  --ink: #21190f;
  --muted: #7c7061;
  --pink: #e69aac;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --serif: "HDSerif", "Source Han Serif SC", "Noto Serif SC", "Songti SC", STSong, serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--page);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(146, 104, 36, 0.1), transparent 42%),
    var(--page);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--page);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.guide-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  height: calc(58px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 12px 0;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  border-top: 1px solid #7b591d;
  border-bottom: 1px solid #80601f;
  background:
    linear-gradient(90deg, rgba(255, 214, 119, 0.035), transparent 34%, transparent 66%, rgba(255, 214, 119, 0.035)),
    rgba(18, 13, 8, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.guide-header h1 {
  overflow: hidden;
  margin: 0;
  color: var(--gold-light, #f1c76c);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-back {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #e4b857;
  transition: background-color 160ms ease;
}

.guide-back:hover,
.guide-back:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: 0;
}

.guide-back svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-header-spacer {
  width: 40px;
}

.guide-list {
  display: grid;
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 11px 14px calc(26px + env(safe-area-inset-bottom));
  gap: 9px;
}

.guide-card {
  position: relative;
  display: grid;
  min-height: 69px;
  padding: 10px 12px;
  grid-template-columns: 46px minmax(0, 1fr) 50px;
  gap: 12px;
  align-items: center;
  border: 1px solid #9a7529;
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.025);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 179, 0.07),
    0 8px 20px rgba(0, 0, 0, 0.12);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.guide-card:hover,
.guide-card:focus-visible {
  border-color: #d4af37;
  background-color: rgba(255, 255, 255, 0.045);
  outline: 0;
  transform: translateY(-1px);
}

.guide-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #f8f7f0;
  color: #4b4a44;
  box-shadow: 0 4px 13px rgba(0, 0, 0, 0.2);
}

.guide-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-icon-gear {
  color: #35b95d;
}

.guide-icon-shield {
  color: #dc66d3;
}

.guide-icon-tencent {
  color: #397dc8;
}

.guide-brand {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.guide-brand-harmony {
  background: #f7f2e9;
  color: #c6272f;
  font-family: var(--serif);
  font-size: 16px;
}

.guide-brand-huawei {
  color: #c51f2d;
  font-size: 7px;
}

.guide-brand-xiaomi {
  background: #f7f4ed;
  color: #ff6900;
  font-size: 19px;
  font-weight: 800;
}

.guide-brand-oppo {
  color: #0d9a71;
  font-size: 11px;
  letter-spacing: -0.06em;
}

.guide-brand-vivo {
  color: #19a4e8;
  font-size: 11px;
  font-style: italic;
}

.guide-brand-meizu {
  color: #1f92d1;
  font-size: 7px;
  letter-spacing: -0.02em;
}

.guide-card-copy {
  overflow: hidden;
  color: #efe8d8;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.guide-view {
  display: grid;
  min-height: 28px;
  place-items: center;
  border: 1px solid rgba(240, 160, 185, 0.72);
  border-radius: 999px;
  color: var(--pink);
  font-size: 10px;
}

.detail-shell {
  width: min(100%, 790px);
  margin: 0 auto;
  padding: 12px 12px calc(20px + env(safe-area-inset-bottom));
}

.detail-paper {
  overflow: hidden;
  padding: 24px clamp(16px, 4vw, 40px) 32px;
  border: 1px solid rgba(214, 173, 67, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 48%),
    #130e0a;
  color: var(--cream);
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 173, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.28);
}

.detail-intro {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-kicker {
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.detail-intro p {
  margin: 10px 0 0;
  color: rgba(247, 241, 228, 0.68);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.75;
}

.detail-steps {
  display: grid;
}

.setup-step {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.setup-step:last-child {
  border-bottom: 0;
}

.setup-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 17px;
}

.setup-index {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #ed4e53;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.setup-heading h2 {
  margin: 0;
  color: #f8f1e4;
  font-size: clamp(18px, 3.5vw, 23px);
  letter-spacing: -0.02em;
}

.setup-heading p {
  margin: 6px 0 0;
  color: rgba(247, 241, 228, 0.54);
  font-size: 12px;
  line-height: 1.65;
}

.phone-demo {
  width: min(100%, 510px);
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid rgba(230, 187, 81, 0.72);
  border-radius: 12px;
  background: #17110c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.26);
}

.phone-status {
  display: flex;
  height: 26px;
  padding: 0 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #211a13;
  color: rgba(247, 241, 228, 0.55);
  font-size: 8px;
}

.phone-nav {
  display: grid;
  min-height: 46px;
  padding: 0 13px;
  grid-template-columns: 20px 1fr 20px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f0e6d4;
}

.phone-nav span {
  font-size: 23px;
  font-weight: 300;
}

.phone-nav strong {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.phone-rows {
  display: grid;
  padding: 4px 12px 16px;
}

.phone-row {
  position: relative;
  display: flex;
  min-height: 44px;
  padding: 0 9px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(247, 241, 228, 0.64);
  font-size: 11px;
}

.phone-row::after {
  width: 7px;
  height: 7px;
  content: "";
  border-top: 1px solid rgba(247, 241, 228, 0.36);
  border-right: 1px solid rgba(247, 241, 228, 0.36);
  transform: rotate(45deg);
}

.phone-row.is-highlight {
  margin: 3px -2px;
  padding: 0 11px;
  border: 1px solid rgba(238, 121, 147, 0.72);
  border-radius: 4px;
  background: rgba(222, 69, 96, 0.11);
  color: #f2a0b1;
}

.phone-row.is-highlight::before {
  position: absolute;
  top: -18px;
  right: 24px;
  content: "☝";
  color: #f08aa0;
  font-size: 27px;
  transform: rotate(-12deg);
}

.phone-row .switch {
  width: 34px;
  height: 19px;
  border-radius: 99px;
  background: #41372f;
}

.phone-row .switch.on {
  background: #ff6d84;
}

.phone-row .switch::after {
  display: block;
  width: 15px;
  height: 15px;
  margin: 2px;
  content: "";
  border-radius: 50%;
  background: #f7eee0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.phone-row .switch.on::after {
  margin-left: 17px;
}

.detail-tip {
  display: flex;
  gap: 11px;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid rgba(224, 181, 79, 0.24);
  border-radius: 10px;
  background: rgba(206, 157, 53, 0.07);
}

.detail-tip-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e9b64f;
  color: #241907;
  font-size: 13px;
  font-weight: 800;
}

.detail-tip strong {
  color: #f4e5c4;
  font-size: 12px;
}

.detail-tip p {
  margin: 5px 0 0;
  color: rgba(247, 241, 228, 0.5);
  font-size: 10px;
  line-height: 1.65;
}

.detail-return {
  display: flex;
  width: fit-content;
  margin: 22px auto 0;
  padding: 9px 15px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: rgba(247, 241, 228, 0.68);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
}

@media (min-width: 681px) {
  .guide-header {
    height: 58px;
    padding-top: 0;
  }

  .guide-list {
    padding-top: 18px;
  }

  .detail-shell {
    padding-top: 20px;
  }

  .detail-paper {
    border-radius: 14px;
  }
}

@media (max-width: 420px) {
  .guide-list {
    padding-right: 13px;
    padding-left: 13px;
  }

  .guide-card {
    grid-template-columns: 43px minmax(0, 1fr) 46px;
    gap: 10px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .guide-icon {
    width: 40px;
    height: 40px;
  }

  .guide-card-copy {
    font-size: 11px;
  }

  .guide-view {
    font-size: 9px;
  }

  .detail-shell {
    padding: 9px 7px calc(14px + env(safe-area-inset-bottom));
  }

  .detail-paper {
    padding: 20px 14px 26px;
    border-radius: 8px;
  }

  .detail-intro p {
    font-size: 14px;
  }

  .setup-step {
    padding: 23px 0;
  }

  .phone-demo {
    border-width: 2px;
  }
}

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