/* 金明的工作台 公共样式 */
:root {
  --bg: #f3f5f9;
  --card: #ffffff;
  --text: #1f2633;
  --muted: #6b7486;
  --line: #e4e8ef;
  --brand: #2f6bd8;
  --brand-soft: #e8f0fd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 50, .04), 0 4px 16px rgba(20, 30, 50, .06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* 顶栏 */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; white-space: nowrap; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #3b7bf0, #2a5bc0);
  color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700; letter-spacing: .5px;
}
.nav-links { display: flex; gap: 22px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--brand); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px; font-size: 15px; font-weight: 500;
  background: var(--brand); color: #fff; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(47, 107, 216, .3); }
.btn.ghost { background: var(--brand-soft); color: var(--brand); }
.btn.ghost:hover { box-shadow: none; }

main { flex: 1; }

/* 底部 */
.footer { border-top: 1px solid var(--line); background: var(--card); margin-top: 48px; }
.footer .wrap { padding-top: 20px; padding-bottom: 20px; text-align: center; font-size: 13px; color: var(--muted); }
.footer .beian { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; }
.footer .beian a:hover { color: var(--brand); }

/* 图标 */
.ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; flex-shrink: 0;
  color: #fff;
}
.ico svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-blue   { background: linear-gradient(135deg, #4c8df6, #2f6bd8); }
.c-green  { background: linear-gradient(135deg, #36c08e, #17996a); }
.c-orange { background: linear-gradient(135deg, #ffad4d, #f08a1c); }
.c-purple { background: linear-gradient(135deg, #9a7af5, #6f4fd8); }
.c-teal   { background: linear-gradient(135deg, #3cc3d0, #1695a8); }
.c-pink   { background: linear-gradient(135deg, #f77fa8, #e0507f); }
.c-red    { background: linear-gradient(135deg, #f7736b, #dc4038); }
.c-gray   { background: linear-gradient(135deg, #a6aebb, #7e8796); }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .topbar .wrap { height: 56px; }
}
