/* 淘推推官网：和桌面端同一套暖灰 + 橙色；主题色由 site.config.json 的 themeColor 覆盖 --brand */
:root {
  --brand: #c2410c;
  --brand-soft: color-mix(in srgb, var(--brand) 9%, #fff);
  --brand-line: color-mix(in srgb, var(--brand) 25%, #fff);
  --ink: #1c1b19;
  --muted: #6b665e;
  --line: #e4e2dc;
  --paper: #f7f6f2;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  font:
    16px/1.7 "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: #fff;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap.narrow {
  max-width: 820px;
}
h1,
h2,
h3 {
  line-height: 1.3;
  margin: 0;
}
h2 {
  font-size: 32px;
  text-align: center;
}
.sectionLead {
  text-align: center;
  color: var(--muted);
  margin: 10px 0 40px;
}
section {
  padding: 88px 0;
}
.band {
  background: var(--paper);
}

/* 按钮 */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 600;
  border: 1px solid var(--brand);
  transition: filter 0.15s;
  white-space: nowrap;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn.small {
  padding: 6px 16px;
  font-size: 15px;
}
.btn.big {
  padding: 14px 30px;
  font-size: 18px;
}
.btn.ghost {
  background: #fff;
  color: var(--brand);
  border-color: var(--brand-line);
}

/* 顶栏 */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topIn {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 17px;
}
.logoMark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  /* 和软件图标同一个渐变（assets/brand） */
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--brand) 70%, #f97316) 0%,
    var(--brand) 55%,
    color-mix(in srgb, var(--brand) 70%, #431407) 100%
  );
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
  overflow: hidden;
}
.logoMark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logoMark.img {
  background: none;
}
.topNav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
}
.topNav a {
  text-decoration: none;
  color: var(--muted);
}
.topNav a:hover {
  color: var(--ink);
}

/* 首屏 */
.hero {
  padding: 72px 0 88px;
  background: linear-gradient(180deg, var(--brand-soft), #fff 70%);
}
.heroIn {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  color: var(--brand);
  font-weight: 600;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: 46px;
  letter-spacing: 0.5px;
}
.lead {
  font-size: 18px;
  color: #45413b;
  margin: 20px 0 28px;
}
.ctaRow {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.ctaRow.center {
  justify-content: center;
  margin-top: 40px;
}
.note {
  color: var(--muted);
  font-size: 14px;
  margin: 16px 0 0;
}

/* 截图：做成一个窗口的样子，点开看大图 */
.shot {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(28, 27, 25, 0.06),
    0 18px 40px -18px rgba(28, 27, 25, 0.28);
  cursor: zoom-in;
}

/* 痛点 */
.painGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pain {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.painQ {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 17px;
  padding-left: 14px;
  border-left: 3px solid var(--brand);
}
.painA {
  margin: 0;
  color: #45413b;
  font-size: 15px;
}

/* 卖点条 */
.points {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.pointsGrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  text-align: center;
}
.pointsGrid b {
  display: block;
  color: var(--brand);
  font-size: 17px;
}
.pointsGrid span {
  color: var(--muted);
  font-size: 13px;
}

/* 功能展示 */
.feature {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 48px;
  align-items: center;
  margin-top: 72px;
}
.feature.flip {
  grid-template-columns: 7fr 4fr;
}
.feature.flip .featText {
  order: 2;
}
.featText h3 {
  font-size: 24px;
}
.featText p {
  color: #45413b;
}
.featText ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.featText li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
  font-size: 15px;
  color: #45413b;
}
.featText li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* 隐私与安全 */
.trustGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.trustGrid > div {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 22px;
}
.trustGrid b {
  font-size: 17px;
}
.trustGrid p {
  margin: 8px 0 0;
  color: #45413b;
  font-size: 15px;
}

/* 使用流程 */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}
.steps b {
  display: block;
  font-size: 17px;
}
.steps span {
  color: var(--muted);
  font-size: 14px;
}

/* 常见问题 */
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 22px;
  margin-top: 12px;
}
details:first-of-type {
  margin-top: 32px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  color: var(--brand);
  font-size: 22px;
  line-height: 1;
}
details[open] summary::after {
  content: "−";
}
details p {
  margin: 0 0 18px;
  color: #45413b;
}

/* 页脚 */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 14px;
}
.footIn {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.hint {
  color: var(--muted);
  margin: 8px 0 0;
}
.footLinks {
  display: flex;
  gap: 20px;
}
.footLinks a {
  text-decoration: none;
  color: var(--muted);
}
.footMeta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--muted);
}
.wxShare {
  display: none;
}
[hidden] {
  display: none !important;
}

/* 看大图 */
.viewer {
  border: 0;
  padding: 0;
  max-width: 96vw;
  max-height: 94vh;
  border-radius: 12px;
  background: #fff;
  cursor: zoom-out;
}
.viewer::backdrop {
  background: rgba(28, 27, 25, 0.75);
}
.viewer img {
  max-height: 94vh;
  width: auto;
}

/* 下载页、隐私政策、用户协议、404 */
.pageHead {
  padding: 64px 0 24px;
  background: linear-gradient(180deg, var(--brand-soft), #fff);
}
.pageHead h1 {
  font-size: 36px;
}
.pageHead .lead {
  margin: 14px 0 0;
}
.notFound {
  padding: 120px 0;
  text-align: center;
}
.doc {
  padding: 32px 0 88px;
}
.doc p,
.doc li {
  color: #45413b;
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li {
  margin: 6px 0;
}
.doc a:not(.btn) {
  color: var(--brand);
}
.docH {
  font-size: 22px;
  text-align: left;
  margin: 36px 0 10px;
}
.dlCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 18px 40px -24px rgba(28, 27, 25, 0.3);
}
.dlInfo {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dlInfo b {
  font-size: 20px;
}
.dlInfo .hint {
  margin: 2px 0 0;
}
.logoMark.big {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-size: 26px;
}
.sha {
  font-size: 13px;
  word-break: break-all;
}
.sha code {
  font-family: Consolas, monospace;
}

/* 平板 */
@media (max-width: 1024px) {
  .heroIn,
  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature.flip .featText {
    order: 0;
  }
  .painGrid,
  .trustGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pointsGrid {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 手机 */
@media (max-width: 640px) {
  .pageHead h1 {
    font-size: 28px;
  }
  .dlCard .btn {
    width: 100%;
    text-align: center;
  }
  body {
    font-size: 15px;
  }
  section {
    padding: 56px 0;
  }
  .wrap {
    padding: 0 18px;
  }
  .topNav {
    display: none;
  }
  .topIn {
    justify-content: space-between;
  }
  .hero {
    padding: 40px 0 56px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .lead {
    font-size: 16px;
  }
  .btn.big {
    width: 100%;
    text-align: center;
  }
  h2 {
    font-size: 25px;
  }
  .painGrid,
  .trustGrid,
  .steps {
    grid-template-columns: 1fr;
  }
  .pointsGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature {
    margin-top: 48px;
  }
  .featText h3 {
    font-size: 20px;
  }
  .footMeta {
    align-items: flex-start;
  }
}
