/* Appteka 官网样式 */
:root {
  --apt-green: #2f9b04;
  --apt-green-deep: #237a03;
  --apt-green-tint: #ecf7e4;
  --apt-green-line: #cde7bc;
  --apt-ink: #182112;
  --apt-mut: #5c6754;
  --apt-line: #e3e8da;
  --apt-bg: #fafbf7;
  --apt-card: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background-color: var(--apt-bg);
  color: var(--apt-ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

.apt-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.apt-wrap-narrow { max-width: 860px; }

h1, h2, h3 { line-height: 1.35; }

/* ---------- 顶部栏 ---------- */
.apt-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 251, 247, 0.94);
  border-bottom: 1px solid var(--apt-line);
}

.apt-topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.apt-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 19px;
  color: var(--apt-ink);
}

.apt-brand img { width: 30px; height: 30px; border-radius: 7px; }
.apt-brand strong { color: var(--apt-green); font-weight: 700; }

.apt-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 15px;
}

.apt-nav a { text-decoration: none; color: var(--apt-mut); transition: color 0.15s; }
.apt-nav a:hover { color: var(--apt-green-deep); }

.apt-topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--apt-green);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  padding: 9px 18px;
  border-radius: 8px;
  transition: background 0.15s;
}
.apt-topbar-cta:hover { background: var(--apt-green-deep); }

.apt-menu-btn {
  display: none;
  margin-left: auto;
  border: 1px solid var(--apt-line);
  background: var(--apt-card);
  color: var(--apt-ink);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.apt-hero { padding: 64px 0 56px; }

.apt-hero-grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: center;
}

.apt-hero h1 { font-size: 52px; letter-spacing: 0; }
.apt-hero-sub { font-size: 22px; color: var(--apt-green-deep); font-weight: 600; margin-top: 12px; }
.apt-hero-lead { margin-top: 18px; font-size: 16.5px; color: var(--apt-mut); max-width: 520px; }

.apt-hero-points {
  list-style: none;
  margin-top: 22px;
  display: grid;
  gap: 10px;
  font-size: 15.5px;
}
.apt-hero-points i { color: var(--apt-green); margin-right: 8px; }

.apt-hero-actions { margin-top: 30px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.apt-btn-main {
  display: inline-block;
  background: var(--apt-green);
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 9px;
  transition: background 0.15s;
}
.apt-btn-main:hover { background: var(--apt-green-deep); }

.apt-btn-plain {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--apt-mut);
  text-decoration: none;
  font-size: 15.5px;
}
.apt-btn-plain:hover { color: var(--apt-green-deep); }

/* 商店界面示意面板 */
.apt-market {
  background: var(--apt-card);
  border: 1px solid var(--apt-line);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(24, 33, 18, 0.09);
  overflow: hidden;
  font-size: 14px;
}

.apt-market-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--apt-line);
  font-weight: 700;
  font-size: 16px;
}
.apt-market-bar img { width: 26px; height: 26px; border-radius: 6px; }
.apt-market-bar i { margin-left: auto; color: var(--apt-mut); }

.apt-market-search {
  margin: 14px 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--apt-bg);
  border: 1px solid var(--apt-line);
  border-radius: 9px;
  padding: 10px 13px;
  color: var(--apt-mut);
  font-size: 13.5px;
}

.apt-market-cats {
  display: flex;
  gap: 8px;
  padding: 13px 16px 3px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.apt-market-cats span {
  flex: 0 0 auto;
  border: 1px solid var(--apt-line);
  color: var(--apt-mut);
  border-radius: 999px;
  padding: 3px 13px;
  font-size: 13px;
}
.apt-market-cats .is-on {
  background: var(--apt-green-tint);
  border-color: var(--apt-green-line);
  color: var(--apt-green-deep);
  font-weight: 600;
}

.apt-market-label {
  padding: 12px 16px 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--apt-ink);
}

.apt-market-list { list-style: none; }

.apt-app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
}

.apt-app-ico {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--ico-bg, var(--apt-green));
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apt-app-meta { flex: 1 1 auto; min-width: 0; line-height: 1.4; }
.apt-app-meta b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apt-app-meta small { color: var(--apt-mut); font-size: 12.5px; }

.apt-new {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--apt-green-deep);
  background: var(--apt-green-tint);
  border-radius: 4px;
  padding: 1px 4px;
  vertical-align: 2px;
  margin-left: 4px;
}

.apt-app-do {
  flex: 0 0 auto;
  border: 1px solid var(--apt-green);
  color: var(--apt-green-deep);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 15px;
}

.apt-market-tabs {
  display: flex;
  border-top: 1px solid var(--apt-line);
  margin-top: 6px;
  background: var(--apt-card);
}
.apt-market-tabs span {
  flex: 1;
  text-align: center;
  padding: 10px 0 12px;
  font-size: 12px;
  color: var(--apt-mut);
  display: grid;
  gap: 2px;
  justify-items: center;
}
.apt-market-tabs i { font-size: 19px; }
.apt-market-tabs .is-on { color: var(--apt-green-deep); font-weight: 600; }

/* ---------- 实机画面 ---------- */
.apt-screens { padding: 56px 0; background: #f1f5ea; border-top: 1px solid var(--apt-line); border-bottom: 1px solid var(--apt-line); }

.apt-screens h2, .apt-feats h2, .apt-cases h2, .apt-ask h2, .apt-voices h2 { font-size: 32px; }
.apt-get h2 { font-size: 30px; }

.apt-sec-lead { color: var(--apt-mut); margin-top: 10px; max-width: 640px; font-size: 16px; }

.apt-screen-rail {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.apt-screen-card {
  background: var(--apt-card);
  border: 1px solid var(--apt-line);
  border-radius: 14px;
  overflow: hidden;
}
.apt-screen-card img { display: block; width: 100%; height: auto; }
.apt-screen-card figcaption {
  padding: 12px 15px 14px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
}
.apt-screen-card figcaption span { font-weight: 400; color: var(--apt-mut); font-size: 13.5px; }

/* ---------- 功能 ---------- */
.apt-feats { padding: 68px 0 60px; }

.apt-feat-board {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.apt-feat-big, .apt-feat-item {
  background: var(--apt-card);
  border: 1px solid var(--apt-line);
  border-radius: 13px;
  padding: 26px 28px;
}
.apt-feat-big i, .apt-feat-item i { font-size: 26px; color: var(--apt-green); }
.apt-feat-big h3 { font-size: 20px; margin-top: 12px; }
.apt-feat-big p { color: var(--apt-mut); margin-top: 8px; font-size: 15px; }

.apt-feat-item { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: baseline; }
.apt-feat-item i { grid-row: 1; font-size: 22px; }
.apt-feat-item h3 { grid-row: 1; font-size: 16.5px; }
.apt-feat-item p { grid-column: 1 / -1; color: var(--apt-mut); font-size: 14px; margin-top: 6px; }

/* ---------- 使用场景 ---------- */
.apt-cases { padding: 56px 0 64px; }

.apt-case-list { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.apt-case {
  border-top: 3px solid var(--apt-green);
  background: var(--apt-card);
  border-radius: 0 0 11px 11px;
  border-right: 1px solid var(--apt-line);
  border-bottom: 1px solid var(--apt-line);
  border-left: 1px solid var(--apt-line);
  padding: 22px 24px 24px;
}
.apt-case-no { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--apt-green-deep); }
.apt-case h3 { font-size: 18px; margin-top: 8px; }
.apt-case p { color: var(--apt-mut); font-size: 14.5px; margin-top: 10px; }

/* ---------- FAQ ---------- */
.apt-ask { padding: 56px 0; background: #f1f5ea; border-top: 1px solid var(--apt-line); border-bottom: 1px solid var(--apt-line); }

.apt-ask-list { margin-top: 26px; display: grid; gap: 12px; }

.apt-ask-list details {
  background: var(--apt-card);
  border: 1px solid var(--apt-line);
  border-radius: 10px;
  padding: 4px 20px;
}
.apt-ask-list details[open] { border-color: var(--apt-green-line); }

.apt-ask-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 0;
}
.apt-ask-list summary::-webkit-details-marker { display: none; }
.apt-ask-list summary i { color: var(--apt-green); font-size: 20px; transition: transform 0.2s; flex: 0 0 auto; }
.apt-ask-list details[open] summary i { transform: rotate(45deg); }

.apt-ask-list details p { color: var(--apt-mut); font-size: 15px; padding: 0 0 16px; }

/* ---------- 用户反馈 ---------- */
.apt-voices { padding: 60px 0 64px; }

.apt-voice-wall {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.apt-voice {
  background: var(--apt-card);
  border: 1px solid var(--apt-line);
  border-radius: 12px;
  padding: 20px 22px;
}

.apt-voice-head { display: flex; align-items: center; gap: 11px; }
.apt-voice-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--apt-green-tint);
  color: var(--apt-green-deep);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.apt-voice-name { font-weight: 600; font-size: 15px; display: block; }

.apt-voice-stars { display: flex; align-items: center; gap: 8px; margin-top: 1px; }
.apt-voice-stars b { color: #f2a83b; font-weight: 400; font-size: 13px; letter-spacing: 1px; }
.apt-voice-stars b i { font-style: normal; color: #d8ddd0; }
.apt-voice-stars time { color: var(--apt-mut); font-size: 12px; }

.apt-voice p { margin-top: 12px; font-size: 14.5px; color: #3c4536; }

/* ---------- 最终行动 ---------- */
.apt-get { padding: 64px 0 72px; background: linear-gradient(180deg, #f1f5ea 0%, var(--apt-bg) 100%); border-top: 1px solid var(--apt-line); }

.apt-get-inner { text-align: center; max-width: 640px; }
.apt-get-inner > img { width: 64px; height: 64px; border-radius: 15px; }
.apt-get-inner h2 { margin-top: 18px; }
.apt-get-inner > p { color: var(--apt-mut); margin-top: 12px; font-size: 16px; }

.apt-get-actions { margin-top: 30px; display: flex; justify-content: center; align-items: center; gap: 34px; flex-wrap: wrap; }

.apt-get-qr {
  background: var(--apt-card);
  border: 1px solid var(--apt-line);
  border-radius: 12px;
  padding: 12px 12px 9px;
  box-shadow: 0 8px 22px rgba(24, 33, 18, 0.08);
}
.apt-get-qr img { display: block; width: 136px; height: 136px; }
.apt-get-qr figcaption { text-align: center; font-size: 12.5px; color: var(--apt-mut); margin-top: 6px; }

.apt-get-btns { display: grid; gap: 14px; justify-items: center; }

.apt-get-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--apt-green);
  color: #fff;
  text-decoration: none;
  border: none;
  font-size: 17px;
  font-weight: 600;
  padding: 13px 38px;
  border-radius: 9px;
  transition: background 0.15s;
}
.apt-get-btn:hover { background: var(--apt-green-deep); }

.apt-get-link { color: var(--apt-mut); text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; gap: 5px; }
.apt-get-link:hover { color: var(--apt-green-deep); }

.apt-get-note { margin-top: 20px; font-size: 13px; color: var(--apt-mut); }

/* ---------- 页脚 ---------- */
.apt-foot { background: #17230f; color: #cfd8c4; }

.apt-foot-grid {
  padding-top: 44px;
  padding-bottom: 30px;
}

.apt-foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.apt-foot-brand img { width: 40px; height: 40px; border-radius: 9px; flex: 0 0 auto; }
.apt-foot-brand b { color: #fff; font-size: 17px; }
.apt-foot-brand p { font-size: 13.5px; margin-top: 6px; max-width: 420px; color: #a7b398; }

.apt-foot-base {
  border-top: 1px solid #2c3a20;
  padding-top: 18px;
  padding-bottom: 22px;
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 12.5px;
  color: #8b9879;
}

/* ---------- 返回顶部 ---------- */
.apt-backtop {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--apt-green-line);
  background: var(--apt-card);
  color: var(--apt-green-deep);
  font-size: 21px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(24, 33, 18, 0.12);
  z-index: 60;
}
.apt-backtop:hover { background: var(--apt-green-tint); }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .apt-hero h1 { font-size: 42px; }
  .apt-hero-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; }
  .apt-screen-rail { grid-template-columns: repeat(2, 1fr); }
  .apt-voice-wall { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .apt-topbar-inner { height: 58px; gap: 14px; position: relative; }

  .apt-nav {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: var(--apt-card);
    border-bottom: 1px solid var(--apt-line);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 14px;
    box-shadow: 0 14px 26px rgba(24, 33, 18, 0.08);
  }
  .apt-nav.is-open { display: flex; }
  .apt-nav a { padding: 11px 0; font-size: 16px; border-bottom: 1px solid var(--apt-line); }
  .apt-nav a:last-child { border-bottom: none; }

  .apt-menu-btn { display: flex; align-items: center; justify-content: center; }
  .apt-topbar-cta { padding: 8px 14px; font-size: 14px; }

  .apt-hero { padding: 40px 0 44px; }
  .apt-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .apt-hero h1 { font-size: 34px; }
  .apt-hero-sub { font-size: 19px; }
  .apt-market { max-width: 360px; margin: 0 auto; width: 100%; }

  .apt-screens { padding: 44px 0; }
  .apt-screens h2, .apt-feats h2, .apt-cases h2, .apt-ask h2, .apt-voices h2 { font-size: 25px; }
  .apt-get h2 { font-size: 24px; }

  .apt-screen-rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .apt-screen-card { flex: 0 0 62%; scroll-snap-align: start; }

  .apt-feats { padding: 48px 0; }
  .apt-feat-board { grid-template-columns: 1fr; margin-top: 26px; gap: 14px; }
  .apt-feat-big, .apt-feat-item { padding: 20px 22px; }

  .apt-cases { padding: 44px 0 52px; }
  .apt-case-list { grid-template-columns: 1fr; margin-top: 22px; gap: 14px; }

  .apt-ask { padding: 44px 0; }
  .apt-ask-list summary { font-size: 15px; }

  .apt-voices { padding: 46px 0 52px; }
  .apt-voice-wall { grid-template-columns: 1fr; margin-top: 22px; gap: 14px; }

  .apt-get { padding: 48px 0 56px; }
  .apt-get-actions { gap: 22px; }
  .apt-get-qr { display: none; }

  .apt-foot-grid { padding-top: 36px; }
  .apt-foot-base { flex-direction: column; gap: 6px; }

  .apt-backtop { right: 14px; bottom: 18px; }
}
