/* 峰源科技 全站主题：对齐参考站 teal 主色与暗色调 */
:root{
  --primary:#14b8a6; --primary-foreground:#ffffff; --ring:#14b8a6;
  --sidebar-primary:#14b8a6; --sidebar-primary-foreground:#ffffff;
}
body{
  background-image:
    linear-gradient(rgba(20,184,166,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(20,184,166,.06) 1px,transparent 1px),
    linear-gradient(to bottom right,#f9fafb,#f0fdfa 45%,#f3f4f6)!important;
  background-size:48px 48px,48px 48px,100% 100%!important;
  background-attachment:fixed!important;
}
html.dark{
  --background:#0b1220; --card:#111a2b; --popover:#111a2b;
  --sidebar:#0d1526; --sidebar-accent:#16233a;
  --border:#1e293b; --muted:#16233a; --muted-foreground:#94a3b8;
}
html.dark body{
  background-image:
    linear-gradient(rgba(45,212,191,.05) 1px,transparent 1px),
    linear-gradient(90deg,rgba(45,212,191,.05) 1px,transparent 1px),
    linear-gradient(to bottom right,#030712,#042f2e 45%,#030712)!important;
  background-size:48px 48px,48px 48px,100% 100%!important;
}
header a[href='/sign-in']{
  background-image:none!important; background-color:#111827!important;
  border-radius:999px!important; padding:5px 14px!important;
  font-size:12px!important; font-weight:500!important; color:#fff!important;
}
header a[href='/sign-in']:hover{background-color:#1f2937!important;}
#fykj-tg{
  display:inline-flex; align-items:center; gap:5px;
  padding:6px 13px; margin-right:8px; border-radius:999px;
  font-size:12px; font-weight:500; color:#fff!important;
  background-image:linear-gradient(to right,#229ED9,#1c86bd);
  text-decoration:none!important; white-space:nowrap;
  box-shadow:0 2px 6px rgba(34,158,217,.3);
}
#fykj-tg:hover{filter:brightness(1.08);}
#fykj-tg::before{content:'\2708'; font-size:13px;}
#fykj-topup{
  display:flex; align-items:center; justify-content:center; gap:6px;
  margin:10px 12px; padding:9px 12px; border-radius:10px;
  font-size:13px; font-weight:600; color:#fff!important;
  background-image:linear-gradient(to right,#10b981,#059669);
  text-decoration:none!important; box-shadow:0 2px 8px rgba(16,185,129,.3);
}
#fykj-topup:hover{filter:brightness(1.08);}

/* 首页内容区配色变量：框架把 HomePageContent 放入隔离作用域，
   html.dark 选择器在其内部无法匹配，故用可继承的 CSS 变量传递暗色值。 */
html.dark{
  --fj-title:#f8fafc;
  --fj-sub:#94a3b8;
  --fj-muted:#94a3b8;
  --fj-line:rgba(30,41,59,.9);
  --fj-card-bg:rgba(17,26,43,.6);
  --fj-pill-bg:rgba(17,26,43,.8);
  --fj-pill-fg:#cbd5e1;
  --fj-badge-bg:rgba(17,26,43,.85);
  --fj-tag-bg:rgba(20,184,166,.16);
  --fj-tag-fg:#5eead4;
}

/* 侧栏底部工具条按钮（主题切换 / 登录日志 / 收起） */
.fykj-side-btn{
  display:flex; align-items:center; gap:8px; width:calc(100% - 24px);
  margin:4px 12px; padding:8px 12px; border:0; border-radius:8px;
  background:transparent; cursor:pointer; text-align:left;
  font-size:13px; font-family:inherit; color:var(--fj-side-fg,#475569);
  text-decoration:none!important; box-sizing:border-box;
}
.fykj-side-btn:hover{background:var(--fj-side-hover,rgba(148,163,184,.12));}
html.dark{--fj-side-fg:#94a3b8; --fj-side-hover:rgba(148,163,184,.14);}
#fykj-mode::before{content:'\263E'; font-size:14px;}
html.dark #fykj-mode::before{content:'\2600';}
#fykj-loginlog::before{content:'\1F4C4'; font-size:13px;}
#fykj-collapse::before{content:'\21E4'; font-size:14px;}

/* ===== 登录/注册页：对齐参考站 ===== */
body.fj-auth header{display:none!important}
body.fj-auth{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:40px 16px}
body.fj-auth #root{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:calc(100vh - 80px)}
body.fj-auth #root > div{display:flex;flex-direction:column;align-items:center;width:100%}
body.fj-auth #root > div > div{width:100%;display:flex;flex-direction:column;align-items:center}
#fj-auth-brand{margin-bottom:20px!important}
#fj-auth-brand{text-align:center;margin-bottom:22px}
#fj-auth-brand img{width:64px;height:64px;border-radius:18px;box-shadow:0 10px 24px rgba(15,23,42,.18)}
.fj-auth-name{margin-top:12px;font-size:24px;font-weight:800;color:#0d9488}
.fj-auth-slogan{margin-top:4px;font-size:13px;color:#64748b}
html.dark .fj-auth-slogan{color:#94a3b8}
body.fj-auth form{width:100%}
body.fj-auth h2{text-align:center!important;font-size:24px!important;font-weight:800!important}
body.fj-auth h2 + p{text-align:center!important;color:#64748b!important;font-size:14px!important}
body.fj-auth button[type=submit]{
  width:100%!important;background-image:linear-gradient(to right,#14b8a6,#0d9488)!important;
  background-color:transparent!important;color:#fff!important;border-radius:10px!important;
  padding:12px!important;font-size:15px!important;font-weight:600!important;
  box-shadow:0 4px 10px rgba(20,184,166,.28)!important}
body.fj-auth button[type=submit]:hover{filter:brightness(1.07)}
body.fj-auth input{border-radius:10px!important}
#fj-auth-foot{margin-top:26px;font-size:12px;color:#94a3b8;text-align:center}

/* 登录/注册卡片与切换链接 */
.fj-auth-card{background:#fff;border:1px solid #e9eef3;border-radius:16px;
  padding:30px 32px;box-shadow:0 12px 32px rgba(15,23,42,.08);width:100%;max-width:440px;margin:0 auto}
html.dark .fj-auth-card{background:#111a2b;border-color:#1e293b;box-shadow:0 12px 32px rgba(0,0,0,.35)}
#fj-auth-switch{margin-top:18px;text-align:center;font-size:13px;color:#64748b}
html.dark #fj-auth-switch{color:#94a3b8}
#fj-auth-switch a{color:#0d9488;text-decoration:none;font-weight:600}
#fj-auth-switch a:hover{text-decoration:underline}
body.fj-auth #fj-auth-foot{margin-top:18px}

/* 模型广场表格（对齐参考站） */
#fj-plaza{width:100%;max-width:1160px;margin:0 auto}
.fj-pz-g{margin-bottom:26px;border:1px solid #e9eef3;border-radius:14px;overflow:hidden;background:#fff}
html.dark .fj-pz-g{background:#111a2b;border-color:#1e293b}
.fj-pz-gh{display:flex;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid #eef2f6}
html.dark .fj-pz-gh{border-color:#1e293b}
.fj-pz-gn{font-size:15px;font-weight:700}
.fj-pz-gr{font-size:12px;font-weight:700;color:#0d9488;background:rgba(20,184,166,.12);padding:2px 9px;border-radius:6px}
.fj-pz-t{width:100%;border-collapse:collapse;font-size:13px}
.fj-pz-t th{padding:9px 12px;text-align:left;font-weight:500;color:#64748b;font-size:11.5px;border-bottom:1px solid #eef2f6}
html.dark .fj-pz-t th{color:#94a3b8;border-color:#1e293b}
.fj-pz-t td{padding:11px 12px;border-bottom:1px solid #f4f7fa}
html.dark .fj-pz-t td{border-color:#182234}
.fj-pz-m{font-family:ui-monospace,Menlo,monospace;font-weight:600}
.fj-pz-d{font-weight:700}
.fj-pz-c{color:#0d9488}
.fj-pz-o{color:#94a3b8}
.fj-pz-r{color:#64748b;font-size:12px}

/* 创建密钥弹窗 Provider 卡片（对齐参考站） */
#fj-provider{margin:14px 0}
.fj-pv-l{font-size:13px;margin-bottom:8px;color:#475569}
html.dark .fj-pv-l{color:#cbd5e1}
.fj-pv-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.fj-pv{display:flex;flex-direction:column;align-items:center;gap:5px;padding:11px 6px;
  border:1px solid #e2e8f0;border-radius:10px;cursor:pointer;font-size:12px;transition:.15s;background:transparent}
html.dark .fj-pv{border-color:#243349}
.fj-pv:hover{border-color:#14b8a6}
.fj-pv-on{border-color:#14b8a6!important;background:rgba(20,184,166,.08);font-weight:600;position:relative}
.fj-pv-on .fj-pv-i{color:#10a37f}
.fj-pv-ck{position:absolute;top:5px;right:6px;width:14px;height:14px;border-radius:50%;
  background:#14b8a6;color:#fff;font-size:9px;display:flex;align-items:center;justify-content:center}
.fj-pv-off{opacity:.42;cursor:not-allowed;pointer-events:none;filter:grayscale(.6)}
.fj-pv-i{font-size:17px;line-height:1}
.fj-pv-hint{margin-top:8px;font-size:12px;color:#64748b}
html.dark .fj-pv-hint{color:#94a3b8}
