/* 🐕🦌💕 聊天室 — 顶部栏 */

.header {
  padding: 10px 14px 6px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 10; flex-shrink: 0;
}
.header-top { display: flex; align-items: center; justify-content: space-between; }
.header-title { font-size: 17px; font-weight: 600; letter-spacing: 0.5px; white-space: nowrap; }
.header-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; padding-bottom: 2px; }
.header-btns { display: flex; gap: 4px; align-items: center; }
.btn-header {
  padding: 5px 12px; background: transparent;
  border: 1px solid var(--border); border-radius: 16px;
  cursor: pointer; font: 12px var(--font); color: var(--text-secondary);
  transition: all 0.2s;
}
.btn-header:hover { background: rgba(180,160,130,0.08); }
.btn-header.active { background: rgba(180,160,130,0.15); }
.btn-icon {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border);
  border-radius: 50%; cursor: pointer; font-size: 15px;
  transition: all 0.2s; padding: 0;
}
.btn-icon:hover { background: rgba(180,160,130,0.08); }
.btn-icon.active { background: rgba(180,160,130,0.15); }
.header-title-editable {
  background: none; border: none; font-family: var(--font);
  font-size: 16px; font-weight: 600; color: var(--text-primary);
  cursor: text; padding: 2px 4px; border-radius: 6px;
  min-width: 0; flex: 1; outline: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s;
}
.header-title-editable:hover { border-bottom-color: var(--border-strong); }
.header-title-editable:focus { border-bottom-color: var(--accent-dark); background: rgba(255,255,255,0.5); }

/* 电脑端：模型信息跟在标题后面 */
@media (min-width: 768px) {
  .header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .header-top {
    display: contents;
  }
  .header-title-editable {
    order: 1;
    flex-shrink: 1;
  }
  .sidebar-toggle {
    order: 0;
  }
  .header-sub {
    order: 2;
    margin-top: 0;
    padding-bottom: 0;
  }
  .header-btns {
    order: 3;
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .header { padding: 8px 12px 6px; }
  .header-title { font-size: 15px; }
  .header-sub { font-size: 12px; }
  .header-btns { gap: 4px; }
  .btn-icon { width: 34px; height: 34px; font-size: 15px; }
}
