/* ============================================================
   飞书风格精修层（叠加在 home.css 之上）
   参照 feishu.cn 的设计语言：
     · 单一主色 #3370FF，克制的灰阶
     · 白底卡片、8px 圆角、极轻边框、悬浮轻微上浮
     · 按钮不做弹性动画，主按钮实色、次按钮浅灰底
     · 导航 64px 高、毛玻璃、滚动后带细边框
     · 标题大而紧，正文 15.5-16.5px，行高宽松
   ============================================================ */

/* ---------- 导航：更像飞书的顶栏 ---------- */
.nav {
  height: 64px;
  background: color-mix(in srgb, var(--card) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 15.5px; font-weight: 600; padding: 6px 8px; border-radius: 8px; }
.brand .mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--brand); color: #fff; font-size: 16px;
}
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links button {
  font-family: inherit; font-size: 13.5px; color: var(--text-2);
  background: none; border: 0; border-radius: 8px; padding: 8px 14px;
  cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-links button:hover { background: var(--brand-weak); color: var(--brand); }

/* ---------- 英雄区：飞书官网式的大标题 ---------- */
.hero { padding: 84px 0 40px; }
.eyebrow {
  background: var(--brand-weak); border: 0; color: var(--brand);
  font-weight: 500; letter-spacing: .02em;
}
.hero h1 { font-size: clamp(36px, 5.2vw, 56px); letter-spacing: -.025em; line-height: 1.16; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand) 20%, #7ba3ff 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 16.5px; max-width: 620px; margin-top: 22px; color: var(--text-2); }

/* 统计：数字大、标签小、细分隔 */
.stats { display: inline-flex; gap: 0; margin-top: 34px; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; background: var(--card); }
.stats > div { padding: 14px 30px; display: flex; flex-direction: column; gap: 2px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats b { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.stats span { font-size: 12px; color: var(--text-3); }

/* ---------- 按钮：飞书式（实色主 / 浅灰次），去掉弹性 ---------- */
.btn { height: 40px; padding: 0 20px; border-radius: 8px; font-size: 14px;
  border: 0; background: #f2f3f5; color: var(--text);
  transition: background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease); }
html[data-theme="dark"] .btn { background: #2a2d33; }
.btn:hover { background: #e5e6eb; color: var(--text); box-shadow: none; transform: none; }
html[data-theme="dark"] .btn:hover { background: #33363d; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); box-shadow: 0 4px 14px var(--brand-weak); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-weak); }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 30px; }

/* ---------- 工具条与搜索 ---------- */
.toolbar { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.search { height: 42px; border-radius: 8px; background: #f2f3f5; border-color: transparent; }
html[data-theme="dark"] .search { background: #2a2d33; }
.search:focus-within { background: var(--card); border-color: var(--brand); }
.tag { height: 32px; padding: 0 14px; border-radius: 8px; border-color: transparent;
  background: #f2f3f5; font-size: 13px; }
html[data-theme="dark"] .tag { background: #2a2d33; }
.tag:hover { background: #e5e6eb; color: var(--text); }
html[data-theme="dark"] .tag:hover { background: #33363d; }
.tag.on { background: var(--brand); color: #fff; }

/* ---------- 卡片：8px 圆角、轻边框、悬浮上浮 ---------- */
:root { --r: 8px; --r-lg: 12px; }
.card { border-radius: var(--r); box-shadow: none; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card .ico { border-radius: 8px; width: 44px; height: 44px; font-size: 20px; }
.card h3 { font-size: 15px; }
.card .meta em { font-style: normal; font-size: 11.5px; color: var(--text-3);
  background: var(--surface); border-radius: 5px; padding: 2px 8px; }

/* ---------- 选中态 / 滚动条 / 焦点 ---------- */
::selection { background: var(--brand-weak); }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px;
  border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- 底部 ---------- */
.footer { margin-top: 80px; padding: 26px 0 40px; }
