/* TotalClaw Skill 市场 —— 视觉对齐 totalclaw-web（浅色设计系统）。
   品牌色：蓝 #0c6ed0 / 暖橙 CTA #e65100 / teal #0d9488；Noto 字体；胶囊按钮；白卡 + hover 强调条；玻璃态 header；深色渐变 footer。 */
:root {
  --accent: #0c6ed0;
  --accent-dark: #0958b5;
  --accent-dim: rgba(12, 110, 208, 0.12);
  --accent-teal: #0d9488;
  --nav-blue: #0b2d4a;
  --cta-warm: #e65100;
  --heat: #c2410c;
  --rose: #be123c;

  --bg0: #e6edf6;
  --bg1: #ffffff;
  --bg2: #eef3f9;

  --fg: #0f172a;
  --text: #0f172a;
  --muted: #475569;
  --faint: #64748b;
  --line: rgba(15, 23, 42, 0.1);

  /* 语义色（沿用旧类名） */
  --brand: #0c6ed0;
  --accent-2: #0c6ed0;
  --paid: #c2410c;
  --free: #0d9488;
  --danger: #be123c;
  --border: var(--line);
  --border-strong: rgba(12, 110, 208, 0.38);

  --space: clamp(1rem, 3vw, 2rem);
  --max: 76rem;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --shadow-sm: 0 2px 12px rgba(28, 25, 23, 0.05);
  --shadow-md: 0 12px 40px rgba(28, 25, 23, 0.07);
  --shadow-nav: 0 4px 24px rgba(15, 23, 42, 0.08);
  --glow: 0 16px 48px rgba(12, 110, 208, 0.1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Newsreader", "Noto Serif SC", Georgia, serif;
  --font-body: "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-fx::after { animation: none !important; opacity: .45 !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg0);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

/* 中文排版优化：避免段落末尾孤字、标题折行不均 */
p, li, dd, figcaption { text-wrap: pretty; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }

/* 背景：浅色分层渐变 + 噪声纹理（对齐 totalclaw-web） */
.bg-fx {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 110% 75% at 12% -10%, rgba(6, 52, 92, 0.12), transparent 52%),
    radial-gradient(ellipse 85% 50% at 92% 8%, rgba(12, 110, 208, 0.1), transparent 48%),
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(13, 148, 136, 0.06), transparent 55%),
    linear-gradient(180deg, #f2f6fb 0%, var(--bg0) 42%, #dfe8f2 100%);
}
.bg-fx::after {
  content: ""; position: absolute; inset: 0; opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  animation: grainBreath 16s ease-in-out infinite alternate;
}
@keyframes grainBreath {
  from { opacity: 0.38; }
  to { opacity: 0.52; }
}
/* 垂直列线（24 列，顶部 90% 渐隐）*/
.grid-lines {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: calc(100% / 24) 100%;
  opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 90%);
          mask-image: linear-gradient(180deg, black 0%, transparent 90%);
}

a { color: var(--accent); text-decoration: none; transition: color .15s var(--ease-out); }
a:hover { color: var(--accent-dark); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--space); }

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15);
  position: sticky; top: 0; z-index: 88;
  box-shadow: var(--shadow-nav);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { height: 38px; width: auto; border-radius: 9px; box-shadow: 0 6px 18px rgba(12, 110, 208, 0.28); }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text b { font-size: 17px; color: var(--text); letter-spacing: .2px; font-weight: 700; }
.brand-text i { font-size: 11px; color: var(--faint); font-style: normal; letter-spacing: 1px; }
.site-header nav { display: flex; gap: 4px; flex: 1; }
.site-header nav a { color: var(--muted); padding: 7px 13px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; transition: .15s var(--ease-out); }
.site-header nav a:hover { color: var(--accent); background: var(--accent-dim); }
.site-header nav a.active { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.site-header .search { display: flex; align-items: center; gap: 0; }
.site-header .search input {
  background: var(--bg2); border: 1px solid var(--line); color: var(--text);
  padding: 8px 13px; border-radius: var(--radius-sm) 0 0 var(--radius-sm); width: 180px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.site-header .search input:focus { border-color: var(--border-strong); box-shadow: 0 0 0 3px var(--accent-dim); }
.site-header .search button {
  border: 1px solid var(--line); border-left: 0; background: var(--accent-dim); color: var(--accent);
  padding: 8px 13px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; cursor: pointer; font-size: 16px;
}

.auth-slot { display: flex; gap: 12px; align-items: center; }
.auth-slot a { color: var(--muted); font-size: 14px; font-weight: 500; }
.auth-slot a:hover { color: var(--accent); }
.auth-login { padding: 8px 18px; border-radius: var(--radius-full); color: #fff !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: 0 4px 16px rgba(12, 110, 208, 0.3); }
.auth-login:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(12, 110, 208, 0.42); }

/* ===== Hero ===== */
.hero { padding: 60px 0 18px; }
.hero-inner { display: grid; grid-template-columns: 1.4fr .9fr; gap: 36px; align-items: center; }
.hero-kicker {
  display: inline-block; font-size: 12px; letter-spacing: 1.5px; color: var(--accent);
  border: 1px solid var(--border-strong); border-radius: var(--radius-full); padding: 5px 15px; margin-bottom: 26px;
  background: var(--accent-dim); line-height: 1.6;
}
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: 48px; line-height: 1.3; margin: 0 0 16px; padding-top: 4px; letter-spacing: -.5px; color: var(--text); }
.hero h1 .grad {
  /* background-clip:text 会把渐变裁到字形范围；衬线/中文大字号下，字形上沿常超出行内背景绘制区而被裁成透明（顶部缺一块）。
     用 inline-block + 上下内边距把背景绘制区向上下撑开，覆盖字形墨水边界即可修复，且保持基线对齐不影响排版。 */
  display: inline-block; padding: 0.14em 0 0.04em; vertical-align: baseline;
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-teal) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: var(--muted); max-width: 560px; font-size: 15.5px; }
.hero-search { display: flex; gap: 0; margin: 24px 0 14px; max-width: 520px; }
.hero-search input {
  flex: 1; background: var(--bg1); border: 1px solid var(--line); color: var(--text);
  padding: 14px 18px; border-radius: var(--radius) 0 0 var(--radius); outline: none; font-size: 15px;
}
.hero-search input:focus { border-color: var(--border-strong); box-shadow: 0 0 0 3px var(--accent-dim); }
.hero-search button {
  border: 0; padding: 0 28px; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-size: 15px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, #ff9a4d 0%, var(--cta-warm) 100%); box-shadow: 0 4px 18px rgba(230, 81, 0, 0.32);
}
.hero-search button:hover { filter: brightness(1.04); }
.hero-stat { font-size: 14px; color: var(--muted); }
.hero-stat strong { color: var(--accent); font-size: 18px; }
.hero-logo { text-align: center; }
.hero-logo img { max-width: 100%; height: auto; max-height: 280px; filter: drop-shadow(0 18px 50px rgba(12, 110, 208, 0.28)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

main h2 {
  margin: 46px 0 6px; font-size: 23px; position: relative; padding-left: 14px; font-weight: 700; color: var(--text);
}
main h2::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 4px; border-radius: 3px;
  background: linear-gradient(var(--accent), var(--accent-teal));
}

/* ===== Source grid ===== */
.source-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.source-card {
  background: var(--bg1); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 4px; color: var(--text); transition: .2s var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.source-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--glow); }
.source-card b { font-size: 16px; }
.source-card span { font-size: 12px; color: var(--faint); }

/* ===== Grid / cards ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin: 20px 0; }
.skill-card {
  display: flex; flex-direction: column; background: var(--bg1); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px; color: var(--text); transition: border-color .28s var(--ease-out), transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.skill-card::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-teal));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.skill-card:hover { border-color: var(--border-strong); transform: translateY(-6px); box-shadow: var(--glow); }
.skill-card:hover::after { transform: scaleX(1); }
.skill-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.skill-desc { color: var(--muted); font-size: 13px; min-height: 38px; margin: 0 0 12px; flex: 1; }
.skill-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.dl-count { font-size: 12px; color: var(--faint); }
.card-cta { font-size: 13px; color: var(--accent); font-weight: 600; }

/* AI 员工卡 */
.role-emoji { margin-right: 8px; font-size: 18px; }
.role-card { background: linear-gradient(160deg, var(--accent-dim), var(--bg1)); }
.role-card:hover { box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.3), var(--glow); }
.roles-hero { padding-top: 42px; }
.roles-hero .hero-inner { grid-template-columns: 1fr; }
/* 员工库 hero：标题/副标题/简介 左对齐；搜索框居中 */
.roles-hero .hero-copy { text-align: left; }
/* line-height 放宽 + 上边距，避免渐变标题(background-clip:text)顶部被截断 */
.roles-hero .hero-copy h1 { line-height: 1.35; padding-top: 8px; margin-bottom: 14px; }
.roles-hero .hero-copy .hero-kicker { margin-top: 0; margin-bottom: 20px; }
/* 简介单行显示 */
.roles-hero .hero-copy p { max-width: none; white-space: nowrap; }
.roles-hero .hero-search { margin-left: auto; margin-right: auto; max-width: 560px; width: 100%; }

/* ===== Tags ===== */
.tag { font-size: 11px; padding: 3px 10px; border-radius: var(--radius-full); background: var(--bg2); color: var(--muted); border: 1px solid var(--line); }
.tag-source { color: var(--nav-blue); }
.tag-free { color: var(--accent-teal); border-color: rgba(13, 148, 136, 0.35); background: rgba(13, 148, 136, 0.08); }
.tag-paid { color: var(--cta-warm); border-color: rgba(230, 81, 0, 0.35); background: rgba(230, 81, 0, 0.08); }
.tag-proprietary { color: var(--rose); border-color: rgba(190, 18, 60, 0.35); background: rgba(190, 18, 60, 0.06); }
.tag-dev { color: var(--accent); border-color: var(--border-strong); }
.tag-cat { color: var(--faint); }

/* ===== Chips / filters ===== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--radius-full); padding: 6px 15px; color: var(--muted); font-size: 13px; box-shadow: var(--shadow-sm); }
.chip i { color: var(--accent); font-style: normal; margin-left: 4px; }
.chip:hover { color: var(--accent); border-color: var(--border-strong); }

.src-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 10px; }
.src-tab {
  padding: 7px 16px; border-radius: var(--radius-full); border: 1px solid var(--line); color: var(--muted); font-size: 14px;
  background: var(--bg1); box-shadow: var(--shadow-sm);
}
.src-tab:hover { color: var(--accent); border-color: var(--border-strong); }
.src-tab.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }

/* 角色分类两级：大类(cat-major) → 选中后展开小类(cat-minor) */
.cat-nav { margin: 18px 0 10px; }
.cat-major { margin: 0; gap: 10px; }
.cat-major .cat-major-tab { font-weight: 600; padding: 9px 20px; font-size: 14.5px; }
.cat-minor { margin: 12px 0 0; padding: 14px 16px; gap: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); }
.cat-minor .src-tab { font-size: 13px; padding: 6px 13px; }
.cat-minor .src-tab:not(.active) { background: var(--bg1); }

/* 技能库「更多分类」折叠 */
.cat-more { margin: 8px 0 4px; }
.cat-more > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; width: fit-content;
  padding: 7px 16px; border-radius: var(--radius-full); border: 1px dashed var(--border-strong); color: var(--accent); font-size: 14px; background: var(--bg1); }
.cat-more > summary::-webkit-details-marker { display: none; }
.cat-more > summary::after { content: '▾'; font-size: 12px; transition: transform .2s; }
.cat-more[open] > summary::after { transform: rotate(180deg); }
.cat-more > summary:hover { border-color: var(--accent); }
.cat-more .src-filter { margin-top: 10px; padding: 14px 16px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); }

.list-search { display: flex; gap: 0; margin: 14px auto 18px; max-width: 620px; width: 100%; }
.list-search input { flex: 1; background: var(--bg1); border: 1px solid var(--line); color: var(--text); padding: 12px 15px; border-radius: var(--radius-sm) 0 0 var(--radius-sm); outline: none; }
.list-search input:focus { border-color: var(--border-strong); box-shadow: 0 0 0 3px var(--accent-dim); }
.list-search button { border: 0; padding: 0 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #fff; cursor: pointer; font-weight: 600; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }

.list-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { font-size: 12px; padding: 5px 12px; border-radius: var(--radius-full); background: var(--accent-dim); border: 1px solid var(--border-strong); color: var(--accent); }
.filter-chip:hover { background: rgba(190, 18, 60, 0.1); border-color: rgba(190, 18, 60, 0.45); color: var(--rose); }
.sort-form label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sort-form select { background: var(--bg1); border: 1px solid var(--line); color: var(--text); padding: 7px 12px; border-radius: var(--radius-sm); cursor: pointer; }

.pager { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 32px 0; }
.pager a { padding: 9px 20px; border: 1px solid var(--line); border-radius: var(--radius-full); color: var(--text); background: var(--bg1); box-shadow: var(--shadow-sm); }
.pager a:hover { border-color: var(--border-strong); color: var(--accent); }
.pager span { color: var(--faint); }
.empty { color: var(--faint); padding: 30px 0; }

/* ===== Skill detail ===== */
.skill-detail h1 { margin-bottom: 8px; font-size: 32px; font-family: var(--font-display); font-weight: 600; color: var(--text); }
.crumbs { color: var(--faint); font-size: 13px; }
.lead { color: var(--muted); font-size: 16px; max-width: 760px; }
.actions { display: flex; gap: 12px; margin: 22px 0; align-items: center; flex-wrap: wrap; }
.btn { border: 0; padding: 12px 26px; border-radius: var(--radius-full); cursor: pointer; font-size: 14px; font-weight: 600; transition: .15s var(--ease-out); display: inline-flex; align-items: center; gap: 8px; letter-spacing: .02em; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: 0 8px 24px -8px rgba(12, 110, 208, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(12, 110, 208, 0.7); }
.btn-buy { background: linear-gradient(180deg, #ff9a4d 0%, var(--cta-warm) 100%); box-shadow: 0 8px 24px -8px rgba(230, 81, 0, 0.6); }
.btn-ghost { color: var(--text); background: var(--bg1); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--border-strong); color: var(--accent); }
.action-msg { font-size: 13px; color: var(--muted); }
.action-msg.ok { color: var(--accent-teal); }
.action-msg.err { color: var(--danger); }

.locked { background: rgba(230, 81, 0, 0.06); border: 1px solid rgba(230, 81, 0, 0.3); padding: 16px; border-radius: var(--radius); color: var(--cta-warm); }
.install-note { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; line-height: 1.6; }
.wm-note { font-size: 12.5px; color: var(--cta-warm); background: rgba(230,81,0,.06); border: 1px solid rgba(230,81,0,.25); border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 10px; }
/* 收费已购正文：禁用选区便捷复制，降低顺手转存（屏幕仍可截，仅作摩擦） */
.paid-content .skill-content { user-select: text; }
.skill-content {
  background: var(--bg1); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  overflow-x: auto; white-space: pre-wrap; word-break: break-word; font-size: 13px; color: #1e293b; max-height: 620px;
  font-family: var(--font-mono); box-shadow: var(--shadow-sm);
}

/* ===== Install panel ===== */
.install-panel { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; margin: 18px 0; box-shadow: var(--shadow-sm); }
.install-panel h2 { margin-top: 0; }
.cmd-row { margin: 14px 0; }
.cmd-label { font-size: 13px; color: var(--text); margin-bottom: 6px; font-weight: 600; }
.cmd-label i { font-style: normal; color: var(--faint); font-weight: 400; margin-left: 8px; font-size: 12px; }
.cmd-box { display: flex; align-items: stretch; gap: 0; background: var(--nav-blue); border: 1px solid var(--nav-blue); border-radius: var(--radius-sm); overflow: hidden; }
.cmd-box code { flex: 1; padding: 12px 15px; font-family: var(--font-mono); font-size: 13px; color: #d6e6ff; white-space: pre-wrap; word-break: break-all; }
.copy-btn { border: 0; border-left: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.08); color: #d6e6ff; padding: 0 16px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.copy-btn:hover { background: rgba(255, 255, 255, 0.18); }
.copy-btn.copied { color: #5eead4; }

/* ===== Forms / auth ===== */
.auth-page { max-width: 460px; margin: 0 auto; padding-top: 28px; }
.auth-head { text-align: center; margin-bottom: 6px; }
.auth-logo { height: 56px; width: 56px; border-radius: 14px; background: #fff; padding: 6px; box-shadow: 0 12px 30px rgba(12, 110, 208, 0.28); margin-bottom: 14px; }
.auth-page h1 { font-family: var(--font-display); font-weight: 600; text-align: center; margin: 8px 0 6px; font-size: 30px; }
.auth-sub { color: var(--muted); font-size: 14px; max-width: 40ch; margin: 0 auto; }
.auth-alt { text-align: center; color: var(--muted); font-size: 14px; }
.card-form { display: flex; flex-direction: column; gap: 14px; background: var(--bg1); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; margin: 18px 0; box-shadow: var(--shadow-md); }
.card-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.card-form input, .card-form textarea, .inline-form input {
  background: var(--bg2); border: 1px solid var(--line); color: var(--text); padding: 12px 14px; border-radius: var(--radius-sm); font: inherit; outline: none;
}
.card-form input:focus, .card-form textarea:focus, .inline-form input:focus { border-color: var(--border-strong); box-shadow: 0 0 0 3px var(--accent-dim); }
.card-form button, .inline-form button {
  color: #fff; border: 0; padding: 12px 24px; border-radius: var(--radius-full); cursor: pointer; font-size: 14px; font-weight: 600; align-self: stretch;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: 0 8px 22px -8px rgba(12, 110, 208, 0.55);
}
.card-form button:hover, .inline-form button:hover { transform: translateY(-1px); }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.inline-form input { min-width: 240px; }
.inline-form button { align-self: auto; }
.form-msg { font-size: 13px; margin: 0; text-align: center; }
.form-msg.ok { color: var(--accent-teal); }
.form-msg.err { color: var(--danger); }
/* 注册：验证码行（输入框 + 获取验证码按钮） */
.sms-row { display: flex; gap: 10px; align-items: stretch; }
.sms-row input { flex: 1; min-width: 0; }
.btn-sms {
  flex: 0 0 auto; align-self: stretch; white-space: nowrap;
  padding: 0 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg2); color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: none;
}
.btn-sms:hover:not(:disabled) { border-color: var(--accent); transform: none; }
.btn-sms:disabled { color: var(--muted); cursor: default; opacity: .7; }
.sms-hint { font-size: 12px; color: var(--faint); text-align: center; margin: 2px 0 0; }

/* ===== User center / admin ===== */
.profile-box { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin: 14px 0; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm); }
.profile-box button { color: #fff; border: 0; padding: 10px 20px; border-radius: var(--radius-full); cursor: pointer; align-self: flex-start; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.list-box { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.row { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 14px; box-shadow: var(--shadow-sm); }
.row code { color: var(--accent); font-size: 13px; }
.row button { background: var(--bg1); border: 1px solid var(--line); color: var(--text); padding: 6px 14px; border-radius: var(--radius-full); cursor: pointer; font-size: 13px; }
.row button:hover { border-color: var(--border-strong); color: var(--accent); }
.row .approve { border-color: rgba(13, 148, 136, 0.4); color: var(--accent-teal); }
.row .reject { border-color: rgba(190, 18, 60, 0.4); color: var(--danger); }
.row .dl-btn { border-color: var(--border-strong); color: var(--accent); }
.muted { color: var(--muted); }
.ok { color: var(--accent-teal); }

.stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0; }
.stat { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 24px; text-align: center; min-width: 96px; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: 26px; background: linear-gradient(135deg, var(--accent), var(--accent-teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: 12px; color: var(--faint); }

/* ===== Footer（深色渐变，对齐 web） ===== */
.site-footer {
  position: relative; margin-top: 76px; padding: 3rem var(--space) 1.6rem; color: rgba(255, 255, 255, 0.72); font-size: 13px;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(12, 110, 208, 0.3), transparent 60%),
    radial-gradient(ellipse 60% 50% at 95% 10%, rgba(13, 148, 136, 0.2), transparent 60%),
    var(--nav-blue);
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; align-items: center; padding: 0; }
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: #fff; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-mark { height: 44px; background: #fff; border-radius: 10px; padding: 4px; box-shadow: 0 8px 20px rgba(12, 110, 208, 0.35); }
.foot-brand b { display: block; color: #fff; font-size: 15px; }
.foot-brand span { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.foot-meta { display: flex; flex-direction: column; gap: 4px; text-align: right; color: rgba(255, 255, 255, 0.6); }
small { color: var(--faint); font-weight: normal; font-size: 14px; }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
  .hero h1 { font-size: 36px; }
  .site-header nav { display: none; }
  .site-header .search input { width: 130px; }
  .foot-meta { text-align: left; }
  /* 小屏放开员工库简介的单行限制，避免横向溢出 */
  .roles-hero .hero-copy p { white-space: normal; }
}
