* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; }
html { overflow-x: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #e8eef3;
  color: #1C1C1C;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* 以 375 设计宽为基准：1rpx = 0.5px */
.phone {
  display: block;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(186deg, #A4DBFC 0.17%, #E3EFFA 41.21%, #F4F7FA 95.34%);
  position: relative;
  overflow: hidden;
  font-size: 14px;
}

/* ===== Header（还原 my-header） ===== */
.header {
  position: relative;
  z-index: 9;
  height: 88px;
  padding-top: 44px;
}
.header .btns {
  width: 81px;
  height: 32px;
  display: flex;
  border-radius: 20px;
  justify-content: space-evenly;
  align-items: center;
  border: 0.5px solid #E9E9E9;
  background: rgba(255, 255, 255, 0.60);
  position: absolute;
  left: 8px;
  top: 48px;
}
.header .btns::after {
  content: "";
  width: 0.5px;
  height: 20px;
  background: rgba(0, 0, 0, 0.1);
  position: absolute;
}
.header .btns .icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.header .title {
  width: 100%;
  height: 32px;
  color: #26292C;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Main ===== */
.main {
  padding: 0 16px 16px;
  margin-top: 16px;
  overflow: auto;
  height: calc(100vh - 88px - 16px);
  max-height: calc(100% - 104px);
}

.titleBg {
  position: relative;
  text-align: center;
}
.titleBg img {
  width: 327px;
  max-width: 100%;
  height: 130px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ===== Method cards ===== */
.method1 { margin-top: -38px; position: relative; z-index: 1; }
.method2 { margin-top: 16px; padding-bottom: 24px; }

.method .title {
  display: flex;
  height: 48px;
  padding: 4px;
  align-items: center;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(93deg, #04A4FF -0.99%, #71C9FF 121.41%);
}
.method .title .lf {
  width: 60px;
  height: 48px;
  color: #fff;
  font-weight: 900;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  flex-shrink: 0;
}
.method .title .rt {
  flex: 1;
  height: 40px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  border-top-right-radius: 16px;
  align-items: center;
  padding: 0 9px;
  min-width: 0;
}
.method .title .rt .down {
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}
.method .title .rt .view {
  font-size: 12px;
  white-space: nowrap;
  color: #1C1C1C;
}

.method1 .list {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  background: rgba(255, 255, 255, 0.70);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 10px;
  padding: 12px;
}
.method1 .list .tips {
  grid-column: 1 / -1;
  font-size: 12px;
  line-height: 1.2;
  color: #1C1C1C;
}
.method1 .list .img {
  width: 100%;
  height: auto;
  aspect-ratio: 200 / 112;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

.method2 .list {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  background: rgba(255, 255, 255, 0.70);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
}
.method2 .line1 {
  position: relative;
  padding-right: 75px;
}
.method2 .copy-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 16px;
  background: rgba(4, 164, 255, 0.10);
  color: #04A4FF;
  width: 65px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  box-sizing: border-box;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.method2 .copy-btn:active {
  opacity: 0.7;
}

/* ===== Guide detail overlay ===== */
.guide-page {
  position: absolute;
  inset: 0;
  background: linear-gradient(186deg, #A4DBFC 0.17%, #E3EFFA 41.21%, #F4F7FA 95.34%);
  z-index: 20;
  display: none;
  flex-direction: column;
}
.guide-page.show { display: flex; }
.guide-page .main {
  flex: 1;
  height: auto;
  max-height: none;
}
.guide-page .viewImg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

@media (max-width: 360px) {
  .titleBg img { width: 100%; height: auto; aspect-ratio: 654 / 260; }
}

@media (min-width: 768px) {
  body { background: #eef5fb; }
  .phone {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    background: radial-gradient(circle at 82% 8%, rgba(255,255,255,.92), transparent 28%), linear-gradient(180deg, #b9e5ff 0, #e9f5fe 31%, #f8fbfe 73%, #eef6fb 100%);
  }
  .header { height: 86px; padding-top: 25px; }
  .header .btns {
    top: 25px;
    left: max(32px, calc((100% - 1320px) / 2));
    width: 92px;
    height: 36px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 8px 24px rgba(54,122,178,.12);
  }
  .header .btns .icon { width: 22px; height: 22px; }
  .header .title { color: #102a43; font-size: 22px; letter-spacing: .08em; }
  .page-home > .main {
    width: min(860px, calc(100% - 64px));
    height: auto;
    max-height: none;
    margin: 8px auto 0;
    padding: 0 0 88px;
    overflow: visible;
  }
  .titleBg { min-height: 260px; transform: translateY(98px); }
  .titleBg img {
    width: 654px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 654 / 260;
  }
  .method1 { margin-top: 28px; }
  .method2 { margin-top: 28px; padding-bottom: 24px; }
  .method { border-radius: 22px; box-shadow: 0 18px 46px rgba(45,111,156,.12); }
  .method .title { height: 64px; padding: 7px; border-radius: 22px 22px 0 0; }
  .method .title .lf { width: 88px; height: 50px; font-size: 16px; }
  .method .title .rt { height: 50px; padding: 0 18px; }
  .method .title .rt .down { font-size: 17px; }
  .method .title .rt .view { font-size: 13px; }
  .method1 .list { gap: 16px; padding: 20px; border-radius: 0 0 22px 22px; }
  .method1 .list .tips { font-size: 13px; }

  .method2 .list { padding: 24px 26px 28px; border-radius: 0 0 22px 22px; font-size: 14px; }
  .method2 .line { padding-left: 30px; line-height: 1.8; }
  .method2 .copy-btn { width: 72px; padding: 8px 12px; border: 1px solid #d7eaf6; background: #edf8ff; font-size: 12px; }
  .guide-page .main {
    width: min(900px, calc(100% - 48px));
    height: calc(100vh - 92px);
    max-height: none;
    margin: 0 auto;
    overflow-y: auto;
  }
  .guide-page .viewImg { max-width: 900px; margin: 0 auto; }
}