@charset "UTF-8";

/* ============================================================
   淘应用 · 应用市场 / 排行榜版式
   ============================================================ */

:root {
  --blue: #1890F0;
  --blue-deep: #0A6FC4;
  --blue-soft: #E8F3FF;
  --ink: #0F2233;
  --ink-2: #1B3348;
  --paper: #F4F9FE;
  --card: #ffffff;
  --line: #DCEAF8;
  --muted: #5B7488;
  --up: #0C9E68;
  --down: #D9483B;
  --shell: 1180px;
  --hdr: 74px;
  --r: 12px;
  --shadow-s: 0 6px 16px rgba(15, 34, 51, 0.07);
  --shadow-m: 0 18px 40px rgba(24, 144, 240, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a, button { -webkit-tap-highlight-color: transparent; }

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

button { color: inherit; font: inherit; }

button:focus-visible,
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.page-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin: 0 auto;
}

/* ---------- 图标 ---------- */
.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.icon::before {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: center / contain no-repeat;
}

.icon-download::before { background-image: url("../icons/download.svg"); }
.icon-menu::before { background-image: url("../icons/menu.svg"); }
.icon-close::before { background-image: url("../icons/close.svg"); }
.icon-arrow::before { background-image: url("../icons/arrow.svg"); }
.icon-globe::before { background-image: url("../icons/globe.svg"); }
.icon-plus::before { background-image: url("../icons/plus.svg"); }
.icon-bolt::before { background-image: url("../icons/bolt.svg"); }
.icon-shield::before { background-image: url("../icons/shield.svg"); }
.icon-route::before { background-image: url("../icons/route.svg"); }
.icon-book::before { background-image: url("../icons/book.svg"); }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(150%) blur(8px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--shell));
  min-height: var(--hdr);
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: clamp(18px, 2.6vw, 36px);
}

.primary-nav a {
  position: relative;
  display: inline-block;
  padding: 8px 0 8px 14px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.primary-nav a::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: #C3D9EE;
  transform: translateY(-50%);
  transition: background-color 180ms ease, transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible { color: var(--blue); }

.primary-nav a:hover::before,
.primary-nav a:focus-visible::before {
  background: var(--blue);
  transform: translateY(-50%) scale(1.5);
}

.nav-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nav-download {
  min-width: 134px;
  padding: 0 20px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 14px rgba(24, 144, 240, 0.28);
}

.nav-download .icon,
.button-primary .icon { filter: brightness(0) invert(1); }

.nav-download:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle .icon { width: 20px; height: 20px; }

/* ---------- 英雄区 ---------- */
.hero {
  position: relative;
  padding: 62px 0 66px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(24, 144, 240, 0.05) 0 1px, transparent 1px 92px),
    linear-gradient(165deg, #E6F2FF 0%, #F8FBFF 58%, #EDF6FF 100%);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--hdr) + 14px);
}

.hero::after {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 340px;
  height: 340px;
  border: 44px solid rgba(24, 144, 240, 0.06);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 476px);
  align-items: center;
  gap: 46px;
}

.hero-copy { max-width: 520px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-deep);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 6.2vw, 76px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.hero-title {
  margin: 14px 0 16px;
  font-size: clamp(24px, 2.9vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink-2);
}

.hero-summary {
  max-width: 470px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15.5px;
}

.button { min-width: 168px; padding: 0 26px; }

.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 26px rgba(24, 144, 240, 0.32);
}

.button-primary:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(10, 111, 196, 0.34);
}

/* ---------- 英雄组件：排行榜 ---------- */
.hero-ranking {
  width: 100%;
  max-width: 476px;
  margin-left: auto;
  padding: 0 0 14px;
  border: 1px solid #D5E7F9;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-m);
  overflow: hidden;
}

.rk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, #F2F8FF, #FFFFFF);
}

.rk-head b { font-size: 17px; font-weight: 800; letter-spacing: 0.02em; }

.rk-head span { color: #7C93A6; font-size: 11.5px; }

.rk-list {
  padding: 4px 0;
  margin: 0;
  list-style: none;
}

.rk-list li {
  display: grid;
  grid-template-columns: 44px 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  transition: background-color 160ms ease;
}

.rk-list li:hover { background: #F5FAFF; }

.rk-no {
  color: #B7D5F0;
  font-size: 27px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.04em;
}

.rk-list li:first-child .rk-no { color: var(--blue); }

.rk-up,
.rk-down {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.rk-up { color: var(--up); }
.rk-down { color: var(--down); }

.rk-meta { min-width: 0; }

.rk-meta b {
  display: block;
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rk-meta small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #8399AB;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rk-list em {
  padding: 3px 9px;
  border-radius: 8px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.rk-foot {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px 0;
  border-top: 1px dashed var(--line);
  color: #8399AB;
  font-size: 11.5px;
}

/* ---------- 通用区块标题 ---------- */
.section-heading {
  max-width: 660px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 核心特色：四行清单 ---------- */
.routes {
  padding: 74px 0 70px;
  background: #fff;
  scroll-margin-top: calc(var(--hdr) + 14px);
}

.four-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  border-top: 1px solid var(--line);
}

.four {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  padding: 26px 0 24px;
  border-bottom: 1px solid var(--line);
}

.four .n {
  padding-top: 3px;
  color: #C6DEF4;
  font-size: 34px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.04em;
}

.four h3 {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.four p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- 界面展示：深色胶片条 ---------- */
.screens {
  padding: 74px 0 80px;
  color: #EAF3FB;
  background: #0E1F30;
  scroll-margin-top: calc(var(--hdr) + 14px);
}

.screens .eyebrow { color: #6FB6F5; }

.screens .section-heading h2 { color: #fff; }

.screens .section-heading > p:last-child { color: #93AEC6; }

.plate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}

.plate-grid figure {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 9px 9px 0;
  border: 1px solid #274257;
  border-radius: 14px;
  background: #14293C;
}

.plate-grid figure:nth-child(2n) { margin-top: 30px; }

.plate-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 9px;
  object-fit: cover;
  object-position: top center;
  background: #0B1723;
}

.plate-grid figcaption {
  display: grid;
  gap: 2px;
  padding: 10px 4px 12px;
}

.plate-grid figcaption b {
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
}

.plate-grid figcaption small {
  color: #8FA9BE;
  font-size: 11px;
  line-height: 1.55;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 78px 0 16px;
  background: var(--paper);
  scroll-margin-top: calc(var(--hdr) + 14px);
}

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

.faq-item {
  border: 1px solid var(--line);
  border-left: 3px solid #C6DEF4;
  border-radius: 10px;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.faq-item[open] {
  border-left-color: var(--blue);
  box-shadow: var(--shadow-s);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 18px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary h3 {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
}

.faq-item summary .icon {
  width: 15px;
  height: 15px;
  transition: transform 180ms ease;
  filter: invert(46%) sepia(85%) saturate(2100%) hue-rotate(190deg) brightness(99%) contrast(96%);
}

.faq-item[open] summary .icon { transform: rotate(45deg); }

.faq-answer { padding: 0 18px 16px; }

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.82;
}

/* ---------- 官方入口 ---------- */
.official {
  padding: 20px 0 76px;
  background: var(--paper);
}

.official .section-heading { margin-bottom: 24px; }

.official-fold {
  border: 1px solid #CFE4F7;
  border-radius: 14px;
  background: linear-gradient(135deg, #EDF6FF, #FFFFFF 60%);
  box-shadow: var(--shadow-s);
  overflow: hidden;
}

.official-fold summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  color: var(--blue-deep);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.official-fold summary::-webkit-details-marker { display: none; }

.official-fold summary::after {
  margin-left: auto;
  color: var(--blue);
  content: "+";
  font-size: 19px;
  font-weight: 800;
}

.official-fold[open] summary::after { content: "−"; }

.official-link {
  padding: 4px 22px 18px;
  border-top: 1px dashed #CFE4F7;
}

.official-link p { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; }

.official-link a {
  color: var(--blue-deep);
  font-weight: 700;
  word-break: break-all;
}

/* ---------- 用户评价 ---------- */
.reviews {
  padding: 74px 0 80px;
  background: #fff;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--hdr) + 14px);
}

.review-stream {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  display: flex;
  min-height: 236px;
  flex-direction: column;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FBFDFF;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-s);
}

.review-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px dashed var(--line);
}

.review-card header .who b {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}

.review-card time {
  color: #93A9BB;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.review-card > p {
  margin: 14px 0 12px;
  color: #465C70;
  font-size: 13.4px;
  line-height: 1.85;
}

.rv-site {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--blue-deep);
  font-size: 11.5px;
  font-weight: 700;
  word-break: break-all;
}

/* ---------- 下载区 ---------- */
.download-cta {
  position: relative;
  padding: 66px 0 62px;
  overflow: hidden;
  color: #EAF3FB;
  background: #0F2233;
  scroll-margin-top: calc(var(--hdr) + 14px);
}

.download-cta::before {
  position: absolute;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(135deg, rgba(24, 144, 240, 0.14) 0 2px, transparent 2px 22px);
  opacity: 0.7;
}

.download-cta .page-shell { position: relative; z-index: 1; }

.download-cta .eyebrow { color: #6FB6F5; }

.download-cta .section-heading h2 { color: #fff; }

.download-cta .section-heading > p:last-child { color: #9FB8CC; }

.download-cta .button-primary { box-shadow: 0 14px 30px rgba(24, 144, 240, 0.4); }

.disclaimer {
  margin: 22px 0 0;
  color: #7E97AC;
  font-size: 12.5px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 34px 0 16px;
  color: #93A9BB;
  background: #0A1724;
  text-align: center;
}

.site-footer p { margin: 0 0 8px; font-size: 12.5px; }

.site-footer a { color: #B7CBDC; }

.site-footer a:hover { color: #fff; }

.icp { padding-top: 6px; }

.icp a { font-size: 12px; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 150px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(10, 111, 196, 0.3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

.to-top::before {
  width: 9px;
  height: 9px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(45deg) translate(1px, 1px);
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.to-top:hover { background: var(--blue-deep); }

/* ---------- 平板 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 30px; }

  .four-list { column-gap: 34px; }

  .plate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .plate-grid figure:nth-child(2n) { margin-top: 0; }

  .review-stream { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }

  .hero-copy { max-width: 620px; }

  .hero-ranking { margin: 0 auto; }

  .faq-list { grid-template-columns: 1fr; }
}

/* ---------- 手机 ---------- */
@media (max-width: 700px) {
  :root { --hdr: 62px; }

  body { padding-top: var(--hdr); }

  .site-header {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
    background: #fff;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
  }

  .page-shell,
  .nav-shell { width: min(calc(100% - 32px), var(--shell)); }

  .nav-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-rows: var(--hdr);
    min-height: var(--hdr);
    column-gap: 9px;
  }

  .brand {
    grid-row: 1;
    grid-column: 1;
    gap: 7px;
    font-size: 16px;
  }

  .brand img { width: 30px; height: 30px; border-radius: 8px; }

  .primary-nav {
    display: none;
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0 -16px;
    padding: 0 16px 14px;
    border-top: 1px solid var(--line);
    background: #fff;
  }

  .primary-nav.is-open { display: block; }

  .primary-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 12px;
  }

  .primary-nav a {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #F8FBFF;
    font-size: 13px;
  }

  .primary-nav a::before { display: none; }

  .nav-download {
    grid-row: 1;
    grid-column: 3;
    min-width: auto;
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .nav-download .icon { width: 14px; height: 14px; }

  .menu-toggle {
    display: inline-flex;
    grid-row: 1;
    grid-column: 4;
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .hero { padding: 42px 0 46px; }

  .hero-copy { text-align: center; }

  .hero h1 { font-size: 46px; }

  .hero-title { font-size: 24px; }

  .hero-summary {
    margin-right: auto;
    margin-left: auto;
    font-size: 14px;
  }

  .hero-ranking { border-radius: 14px; }

  .rk-head { padding: 13px 15px 12px; }

  .rk-list li { grid-template-columns: 36px 48px minmax(0, 1fr) auto; padding: 10px 15px; }

  .rk-no { font-size: 23px; }

  .rk-meta b { font-size: 13.5px; }

  .rk-foot { padding: 10px 15px 0; }

  .routes,
  .screens,
  .reviews { padding: 52px 0; }

  .section-heading { margin-bottom: 26px; }

  .section-heading h2 { font-size: 27px; }

  .four-list { grid-template-columns: 1fr; }

  .four { grid-template-columns: 48px minmax(0, 1fr); padding: 20px 0; }

  .four .n { font-size: 27px; }

  .plate-grid { gap: 12px; }

  .plate-grid figcaption b { font-size: 12.5px; }

  .faq { padding: 52px 0 14px; }

  .official { padding: 18px 0 52px; }

  .review-stream { grid-template-columns: 1fr; }

  .review-card { min-height: auto; }

  .download-cta { padding: 48px 0 46px; }

  .download-cta .button-primary { width: 100%; }

  .to-top { right: 16px; bottom: 138px; width: 38px; height: 38px; }
}

@media (max-width: 380px) {
  .brand span { font-size: 14px; }

  .nav-download span { display: none; }

  .nav-download { width: 34px; padding: 0; justify-content: center; }

  .hero h1 { font-size: 40px; }

  .primary-nav ul { grid-template-columns: 1fr; }
}
