/* foraypanda 官网（动态站）样式 */
:root {
  --brand: #4d6bfe;
  --brand-hover: #3d5bf0;
  --brand-weak: #f2f4ff;
  --text: #0f0f0f;
  --text-2: #3f3f46;
  --muted: #8a8f98;
  --line: #ececec;
  --soft: #fafafa;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 30, 80, .08);
  --grad-brand: linear-gradient(135deg, #4d6bfe 0%, #7c3aed 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.2px; }
.brand-mark { width: 26px; height: 26px; }
.menu { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.menu a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: 14.5px; }
.menu a:hover { background: var(--brand-weak); color: var(--brand); }
.menu a.active { color: var(--brand); background: var(--brand-weak); font-weight: 600; }
.nav-actions { margin-left: auto; display: flex; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; font-size: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { border-color: var(--line); color: var(--text-2); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 7px 12px; font-size: 13.5px; }

/* ---------- 首屏 ---------- */
.hero { padding: 72px 0 40px; text-align: center; background:
  radial-gradient(60% 50% at 50% 0%, rgba(77, 107, 254, .10), transparent 70%); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand);
  background: var(--brand-weak); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero-title { font-size: clamp(30px, 5vw, 52px); line-height: 1.15; letter-spacing: -1px; margin-bottom: 16px; }
.hero-sub { font-size: clamp(15px, 2vw, 18px); color: var(--text-2); max-width: 720px; margin: 0 auto; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 22px 0 26px; }
.badge { font-size: 12.5px; color: var(--text-2); background: var(--soft);
  border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ctas .btn { padding: 12px 22px; font-size: 15px; }

/* ---------- 区块 ---------- */
.section { padding: 46px 0; }
.section[id] { scroll-margin-top: 84px; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.sec-head h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.5px; margin-bottom: 8px; }
.sec-head p { color: var(--text-2); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: .16s; }
.card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--brand);
  background: var(--soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 10px; margin-bottom: 10px; }
.card-icon { font-size: 26px; margin-bottom: 12px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 14.5px; margin-bottom: 12px; }
.card-go { color: var(--brand); font-size: 13.5px; font-weight: 600; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.feature { padding: 20px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.feature h3 { font-size: 16px; margin-bottom: 6px; color: var(--brand); }
.feature p { color: var(--text-2); font-size: 14px; }

.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 24px; margin-bottom: 12px; letter-spacing: -.3px; }
.prose p { color: var(--text-2); margin-bottom: 12px; }

.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 32px; border-radius: var(--radius); background: var(--grad-brand); color: #fff; }
.cta-box h2 { font-size: 24px; margin-bottom: 6px; }
.cta-box p { opacity: .92; }
.cta-box .btn { background: #fff; color: var(--brand); white-space: nowrap; }

.code-box { max-width: 820px; margin: 0 auto; background: #0f172a; color: #e2e8f0;
  border-radius: var(--radius); padding: 22px; overflow-x: auto; }
.code-box h2 { color: #fff; font-size: 20px; margin-bottom: 12px; }
.code-box pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.6; white-space: pre; }

/* ---------- 价格 ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.plan { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow); }
.plan .flag { position: absolute; top: -11px; left: 20px; background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 18px; margin-bottom: 6px; }
.plan .price { font-size: 30px; font-weight: 700; letter-spacing: -.5px; }
.plan .cycle { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.plan .credits { color: var(--brand); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.plan ul { list-style: none; margin-bottom: 18px; }
.plan li { color: var(--text-2); font-size: 14px; padding: 4px 0 4px 20px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.plan .btn { width: 100%; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-2); margin-top: 8px; font-size: 14.5px; }

/* ---------- 链接 ---------- */
.link-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.link-group h3 { font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 12px; }
.link-group a { display: block; padding: 8px 0; color: var(--text-2); border-bottom: 1px dashed var(--line); }
.link-group a:hover { color: var(--brand); }
.link-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.link-list a { padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--text-2); }
.link-list a:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 24px; background: var(--soft); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 24px; }
.foot-brand p { color: var(--text-2); font-size: 14px; margin-top: 10px; max-width: 320px; }
.foot-col h4 { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.foot-col a { display: block; padding: 4px 0; color: var(--text-2); font-size: 14px; }
.foot-col a:hover { color: var(--brand); }
.beian { color: var(--muted); font-size: 12.5px; }
.foot-base { border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: #fff;
    border-bottom: 1px solid var(--line); padding: 12px 16px; gap: 2px; }
  body.menu-open .menu { display: flex; }
  .nav-toggle { display: block; }
  .nav-actions .btn-ghost { display: none; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr; }
}
