/* ============================================================
   主站首页专属样式：站长视角页签（版本与下载 / Pro）
   只在主站加载（home_layout 引用），部署包里不带本文件
   —— 与 official.html / home_layout.html 同属落地页那一摊
   ============================================================ */

/* ---- 页签条：仅站长登录后出现 ---- */
.off-tabs {
  display: flex; align-items: center; gap: 8px;
  margin: 34px auto 6px; max-width: 1080px; padding: 0 20px;
  flex-wrap: wrap;
}
.off-tab {
  font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 9px 18px; cursor: pointer; white-space: nowrap;
  color: var(--ink-soft); background: rgba(255, 255, 255, .55);
  border: 1px solid var(--line); border-radius: var(--r-pill);
}
.off-tab:hover { border-color: var(--brand-line); color: var(--brand-strong); }
.off-tab.is-on {
  color: #fff; border-color: transparent;
  background: linear-gradient(140deg, #4a8dff, var(--brand) 62%);
}

/* ---- Pro：商业授权与定制 ---- */
.pro-perks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin-bottom: 26px;
}
.pro-perk {
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: rgba(255, 255, 255, .55);
}
.pro-perk-ico { font-size: 20px; line-height: 1; }
.pro-perk h3 { margin: 10px 0 8px; font-size: 15px; color: var(--ink); }
.pro-perk p { margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }

.pro-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pro-cta-note { font-size: 12.5px; color: var(--muted); }

/* ---- Win本地版独立页（/win） ---- */
.win-note { margin: 12px 0 0; font-size: 12.8px; color: var(--muted); line-height: 1.9; }

@media (max-width: 620px) {
  .off-tabs { margin-top: 24px; padding: 0 16px; gap: 6px; }
  .off-tab { flex: 1 1 auto; text-align: center; padding: 12px 14px; font-size: 13px; }
  .pro-cta { align-items: stretch; }
  .pro-cta .btn { width: 100%; }
}

/* ---- 付费模块定价页（/pro）：三个收费模块单买，按月 / 按年 ---- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price-card {
  display: flex; flex-direction: column;
  padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .55);
}
.price-card-head { display: flex; align-items: center; gap: 9px; }
.price-card-ico { color: var(--brand-strong); font-size: 19px; line-height: 1; }
.price-card h3 { margin: 0; font-family: var(--font-serif); font-size: 19px; color: var(--ink); }
.price-desc { margin: 8px 0 16px; font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.price-amount { display: flex; align-items: baseline; gap: 6px; }
.price-amount strong { font-size: 34px; line-height: 1; color: var(--brand-strong); }
.price-unit { font-size: 13.5px; color: var(--ink-soft); }
.price-alt { margin: 6px 0 14px; font-size: 12.5px; color: var(--muted); }
.price-perks { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.price-perks li { position: relative; padding-left: 18px; font-size: 13.5px; line-height: 1.75; color: var(--ink-soft); }
.price-perks li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.price-cta { margin-top: auto; text-align: center; }
.price-note { margin: 18px 0 0; font-size: 12.8px; color: var(--muted); line-height: 1.9; }

.price-qr {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .55);
}
.price-qr img {
  width: 168px; height: 168px; object-fit: cover;
  border-radius: var(--r-md); border: 1px solid var(--line);
}
.price-qr-body { flex: 1; min-width: 240px; }
.price-qr-body h3 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 19px; }
.price-qr-body p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }
.price-qr-tip { color: var(--muted); font-size: 12.5px; }

.price-faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.price-faq-item {
  padding: 18px 20px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: rgba(255, 255, 255, .5);
}
.price-faq-q { margin: 0 0 7px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.price-faq-a { margin: 0; font-size: 13.3px; line-height: 1.85; color: var(--muted); }

.price-end { margin-top: 46px; }

@media (max-width: 860px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-faq { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .pro-perk, .price-card, .price-faq-item { padding: 18px; }
  .price-amount strong { font-size: 30px; }
  .price-cta .btn { width: 100%; }
  .price-qr {
    flex-direction: column; align-items: stretch;
    padding: 18px; gap: 16px; text-align: center;
  }
  .price-qr img { width: 100%; max-width: 200px; height: auto; aspect-ratio: 1 / 1; margin: 0 auto; }
  .price-qr-body { min-width: 0; }
}

/* ============================================================
   落地页 · 移动端适配总纲（手机 / 平板 / 折叠屏）
   说明：本文件前段的响应式规则按「源码顺序」生效，容易被后段基础规则反压，
        因此统一在文件末尾收口，保证移动端规则最终生效
        （与 style.css / admin.css 采用同一套收口做法）。
   覆盖：折叠屏分屏安全区、超窄屏（小屏手机 / 折叠屏闭合态）再收一档、
        触控目标 44×44（含平板 ≤1180 宽度区间）。
   ============================================================ */

/* —— 折叠屏分屏（双屏 / 展开态）：让出两侧安全区，不跨折叠线排布 —— */
@media (horizontal-viewport-segments: 2) {
  .off-tabs { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
}

/* —— 超窄屏（小屏手机 / 折叠屏闭合态 320~430）：内边距与字号再收一档 —— */
@media (max-width: 430px) {
  .off-tabs { padding: 0 12px; }
  .off-tab { padding: 11px 12px; font-size: 12.5px; }
  .pro-perk, .price-card, .price-faq-item { padding: 16px; }
  .price-amount strong { font-size: 27px; }
  .price-qr { padding: 16px; }
}

/* —— 触控目标：触屏设备与平板宽度区间（≤1180：iPad 竖屏 768 / 横屏 1024、
        iPad Air/Pro 1180、Surface 触控）统一 44×44 下限；
        桌面鼠标环境（>1180 且 fine pointer）保持原有紧凑尺寸，零影响 —— */
@media (hover: none) and (pointer: coarse), (max-width: 1180px) {
  .off-tab { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .pro-cta .btn { min-height: 44px; }
  .price-cta .btn { min-height: 44px; }
}

.off-hero {
  text-align: center;
  padding: clamp(36px, 6vh, 64px) 0 clamp(30px, 4.5vh, 48px);
}

.off-mark {
  width: 64px; height: 64px; margin-bottom: 16px;
  font-size: 28px;
}

.off-name {
  font-size: clamp(40px, 5.2vw, 58px);
  margin: 0 0 6px;
}

.off-name .off-ver { margin-top: 8px; }

.off-slogan {
  font-size: clamp(18px, 2vw, 21px);
  margin: 0 0 10px;
}

.off-desc {
  max-width: 640px;
  margin: 0 auto 18px;
}

.off-cta { margin-top: 4px; }

.off-stats {
  max-width: 660px;
  margin: clamp(30px, 4.5vh, 44px) auto 0;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: none;
}

.off-stat {
  background: none;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 14px;
  text-align: center;
}

.off-stat:first-child { border-left: 0; }

.off-stat strong {
  font-size: 15.5px;
  margin-bottom: 3px;
  color: var(--ink);
}

.off-stat span { font-size: 12.5px; }

.off-ann { margin: 0 0 16px; }

.off-ann .off-ann-pin { background: var(--brand-soft); color: var(--brand-strong); }

.off-tabs { margin: 26px auto 4px; }

.off-panel > .off-section:first-child { margin-top: clamp(26px, 3vw, 38px); }

.off-section { margin-top: clamp(40px, 4.5vw, 56px); }

.off-heading { font-size: 22px; margin: 0 0 8px; }

.off-heading-sub { margin: 0 0 22px; }

.off-features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: 26px;
}

.off-card {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 0 22px;
  transform: none;
}

.off-card:hover { transform: none; border-top-color: var(--brand); }

.off-card-icon {
  width: 36px; height: 36px;
  margin-bottom: 10px;
  font-size: 17px;
}

.off-card h3 { margin: 0 0 6px; font-size: 16px; }

.off-card p { font-size: 13.5px; line-height: 1.8; }

.off-quote {
  margin-top: 30px;
  padding: 20px 0;
  font-size: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.off-quote span { margin-top: 10px; }

.off-steps {
  gap: 0 32px;
  margin-top: 26px;
}

.off-step {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 0 4px;
  transform: none;
}

.off-step:hover { transform: none; border-top-color: var(--brand); }

.off-step-num {
  display: block;
  width: auto; height: auto;
  margin: 0 0 6px;
  background: none;
  border-radius: 0;
  color: var(--brand);
  font-family: var(--font-serif);
  font-size: 26px;
}

.off-step h3 { margin: 0 0 5px; font-size: 16px; }

.off-step p { font-size: 13.5px; line-height: 1.8; }

.off-download {
  gap: 18px 20px;
  margin-top: 24px;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(238, 244, 255, .62));
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95);
}

.off-version-num { font-size: 26px; }

.off-version-note { font-size: 13.5px; line-height: 1.8; }

.off-entries { gap: 0 32px; }

.off-entry {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  gap: 5px;
  padding: 16px 0 18px;
  transform: none;
}

.off-entry:hover { transform: none; border-top-color: var(--brand); color: var(--ink); }

.off-entry strong { font-size: 16px; }

.off-entry span { font-size: 13px; line-height: 1.7; }

@media (max-width: 900px) {
  .off-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .off-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .off-entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .off-download { padding: 20px; }
  .off-quote { font-size: 15px; }
}

@media (max-width: 620px) {
  .off-features,
  .off-steps,
  .off-entries { grid-template-columns: minmax(0, 1fr); }

  .off-stats { grid-template-columns: minmax(0, 1fr); }

  .off-stat {
    border-left: 0;
    padding: 12px 0;
  }

  .off-stat + .off-stat { border-top: 1px solid var(--line); }

  .off-version-num { font-size: 22px; }

  .off-cta .btn { width: 100%; justify-content: center; }
}
