:root {
  color-scheme: light;
  --ink: #26332e;
  --muted: #727d78;
  --forest: #397565;
  --forest-deep: #294b42;
  --forest-soft: #e6f1ed;
  --coral: #f46f61;
  --coral-deep: #d9574c;
  --coral-soft: #fff0ed;
  --gold: #d29a3d;
  --gold-soft: #fff4dd;
  --canvas: #f5f7f6;
  --paper: #ffffff;
  --line: #e5e9e6;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #e9eeeb;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #e9eeeb;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(244, 111, 97, 0.26);
  outline-offset: 2px;
}

.detail-page {
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--canvas);
  box-shadow: 0 0 60px rgba(39, 67, 57, 0.1);
}

.detail-topbar {
  height: calc(60px + env(safe-area-inset-top));
  position: sticky;
  top: 0;
  z-index: 20;
  padding: env(safe-area-inset-top) 16px 0;
  display: grid;
  grid-template-columns: 46px 1fr 54px;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.detail-topbar > span {
  text-align: center;
  font-size: 13px;
  font-weight: 850;
}

.back-link,
.top-download {
  min-height: 36px;
  display: grid;
  place-items: center;
  color: var(--forest-deep);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.back-link {
  width: 36px;
  border-radius: 50%;
  background: var(--forest-soft);
  font-size: 19px;
}

.top-download {
  color: var(--coral-deep);
}

main {
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
}

.breadcrumb {
  min-height: 42px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.breadcrumb a {
  color: var(--forest);
  text-decoration: none;
}

.app-hero {
  padding: 24px 18px 28px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 15px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.app-logo {
  width: 76px;
  height: 76px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--forest-soft);
  border: 1px solid rgba(57, 117, 101, 0.12);
  border-radius: 18px;
  font-size: 23px;
  font-weight: 900;
}

.app-logo img {
  width: 60px;
  height: 60px;
  position: absolute;
  inset: 7px;
  object-fit: contain;
  border-radius: 14px;
}

.promoted-label {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  color: #8b6118;
  background: var(--gold-soft);
  border-radius: 10px;
  font-size: 8px;
  font-weight: 800;
}

.app-hero h1 {
  margin: 8px 0 7px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.app-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.hero-download {
  min-height: 44px;
  grid-column: 1 / -1;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--coral);
  border-radius: 13px;
  box-shadow: 0 9px 20px rgba(217, 87, 76, 0.16);
  text-decoration: none;
  font-size: 11px;
  font-weight: 850;
}

.content-section {
  padding: 25px 18px;
  background: var(--paper);
  border-bottom: 8px solid var(--canvas);
}

.eyebrow {
  display: block;
  color: var(--forest);
  font-size: 8px;
  font-weight: 850;
}

.content-section h2 {
  margin: 6px 0 14px;
  font-size: 18px;
  letter-spacing: 0;
}

.content-section > p {
  margin: 0;
  color: #58645e;
  font-size: 11px;
  line-height: 1.85;
}

.focus-box {
  margin-top: 18px;
  padding: 14px 15px;
  color: var(--forest-deep);
  background: var(--forest-soft);
  border-left: 3px solid var(--forest);
  border-radius: 0 8px 8px 0;
}

.focus-box strong {
  display: block;
  font-size: 9px;
}

.focus-box p {
  margin: 6px 0 0;
  font-size: 9px;
  line-height: 1.75;
}

.fact-grid {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.fact-grid div {
  min-width: 0;
  padding: 13px 8px 13px 0;
  border-bottom: 1px solid var(--line);
}

.fact-grid div:nth-child(even) {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.fact-grid dt {
  color: #89928d;
  font-size: 8px;
}

.fact-grid dd {
  margin: 5px 0 0;
  color: #3d4943;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.55;
}

.risk-box {
  margin-top: 17px;
  padding: 13px 14px;
  color: #785011;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  font-size: 9px;
  line-height: 1.75;
}

.verification-list {
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line);
  list-style: none;
}

.verification-list li {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.verification-list strong {
  color: var(--forest-deep);
  font-size: 9px;
}

.verification-list span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 54px;
  position: relative;
  padding: 14px 34px 14px 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
}

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

.faq-list summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  position: absolute;
  top: 15px;
  right: 0;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--forest-soft);
  border-radius: 50%;
  font-size: 15px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: -2px 0 15px;
  padding-right: 30px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.8;
}

.related-links {
  display: grid;
  gap: 8px;
}

.related-links a {
  min-height: 45px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  background: var(--canvas);
  border-radius: 12px;
  text-decoration: none;
  font-size: 10px;
  font-weight: 750;
}

.related-links a::after {
  content: "›";
  color: var(--coral-deep);
  font-size: 18px;
}

.page-footer {
  padding: 28px 18px 34px;
  color: var(--muted);
  background: var(--canvas);
  font-size: 9px;
  line-height: 1.7;
}

.page-footer strong {
  color: var(--ink);
  font-size: 11px;
}

.page-footer p {
  margin: 6px 0 0;
}

.page-footer nav {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.page-footer a {
  color: var(--forest);
  font-weight: 750;
  text-decoration: none;
}

.sticky-download {
  width: min(100%, 720px);
  min-height: calc(68px + env(safe-area-inset-bottom));
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 28px rgba(45, 72, 62, 0.08);
  backdrop-filter: blur(12px);
}

.sticky-download a {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--coral);
  border-radius: 13px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 850;
}

@media (max-width: 370px) {
  .app-hero {
    grid-template-columns: 66px minmax(0, 1fr);
    padding-left: 15px;
    padding-right: 15px;
  }

  .app-logo {
    width: 66px;
    height: 66px;
  }

  .app-logo img {
    width: 52px;
    height: 52px;
    inset: 6px;
  }

  .app-hero h1 {
    font-size: 21px;
  }
}

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