/* Yoink Software — 站点样式（无框架，浅/深色自适应，品牌蓝→紫渐变） */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f2f7;
  --border: #e4e7ef;
  --text: #1a1d29;
  --muted: #5b6478;
  --faint: #98a0b3;
  --accent: #5b6ef4;
  --accent-2: #9d5cff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(30, 40, 90, 0.08);
  --maxw: 1080px;
  --grad: linear-gradient(135deg, #4f7cff 0%, #6a5cff 55%, #9d5cff 100%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1017;
    --surface: #171a24;
    --surface-2: #1e2230;
    --border: #2a2f3e;
    --text: #eef1f8;
    --muted: #9aa3b8;
    --faint: #6b7488;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft YaHei UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* 顶栏 */
header.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-weight: 900;
}
.nav .spacer { flex: 1; }
.nav a.link { color: var(--muted); font-weight: 600; font-size: 14px; }
.nav a.link:hover { color: var(--text); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .06s ease, filter .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(90, 80, 240, .28); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }

/* 首页 hero */
.hero { text-align: center; padding: 72px 0 40px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto; }

/* 产品网格 */
.section-title { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--faint); font-weight: 700; margin: 40px 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: transform .12s ease, border-color .15s ease;
  display: flex; flex-direction: column; gap: 14px;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.card .head { display: flex; align-items: center; gap: 14px; }
.card .pic { width: 52px; height: 52px; border-radius: 13px; flex: none; box-shadow: var(--shadow); }
.card h3 { margin: 0; font-size: 20px; }
.card .tag { color: var(--muted); font-size: 13px; }
.card .desc { color: var(--muted); font-size: 14px; flex: 1; }
.card .meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--faint); }
.pill { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-weight: 600; }
.pill.ok { color: #16a34a; background: color-mix(in srgb, #16a34a 12%, transparent); }
.pill.soon { color: #d97706; background: color-mix(in srgb, #d97706 14%, transparent); }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 800; font-size: 18px; }

/* 产品详情页 */
.phero { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; padding: 56px 0 8px; }
.phero .pic { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); }
.phero h1 { margin: 0 0 4px; font-size: 40px; letter-spacing: -0.02em; }
.phero .tag { color: var(--muted); font-size: 18px; }
.psummary { color: color-mix(in srgb, var(--text) 82%, transparent); font-size: 20px; font-weight: 500; line-height: 1.55; max-width: 560px; margin: 20px 0 10px; letter-spacing: -0.01em; }

/* 产品头：左文案 + 右购买卡 */
.product-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding: 48px 0 8px; }
.ph-copy .phero { padding: 0; }
.buy-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.buy-card .price { font-size: 34px; font-weight: 800; line-height: 1; }
.buy-card .note { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.buy-card .btn { width: 100%; }
.buy-card .meta { color: var(--faint); font-size: 12px; text-align: center; margin-top: 4px; }
@media (max-width: 820px) { .product-hero { grid-template-columns: 1fr; gap: 22px; } .buy-card { max-width: 420px; } }

.downloadbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow); margin: 24px 0;
}
.downloadbar .price-block { margin-right: auto; }
.downloadbar .price-block .price { font-size: 24px; }
.downloadbar .price-block .note { color: var(--faint); font-size: 13px; }
.dlmeta { color: var(--faint); font-size: 13px; width: 100%; }

.features { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px 22px; }
.features li { position: relative; padding-left: 26px; color: var(--text); }
.features li::before { content: "✓"; position: absolute; left: 0; color: #fff; background: var(--grad); width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 900; top: 4px; }

/* 效果图卡片（软件自带 macOS 标题栏，这里只圆角+投影） */
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
.shot img { display: block; width: 100%; }
.showcase { margin: 34px 0 6px; }

/* how it works */
.steps { display: flex; flex-direction: column; gap: 44px; margin: 22px 0 8px; }
.step-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; }
.step-row.rev .step-text { order: 2; }
.step-text h3 { font-size: 24px; margin: 0 0 10px; }
.step-text p { color: var(--muted); font-size: 16px; margin: 0; }

/* 特性卡片（图文，淘宝式） */
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 18px; margin: 18px 0 6px; }
.fcard { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; transition: transform .12s ease, border-color .15s ease; }
.fcard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.fcard .ficon { width: 46px; height: 46px; border-radius: 13px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(90, 80, 240, .25); }
.fcard .ficon svg { width: 24px; height: 24px; }
.fcard h4 { margin: 0; font-size: 17px; font-weight: 700; color: var(--text); }
.fcard p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* 底部大 CTA */
.cta-final { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 46px 24px; box-shadow: var(--shadow); margin: 44px 0; }
.cta-final .price { font-size: 40px; }
.cta-final .note { color: var(--muted); margin: 6px 0 22px; }

@media (max-width: 720px) {
  .step-row, .step-row.rev { grid-template-columns: 1fr; gap: 16px; }
  .step-row.rev .step-text { order: 0; }
}

footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 28px 0; color: var(--faint); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
footer .spacer { flex: 1; }

.mc-input {
  width: 100%; padding: 13px 15px; border-radius: 12px; font-size: 15px;
  border: 1.5px solid var(--border); background: var(--surface-2); color: var(--text);
  font-family: "Consolas", "SFMono-Regular", ui-monospace, monospace; letter-spacing: .5px;
}
.mc-input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
#email.mc-input { font-family: inherit; letter-spacing: 0; }

/* 付费卡片 */
.buy-box { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); margin: 24px auto; max-width: 560px; }
.buy-box .flabel { font-size: 13px; font-weight: 700; color: var(--text); margin-top: 4px; }
.buy-box .note { color: var(--muted); font-size: 13px; margin-top: -4px; }
.buy-box .btn { width: 100%; margin-top: 6px; font-size: 16px; padding: 14px; }
.buy-box .dlmeta { text-align: center; margin-top: 2px; }
.pay-methods { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; margin-top: 4px; }
.pay-methods .sec { display: inline-flex; align-items: center; gap: 5px; color: var(--faint); font-size: 12px; margin-right: 4px; }
.pay-logo { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 30px; background: #fff; border: 1px solid #e6e6ea; border-radius: 6px; padding: 0 6px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.pay-logo svg { width: 100%; height: auto; max-height: 18px; display: block; }
.pay-logo.amex { background: #2e77bc; border-color: #2e77bc; }

/* 价格行 + PayPal/卡按钮 + 退款保证（仿 ByClick 付款页） */
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.price-row .now { font-size: 32px; font-weight: 800; line-height: 1; }
.price-row .was { color: var(--faint); text-decoration: line-through; font-size: 18px; font-weight: 600; }
.price-row .save { background: #16a34a; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .3px; padding: 4px 8px; border-radius: 6px; }
.paypal-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; margin-top: 6px; border: none; border-radius: 12px; background: #ffc439; cursor: pointer; transition: filter .15s; }
.paypal-btn:hover { filter: brightness(1.04); }
.paypal-btn:active { transform: translateY(1px); }
.pay-or { text-align: center; color: var(--faint); font-size: 13px; position: relative; margin: 2px 0; }
.pay-or::before, .pay-or::after { content: ""; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border); }
.pay-or::before { left: 0; } .pay-or::after { right: 0; }
.guarantee { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 4px; }
.guarantee svg { color: #16a34a; flex: none; }
#paypal-buttons:empty { display: none; }
#paypal-buttons { margin-top: 6px; }
.success-title { font-size: 22px; margin: 0 0 4px; }
.code-box { font-family: "Consolas", ui-monospace, monospace; font-size: 17px; font-weight: 700; letter-spacing: .5px; word-break: break-all; background: var(--surface-2); border: 1.5px solid var(--accent); border-radius: 12px; padding: 14px 16px; text-align: center; margin: 6px 0; }

.back { color: var(--muted); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; margin-top: 28px; }
.back:hover { color: var(--text); }

@media (max-width: 560px) {
  .phero { grid-template-columns: 72px 1fr; }
  .phero .pic { width: 72px; height: 72px; }
  .phero h1 { font-size: 30px; }
}
