/* 大肥鱼管理站（登录页、推送管理、插件管理）公用样式：蓝白女仆 + 小鲸鱼气泡。桥接控制台不用这套。 */
:root {
  --blue: #4f7cf7;
  --blue-d: #2f4fb8;
  --blue-l: #eaf1ff;
  --blue-ll: #f5f8ff;
  --pink: #ff8fb4;
  --pink-l: #fff0f6;
  --ink: #26304a;
  --ink-2: #3a4566;
  --muted: #5f6a88;
  --line: #e2e9fa;
  --ok: #23905c;
  --bad: #d64563;
  --warn: #a35b00;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* 背景铺在整页上（不用 fixed：手机 Safari 不支持，长页面下半截会变白） */
html {
  min-height: 100%;
  background:
    radial-gradient(circle at 18px 18px, rgba(255, 255, 255, .8) 2.5px, transparent 3.5px) 0 0 / 36px 36px,
    radial-gradient(1200px 500px at 10% 0, #d6e4ff 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 12%, #ffe1ee 0%, transparent 55%),
    linear-gradient(170deg, #e4ecff 0%, #f1efff 40%, #fdf0f7 75%, #eef3ff 100%);
}
body {
  margin: 0;
  min-height: 100vh;
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: transparent;
}
a { color: var(--blue-d); text-decoration: none; }
a:hover { color: var(--blue); }
b, strong { color: var(--ink); }
code { background: #fff3c4; padding: 1px 6px; border-radius: 6px; font-size: .92em; }

/* ── 顶部导航 ── */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(150, 175, 235, .35); box-shadow: 0 4px 18px rgba(80, 110, 190, .08); }
.site-head .in { max-width: 1060px; margin: 0 auto; padding: 9px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(79, 124, 247, .3); object-fit: cover; }
.brand b { display: block; font-size: 17px; color: var(--blue-d); line-height: 1.25; letter-spacing: .5px; }
.brand small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 6px 15px; border-radius: 999px; color: #44547f; font-size: 14.5px; transition: background .15s, color .15s; }
.tabs a:hover { background: var(--blue-l); color: var(--blue-d); }
.tabs a.on { background: linear-gradient(135deg, #7aa1ff, #4f7cf7); color: #fff; box-shadow: 0 3px 10px rgba(79, 124, 247, .32); }
.me { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--pink-l); color: #b13f6a; border: 1px solid #ffd3e3; border-radius: 999px; padding: 3px 12px; font-size: 13.5px; }
.chip b { color: #9a2f58; }

/* ── 页面主体 ── */
.wrap { max-width: 1060px; margin: 0 auto; padding: 8px 18px 100px; }
.hero { display: flex; align-items: center; gap: 14px; margin: 22px 4px 4px; }
.hero .emoji { font-size: 34px; width: 58px; height: 58px; display: grid; place-items: center; background: #fff; border-radius: 18px; box-shadow: 0 6px 16px rgba(91, 120, 200, .15); }
.hero h1 { margin: 0; font-size: 25px; color: var(--blue-d); letter-spacing: .5px; }
.hero p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.card { position: relative; background: #fff; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 10px 28px rgba(91, 120, 200, .13); padding: 20px 22px; margin-top: 18px; overflow-x: auto; }
.card::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 4px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, #8fb0ff, #ffb3cd); opacity: .8; }
.card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 19px; color: var(--blue-d); }
.card h2 .sec-no { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--blue-l); color: var(--blue); font-size: 13px; font-weight: 700; }
.card h3 { margin: 18px 0 6px; font-size: 16px; color: #3c5cb8; }
.muted, .meta { color: var(--muted); font-size: 13.5px; }
p.muted, .meta { margin: 6px 0; }
.note { background: var(--blue-ll); border: 1px solid #e3ebff; border-radius: 14px; padding: 10px 14px; color: #4b5779; font-size: 13.5px; margin: 8px 0; }
.note.warn, .adminOnlyNote { background: #fff7e8; border: 1px solid #ffe2b5; border-radius: 14px; padding: 9px 14px; color: var(--warn); font-size: 13.5px; }
.err { color: var(--bad); }
.ok { color: var(--ok); }
.bad { color: var(--bad); }

/* ── 表单 ── */
label { color: var(--ink-2); font-size: 14px; }
input[type=text], input[type=password], input[type=number], input:not([type]), select, textarea {
  font: inherit; font-size: 14.5px; color: var(--ink); background: #fbfcff;
  border: 1.5px solid #d9e3fb; border-radius: 12px; padding: 7px 11px; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus, textarea:focus { border-color: #8eacff; box-shadow: 0 0 0 3px rgba(79, 124, 247, .15); background: #fff; }
input:disabled, select:disabled { background: #f2f4f9; color: #9aa3ba; }
textarea { width: 100%; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; line-height: 1.55; }
input[type=checkbox], input[type=radio] { accent-color: var(--blue); width: 16px; height: 16px; vertical-align: -3px; }
.checks { display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.checks label { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.field { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0; }

/* ── 按钮：默认是浅蓝软按钮；保存 / 主要操作是渐变；危险是浅红 ── */
button {
  font: inherit; font-size: 14px; line-height: 1.4; cursor: pointer;
  border: 1.5px solid #d4e0ff; border-radius: 999px; padding: 6px 15px;
  background: #fff; color: var(--blue-d);
  transition: background .15s, box-shadow .15s, transform .08s, filter .15s;
}
button:hover { background: var(--blue-l); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: not-allowed; }
button.primary, button.saveBtn, button[type=submit] {
  border-color: transparent; color: #fff; font-weight: 600;
  background: linear-gradient(135deg, #7aa1ff, #4f7cf7);
  box-shadow: 0 4px 12px rgba(79, 124, 247, .3);
}
button.primary:hover, button.saveBtn:hover, button[type=submit]:hover { filter: brightness(1.06); background: linear-gradient(135deg, #7aa1ff, #4f7cf7); }
button.danger, button.del { border-color: #ffd0da; color: var(--bad); background: #fff; }
button.danger:hover, button.del:hover { background: #fff1f4; }
button.small, button.test { padding: 3px 11px; font-size: 13px; }
button + button { margin-left: 6px; }

/* ── 表格 ── */
table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 10px; font-size: 14.5px; }
thead th { background: var(--blue-ll); color: #4a5a85; font-weight: 600; font-size: 13px; text-align: left; padding: 9px 10px; white-space: nowrap; }
thead th:first-child { border-radius: 12px 0 0 12px; }
thead th:last-child { border-radius: 0 12px 12px 0; }
td { padding: 9px 10px; border-bottom: 1px dashed #e4eaf8; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcff; }
td input[type=text], td input[type=number] { width: 100%; min-width: 80px; }
td.checked { font-size: 13px; color: var(--muted); }
tr.testRow td { background: #fafcff; font-size: 13.5px; border-bottom: 1px dashed #e4eaf8; }
a.home { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--pink-l); border: 1px solid #ffd6e6; color: #b13f6a; font-size: 12.5px; margin-right: 6px; white-space: nowrap; }
a.home:hover { background: #ffe3ef; color: #9a2f58; }

/* ── 小标签 ── */
.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.g { background: #e5f6ec; color: var(--ok); }
.pill.r { background: #ffecef; color: var(--bad); }
.pill.b { background: var(--blue-l); color: var(--blue-d); }

details { margin-top: 10px; border-radius: 14px; background: var(--blue-ll); padding: 8px 14px; }
summary { cursor: pointer; color: var(--blue-d); font-weight: 600; list-style: none; }
summary::before { content: "▸ "; color: var(--blue); }
details[open] > summary::before { content: "▾ "; }
pre { background: #f7f9ff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; overflow: auto; }

/* ── 底部保存条 ── */
.savebar { position: sticky; bottom: 14px; z-index: 20; margin-top: 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(91, 120, 200, .2); }
.savebar .muted { margin: 0; }

.foot { text-align: center; color: #8a93ad; font-size: 12.5px; margin-top: 30px; }

@media (max-width: 640px) {
  .site-head .in { gap: 10px; }
  .me { margin-left: 0; }
  .card { padding: 16px 14px; }
  .hero h1 { font-size: 21px; }
}

/* Mobile admin cards v1 — presentation only; desktop tables remain unchanged. */
@media(max-width:720px){
 html body{min-width:0;overflow-wrap:anywhere}
 body main,body .wrap,body .grid,body .card{min-width:0;max-width:100%;box-sizing:border-box}
 body .grid{grid-template-columns:minmax(0,1fr)!important}
 body .row,body .field,body .checks,body .site-head .in,body .fish-switch-row{flex-wrap:wrap;min-width:0;max-width:100%}
 body .row>*,body .field>*,body .hero>*,body .card h2>*{min-width:0}
 body .row>input:not([type=checkbox]):not([type=radio]):not([type=number]),body .row>select{flex:1 1 100%!important;width:100%!important;min-width:0!important;max-width:100%!important}
 body .card input:not([type=checkbox]):not([type=radio]),body .card select,body .card textarea{min-width:0!important;max-width:100%!important;box-sizing:border-box}
 body .card button:not(.fish-switch){min-height:40px;white-space:normal;overflow-wrap:anywhere;max-width:100%}
 body .card .fish-switch{flex:0 0 56px}
 body .card h2{flex-wrap:wrap}body .v2-tool-list{grid-template-columns:minmax(0,1fr)!important}
 body table,body .tool-log-table table,body .slang-scroll table{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;table-layout:auto!important}
 body table>tbody,body table>tfoot{display:block!important;width:100%;min-width:0}
 body table>thead,body table tr.mobile-head-row,body table colgroup{display:none!important}
 body table tr{display:block!important;width:auto!important;min-width:0!important;max-width:100%;border:1px solid var(--card-border,var(--line,#dfe5f2));border-radius:12px;padding:10px 12px;margin:10px 0}
 body table td,body table th{display:block!important;width:auto!important;min-width:0!important;max-width:100%!important;box-sizing:border-box;padding:5px 0!important;border:0!important;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;line-height:1.6;text-align:left}
 body table td[data-label]:not([data-label=""])::before{content:attr(data-label);display:block;font-size:12px;line-height:1.4;color:var(--muted,#7b8599);margin:0 0 3px}
 body table td input[type=text],body table td select,body table td textarea{width:100%!important;min-width:0!important}
 body .card pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;box-sizing:border-box}
 body .tool-log-cell{max-width:100%;white-space:normal!important;overflow-wrap:anywhere}
 body .card .meta,body .card code,body .card a,body .card summary,body .card label{overflow-wrap:anywhere;white-space:normal}
 body .card img,body .card video,body .card canvas{max-width:100%;object-fit:contain}
 body .modal{min-width:0;max-width:94vw;box-sizing:border-box}body .savebar{border-radius:16px}
}
