/* site_app frontend 公共样式（用于 employees.html / admin.html） */
/* index.html 的样式仍内联，保持不动；这里抽取最小子集供新页面复用。 */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft-line: rgba(17, 24, 39, 0.08);
  --dark: #0f172a;
  --titanium: #c8bfb2;
  --blue-titanium: #3b82f6;
  --silver: #f3f4f6;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-soft: 0 24px 80px rgba(59, 130, 246, 0.10);
  --shadow-card: 0 8px 32px rgba(17, 24, 39, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ==== 页面骨架 ==== */
.page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 8%, rgba(59, 130, 246, 0.18), transparent 30%),
    radial-gradient(circle at 18% 18%, rgba(139, 92, 246, 0.14), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 44%, #ffffff 100%);
}
.page-main { padding-bottom: 80px; }

/* ==== 顶栏 ==== */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(22px) saturate(180%);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}
.nav-inner {
  width: min(1180px, calc(100% - 40px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.03em;
}
.logo-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #f3f4f6);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08), 0 10px 26px rgba(59, 130, 246, 0.10);
}
.logo-mark svg { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: rgba(29, 29, 31, 0.74); }
.nav-links a:hover { color: var(--ink); }

/* ==== 通用 section ==== */
.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
}
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--muted);
}
.section-title {
  margin: 8px 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-copy {
  color: var(--muted);
  font-size: 16px;
  max-width: 720px;
}

/* ==== 搜索 ==== */
.shelf-search {
  margin: 24px 0 28px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.search-box {
  position: relative;
  flex: 1; min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px 0 44px;
  height: 44px;
  display: flex; align-items: center;
  box-shadow: var(--shadow-card);
}
.search-box .search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted);
}
.search-box input {
  border: 0; outline: 0; background: transparent;
  width: 100%; height: 100%; font-size: 15px;
}

/* ==== 卡片 / 货架 ==== */
.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.worker-card {
  background: var(--surface);
  border: 1px solid var(--soft-line);
  border-radius: var(--radius-lg);
  padding: 20px 22px 22px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.worker-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.worker-head { display: flex; align-items: center; gap: 12px; }
.worker-avatar {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--silver);
  display: grid; place-items: center;
  color: var(--ink);
}
.worker-title { display: flex; flex-direction: column; }
.worker-title strong { font-size: 15px; font-weight: 700; }
.worker-title span { font-size: 12px; color: var(--muted); }
.worker-pitch {
  font-size: 14px; color: rgba(29,29,31,0.78);
  line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.worker-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.worker-tag {
  font-size: 12px; padding: 4px 10px;
  background: rgba(59, 130, 246, 0.08); border-radius: 999px;
}
.worker-meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.worker-foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 4px;
}
.install-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff;
  border: 0; border-radius: 999px;
  height: 36px; padding: 0 14px; font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: transform .25s ease;
}
.install-btn:hover { transform: translateY(-1px); }
.install-hint { font-size: 12px; color: var(--muted); }

/* 空状态 */
.shelf-empty {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 32px 0;
}
.shelf-empty.is-shown { display: block; }

/* ==== 按钮 / 表单（admin 共用） ==== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  height: 36px; padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.btn.primary { background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff; border-color: transparent; }
.btn.danger { background: #d70015; color: #fff; border-color: transparent; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

input.field, select.field {
  height: 36px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  outline: none;
}
input.field:focus, select.field:focus { border-color: var(--ink); }
