/* ==========================================================================
   磁力狗 cilgou.com — 蓝白简洁风（参考 ciligouapp.net.cn 版式）
   ========================================================================== */

:root {
  --blue: #2f6bff;
  --blue-dark: #1f56e0;
  --blue-soft: #eef3ff;
  --ink: #101828;
  --text: #475467;
  --muted: #7a8699;
  --line: #e6eaf2;
  --bg-soft: #f7f9fc;
  --radius: 16px;
  --shell: 1160px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 12px 32px rgba(16, 24, 40, .08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.25; }

.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.shell--narrow { width: min(calc(100% - 48px), 820px); }

.skip {
  position: absolute; left: -9999px; top: 0; padding: 10px 16px;
  background: var(--blue); color: #fff; border-radius: 0 0 8px 0; z-index: 200;
}
.skip:focus { left: 0; }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 10px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  cursor: pointer; transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
.btn--lg { height: 52px; padding: 0 30px; font-size: 16.5px; border-radius: 12px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(47, 107, 255, .22); }
.btn--primary:hover { background: var(--blue-dark); box-shadow: 0 8px 20px rgba(47, 107, 255, .3); }
.btn--primary:active { transform: translateY(1px); }
.btn--white { background: #fff; color: var(--blue); box-shadow: 0 10px 24px rgba(8, 28, 70, .18); }
.btn--white:hover { background: #f2f6ff; }
.btn:focus-visible { outline: 3px solid rgba(47, 107, 255, .35); outline-offset: 2px; }

/* ---------------- 顶部导航 ---------------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 16px rgba(16, 24, 40, .05); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--text); font-size: 15px; transition: color .18s ease; }
.nav a:hover { color: var(--blue); }

/* ---------------- 首屏 ---------------- */

.hero { padding: 72px 0 84px; background: linear-gradient(180deg, #fff 0%, #f8fbff 62%, #fff 100%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.pills li {
  padding: 5px 12px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue);
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
}

.hero h1 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; color: var(--ink); }
.hero__lead { margin: 20px 0 0; max-width: 34em; color: var(--text); font-size: 16.5px; line-height: 1.85; }
.hero__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.hero__note { color: var(--muted); font-size: 13.5px; }

/* 手机示意 */
.hero__mock { display: flex; justify-content: center; }
.phone {
  width: 320px; padding: 14px 16px 0;
  background: #fff; border: 1px solid var(--line); border-radius: 34px;
  box-shadow: 0 26px 60px rgba(24, 48, 96, .12);
  overflow: hidden;
}
.phone__bar { display: flex; align-items: center; justify-content: space-between; color: #98a2b3; font-size: 11px; }
.phone__bar-icons { display: inline-flex; align-items: center; gap: 5px; }

.phone__head { display: flex; align-items: center; gap: 7px; margin: 14px 0 12px; font-size: 14px; }
.phone__head img { width: 26px; height: 26px; border-radius: 8px; }

.phone__search {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 8px 8px 11px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--muted); font-size: 11px;
}
.phone__search span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone__search i {
  flex: 0 0 auto; padding: 5px 10px; border-radius: 999px;
  background: var(--blue); color: #fff; font-style: normal; font-size: 11px; font-weight: 600;
}

.phone__label { margin: 16px 0 8px; color: var(--ink); font-size: 12px; font-weight: 600; }

.phone__empty {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 58px; border: 1px dashed var(--line); border-radius: 12px;
  color: var(--muted); font-size: 11.5px;
}
.phone__empty-icon { display: inline-flex; color: #b4bdcc; }

.phone__tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tool {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; color: var(--text); font-size: 11.5px; box-shadow: var(--shadow-sm);
}
.tool__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 7px;
  font-size: 11px; font-weight: 700; font-style: normal; color: #fff;
}
.tool__ico--a { background: #2f6bff; }
.tool__ico--b { background: #12b76a; }
.tool__ico--c { background: #f79009; }
.tool__ico--d { background: #7a5af8; }

.phone__tabs {
  display: flex; justify-content: space-between;
  margin: 16px -16px 0; padding: 10px 22px 14px;
  border-top: 1px solid var(--line);
  color: #98a2b3; font-size: 11px;
}
.phone__tabs .is-active { color: var(--blue); font-weight: 600; }

/* ---------------- 通用区块 ---------------- */

.section { padding: 88px 0; }
.section--faq { background: var(--bg-soft); border-top: 1px solid var(--line); }

.section__head { text-align: center; margin: 0 0 44px; }
.section__head h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.section__head p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

/* 功能卡 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  padding: 28px 26px 30px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d6e1ff; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue);
}
.card h3 { margin: 18px 0 10px; font-size: 18px; font-weight: 700; }
.card p { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.85; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 4px 22px; box-shadow: var(--shadow-sm);
}
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 600; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: 0 0 auto; width: 10px; height: 10px;
  border-right: 2px solid #98a2b3; border-bottom: 2px solid #98a2b3;
  transform: rotate(45deg); transition: transform .22s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item[open] summary { color: var(--blue); }
.faq__body { padding: 0 0 20px; color: var(--text); font-size: 14.5px; line-height: 1.9; }

/* 蓝色 CTA */
.cta { background: var(--blue); }
.cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 56px 0;
}
.cta h2 { color: #fff; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; }
.cta p { margin: 10px 0 0; color: rgba(255, 255, 255, .82); font-size: 15px; }

/* 页脚 */
.site-footer { padding: 40px 0 48px; background: #fff; border-top: 1px solid var(--line); }
.footer__inner { text-align: center; }
.footer__links { display: flex; justify-content: center; gap: 26px; margin-bottom: 14px; }
.footer__links a { color: var(--text); font-size: 14px; }
.footer__links a:hover { color: var(--blue); }
.footer__copy { margin: 0; color: var(--muted); font-size: 13px; }
.footer__note { margin: 8px 0 0; color: #98a2b3; font-size: 12.5px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 90;
  padding: 12px 20px; border-radius: 10px;
  background: rgba(16, 24, 40, .92); color: #fff; font-size: 14px;
  opacity: 0; transform: translate(-50%, 12px);
  transition: opacity .26s ease, transform .26s ease; pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1024px) {
  .hero { padding: 56px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__copy { max-width: 640px; }
  .hero__mock { order: 2; }
  .section { padding: 72px 0; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 24px 22px 26px; }
}

@media (max-width: 760px) {
  .shell, .shell--narrow { width: calc(100% - 36px); }
  .header__inner { height: 60px; gap: 14px; }
  .brand { font-size: 16.5px; }
  .brand img { width: 30px; height: 30px; }
  .nav { display: none; }
  .header__inner > .btn { margin-left: auto; }
  .hero { padding: 40px 0 52px; }
  .hero h1 { font-size: clamp(26px, 7.4vw, 34px); }
  .hero__lead { font-size: 15px; margin-top: 16px; }
  .hero__actions { margin-top: 24px; gap: 12px; }
  .hero__note { flex-basis: 100%; }
  .hero__mock { display: none; }
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 30px; }
  .cta__inner { flex-direction: column; align-items: flex-start; gap: 22px; padding: 40px 0; }
  .cta__inner .btn { width: 100%; }
  .footer__links { gap: 18px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}