/* AQUA 平台共享样式 - 清新专业蓝主题 */

/* ============ 颜色变量 ============ */
/* 默认：明亮主题 —— 纯白为底，蓝为点睛 */
:root {
  --bg-primary: #f5f7fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #eef1f6;
  --bg-input: #f8f9fc;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8888a8;
  --accent-primary: #4a90d9;
  --accent-success: #34c759;
  --accent-warning: #f0a500;
  --accent-danger: #e74c3c;
  --border-color: #e0e4ea;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --sidebar-width: 220px;
  --header-height: 56px;
}

/* 暗色主题：深蓝夜空 */
[data-theme="dark"] {
  --bg-primary: #0f1419;
  --bg-secondary: #1a1f2e;
  --bg-card: #1e2433;
  --bg-hover: #2a3142;
  --bg-input: #151a24;
  --text-primary: #e1e6ed;
  --text-secondary: #8b95a5;
  --text-muted: #5a6478;
  --accent-primary: #5b9ee0;
  --accent-success: #34c759;
  --accent-warning: #f0a500;
  --accent-danger: #e74c3c;
  --border-color: #2a3344;
}

/* ============ 基础重置 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--accent-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ============ 顶部导航 navbar ============ */
.navbar {
  height: var(--header-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky; top: 0; z-index: 100;
  /* 主题装饰线 */
  box-shadow: 0 -3px 0 #4a90d9 inset;
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; padding: 0 20px; gap: 16px;
}
.navbar-brand { flex-shrink: 0; }
.brand-logo { display: flex; align-items: center; gap: 6px; text-decoration: none; }
.brand-name { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.brand-tag { font-size: 11px; color: var(--accent-primary); background: rgba(74,144,217,0.1); padding: 2px 6px; border-radius: var(--radius-sm); }
.navbar-links { display: flex; gap: 4px; flex: 1; }
.navbar-links a {
  color: var(--text-secondary); padding: 6px 14px; border-radius: var(--radius-md);
  font-size: 14px; transition: all .15s; text-decoration: none;
}
.navbar-links a:hover { color: var(--text-primary); background: var(--bg-hover); }
.navbar-actions { display: flex; align-items: center; gap: 8px; }

/* ============ 按钮 btn ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-md);
  background: var(--bg-card); color: var(--text-primary); font-size: 14px;
  transition: all .15s; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--bg-hover); border-color: var(--accent-primary); }
.btn-primary { background: var(--accent-primary); color: #fff; border-color: var(--accent-primary); }
.btn-primary:hover { opacity: .9; }
.btn-success { background: var(--accent-success); color: #fff; border-color: var(--accent-success); }
.btn-danger { background: var(--accent-danger); color: #fff; border-color: var(--accent-danger); }
.btn-warning { background: var(--accent-warning); color: #fff; border-color: var(--accent-warning); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn {
  width: 36px; height: 36px; border: 1px solid var(--border-color); background: var(--bg-card);
  border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-primary); cursor: pointer; transition: all .15s;
}
.icon-btn:hover { background: var(--bg-hover); }

/* ============ 卡片 card ============ */
.card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 20px;
}
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }

/* ============ 统计卡片 stat-card ============ */
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 8px;
}
.stat-card-label { font-size: 13px; color: var(--text-secondary); }
.stat-card-value { font-size: 28px; font-weight: 700; color: var(--text-primary); }
.stat-card-sub { font-size: 12px; color: var(--text-muted); }

/* ============ 表格 table ============ */
.table-wrap { overflow-x: auto; }
table.data-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.data-table th {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary); font-weight: 600; white-space: nowrap;
}
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-color); }
.data-table tr:hover td { background: var(--bg-hover); }
.data-table .mono { font-family: "SF Mono", Consolas, "Liberation Mono", monospace; }

/* ============ 输入框 input ============ */
.input, .textarea, .select {
  width: 100%; padding: 10px 12px; background: var(--bg-input); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); color: var(--text-primary); font-size: 14px; transition: border-color .15s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--accent-primary);
}
.textarea { resize: vertical; min-height: 80px; }
.input-group { margin-bottom: 16px; }
.input-group label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-secondary); }
.input-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.input-group .row { display: flex; gap: 8px; }
.input-group .row .input { flex: 1; }
.input-group .row .btn { flex-shrink: 0; }

/* ============ 模态框 modal ============ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex;
  align-items: center; justify-content: center; z-index: 1000; padding: 20px;
}
.modal {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  max-width: 480px; width: 100%; padding: 24px; box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.modal-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.modal-body { margin-bottom: 20px; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; }
.modal-close { position: absolute; top: 12px; right: 16px; cursor: pointer; color: var(--text-muted); font-size: 22px; background: none; border: none; }

/* ============ 提示 toast ============ */
.toast-container { position: fixed; top: 70px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--bg-card); border: 1px solid var(--border-color); border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-md); padding: 12px 16px; min-width: 240px; max-width: 360px;
  font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.2); animation: slideIn .2s ease;
}
.toast.success { border-left-color: var(--accent-success); }
.toast.error { border-left-color: var(--accent-danger); }
.toast.warn { border-left-color: var(--accent-warning); }
.toast.info { border-left-color: var(--accent-primary); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============ 标签 tag ============ */
.tag {
  display: inline-block; padding: 2px 8px; border-radius: var(--radius-sm); font-size: 12px;
  background: var(--bg-hover); color: var(--text-secondary);
}
.tag.success { background: rgba(52,199,89,.12); color: var(--accent-success); }
.tag.warning { background: rgba(240,165,0,.12); color: var(--accent-warning); }
.tag.danger { background: rgba(231,76,60,.12); color: var(--accent-danger); }
.tag.primary { background: rgba(74,144,217,.12); color: var(--accent-primary); }
.tag.hot {
  background: linear-gradient(135deg, rgba(255,107,107,.2), rgba(255,171,0,.2));
  color: #ff6b6b;
  font-weight: 600;
  font-size: 11px;
  padding: 1px 6px;
}
.tag.special { background: rgba(153,102,255,.14); color: #7744cc; font-weight: 600; }
.tag.welfare, .welfare-tag { background: rgba(255, 179, 0, .18); color: #9a6700; font-weight: 700; }

/* ============ 模型卡片 model-card ============ */
.model-card {
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  cursor: pointer;
  transition: all .2s ease;
}
.model-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.model-card .model-name {
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}
.model-card .model-id {
  font-size: 11px;
  opacity: .7;
  line-height: 1.5;
}
.model-card .model-provider {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.model-card .model-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}
.model-card .model-specs {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.model-card .model-specs span {
  white-space: nowrap;
}
.model-card .model-specs .spec-val {
  color: var(--accent-primary);
  font-weight: 600;
}

/* ============ 能力徽章 cap-badge ============ */
.cap-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  margin-right: 3px;
  margin-bottom: 3px;
  white-space: nowrap;
}
.cap-badge.on { background: rgba(34,197,94,0.15); color: #22c55e; }
.cap-badge.off { background: rgba(100,100,100,0.1); color: #666; }
.cap-badge.warn { background: rgba(234,179,8,0.15); color: #eab308; }

/* ============ 分页 pagination ============ */
.pagination { display: flex; gap: 4px; justify-content: center; align-items: center; padding: 16px 0; flex-wrap: wrap; }
.pagination button {
  min-width: 32px; height: 32px; border: 1px solid var(--border-color); background: var(--bg-card);
  color: var(--text-primary); border-radius: var(--radius-sm); cursor: pointer; padding: 0 8px; font-size: 13px;
}
.pagination button:hover { background: var(--bg-hover); }
.pagination button.active { background: var(--accent-primary); color: #fff; border-color: var(--accent-primary); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* ============ 加载器 loader ============ */
.loader-overlay { position: absolute; inset: 0; background: rgba(245,247,250,.6); display: flex; align-items: center; justify-content: center; z-index: 50; }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border-color); border-top-color: var(--accent-primary); border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 空状态 empty-state ============ */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state-text { font-size: 14px; }

/* ============ 进度条 progress-bar ============ */
.progress-bar { height: 6px; background: var(--bg-input); border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--accent-primary); border-radius: 3px; transition: width .3s; }

/* ============ 侧边栏 sidebar（控制台） ============ */
.console-layout { display: flex; min-height: calc(100vh - var(--header-height)); }
.app-sidebar {
  width: var(--sidebar-width); background: var(--bg-secondary); border-right: 1px solid var(--border-color);
  flex-shrink: 0; display: flex; flex-direction: column; position: sticky; top: var(--header-height); height: calc(100vh - var(--header-height));
}
.sidebar-user { padding: 16px; border-bottom: 1px solid var(--border-color); }
.sidebar-user-info { min-width: 0; }
.sidebar-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 8px;
}
.sidebar-user-name { font-size: 14px; font-weight: 600; }
.sidebar-user-email { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-nav { flex: 1; padding: 8px; overflow-y: auto; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-md);
  color: var(--text-secondary); font-size: 14px; text-decoration: none; transition: all .15s; margin-bottom: 2px;
}
.sidebar-nav a:hover { background: var(--bg-hover); color: var(--text-primary); text-decoration: none; }
.sidebar-nav a.active { background: var(--bg-hover); color: var(--accent-primary); }
.sidebar-nav .nav-icon { width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-footer { padding: 12px 8px; border-top: 1px solid var(--border-color); }
/* 侧边栏底部导航项（链接/按钮）统一样式 */
.sidebar-footer .nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-md);
  color: var(--text-secondary); font-size: 14px; text-decoration: none; transition: all .15s; margin-bottom: 2px;
  background: none; border: none; width: 100%; text-align: left; cursor: pointer; font-family: inherit;
}
.sidebar-footer .nav-item:last-child { margin-bottom: 0; }
.sidebar-footer .nav-item:hover { background: var(--bg-hover); color: var(--text-primary); text-decoration: none; }
.console-content { flex: 1; padding: 24px; max-width: 100%; overflow-x: hidden; }

/* ============ 对话 chat ============ */
.chat-layout { display: flex; height: calc(100vh - var(--header-height)); }
.chat-sidebar { width: 240px; border-right: 1px solid var(--border-color); background: var(--bg-secondary); display: flex; flex-direction: column; flex-shrink: 0; }
.chat-sidebar-header { padding: 12px; border-bottom: 1px solid var(--border-color); }
.chat-history-list { flex: 1; overflow-y: auto; padding: 8px; }
.chat-history-item { padding: 10px 12px; border-radius: var(--radius-md); cursor: pointer; transition: background .15s; margin-bottom: 4px; }
.chat-history-item:hover { background: var(--bg-hover); }
.chat-history-item.active { background: var(--bg-hover); color: var(--accent-primary); }
.chat-history-item-title { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; }
.chat-msg { margin-bottom: 16px; max-width: 80%; }
.chat-msg.user { margin-left: auto; }
.chat-msg-bubble { padding: 12px 16px; border-radius: var(--radius-lg); font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.chat-msg.user .chat-msg-bubble { background: var(--accent-primary); color: #fff; }
.chat-msg.assistant .chat-msg-bubble { background: var(--bg-card); border: 1px solid var(--border-color); }
.chat-input-area { border-top: 1px solid var(--border-color); padding: 12px; display: flex; gap: 8px; align-items: flex-end; background: var(--bg-secondary); }
.chat-input-area textarea { flex: 1; resize: none; min-height: 40px; max-height: 120px; }

/* ============ 代码块 ============ */
pre.code-block {
  background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 14px; overflow-x: auto; font-size: 13px; font-family: "SF Mono", Consolas, monospace;
  color: var(--text-primary); position: relative;
}
pre.code-block .copy-btn { position: absolute; top: 8px; right: 8px; }

/* ============ 通用布局 ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 24px 20px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-sm { font-size: 13px; } .text-xs { font-size: 12px; }
.text-muted { color: var(--text-muted); } .text-secondary { color: var(--text-secondary); }
.mono { font-family: "SF Mono", Consolas, "Liberation Mono", monospace; }

/* ============ 广告位（底部原生样式） ============ */
.ads-section {
  max-width: 1200px; margin: 24px auto 0; padding: 0 20px;
}
.ads-title {
  font-size: 12px; color: var(--text-muted); text-align: center; margin-bottom: 10px;
  letter-spacing: 1px;
}
.ads-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.ad-card {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 8px; text-decoration: none; color: var(--text);
  transition: border-color .2s, box-shadow .2s; max-width: 340px; flex: 1; min-width: 240px;
}
.ad-card:hover { border-color: var(--accent-primary); box-shadow: 0 1px 8px rgba(74,144,217,.1); }
.ad-card img, .ad-card svg { width: 28px; height: 28px; border-radius: 5px; flex-shrink: 0; }
.ad-card .ad-info { flex: 1; min-width: 0; }
.ad-card .ad-name { font-size: 12px; font-weight: 600; line-height: 1.2; }
.ad-card .ad-desc { font-size: 11px; color: var(--text-secondary); margin-top: 1px; }

/* ============ Hero 区 ============ */
.hero { text-align: center; padding: 48px 20px 52px; }
.hero-title { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.hero-subtitle { font-size: 16px; color: var(--text-secondary); margin-bottom: 24px; }
.hero-stats { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stat { text-align: center; min-width: 90px; }
.hero-stat-value { font-size: 28px; font-weight: 700; color: var(--accent-primary); line-height: 1.1; }
.hero-stat-label { font-size: 11px; color: var(--text-secondary); margin-top: 2px; line-height: 1; }

/* ============ 特性卡片 ============ */
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 24px; text-align: center; transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent-primary); }
.feature-icon { font-size: 36px; margin-bottom: 12px; }
.feature-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-desc { font-size: 13px; color: var(--text-secondary); }

/* ============ 页脚 ============ */
.footer { border-top: 1px solid var(--border-color); padding: 24px 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
.footer a { color: var(--text-secondary); margin: 0 8px; }

/* ============ 居中卡片（登录/注册） ============ */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--bg-primary); }
.auth-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 32px; max-width: 400px; width: 100%; }
.auth-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.auth-subtitle { font-size: 13px; color: var(--text-secondary); text-align: center; margin-bottom: 24px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 16px; font-size: 13px; }

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .app-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: none;
  }
  .app-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
  }
  /* 遮罩层 */
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--header-height);
    background: rgba(0,0,0,0.5);
    z-index: 99;
  }
  .sidebar-overlay.show { display: block; }
  /* 汉堡菜单按钮 */
  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 18px;
    margin-right: 8px;
  }
  .console-content { padding: 16px; }
  .chat-sidebar { display: none; }
  .hero-title { font-size: 26px; }
  .hero-stats { gap: 10px; }
  .hero-stat { min-width: 70px; }
  .hero-stat-value { font-size: 22px; }
  .chat-msg { max-width: 100%; }
}

/* ============ API文档 docs ============ */
.docs-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.docs-meta-item { padding: 12px 14px; background: var(--bg-hover); border-radius: var(--radius-sm); }
.docs-meta-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.docs-meta-value { font-size: 14px; color: var(--text-primary); word-break: break-all; }
.docs-section { padding: 12px 0 0; }
.docs-section.collapsed { display: none; }
.doc-subtitle { font-weight: 600; font-size: 14px; margin: 16px 0 8px; color: var(--text-primary); }
.card-title { cursor: pointer; user-select: none; }
.card-title:hover { opacity: .8; }

/* ============ QQ群页面 qq-group ============ */
.qq-group-list { display: flex; flex-direction: column; gap: 20px; }
.qq-group-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.qq-group-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.15); }
.qq-group-header {
  padding: 24px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.qq-group-decoration {
  position: absolute;
  right: -24px; top: -24px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  pointer-events: none;
}
.qq-group-decoration-2 {
  right: 40px; top: auto;
  bottom: -36px;
  width: 90px; height: 90px;
  background: rgba(255,255,255,.06);
}
.qq-group-name {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}
.qq-group-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.qq-group-tags .tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  background: rgba(255,255,255,.2);
  color: #fff;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.qq-group-tags .tag-recommend { background: rgba(255,255,255,.95); color: #4a90d9; font-weight: 600; }
.qq-group-tags .tag-bot { background: rgba(255,255,255,.95); color: #e85d26; font-weight: 600; }
.qq-group-body { padding: 24px 28px; }
.qq-group-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 20px;
}
.qq-group-info {
  display: flex;
  gap: 32px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.qq-group-info-item { flex: 1; min-width: 120px; }
.qq-group-info-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.qq-group-info-value {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qq-group-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  background: transparent;
  padding: 0;
  font-family: 'JetBrains Mono', Menlo, Consolas, monospace;
}
.qq-group-join-btn {
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: all .2s ease !important;
}
.qq-group-join-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,0,0,.25); }

.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.notice-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}
.notice-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent-primary);
  font-weight: bold;
}
.notice-list a {
  color: var(--accent-primary);
  text-decoration: none;
}
.notice-list a:hover { text-decoration: underline; }

/* ============ 单模型厂商紧凑布局 ============ */
.provider-single {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}
.provider-single-title {
  font-size: 14px;
  font-weight: 600;
  min-width: 140px;
  flex-shrink: 0;
  color: var(--text-primary);
}
.provider-single-card {
  flex: 1;
  min-width: 0;
}
.provider-single-card .model-card {
  margin: 0;
  padding: 12px 16px;
}
.provider-single-card .model-name {
  font-size: 14px;
}
.provider-single-card .model-id {
  margin-bottom: 6px !important;
  font-size: 11px;
}

/* 响应式：小屏单模型厂商也堆叠 */
@media (max-width: 640px) {
  .provider-single {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .provider-single-title {
    min-width: auto;
  }
}

/* ============ 单模型厂商卡片 provider-card ============ */
.provider-card {
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  padding: 14px 16px;
}
.provider-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.provider-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.provider-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.provider-card-model {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

/* 移除旧的provider-single样式（已不用） */
.provider-single { display: none; }

/* ============ 一键导入弹窗标签样式 ============ */
.qs-tab-btn {
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: .2s;
}
.qs-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--primary);
}
.qs-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.qs-tab-panel {
  display: block;
}
.qs-tab-panel[style*="display:none"],
.qs-tab-panel[style*="display: none"] {
  display: none !important;
}
