/* ============================================
   宅 zhai.com — 设计系统
   深色科技感 · 极简 · 无外部依赖
   ============================================ */

:root {
  /* 主色 — 靛青到青绿 */
  --bg:            #0b0d12;
  --bg-elev:       #12151d;
  --bg-card:       #161a24;
  --bg-hover:      #1c2130;
  --border:        #232937;
  --border-soft:   #1a1f2b;

  --text:          #e8ecf4;
  --text-dim:      #98a3b8;
  --text-faint:    #66708a;

  --accent:        #5b8cff;
  --accent-2:      #38d9c4;
  --accent-glow:   rgba(91,140,255,.35);

  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     18px;

  --maxw:          1180px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
          "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 背景光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(91,140,255,.13), transparent 60%),
    radial-gradient(700px 420px at 88% 4%, rgba(56,217,196,.09), transparent 62%);
}

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

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
  z-index: 1;
}

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11,13,18,.78);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #06121a;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 0 22px var(--accent-glow);
}
.brand-sub {
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 6px;
  flex: 1;
}
.nav-links a {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dim);
  transition: .16s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-card); }
.nav-links a.on { color: var(--text); background: var(--bg-card); }

/* ---------- 汉堡按钮（移动端） ---------- */
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  position: relative;
  flex-shrink: 0;
  transition: .16s;
}
.nav-toggle:hover { background: var(--bg-hover); }
.nav-toggle span {
  position: absolute;
  left: 50%; top: 50%;
  width: 17px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 5.5px)); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, -50%); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, calc(-50% + 5.5px)); }

/* 打开态 → X */
.nav.open .nav-toggle span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- 移动端下拉面板 ---------- */
.nav-drawer {
  display: none;
  position: fixed;
  left: 0; right: 0;
  top: 62px;
  background: rgba(11,13,18,.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px 18px;
  z-index: 49;
  max-height: calc(100vh - 62px);
  overflow-y: auto;
  animation: drawerIn .2s ease;
}
@keyframes drawerIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-drawer a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-dim);
  transition: .16s;
}
.nav-drawer a:hover,
.nav-drawer a.on { color: var(--text); background: var(--bg-card); }
.nav-drawer a.on { font-weight: 600; }
.nav-drawer .drawer-sep {
  height: 1px;
  background: var(--border-soft);
  margin: 8px 4px;
}
.nav-drawer .drawer-cta {
  background: linear-gradient(135deg, var(--accent), #4a6fe8);
  color: #fff;
  justify-content: center;
  font-weight: 600;
  margin-top: 8px;
}
.nav-drawer .drawer-cta:hover { filter: brightness(1.08); background: linear-gradient(135deg, var(--accent), #4a6fe8); }
.nav-drawer .drawer-label {
  font-size: 11.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  padding: 12px 14px 6px;
}
/* 移动端分类快捷入口 */
.nav-drawer .drawer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 6px 4px;
}
.nav-drawer .drawer-cats a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  font-size: 12.5px;
  color: var(--text-dim);
}
.nav-drawer .drawer-cats a:hover { border-color: var(--accent); color: var(--text); }

/* 打开时锁定滚动 */
body.nav-open { overflow: hidden; }


/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: .16s;
  font-family: inherit;
}
.btn:hover { background: var(--bg-hover); border-color: #2e3646; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4a6fe8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 18px rgba(91,140,255,.3);
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 24px rgba(91,140,255,.42);
}

/* ---------- Hero ---------- */
.hero {
  padding: 74px 0 40px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}
.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -.02em;
  font-weight: 800;
}
.grad {
  background: linear-gradient(115deg, #7fa8ff 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 30px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 搜索 ---------- */
.searchbar {
  max-width: 620px;
  margin: 34px auto 0;
  position: relative;
}
.searchbar input {
  width: 100%;
  padding: 15px 18px 15px 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: .18s;
}
.searchbar input::placeholder { color: var(--text-faint); }
.searchbar input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,140,255,.16);
}
.searchbar svg {
  position: absolute;
  left: 17px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
}

/* ---------- 统计条 ---------- */
.stats {
  display: flex;
  justify-content: center;
  gap: 46px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 22px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.stat-num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.stat-label {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* ---------- 区块 ---------- */
section { padding: 54px 0; }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sec-head h2 {
  font-size: 25px;
  margin: 0;
  letter-spacing: -.01em;
}
.sec-head p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ---------- 分类 ---------- */
.cats {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.cat {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 13.5px;
  cursor: pointer;
  transition: .16s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cat:hover { color: var(--text); border-color: #2e3646; }
.cat.on {
  background: linear-gradient(135deg, var(--accent), #4a6fe8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 14px rgba(91,140,255,.28);
}
.cat-n {
  font-size: 11.5px;
  opacity: .7;
  font-variant-numeric: tabular-nums;
}

/* ---------- 分类索引（首页，真实链接卡片） ---------- */
.cat-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}
.cat-card {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  text-decoration: none;
  transition: .18s;
}
.cat-card:hover {
  border-color: #33405a;
  background: var(--bg-hover);
  transform: translateY(-2px);
}
.cat-card-ic {
  font-size: 21px;
  line-height: 1.2;
  flex: none;
}
.cat-card-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cat-card-t {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.cat-card-t em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.cat-card-d {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 工具卡片 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px;
  transition: .18s;
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: .18s;
  pointer-events: none;
}
.card:hover {
  background: var(--bg-hover);
  transform: translateY(-2px);
}
.card:hover::after { border-color: rgba(91,140,255,.4); }
.card-top {
  display: flex;
  align-items: center;
  gap: 11px;
}
.avatar {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 15px;
  color: #08131c;
  flex-shrink: 0;
  letter-spacing: -.02em;
}
.card-name {
  font-weight: 650;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-name .cn { color: var(--text-faint); font-weight: 500; font-size: 13px; }
.card-desc {
  font-size: 13.5px;
  color: var(--text-dim);
  flex: 1;
  line-height: 1.55;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid var(--border-soft);
}
.tag {
  font-size: 11.5px;
  color: var(--text-faint);
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
}
.price {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
}
.p-free { color: #38d9c4; background: rgba(56,217,196,.1); }
.p-paid { color: #f0b95f; background: rgba(240,185,95,.1); }
.p-freemium { color: #7fa8ff; background: rgba(127,168,255,.1); }

.card-link {
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: .16s;
}
.card-link:hover { color: var(--accent-2); }

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-faint);
  font-size: 15px;
}

/* ---------- 精选 ---------- */
.feat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.feat-card {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.feat-card::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,140,255,.18), transparent 70%);
}
.feat-tag {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 12px;
}
.feat-card h3 { margin: 0 0 8px; font-size: 18px; }
.feat-card p { margin: 0 0 16px; color: var(--text-dim); font-size: 14px; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(150deg, #141a2b, #101420);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 46px 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 260px at 50% 0%, rgba(91,140,255,.16), transparent 68%);
}
.cta h2 { margin: 0 0 12px; font-size: 27px; position: relative; }
.cta p { margin: 0 auto 24px; color: var(--text-dim); max-width: 560px; position: relative; }
.cta .hero-actions { position: relative; }

/* ---------- 内页 ---------- */
.page-head {
  padding: 54px 0 30px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 40px;
}
.page-head h1 { font-size: 33px; margin: 0 0 10px; letter-spacing: -.015em; }
.page-head p { margin: 0; color: var(--text-dim); }
.crumb { font-size: 13px; color: var(--text-faint); margin-bottom: 14px; }
.crumb a:hover { color: var(--accent); }

.prose { max-width: 780px; }
.prose h2 {
  font-size: 20px;
  margin: 36px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 16px; margin: 22px 0 8px; color: var(--text); }
.prose p, .prose li { color: var(--text-dim); font-size: 14.5px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); font-weight: 650; }
.prose .note {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 18px 0;
}
.prose .note p { margin: 0; font-size: 14px; }
.prose a.inl { color: var(--accent); border-bottom: 1px solid rgba(91,140,255,.3); }
.prose a.inl:hover { border-bottom-color: var(--accent); }
.updated {
  font-size: 13px;
  color: var(--text-faint);
  font-family: var(--mono);
  margin-bottom: 26px;
}

/* ---------- 助手页 ---------- */
.asst-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  align-items: start;
}
.asst-list { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 84px; }
.asst-item {
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: .16s;
  background: transparent;
  text-align: left;
  font-family: inherit;
  color: var(--text-dim);
  width: 100%;
}
.asst-item:hover { background: var(--bg-card); color: var(--text); }
.asst-item.on {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}
.asst-item b { display: block; font-size: 14px; font-weight: 650; }
.asst-item span { font-size: 12px; color: var(--text-faint); }

/* 面板锚点落点容器：零高度，仅用于滚动定位 */
.panel-anchor { display: block; height: 0; overflow: hidden; }

/* ---------- AI 助手：移动端锚点导航条 ----------
   桌面端隐藏（左侧列表已足够）；≤860px 显示为横向可滑动胶囊条并吸顶。 */
.asst-anchor { display: none; }

@media (max-width: 860px) {
  .asst-anchor {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 2px 12px;
    margin: 0 -2px 14px;
    position: sticky;
    top: 62px;
    z-index: 30;
    background: var(--bg);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .asst-anchor::-webkit-scrollbar { display: none; }
  /* 两端渐隐，暗示可横向滑动 */
  .asst-anchor::after {
    content: "";
    position: sticky;
    right: 0;
    flex: none;
    width: 26px;
    margin-left: -26px;
    background: linear-gradient(90deg, transparent, var(--bg));
    pointer-events: none;
  }
  .asst-chip {
    flex: none;
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    scroll-margin: 0 40px;
    transition: .16s;
  }
  .asst-chip:active { transform: scale(.96); }
  .asst-chip.on {
    background: linear-gradient(135deg, var(--accent), #4a6fe8);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 14px rgba(91,140,255,.28);
  }
  /* 面板标题作为锚点落点，留出顶栏高度 */
  .panel [id] { scroll-margin-top: 132px; }
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.panel h2 { margin: 0 0 6px; font-size: 21px; }
.panel .sub { color: var(--text-dim); font-size: 14px; margin: 0 0 22px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-dim);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: .16s;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,140,255,.14);
}
.field textarea { min-height: 96px; line-height: 1.55; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.out {
  margin-top: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 90px;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  position: relative;
}
.out-label {
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.out-body { color: var(--text); }
.out-body.mono { font-family: var(--mono); font-size: 13px; }
.copy-btn {
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
  transition: .16s;
}
.copy-btn:hover { color: var(--text); border-color: #2e3646; }
.copy-btn.ok { color: var(--accent-2); border-color: var(--accent-2); }

.notice {
  margin-top: 22px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(240,185,95,.07);
  border: 1px solid rgba(240,185,95,.22);
  font-size: 13px;
  color: #d9b878;
  line-height: 1.6;
}
.notice b { color: #f0b95f; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  font-size: 12.5px;
  color: var(--text-dim);
  cursor: pointer;
  transition: .16s;
  font-family: inherit;
}
.chip:hover { color: var(--text); border-color: var(--accent); }

/* ---------- 使用建议 ---------- */
.tips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 14px;
}
.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  transition: .18s;
}
.tip-card:hover {
  background: var(--bg-hover);
  border-color: rgba(91,140,255,.35);
}
.tip-n {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}
.tip-card h3 {
  margin: 0 0 9px;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.45;
}
.tip-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.62;
}

/* ---------- 常见问题 ---------- */
.faq { max-width: 840px; }
.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 10px;
  overflow: hidden;
  transition: .18s;
}
.faq-item[open] { border-color: var(--border); background: var(--bg-hover); }
.faq-item summary {
  padding: 17px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: .16s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: .2s;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item summary:hover { color: var(--accent); }
.faq-a {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.68;
  border-top: 1px solid var(--border-soft);
  padding-top: 15px;
  margin-top: 0;
}

/* ---------- 页脚 ---------- */
footer {
  margin-top: 70px;
  border-top: 1px solid var(--border-soft);
  padding: 44px 0 34px;
  position: relative;
  z-index: 1;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 34px;
}
.foot-brand p {
  color: var(--text-dim);
  font-size: 13.5px;
  margin: 12px 0 0;
  max-width: 300px;
}
.foot-col h4 {
  font-size: 13px;
  margin: 0 0 13px;
  color: var(--text);
  font-weight: 650;
}
.foot-col a {
  display: block;
  font-size: 13.5px;
  color: var(--text-dim);
  padding: 4px 0;
  transition: .16s;
}
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-faint);
}
.foot-bottom a { color: var(--text-dim); }
.foot-bottom a:hover { color: var(--accent); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .asst-layout { grid-template-columns: 1fr; gap: 0; }
  /* 移动端以顶部锚点条作为唯一工具入口，竖排列表整体隐藏，避免重复 */
  .asst-list { display: none; }
  .foot-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
@media (max-width: 720px) {
  /* 顶栏：隐藏桌面链接与 CTA，显示汉堡 */
  .nav-links { display: none; }
  .nav .btn-primary { display: none; }
  .nav-toggle { display: block; }
  .nav-drawer.open { display: block; }
}
@media (max-width: 640px) {
  .hero { padding: 46px 0 26px; }
  .stats { gap: 26px; }
  .row2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .grid { grid-template-columns: 1fr; }
  .asst-list { grid-template-columns: 1fr; }
  .nav-inner { gap: 14px; }
  .sec-head h2 { font-size: 22px; }
  .page-head h1 { font-size: 26px; }
  .cta { padding: 34px 22px; }
  .cta h2 { font-size: 22px; }
}
