/* ============================================================
   主站首页专属样式：站长视角页签（版本与下载 / 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-title {
  font-size: clamp(30px, 4.4vw, 46px);
  margin: 0 0 10px;
}

.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-more {
  margin: 20px 0 0; text-align: center;
  color: var(--muted); font-size: 13.5px;
}
.off-more a { color: var(--brand-strong); font-weight: 600; text-decoration: none; }
.off-more a:hover { color: var(--brand); }

.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; }
}

.btn-demo {
  white-space: nowrap;
  background: linear-gradient(135deg, #ff8a3c, #ff5722);
  border: 1px solid transparent;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-demo:hover { filter: brightness(1.06); color: #fff; }

.btn-demo:disabled,
.btn-demo:disabled:hover {
  background: #c9cfda;
  border-color: #c9cfda;
  color: #8b95a8;
  filter: none;
  cursor: not-allowed;
  box-shadow: none;
}

.demo-mask {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 24, 40, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.demo-mask[hidden] { display: none; }

.demo-modal {
  width: min(680px, 100%);
  max-height: min(86vh, 880px);
  overflow: auto;
  padding: 22px 26px 26px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.demo-head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--ink);
}

.demo-x {
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.demo-x:hover { color: var(--ink); border-color: var(--brand); }

.demo-label { display: block; font-size: 13px; color: var(--muted); }

.demo-user-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 8px;
}

.demo-input {
  flex: 1 1 200px;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.demo-input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }

.demo-db { font-size: 13px; color: var(--muted); }
.demo-db b { color: var(--brand); font-family: var(--mono); font-weight: 600; }

.demo-hint { margin: 8px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--muted); }

.demo-terms {
  margin-top: 14px;
  max-height: 250px;
  overflow: auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f9ff;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink);
}

.demo-terms h4 { margin: 0 0 6px; font-size: 13.5px; color: var(--brand-strong); }
.demo-terms h4 + ol { margin: 0 0 14px; }
.demo-terms ol { margin: 0; padding-left: 20px; }
.demo-terms li { margin-bottom: 7px; }
.demo-terms li:last-child { margin-bottom: 0; }

.demo-agree {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
}

.demo-agree input { flex: none; width: 17px; height: 17px; margin-top: 3px; accent-color: var(--brand); }

.demo-err {
  margin-top: 12px;
  padding: 9px 13px;
  border: 1px solid #f3c2c2;
  border-radius: 11px;
  background: #fdecec;
  color: #c73737;
  font-size: 13px;
}

.demo-err[hidden] { display: none; }

.demo-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.demo-query {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}

.demo-input-sm { flex: 0 1 150px; height: 36px; font-size: 14px; }

.demo-link {
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  white-space: nowrap;
}

.demo-link:hover { color: var(--brand-strong); }

.demo-result[hidden] { display: none; }
#demoForm[hidden] { display: none; }

.demo-ok { font-size: 15px; font-weight: 700; color: #16a34a; }

.demo-kv {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 9px 14px;
  margin: 14px 0 0;
  font-size: 14px;
}

.demo-kv dt { color: var(--muted); font-size: 13px; }
.demo-kv dd { margin: 0; word-break: break-all; color: var(--ink); }
.demo-kv a { color: var(--brand); }

.demo-kv code {
  padding: 1px 9px;
  border-radius: 8px;
  background: #eef2fa;
  font-family: var(--mono);
  font-size: 13.5px;
}

.demo-count {
  margin-top: 14px;
  padding: 11px 15px;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 13.5px;
}

.demo-key-banner {
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 1px solid #ffd2b8;
  border-left: 4px solid #ff5722;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff6ee, #ffe9dd);
  color: #8a3a12;
  font-size: 13.5px;
  line-height: 1.75;
}

.demo-key-banner b { color: #d9480f; }

.demo-terms li.key {
  padding: 7px 11px;
  margin: 0 0 8px -4px;
  background: #fff7f0;
  border-left: 3px solid #ff8a3c;
  border-radius: 0 8px 8px 0;
}

.demo-terms strong.hl { color: #d9480f; font-weight: 700; }

@media (max-width: 620px) {
  .demo-mask { padding: 0; }
  .demo-modal { width: 100%; height: 100%; max-height: 100%; border-radius: 0; padding: 18px 16px 26px; }
  .demo-actions .btn { flex: 1; justify-content: center; }
  .demo-kv { grid-template-columns: 80px minmax(0, 1fr); }
}
