/* 杂鱼工作室 Team 站样式（与主站 zayukeji.top 风格保持一致） */
:root {
  --accent: #ff7eb3;
  --accent-2: #6eb7ff;
  --accent-soft: rgba(255, 126, 179, 0.16);
  --bg: #fff7fb;
  --card: #ffffff;
  --border: rgba(255, 126, 179, 0.22);
  --border-blue: rgba(110, 183, 255, 0.28);
  --text: #31354d;
  --muted: #565d78;
  --pink-deep: #b03a74;
  --blue-deep: #2b5f9e;
  --shadow: 0 12px 32px rgba(255, 126, 179, 0.14);
  --shadow-blue: 0 12px 32px rgba(110, 183, 255, 0.16);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background:
    radial-gradient(720px 420px at 8% -6%, rgba(255, 126, 179, 0.18), transparent 62%),
    radial-gradient(720px 420px at 94% 6%, rgba(110, 183, 255, 0.18), transparent 62%),
    linear-gradient(180deg, #fff7fb 0%, #f4f8ff 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}
a { color: var(--pink-deep); }
code { background: rgba(110, 183, 255, 0.12); padding: 2px 8px; border-radius: 6px; font-size: 13px; color: var(--blue-deep); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* 背景图（与主站一致） */
#site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#site-bg.on { filter: blur(var(--bg-blur, 8px)); transform: scale(1.12); }
#site-bg.on::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-overlay, rgba(255, 247, 251, 0.55));
}

header {
  background: rgba(255, 247, 251, 0.9);
  border-bottom: 1.5px solid var(--border);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 10;
}
.hd { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; flex-wrap: wrap; }
.brand { font-weight: 800; text-decoration: none; color: var(--text); font-size: 17px; display: inline-flex; align-items: center; gap: 8px; }
.brand-logo { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; flex: none; }
.hd-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.who { font-size: 12.5px; color: var(--muted); }
nav { display: flex; gap: 4px; }
nav a {
  padding: 8px 15px; border-radius: 999px; text-decoration: none;
  color: var(--muted); font-size: 14.5px; font-weight: 600;
  transition: color 0.2s, background 0.2s;
}
nav a:hover { background: var(--accent-soft); color: var(--pink-deep); }
nav a.active { background: var(--accent-soft); color: var(--pink-deep); }

.theme-seg {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
}
.theme-seg button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.theme-seg button.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

main { flex: 1; padding: 40px 0 60px; }
h1 { font-size: 28px; margin-bottom: 8px; }
h2 { font-size: 20px; margin: 30px 0 14px; }
h3 { font-size: 16px; }
.sub { color: var(--muted); margin-bottom: 24px; }

.hero {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 22px; padding: 34px;
  box-shadow: var(--shadow);
}
.hero p { color: var(--muted); margin: 10px 0 20px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--border-blue);
  background: var(--card); color: var(--blue-deep); font-size: 14px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--pink-deep); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: none;
  box-shadow: 0 8px 22px var(--accent-soft);
}
.btn.primary:hover { color: #fff; }
.btn.ok { background: #e8f7ee; color: #1a7f46; border-color: rgba(26, 127, 70, 0.3); }
.btn.ok:hover { color: #1a7f46; }
.btn.no { background: #fdeeee; color: #b03a3a; border-color: rgba(176, 58, 58, 0.3); }
.btn.no:hover { color: #b03a3a; }
.btn.small { padding: 6px 14px; font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
a.card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
a.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card {
  background: var(--card); border: 1.5px solid var(--border-blue);
  border-radius: 18px; padding: 20px;
  box-shadow: var(--shadow-blue);
}
.card .role { color: var(--pink-deep); font-weight: 700; font-size: 13px; margin: 4px 0; }
.card .skills { color: var(--muted); font-size: 13px; }
.card .meta { color: var(--muted); font-size: 12px; margin-top: 8px; }
.title-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #ff7eb3;
  margin-left: 8px;
  vertical-align: middle;
}
.title-badge.default { background: #9aa7b8; color: #1f2433; }
body.dark .title-badge.default { background: #4a5570; color: #fff; }
.inline-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.inline-form input[type="text"] { width: 120px; padding: 5px 10px; border-radius: 8px; }
.inline-form input[type="color"] { width: 36px; height: 30px; padding: 2px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--card); }
.field-label { font-size: 14px; font-weight: 600; }
.web-row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; align-items: center; }
.web-row input[name="webName"] { width: 170px; flex: none; }
.web-row input[name="webUrl"] { flex: 1; min-width: 200px; }
.empty { color: var(--muted); padding: 24px; text-align: center; }

.form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.form.narrow { max-width: 400px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.req { color: #e0528c; }
input, textarea, select {
  padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--border);
  font-size: 14px; font-family: inherit; background: var(--card); color: var(--text);
}
.bd-row { display: flex; gap: 8px; }
.bd-row select { flex: 1; max-width: 130px; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
.err { color: #c0392b; font-size: 12.5px; font-weight: 400; }
.errbox { background: #fdeeee; color: #b03a3a; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.okbox {
  background: #eefaf3; border: 1.5px solid rgba(26, 127, 70, 0.25);
  border-radius: 16px; padding: 20px 24px; margin-bottom: 24px;
}
.okbox code { background: #f2f4f8; }
.okbox .warn { color: #b0760f; font-size: 13px; margin-top: 8px; }
.bar { display: flex; justify-content: flex-end; margin-bottom: 8px; }

.profile {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 24px 28px; box-shadow: var(--shadow);
  max-width: 560px;
}
.profile p { margin-top: 6px; font-size: 14px; }
.profile .role { color: var(--pink-deep); font-weight: 700; }

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  display: inline-block;
}
.avatar.letter {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  text-align: center;
  line-height: 40px;
  font-size: 16px;
}
.avatar-lg { width: 96px; height: 96px; }
.avatar.avatar-lg.letter { line-height: 96px; font-size: 36px; }
.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card .bio { color: var(--muted); font-size: 13px; margin-top: 6px; }
.avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.avatar-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatar-box .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.crop-panel {
  max-width: 440px;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-top: 4px;
  text-align: center;
}
.crop-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
  line-height: 0;
}
.crop-stage img { max-width: 100%; max-height: 320px; display: block; user-select: none; }
.crop-box {
  position: absolute;
  border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  cursor: move;
  touch-action: none;
}
.crop-handle {
  position: absolute;
  right: -6px; bottom: -6px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 4px;
  cursor: nwse-resize;
}
.crop-controls { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.crop-controls label { flex-direction: row; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.crop-controls input[type="range"] { width: 120px; accent-color: var(--accent); padding: 0; }
.socials-list { list-style: none; margin: 4px 0 0; }
.socials-list li { font-size: 13.5px; margin-top: 2px; }
.profile .meta { color: var(--muted); font-size: 12px; margin-top: 10px; }

.list { display: flex; flex-direction: column; gap: 12px; }
.row {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 18px 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.row.small { padding: 10px 16px; }
.row-main p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.row-actions { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.time { color: var(--muted); font-size: 12.5px; }

.tbl { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.tbl th, .tbl td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.tbl th { background: var(--accent-soft); }

footer { border-top: 1.5px dashed var(--border); padding: 22px 0; color: var(--muted); font-size: 13px; text-align: center; }
footer .copyright { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
footer .beian { margin-top: 6px; font-size: 12.5px; }
footer .beian a { color: var(--muted); text-decoration: none; }
footer .beian a:hover { color: var(--pink-deep); }

/* 深色主题（与主站共用 localStorage 键 zayu-theme） */
body.dark {
  background:
    radial-gradient(720px 420px at 8% -6%, rgba(255, 126, 179, 0.14), transparent 62%),
    radial-gradient(720px 420px at 94% 6%, rgba(110, 183, 255, 0.14), transparent 62%),
    linear-gradient(180deg, #0e1420 0%, #101827 100%);
  --bg: #0e1420;
  --card: #1a2233;
  --border: rgba(255, 126, 179, 0.28);
  --border-blue: rgba(110, 183, 255, 0.32);
  --text: #e6edf3;
  --muted: #9aa7b8;
  --pink-deep: #ff8fc2;
  --blue-deep: #7cb9ff;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-blue: 0 12px 32px rgba(0, 0, 0, 0.4);
  --bg-overlay: rgba(10, 14, 24, 0.78);
}
body.dark header { background: rgba(14, 20, 32, 0.9); border-bottom-color: var(--border); }
body.dark code { background: rgba(110, 183, 255, 0.14); color: var(--blue-deep); }
body.dark .btn.ok { background: rgba(26, 127, 70, 0.16); color: #6fd49a; border-color: rgba(110, 212, 154, 0.3); }
body.dark .btn.no { background: rgba(176, 58, 58, 0.16); color: #ff9b9b; border-color: rgba(255, 155, 155, 0.3); }
body.dark .errbox { background: rgba(176, 58, 58, 0.16); color: #ff9b9b; }
body.dark .okbox { background: rgba(26, 127, 70, 0.14); border-color: rgba(110, 212, 154, 0.3); }
body.dark .okbox code { background: rgba(255, 255, 255, 0.08); }
body.dark .okbox .warn { color: #e8c07a; }
body.dark .err { color: #ff9b9b; }
body.dark .req { color: #ff8fa8; }

@media (max-width: 640px) {
  h1 { font-size: 22px; }
  .hero { padding: 24px; }
  .row-actions { flex-direction: row; }
  .hd { height: auto; padding: 10px 0 12px; }
}
