/* picfit 官网共享样式
   设计令牌与软件内、后台（server/admin_ui.html）保持同一套，三个界面同源。
   不引第三方框架、不引外部字体与 CDN：备案合规 + 国内访问稳定。 */
:root {
  --brand: #2f6bff;
  --brand-soft: #e9efff;
  --brand-deep: #1d4fd8;
  --text: #1f2633;
  --text-2: #5a6472;
  --border: #e3e8f0;
  --bg: #f7f9fc;
  --ok: #16a34a;
  --bad: #dc2626;
  --warn: #d97706;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(31, 38, 51, .04), 0 8px 24px rgba(31, 38, 51, .06);
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font: 15px/1.75 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: #fff;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 820px; }

/* --------------------------------------------------------------- 顶栏 */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand small { font-size: 12px; font-weight: 400; color: var(--text-2); margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--text); font-size: 14.5px; white-space: nowrap; }
.nav-links a:hover { background: var(--bg); text-decoration: none; }
.nav-links a.on { color: var(--brand); background: var(--brand-soft); }
.nav-links a.cta { background: var(--brand); color: #fff; margin-left: 8px; font-weight: 600; }
.nav-links a.cta:hover { background: var(--brand-deep); }
.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 38px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
  font-size: 13px; color: var(--text-2); cursor: pointer;
}

/* --------------------------------------------------------------- 通用块 */
main { display: block; }
section { padding: 62px 0; }
section.tight { padding: 40px 0; }
section.alt { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { color: var(--brand); font-size: 13.5px; font-weight: 700; letter-spacing: .06em; }
h1 { font-size: 40px; line-height: 1.25; letter-spacing: -.01em; }
h2 { font-size: 26px; line-height: 1.4; margin-bottom: 10px; }
h3 { font-size: 17px; line-height: 1.5; margin-bottom: 6px; }
.lead { color: var(--text-2); font-size: 16.5px; max-width: 720px; }
.sec-head { margin-bottom: 30px; }
.sec-head p { color: var(--text-2); max-width: 720px; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.mono { font-family: Consolas, "Courier New", monospace; font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }

/* --------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  background: var(--brand); color: #fff; font-size: 15.5px; font-weight: 600;
  cursor: pointer; text-align: center; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--brand-deep); text-decoration: none; color: #fff; }
.btn.ghost { background: #fff; border-color: var(--border); color: var(--text); font-weight: 500; }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn.sm { padding: 8px 15px; font-size: 14px; border-radius: 8px; }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------- 卡片 */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 14.5px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tile { display: flex; gap: 13px; align-items: flex-start; }
.tile .ico {
  flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft);
  color: var(--brand); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12.5px; font-weight: 600; margin: 0 6px 6px 0;
}
.chip.plain { background: var(--bg); color: var(--text-2); }
.chip.ok { background: #e7f6ed; color: var(--ok); }

/* --------------------------------------------------------------- Hero */
.hero { padding: 74px 0 58px; background:
  radial-gradient(1100px 420px at 12% -8%, var(--brand-soft) 0%, rgba(233, 239, 255, 0) 62%),
  #fff; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { margin: 12px 0 14px; }
.hero .lead { margin-bottom: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; color: var(--text-2); font-size: 13.5px; }
.hero-shot { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
/* 桌面首屏那张横图：宽度铺满、高度跟着比例走，否则窄容器下 max-width 把宽夹住、
   高还锁在标签写死的 410，图就被压扁了（手机竖图另有一条 .phone 规则，不受影响）。 */
.hero-shot img { width: 100%; height: auto; }
/* 手机产品的首屏用竖图：限高不限宽，两侧用深色补边，看着像一台立着的手机。 */
.hero-shot.phone { background: #101521; display: flex; align-items: center; justify-content: center; }
.hero-shot.phone img { max-height: 520px; width: auto; }
.badge-line { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }

/* --------------------------------------------------------------- 产品矩阵 */
.pcard { display: flex; flex-direction: column; gap: 14px; }
.pcard .shot { border-radius: 9px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
/* 同上：产品矩阵卡里的横图按比例缩放，别锁死高度压扁。 */
.pcard .shot img { width: 100%; height: auto; }
.pcard .shot.phone { background: #eef2f8; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.pcard .shot.phone img { height: 240px; width: auto; }
.pcard .name { font-size: 19px; font-weight: 700; }
.pcard .foot { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.price-hint { color: var(--text-2); font-size: 13.5px; }

/* --------------------------------------------------------------- 截图墙 */
.shots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.shot-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.shot-card button {
  display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in; background: var(--bg);
}
.shot-card img { width: 100%; height: auto; aspect-ratio: 1280 / 820; object-fit: cover; }
.shot-card figcaption, .shot-card .cap { padding: 10px 14px; font-size: 13.5px; color: var(--text-2); }
/* 手机竖屏截图不能套桌面 1280/820 的比例去裁，改成整图居中、底色补边。 */
.shots.phone { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.shots.phone .shot-card img { aspect-ratio: 9 / 19.5; object-fit: contain; background: #eef2f8; }
.lightbox {
  position: fixed; inset: 0; background: rgba(15, 20, 30, .88); display: none;
  align-items: center; justify-content: center; padding: 24px; z-index: 60;
}
.lightbox.on { display: flex; }
.lightbox img { max-width: 96vw; max-height: 86vh; border-radius: 10px; }
.lightbox .lb-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #dfe6f2; font-size: 14px; }
.lightbox .lb-x { position: absolute; top: 16px; right: 20px; }
.lightbox .lb-x button {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; cursor: pointer;
}

/* --------------------------------------------------------------- 表格 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--bg); font-size: 13.5px; color: var(--text-2); font-weight: 600; white-space: nowrap; }
tbody th { font-weight: 600; white-space: nowrap; }
td .yes { color: var(--ok); font-weight: 700; }
td .no { color: var(--text-2); }

/* --------------------------------------------------------------- 价格卡 */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plan { display: flex; flex-direction: column; gap: 12px; position: relative; }
.plan.hot { border-color: var(--brand); box-shadow: 0 8px 28px rgba(47, 107, 255, .13); }
.plan .tag {
  position: absolute; top: -12px; right: 16px; background: var(--brand); color: #fff;
  font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600;
}
.plan .amount { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.plan .amount i { font-size: 16px; font-style: normal; margin-right: 2px; }
.plan .unit { color: var(--text-2); font-size: 13px; }
.plan ul { display: flex; flex-direction: column; gap: 7px; }
.plan li { padding-left: 20px; position: relative; font-size: 14.5px; color: var(--text); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan li.no { color: var(--text-2); }
.plan li.no::before { content: "—"; color: #b8c0cd; }
.plan .foot { margin-top: auto; }

/* --------------------------------------------------------------- 购买框 */
.buy { display: grid; gap: 18px; }
.buy-opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.buy-status { font-size: 14.5px; min-height: 24px; }
.buy-status.ok { color: var(--ok); }
.buy-status.bad { color: var(--bad); }
.buy-code {
  font-family: Consolas, "Courier New", monospace; font-size: 17px; letter-spacing: .06em;
  background: var(--bg); border: 1px dashed var(--brand); border-radius: 10px;
  padding: 14px; text-align: center; word-break: break-all; color: var(--text);
}
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--brand);
  border-top-color: transparent; border-radius: 50%; animation: rot .8s linear infinite; vertical-align: -2px; }
@keyframes rot { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- FAQ / 折叠 */
details { border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; background: #fff; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "＋"; float: right; color: var(--text-2); font-weight: 400; }
details[open] summary::after { content: "－"; }
details p, details li { color: var(--text-2); font-size: 14.5px; margin-top: 8px; }
details ul { list-style: disc; padding-left: 20px; }

/* --------------------------------------------------------------- 长文页 */
.prose { max-width: 820px; }
.prose h2 { margin: 34px 0 10px; font-size: 21px; }
.prose h3 { margin: 22px 0 6px; font-size: 16.5px; }
.prose p, .prose li { color: #333c4b; font-size: 15px; }
.prose p { margin: 9px 0; }
.prose ul { list-style: disc; padding-left: 22px; margin: 9px 0; }
.prose ol { list-style: decimal; padding-left: 22px; margin: 9px 0; }
.prose li { margin: 5px 0; }
.note { background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; padding: 12px 16px; margin: 14px 0; }
.note p { margin: 0; color: #24304a; }
.warn { background: #fdf5e6; border-left-color: var(--warn); }
.warn p { color: #6b4a12; }

/* --------------------------------------------------------------- 步骤 */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: st; }
.step { padding-left: 0; }
.step b { display: block; margin-bottom: 5px; }
.step .no {
  display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--brand);
  color: #fff; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; margin-bottom: 9px;
}

/* --------------------------------------------------------------- 下载列表 */
.dl-item { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); }
.dl-item:last-child { border-bottom: 0; }
.dl-item .meta { color: var(--text-2); font-size: 13px; flex: 1 1 100%; }
.dl-item .name { font-weight: 600; flex: 1 1 240px; }
.dl-item .hash { font-family: Consolas, "Courier New", monospace; font-size: 12px; color: #7b8595; word-break: break-all; }
.copy-btn { border: 1px solid var(--border); background: #fff; border-radius: 7px; padding: 3px 9px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.copy-btn:hover { color: var(--brand); border-color: var(--brand); }

/* --------------------------------------------------------------- 页脚 */
/* 必须写 footer.foot 而不是光 .foot：卡片里也用 class="foot"（.plan .foot、.pcard .foot）
   放底部按钮，只写 .foot 会把整块深色页脚底色抹到每张价格卡 / 产品卡的按钮区上，
   白底卡片里凭空多出一块黑（拍全页截图才看得见，窄视口正好在折叠线下）。 */
footer.foot { background: #171d28; color: #a8b2c2; padding: 44px 0 26px; margin-top: 0; }
footer.foot a { color: #cfd8e6; }
.foot-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
footer.foot h4 { color: #fff; font-size: 14px; margin-bottom: 12px; font-weight: 600; }
footer.foot li { margin: 7px 0; font-size: 13.5px; }
.foot-bottom { border-top: 1px solid #262f3d; margin-top: 30px; padding-top: 18px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-bottom a { color: #a8b2c2; }

/* --------------------------------------------------------------- 响应式 */
@media (max-width: 1024px) {
  .hero-in { grid-template-columns: 1fr; gap: 28px; }
  h1 { font-size: 33px; }
  section { padding: 48px 0; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  h1 { font-size: 27px; line-height: 1.3; }
  h2 { font-size: 21px; }
  .lead { font-size: 15.5px; }
  section { padding: 38px 0; }
  .hero { padding: 40px 0 34px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 62px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--border); padding: 10px 16px 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.on { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: 15.5px; border-radius: 8px; }
  .nav-links a.cta { margin-left: 0; margin-top: 8px; }
  .btn-row > .btn { flex: 1 1 100%; }
  .shots { grid-template-columns: 1fr; gap: 12px; }
  .grid, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan .amount { font-size: 29px; }
  .dl-item .name { flex: 1 1 100%; }
  table { min-width: 520px; }
}

@media (max-width: 420px) {
  h1 { font-size: 24px; }
  .card { padding: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* 尊重系统的「减少动效」设置 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spin { animation-duration: 2s; }
}
