/* ============================================
   家顺兴智慧平台 - LINGXI Style Interface
   灵感来源：灵犀 AI 原型
   ============================================ */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #e0e7ff;
  --primary-glow: rgba(99, 102, 241, 0.2);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #f9fafb;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;

  /* 浅色侧边栏 */
  --sidebar-bg: #ffffff;
  --sidebar-hover: rgba(99,102,241,0.06);
  --sidebar-active: rgba(99,102,241,0.12);
  --sidebar-text: #4b5563;
  --sidebar-text-hover: #1f2937;
  --sidebar-text-active: var(--primary);
  --sidebar-border: #e5e7eb;
  --sidebar-section-label: #9ca3af;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
}

/* ============================================
   登录页
   ============================================ */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: var(--sidebar-bg);
}

.login-box {
  background: #1e1e28;
  border-radius: 20px;
  padding: 44px 40px;
  width: 440px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
}

.login-box .brand {
  text-align: center;
  margin-bottom: 36px;
}

.login-box .brand-logo {
  font-size: 28px;
  margin-bottom: 6px;
}

.login-box .brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.login-box .brand-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.login-box h2 {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  text-align: center;
  margin-bottom: 28px;
}

.role-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.role-card {
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: rgba(255,255,255,0.55);
}

.role-card:hover {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.08);
  color: rgba(255,255,255,0.85);
}

.role-card.selected {
  border-color: var(--primary);
  background: var(--sidebar-active);
  color: #a5b4fc;
}

.role-card .icon { font-size: 24px; margin-bottom: 6px; display: block; }
.role-card .name { font-size: 13px; font-weight: 600; display: block; }

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  margin-bottom: 7px;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: rgba(255,255,255,0.05);
  color: #fff;
  outline: none;
}

.form-group input::placeholder { color: rgba(255,255,255,0.2); }

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: rgba(255,255,255,0.07);
}

.form-group select option {
  background: #1e1e28;
  color: #fff;
}

.btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 8px;
}

.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================
   主界面布局
   ============================================ */
.chat-screen {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ============================================
   深色侧边栏
   ============================================ */
.sidebar {
  width: 268px;
  min-width: 268px;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  border-right: 1px solid var(--sidebar-border);
}

/* 顶部品牌区 */
.sidebar-brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.brand-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
}

.brand-emoji { font-size: 22px; }
.brand-name {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}

.brand-sub {
  font-size: 11px;
  color: #9ca3af;
  padding-left: 32px;
}

/* 新建会话按钮 */
.btn-new-chat {
  width: 100%;
  margin-top: 14px;
  padding: 9px 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-new-chat:hover {
  background: var(--primary-dark);
  color: #fff;
  border-color: rgba(255,255,255,0.15);
}

.btn-new-chat .shortcut {
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  margin-left: 4px;
}

/* 导航区 */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.nav-section {
  margin-bottom: 4px;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sidebar-section-label);
  padding: 8px 18px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  font-size: 13.5px;
  color: var(--sidebar-text);
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-hover);
}

.nav-item.active {
  background: var(--sidebar-active);
  color: var(--sidebar-text-active);
  border-left-color: var(--primary);
}

.nav-item .nav-icon { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.nav-item .nav-label { flex: 1; }
.nav-item .nav-badge {
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
}

/* 历史会话列表 */
.session-list {
  padding: 4px 0;
  max-height: 200px;
  overflow-y: auto;
}

.session-list::-webkit-scrollbar { width: 4px; }
.session-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.session-list-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sidebar-section-label);
  padding: 8px 18px 4px;
}

.session-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 8px 36px;
  font-size: 12.5px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.12s;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.session-item:hover {
  color: #374151;
  background: rgba(99,102,241,0.05);
}

.session-item.active {
  color: var(--primary);
  background: rgba(99,102,241,0.1);
}

.session-item .session-title { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.session-item .session-delete {
  font-size: 11px;
  opacity: 0;
  color: #d1d5db;
  padding: 2px 4px;
  border-radius: 4px;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.session-item:hover .session-delete { opacity: 1; }
.session-item .session-delete:hover { background: #fee2e2; color: #ef4444; }

/* 侧边栏底部 */
.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.sidebar-footer-nav {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
}

.footer-nav-item {
  flex: 1;
  text-align: center;
  padding: 7px 4px;
  font-size: 11px;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s;
  border: none;
  background: none;
}

.footer-nav-item:hover {
  background: rgba(99,102,241,0.06);
  color: var(--primary);
}

.footer-nav-item .footer-icon { font-size: 14px; display: block; margin-bottom: 2px; }
.footer-nav-item .footer-label { display: block; }

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  margin-bottom: 8px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-name {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 11px;
  color: #9ca3af;
}

.btn-logout {
  width: 100%;
  padding: 8px;
  background: #f9fafb;
  color: #9ca3af;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.btn-logout:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

/* ============================================
   主聊天区域
   ============================================ */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

/* 顶部栏 */
.chat-header {
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.agent-toggle {
  display: flex;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.agent-toggle-btn {
  padding: 5px 12px;
  font-size: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.15s;
}

.agent-toggle-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.agent-toggle-btn:hover:not(.active) {
  color: var(--text);
}

.chat-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.15s;
  color: var(--text-secondary);
}

.header-icon-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: var(--text);
}

/* 消息区域 */
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* 空状态 - 首页 */
.empty-home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  gap: 0;
}

.empty-home-logo {
  font-size: 52px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.empty-home h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.empty-home p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* 快捷建议卡片 */
.suggestion-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 560px;
}

.suggestion-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

.suggestion-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-glow);
  transform: translateY(-1px);
}

.suggestion-card .card-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }

.suggestion-card .card-text {
  flex: 1;
}

.suggestion-card .card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.suggestion-card .card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* 消息气泡 */
.message {
  display: flex;
  gap: 12px;
  max-width: 72%;
  padding: 4px 24px;
  animation: msgIn 0.25s ease;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
  padding-left: 60px;
}

.message.ai {
  align-self: flex-start;
  padding-right: 60px;
}

.message .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}

.message.user .avatar { background: #dbeafe; }
.message.ai .avatar { background: var(--primary-light); }

.bubble {
  background: var(--surface);
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 14.5px;
  line-height: 1.65;
  box-shadow: var(--shadow-sm);
  word-break: break-word;
  color: var(--text);
}

.message.user .bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 5px;
}

.message.ai .bubble {
  border-bottom-left-radius: 5px;
  border: 1px solid var(--border);
}

.message.ai .bubble .intent-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
  font-weight: 500;
}

/* 消息内附件 */
.msg-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.msg-img {
  max-width: 200px;
  max-height: 180px;
  border-radius: 10px;
  cursor: pointer;
  object-fit: cover;
  border: 1px solid var(--border);
  transition: transform 0.15s;
}
.msg-img:hover { transform: scale(1.02); }

.msg-file {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  max-width: 240px;
}
.msg-file-icon { font-size: 18px; flex-shrink: 0; }
.msg-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.msg-file-ext {
  font-size: 10px;
  color: var(--text-muted);
  background: var(--border);
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* 打字指示器 */
.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 4px 24px;
  align-self: flex-start;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.18s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

/* 附件芯片 */
.attachment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 24px 0;
}

.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px 4px 8px;
  font-size: 12px;
}

.chip-icon { font-size: 13px; flex-shrink: 0; }
.chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; color: var(--text); }

.chip-remove {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  flex-shrink: 0;
  padding: 2px 4px;
  border-radius: 50%;
  transition: background 0.15s;
}
.chip-remove:hover { background: #fee2e2; color: var(--danger); }

/* 底部输入区 */
.input-area {
  padding: 14px 20px 18px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* 确保 input-area 固定在底部 */
#mainContent {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

#chatView {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.input-row input {
  flex: 1;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-size: 14.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg);
  color: var(--text);
  outline: none;
}

.input-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--surface);
}

.btn-send {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s, transform 0.1s;
  flex-shrink: 0;
}

.btn-send:hover { background: var(--primary-dark); }
.btn-send:active { transform: scale(0.95); }
.btn-send:disabled { background: var(--text-muted); cursor: not-allowed; }

.btn-attach {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-attach:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================
   工具条（消息内操作）
   ============================================ */
.msg-actions {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.15s;
}

.message:hover .msg-actions { opacity: 1; }

.msg-action-btn {
  padding: 3px 8px;
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.msg-action-btn:hover {
  background: var(--bg);
  color: var(--text);
}

/* ============================================
   暗色输入区（管理员视图）
   ============================================ */
.dark-input {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: #fff !important;
}

.dark-input::placeholder { color: rgba(255,255,255,0.3) !important; }
.dark-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-glow) !important;
  background: rgba(255,255,255,0.07) !important;
}

/* ============================================
   通用弹窗
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: var(--surface);
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideUp 0.22s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title-icon { font-size: 20px; }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.modal-close:hover { background: #fee2e2; color: var(--danger); }

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
  min-height: 0;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* 详情卡片 */
.detail-section {
  margin-bottom: 18px;
}

.detail-section-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.detail-item.full { grid-column: 1 / -1; }

.detail-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.detail-value {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
}

.detail-value.large {
  font-size: 17px;
  font-weight: 700;
}

.detail-value.primary { color: var(--primary); }

/* 标签 */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.tag-skill {
  background: var(--primary-light);
  color: var(--primary);
}

.tag-status-green {
  background: #d1fae5;
  color: #065f46;
}

.tag-status-gray {
  background: #f3f4f6;
  color: #6b7280;
}

.tag-status-blue {
  background: #dbeafe;
  color: #1e40af;
}

.tag-status-yellow {
  background: #fef3c7;
  color: #92400e;
}

/* 评分星星 */
.rating-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 1px;
}

/* 门店图片 */
.store-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.store-img-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
}

.store-img-label {
  font-size: 11px;
  color: var(--text-secondary);
  padding: 5px 8px 0;
  font-weight: 500;
}

.store-img-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
}

.store-img-preview:hover { background: #f3f4f6; }
.store-img-preview img { width: 100%; height: 100%; object-fit: cover; }

.store-img-placeholder {
  font-size: 24px;
  opacity: 0.3;
}

/* 模态框底部操作 */
.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.modal-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: 1.5px solid transparent;
}

.modal-btn-secondary {
  background: #f3f4f6;
  color: var(--text-secondary);
  border-color: var(--border);
}

.modal-btn-secondary:hover {
  background: #e5e7eb;
  color: var(--text);
}

.modal-btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.modal-btn-primary:hover {
  background: var(--primary-dark);
}
