/* ============================================================
   闀垮畞銆屼笂娴风宸枫€嶅洯鍖烘櫤鑳戒綋骞冲彴 鈥?鏍峰紡琛?
   椋庢牸锛氬姩鎬佸崱閫?路 姣涚幓鐠?路 娓愬彉鍔ㄧ敾 路 娉ㄩ噸浜や簰
   ============================================================ */

/* ===== CSS Variables ===== */
:root {
  --bg-primary: #0f0c29;
  --bg-secondary: #1a1a3e;
  --bg-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --policy-color: #4A90D9;
  --policy-light: #E8F4FD;
  --enterprise-color: #27AE60;
  --enterprise-light: #EAFAF1;
  --property-color: #E67E22;
  --property-light: #FDEBD0;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ===== 鑳屾櫙绮掑瓙鍔ㄧ敾 ===== */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.2), transparent),
    radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 80% 50%, rgba(255,255,255,0.2), transparent),
    radial-gradient(2px 2px at 10% 80%, rgba(255,255,255,0.15), transparent),
    radial-gradient(2px 2px at 90% 10%, rgba(255,255,255,0.2), transparent),
    radial-gradient(2px 2px at 50% 90%, rgba(255,255,255,0.15), transparent),
    radial-gradient(2px 2px at 70% 60%, rgba(255,255,255,0.2), transparent);
  animation: twinkle 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes twinkle {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ===== 椤堕儴瀵艰埅鏍?===== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: rgba(15, 12, 41, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
  flex-shrink: 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 32px;
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.logo-text h1 {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(90deg, #4A90D9, #27AE60, #E67E22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

.about-btn {
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.3);
  color: #74b9ff;
}

/* ===== 涓讳綋甯冨眬 ===== */
.main-container {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* ===== 宸︿晶Agent闈㈡澘 ===== */
.agent-panel {
  width: 260px;
  background: rgba(15, 12, 41, 0.6);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--glass-border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex-shrink: 0;
}

.panel-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.agent-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  background: var(--glass-bg);
  position: relative;
  overflow: hidden;
  margin-bottom: 4px;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.03));
  pointer-events: none;
}

.agent-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

.agent-card.active {
  border-color: var(--active-color, #4A90D9);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 20px rgba(255,255,255,0.06);
}

.agent-card[data-agent="policy"] { --active-color: var(--policy-color); }
.agent-card[data-agent="policy"] .agent-avatar {
  background: linear-gradient(135deg, rgba(74,144,217,0.2), rgba(74,144,217,0.08));
  border-color: rgba(74,144,217,0.5);
}
.agent-card[data-agent="enterprise"] { --active-color: var(--enterprise-color); }
.agent-card[data-agent="enterprise"] .agent-avatar {
  background: linear-gradient(135deg, rgba(39,174,96,0.2), rgba(39,174,96,0.08));
  border-color: rgba(39,174,96,0.5);
}
.agent-card[data-agent="property"] { --active-color: var(--property-color); }
.agent-card[data-agent="property"] .agent-avatar {
  background: linear-gradient(135deg, rgba(230,126,34,0.2), rgba(230,126,34,0.08));
  border-color: rgba(230,126,34,0.5);
}

.agent-card[data-agent="policy"].active { background: rgba(74, 144, 217, 0.2); }
.agent-card[data-agent="enterprise"].active { background: rgba(39, 174, 96, 0.2); }
.agent-card[data-agent="property"].active { background: rgba(230, 126, 34, 0.2); }

.agent-avatar {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--glass-border);
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.agent-card:hover .agent-avatar {
  transform: scale(1.06) rotate(2deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.agent-card.active .agent-avatar {
  box-shadow: 0 0 20px var(--active-color, #4A90D9);
  animation: avatarGlow 2s ease-in-out infinite alternate;
}

@keyframes avatarGlow {
  from { box-shadow: 0 0 10px var(--active-color, #4A90D9); }
  to { box-shadow: 0 0 25px var(--active-color, #4A90D9); }
}

.avatar-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  overflow: visible;
}

/* Agent 鍛煎惛鍔ㄧ敾 */
.agent-card.active .avatar-svg {
  animation: agentBreathe 2s ease-in-out infinite;
}

@keyframes agentBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* SVG 鍔ㄦ€佽楗帮細鍏夌幆銆侀棯鍏夈€佹紓娴偣 */
.aura {
  transform-origin: center;
  animation: auraPulse 3s ease-in-out infinite;
}

@keyframes auraPulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.08); opacity: 0.5; }
}

.sparkle {
  animation: sparkleTwinkle 1.5s ease-in-out infinite alternate;
}

.sparkle-ring {
  animation: sparkleRing 1.5s ease-in-out infinite alternate;
}

@keyframes sparkleTwinkle {
  from { transform: scale(1); }
  to { transform: scale(1.3); }
}

@keyframes sparkleRing {
  from { transform: scale(1); opacity: 0.3; }
  to { transform: scale(1.6); opacity: 0; }
}

.float-dot {
  animation: floatDot 3s ease-in-out infinite;
  transform-origin: center;
}

.float-dot.d1 { animation-delay: 0s; }
.float-dot.d2 { animation-delay: 1s; }
.float-dot.d3 { animation-delay: 2s; }

@keyframes floatDot {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-10px) scale(1.2); opacity: 1; }
}

.eye-pupil {
  animation: eyeBlink 4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes eyeBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

.bar {
  transform-origin: bottom;
  animation: barGrow 2s ease-in-out infinite alternate;
}

.bar.b1 { animation-delay: 0s; }
.bar.b2 { animation-delay: 0.2s; }
.bar.b3 { animation-delay: 0.4s; }
.bar.b4 { animation-delay: 0.6s; }
.bar.b5 { animation-delay: 0.8s; }

@keyframes barGrow {
  from { transform: scaleY(1); }
  to { transform: scaleY(1.3); }
}

.agent-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.agent-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 0;
  letter-spacing: 0.5px;
}

.agent-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.desc-line {
  position: relative;
  padding-left: 10px;
}

.desc-line::before {
  content: '鈥?;
  position: absolute;
  left: 0;
  color: var(--active-color, var(--text-muted));
  font-size: 8px;
  top: 0;
}

.agent-card.active .desc-line {
  color: var(--text-secondary);
}

.agent-card.active .desc-line::before {
  color: var(--active-color, var(--text-secondary));
}

/* 蹇嵎鍦烘櫙 */
.quick-actions {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
}

.quick-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.quick-btn {
  display: block;
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.quick-btn:hover {
  background: rgba(255,255,255,0.15);
  color: var(--text-primary);
  transform: translateX(4px);
}

/* ===== 涓棿瀵硅瘽鍖哄煙 ===== */
.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

.chat-header {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: rgba(15, 12, 41, 0.5);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
  gap: 14px;
  position: relative;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 0 1 auto;
}
.chat-header-left .chat-agent-avatar { flex-shrink: 0; }
.chat-header-left > div { min-width: 0; flex: 1 1 auto; }
.chat-header-left h2 {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-header-left .chat-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 企业下拉：始终在 chat-header 水平居中（绝对定位） */
.chat-header-enterprise {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.chat-header-enterprise .enterprise-label {
  font-size: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.chat-header-enterprise select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(96,165,250,.12);
  border: 1px solid rgba(96,165,250,.45);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 4px 24px 4px 10px;
  font-size: 12px;
  cursor: pointer;
  min-width: 160px;
  max-width: 200px;
  outline: none;
  transition: all .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  text-overflow: ellipsis;
}
.chat-header-enterprise select:hover,
.chat-header-enterprise select:focus {
  background: rgba(96,165,250,.2);
  border-color: rgba(96,165,250,.65);
}
.chat-header-enterprise select option {
  background: #1e293b;
  color: #e2e8f0;
}
.chat-header-enterprise .enterprise-tip {
  font-size: 10px;
  color: #34d399;
  background: rgba(52,211,153,.15);
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
}

/* 让 AI 状态变紧凑：默认文字较短时只显示 ●；超宽时再加文字 */
.connection-status {
  flex-shrink: 1;
  min-width: 0;
}
.connection-status .status-text {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

/* 极窄屏：企业下拉整体换到第二行，避免横向挤爆 */
@media (max-width: 1100px) {
  .chat-header {
    display: flex;
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .chat-header-enterprise {
    width: 100%;
    order: 99;
    flex-wrap: wrap;
  }
  .chat-header-enterprise select { flex: 1; min-width: 160px; }
}

.chat-agent-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;        /* 圆角矩形（不是椭圆/圆形） */
  overflow: hidden;
  flex-shrink: 0;
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.chat-agent-avatar svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chat-header h2 {
  font-size: 17px;
  font-weight: 700;
}

.chat-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* 鑱婂ぉ澶撮儴鍗￠€氬姩鐢?*/
.chat-aura {
  transform-origin: center;
  animation: auraPulse 3s ease-in-out infinite;
}

.chat-sparkle {
  animation: sparkleTwinkle 1.5s ease-in-out infinite alternate;
}

.chat-sparkle-ring {
  animation: sparkleRing 1.5s ease-in-out infinite alternate;
}

.chat-eye-pupil {
  animation: eyeBlink 4s ease-in-out infinite;
  transform-origin: center;
}

.chat-header-left .chat-agent-avatar {
  animation: chatAvatarBreathe 2.5s ease-in-out infinite;
}

@keyframes chatAvatarBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.chat-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;       /* 紧贴右边缘 */
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 11px;
  color: var(--text-muted);
  transition: var(--transition);
  user-select: none;
}

.connection-status.online {
  border-color: rgba(46, 213, 115, 0.4);
  background: rgba(46, 213, 115, 0.1);
  color: #2ed573;
}

.connection-status.offline {
  border-color: rgba(255, 71, 87, 0.4);
  background: rgba(255, 71, 87, 0.1);
  color: #ff4757;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.connection-status.online .status-dot {
  background: #2ed573;
  box-shadow: 0 0 6px #2ed573;
}

.connection-status.offline .status-dot {
  background: #ff4757;
  box-shadow: 0 0 6px #ff4757;
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  opacity: 0.7;
  transition: var(--transition);
}

.toggle-password:hover {
  opacity: 1;
  color: var(--text-primary);
}

.header-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-btn:hover {
  background: rgba(255,255,255,0.15);
  color: var(--text-primary);
}

/* 娑堟伅瀹瑰櫒 */
.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.messages-container::-webkit-scrollbar {
  width: 6px;
}

.messages-container::-webkit-scrollbar-track {
  background: transparent;
}

.messages-container::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}

/* 娑堟伅姘旀场 */
.message {
  display: flex;
  gap: 10px;
  max-width: 85%;
  animation: msgSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.message.agent {
  align-self: flex-start;
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.message.agent .message-avatar {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.message.user .message-avatar {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.message-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  line-height: 1.7;
  font-size: 14px;
  position: relative;
  word-break: break-word;
}

.message.agent .message-bubble {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-top-left-radius: 4px;
}

.message.user .message-bubble {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-top-right-radius: 4px;
}

.message-bubble a {
  color: #74b9ff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(116, 185, 255, 0.5);
  transition: var(--transition);
}

.message-bubble a:hover {
  color: #a9defb;
  border-bottom-color: #a9defb;
}

.message-bubble {
  position: relative;
}

.bubble-quote-btn {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 2;
}

.message:hover .bubble-quote-btn {
  opacity: 1;
}

.bubble-quote-btn:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: scale(1.1);
}

.message.user .bubble-quote-btn {
  right: auto;
  left: 4px;
}

.message-bubble strong {
  color: #ffd32a;
}

.message-bubble ul, .message-bubble ol {
  padding-left: 20px;
  margin: 8px 0;
}

.message-bubble li {
  margin-bottom: 4px;
}

.message-bubble h4 {
  margin: 12px 0 6px;
  color: #ffd32a;
  font-size: 14px;
}

.message-bubble table {
  border-collapse: collapse;
  margin: 8px 0;
  width: 100%;
  font-size: 12px;
}

.message-bubble th, .message-bubble td {
  border: 1px solid var(--glass-border);
  padding: 6px 10px;
  text-align: left;
}

.message-bubble th {
  background: rgba(255,255,255,0.08);
  font-weight: 600;
}

/* 鎵撳瓧鏈哄厜鏍?*/
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--text-primary);
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 杈撳叆鍖哄煙 */
.input-area {
  padding: 12px 20px 16px;
  background: rgba(15, 12, 41, 0.5);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.input-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

#chatInput {
  flex: 1;
  padding: 12px 16px;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

#chatInput::placeholder {
  color: var(--text-muted);
}

#chatInput:focus {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255, 255, 255, 0.1);
}

.send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.send-btn:active {
  transform: scale(0.95);
}

.input-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* 閫氳瘽鎸夐挳 */
.call-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(46, 213, 115, 0.2), rgba(39, 174, 96, 0.2));
  border: 1px solid rgba(46, 213, 115, 0.4);
  border-radius: 10px;
  color: #2ed573;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(46, 213, 115, 0.2);
}

.call-btn:hover {
  background: linear-gradient(135deg, rgba(46, 213, 115, 0.3), rgba(39, 174, 96, 0.3));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 213, 115, 0.3);
}

.call-btn-icon {
  font-size: 18px;
}

/* 灞呮皯涓婁紶鏂囨。鎸夐挳 */
.upload-doc-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  border: 1px solid rgba(102, 126, 234, 0.4);
  border-radius: 10px;
  color: #667eea;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.upload-doc-btn:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.upload-doc-btn-icon {
  font-size: 18px;
}

/* 灞呮皯涓婁紶鏂囨。寮圭獥 */
.upload-doc-modal .upload-doc-content {
  background: linear-gradient(135deg, rgba(15, 12, 41, 0.95), rgba(48, 43, 99, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  color: var(--text-primary);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  transition: all 0.3s ease;
}

.upload-doc-modal.show .upload-doc-content {
  transform: scale(1);
}

.upload-doc-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.upload-doc-subtitle {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

.upload-doc-drop {
  border: 2px dashed rgba(102, 126, 234, 0.4);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.upload-doc-drop:hover,
.upload-doc-drop.dragover {
  border-color: rgba(102, 126, 234, 0.8);
  background: rgba(102, 126, 234, 0.08);
}

.upload-doc-drop-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.upload-doc-drop-text {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.upload-doc-drop-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.upload-doc-select-btn {
  padding: 8px 18px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-doc-select-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.upload-doc-row {
  margin-bottom: 14px;
}

.upload-doc-row label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.upload-doc-row .doc-select,
.upload-doc-row .doc-textarea {
  width: 100%;
}

.upload-doc-status {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  min-height: 18px;
}

.upload-doc-status.error {
  color: #ff6b6b;
}

.upload-doc-status.success {
  color: #2ed573;
}

.upload-doc-status.processing {
  color: #ffa502;
}

.upload-doc-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-doc-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.upload-doc-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.upload-doc-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(46, 213, 115, 0.9), rgba(39, 174, 96, 0.9));
  color: white;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  z-index: 3000;
}

.upload-doc-toast.show {
  transform: translateX(0);
}

/* 閫氱敤鏂囨。琛ㄥ崟鎺т欢 */
.doc-select,
.doc-textarea {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
}

.doc-select:focus,
.doc-textarea:focus {
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(255, 255, 255, 0.09);
}

.doc-textarea {
  resize: vertical;
}

.doc-textarea::placeholder {
  color: var(--text-muted);
}

/* 閫氳瘽鐣岄潰 */
.call-modal {
  z-index: 2000;
}

.call-interface {
  width: 90%;
  max-width: 420px;
  background: rgba(26, 26, 46, 0.95);
  border: 1px solid rgba(46, 213, 115, 0.3);
  border-radius: 24px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
}

.call-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.call-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(46, 213, 115, 0.2), rgba(39, 174, 96, 0.2));
  border: 2px solid rgba(46, 213, 115, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  animation: pulse-call 2s ease-in-out infinite;
}

@keyframes pulse-call {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 16px rgba(46, 213, 115, 0); }
}

.call-title {
  font-size: 22px;
  font-weight: 700;
  color: white;
}

.call-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.call-timer {
  font-size: 42px;
  font-weight: 700;
  font-family: 'SF Mono', monospace;
  color: white;
  text-align: center;
}

.call-status {
  display: flex;
  gap: 12px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b6b;
}

.status-dot.recording {
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.status-text {
  font-size: 13px;
  color: #ff6b6b;
  font-weight: 600;
}

.call-transcript-section {
  width: 100%;
  max-height: 180px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.transcript-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.transcript-content {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-primary);
}

.interim-transcript {
  color: rgba(255, 255, 255, 0.6);
}

.call-controls {
  display: flex;
  gap: 24px;
  align-items: center;
}

.call-btn-control {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mute-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.mute-btn:hover, .mute-btn.active {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.speaker-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.speaker-btn:hover, .speaker-btn.active {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.hangup-btn {
  background: rgba(231, 76, 60, 0.2);
  color: #ff6b6b;
  border: 2px solid rgba(231, 76, 60, 0.4);
}

.hangup-btn:hover {
  background: rgba(231, 76, 60, 0.3);
  transform: scale(1.05);
}

.btn-icon {
  font-size: 24px;
}

/* 閫氳瘽瀹屾垚閫氱煡 */
.call-complete-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(46, 213, 115, 0.95);
  border: 1px solid rgba(46, 213, 115, 0.5);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(46, 213, 115, 0.4);
  backdrop-filter: blur(16px);
  z-index: 2001;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.call-complete-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.notification-icon {
  font-size: 28px;
}

.notification-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-title {
  font-size: 15px;
  font-weight: 600;
  color: white;
}

.notification-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

/* 閫氳瘽鍘嗗彶鍏ュ彛 */
.call-history-entry {
  margin: 0 20px 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(46, 213, 115, 0.15) 0%, rgba(39, 174, 96, 0.15) 100%);
  border: 1px solid rgba(46, 213, 115, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(46, 213, 115, 0.2);
}

.call-history-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(46, 213, 115, 0.4);
  border-color: rgba(46, 213, 115, 0.6);
}

.call-history-entry-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.call-history-entry-text {
  flex: 1;
}

.call-history-entry-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.call-history-entry-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.call-history-entry-arrow {
  font-size: 24px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.call-history-entry:hover .call-history-entry-arrow {
  transform: translateX(6px);
  color: var(--text-primary);
}

/* 首页智能模块入口（自适应模向排列） */
.module-entries {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin: 0 16px 16px;
  align-items: stretch;
}

@media (max-width: 1400px) {
  .module-entries {
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
  }
}

@media (max-width: 1200px) {
  .module-entries {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

@media (max-width: 900px) {
  .module-entries {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .module-entries {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 0 12px 12px;
  }
}

@media (max-width: 400px) {
  .module-entries {
    grid-template-columns: 1fr;
  }
}

.module-entry {
  min-width: 0;
  min-height: 90px;
  padding: 10px 6px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.module-entry::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: 0.5s;
}

.module-entry:hover::before {
  left: 100%;
}

.module-entry.parking {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  border: 1px solid rgba(102, 126, 234, 0.4);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.module-entry.parking:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
  border-color: rgba(102, 126, 234, 0.7);
}

.module-entry.call {
  background: linear-gradient(135deg, rgba(46, 213, 115, 0.15) 0%, rgba(39, 174, 96, 0.15) 100%);
  border: 1px solid rgba(46, 213, 115, 0.3);
  box-shadow: 0 4px 16px rgba(46, 213, 115, 0.2);
}

.module-entry.call:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(46, 213, 115, 0.4);
  border-color: rgba(46, 213, 115, 0.6);
}

.module-entry.doc {
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.15) 0%, rgba(230, 126, 34, 0.15) 100%);
  border: 1px solid rgba(241, 196, 15, 0.3);
  box-shadow: 0 4px 16px rgba(241, 196, 15, 0.2);
}

.module-entry.doc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(241, 196, 15, 0.4);
  border-color: rgba(241, 196, 15, 0.6);
}

.module-entry.policy-hub {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  border: 1px solid rgba(102, 126, 234, 0.4);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.module-entry.policy-hub:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
  border-color: rgba(102, 126, 234, 0.7);
}

.module-entry.assistant-builder {
  background: linear-gradient(135deg, rgba(0, 206, 209, 0.2) 0%, rgba(32, 178, 170, 0.2) 100%);
  border: 1px solid rgba(0, 206, 209, 0.4);
  box-shadow: 0 4px 16px rgba(0, 206, 209, 0.2);
}

.module-entry.assistant-builder:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 206, 209, 0.4);
  border-color: rgba(0, 206, 209, 0.7);
}

.module-entry.report-writer {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.2) 0%, rgba(255, 140, 0, 0.2) 100%);
  border: 1px solid rgba(255, 165, 0, 0.4);
  box-shadow: 0 4px 16px rgba(255, 165, 0, 0.2);
}

.module-entry.report-writer:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 165, 0, 0.4);
  border-color: rgba(255, 165, 0, 0.7);
}

.module-entry.smart-writing {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.2) 0%, rgba(156, 39, 176, 0.2) 100%);
  border: 1px solid rgba(233, 30, 99, 0.4);
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.2);
}

.module-entry.smart-writing:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(233, 30, 99, 0.4);
  border-color: rgba(233, 30, 99, 0.7);
}

.module-entry.park-map {
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.2) 0%, rgba(0, 150, 136, 0.2) 100%);
  border: 1px solid rgba(0, 188, 212, 0.4);
  box-shadow: 0 4px 16px rgba(0, 188, 212, 0.2);
}

.module-entry.park-map:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 188, 212, 0.4);
  border-color: rgba(0, 188, 212, 0.7);
}

.module-entry.data-insight {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
  border: 1px solid rgba(255, 193, 7, 0.4);
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.2);
}

.module-entry.data-insight:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 193, 7, 0.4);
  border-color: rgba(255, 193, 7, 0.7);
}

.module-entry.inbox {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(56, 142, 60, 0.2) 100%);
  border: 1px solid rgba(76, 175, 80, 0.4);
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.2);
}

.module-entry.inbox:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(76, 175, 80, 0.4);
  border-color: rgba(76, 175, 80, 0.7);
}

.module-entry.enterprise-match {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.2) 0%, rgba(156, 39, 176, 0.2) 100%);
  border: 1px solid rgba(233, 30, 99, 0.4);
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.2);
}

.module-entry.enterprise-match:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(233, 30, 99, 0.4);
  border-color: rgba(233, 30, 99, 0.7);
}

.module-entry.park-mgmt {
  background: linear-gradient(135deg, rgba(63, 81, 181, 0.2) 0%, rgba(48, 63, 159, 0.2) 100%);
  border: 1px solid rgba(63, 81, 181, 0.4);
  box-shadow: 0 4px 16px rgba(63, 81, 181, 0.2);
}

.module-entry.park-mgmt:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(63, 81, 181, 0.4);
  border-color: rgba(63, 81, 181, 0.7);
}

.module-entry.activity-proc {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(124, 58, 237, 0.25) 100%);
  border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
}

.module-entry.activity-proc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
  border-color: rgba(139, 92, 246, 0.8);
}

.module-entry-icon {
  font-size: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.module-entry-text {
  width: 100%;
  min-width: 0;
}

.module-entry-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.module-entry-desc {
  display: none;
}

.module-entry-arrow {
  display: none;
}

/* 在中等屏幕（4列）恢复横向布局和描述显示 */
@media (max-width: 1200px) {
  .module-entry {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    min-height: 72px;
    padding: 10px 12px;
    gap: 10px;
  }
  .module-entry-icon {
    font-size: 22px;
    width: 36px;
    height: 36px;
    margin-bottom: 0;
  }
  .module-entry-text {
    flex: 1;
    width: auto;
  }
  .module-entry-title {
    font-size: 12px;
    margin-bottom: 2px;
  }
  .module-entry-desc {
    display: -webkit-box;
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .module-entry-arrow {
    display: block;
    font-size: 16px;
  }
}

/* ===== 鍙充晶淇℃伅闈㈡澘 ===== */
.info-panel {
  width: 300px;
  background: rgba(15, 12, 41, 0.6);
  backdrop-filter: blur(16px);
  border-left: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: var(--transition);
  overflow: hidden;
}

.info-panel.hidden {
  width: 0;
  border-left: none;
}

.info-tabs {
  display: flex;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.info-tab {
  flex: 1;
  padding: 12px 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  font-family: inherit;
}

.info-tab:hover {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
}

.info-tab.active {
  color: var(--text-primary);
  border-bottom-color: #667eea;
  background: rgba(255,255,255,0.06);
}

.info-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.info-content::-webkit-scrollbar {
  width: 4px;
}

.info-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

/* 鏀跨瓥鍗＄墖 */
.policy-card {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.policy-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateX(4px);
}

.policy-card h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #ffd32a;
}

.policy-card p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.policy-card .policy-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  margin-top: 4px;
  background: rgba(74, 144, 217, 0.2);
  color: #74b9ff;
}

/* 浼佷笟鍗＄墖 */
.enterprise-card {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.enterprise-card:hover {
  background: rgba(255,255,255,0.12);
}

.enterprise-card h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.enterprise-card p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.enterprise-card .stage-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  margin-top: 4px;
}

.stage-seed { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; }
.stage-startup { background: rgba(74, 144, 217, 0.2); color: #74b9ff; }
.stage-growth { background: rgba(39, 174, 96, 0.2); color: #6bff9e; }

/* 宸ュ崟鍗＄墖 */
.ticket-card {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  border-left: 3px solid;
}

.ticket-card.p0 { border-left-color: #ff4757; }
.ticket-card.p1 { border-left-color: #ffa502; }
.ticket-card.p2 { border-left-color: #2ed573; }

.ticket-card h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.ticket-card p {
  font-size: 11px;
  color: var(--text-muted);
}

.ticket-card .ticket-id {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== 寮圭獥 ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

.modal-overlay.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(135deg, #1a1a3e, #302b63);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--glass-shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255,255,255,0.2);
  color: white;
  transform: rotate(90deg) scale(1.1);
}

.modal-content h2 {
  font-size: 20px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #4A90D9, #27AE60, #E67E22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-content h3 {
  font-size: 15px;
  margin: 16px 0 8px;
  color: #ffd32a;
}

.modal-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.modal-content ul {
  padding-left: 20px;
  margin: 8px 0;
}

.modal-content li {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.6;
}

.enterprise-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.enterprise-links a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  color: #74b9ff;
  text-decoration: none;
  font-size: 12px;
  transition: var(--transition);
}

.enterprise-links a {
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
}

.enterprise-links a:hover {
  background: rgba(255,255,255,0.15);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.enterprise-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px dashed var(--glass-border);
  border-radius: 16px;
  color: var(--text-muted);
  font-size: 12px;
}

.version {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: right;
}

/* ===== 鍔犺浇鍔ㄧ敾 ===== */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  align-items: center;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingDot 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ===== 鍝嶅簲寮?===== */
@media (max-width: 900px) {
  .info-panel { display: none; }
  .agent-panel { width: 200px; }
}

@media (max-width: 600px) {
  .agent-panel { display: none; }
  .top-bar { padding: 8px 12px; }
  .logo-text h1 { font-size: 14px; }
  .nav-links { gap: 8px; }
  .nav-link { font-size: 11px; padding: 4px 10px; }
}

/* ===== 婊氬姩鏉＄編鍖?===== */
.agent-panel::-webkit-scrollbar { width: 4px; }
.agent-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* ===== 娆㈣繋娑堟伅鐗规畩鏍峰紡 ===== */
.welcome-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 8px;
}

.welcome-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #ffd32a;
}

.welcome-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.welcome-subtitle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  margin-bottom: 10px;
}

.welcome-subtitle-line {
  font-size: 12px;
  color: var(--text-muted);
  position: relative;
  padding-left: 12px;
  line-height: 1.6;
}

.welcome-subtitle-line::before {
  content: '鈥?;
  position: absolute;
  left: 0;
  color: var(--text-secondary);
  font-size: 10px;
  top: 0;
}

/* ===== 首页欢迎卡片：左右分栏、压缩行数 ===== */
.welcome-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  text-align: left;
  padding: 16px 20px;
  gap: 16px;
}

.welcome-hero-left {
  flex: 0 0 auto;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.welcome-hero-left h3 {
  font-size: 16px;
  margin: 0 0 2px 0;
  color: #ffd32a;
  line-height: 1.35;
  white-space: nowrap;
}

.welcome-hero-left p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  word-break: keep-all;
  white-space: nowrap;
}

.welcome-hero-right {
  flex: 1 1 280px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.welcome-agent-pill {
  flex: 0 1 120px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  white-space: nowrap;
  transition: var(--transition);
}

.welcome-agent-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.welcome-agent-pill span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.welcome-hero-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.85;
  margin-top: 2px;
}

.welcome-hero-footer span {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .welcome-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .welcome-hero-left {
    flex: 1 1 auto;
  }
  .welcome-hero-left h3 {
    white-space: normal;
  }
  .welcome-hero-left p {
    white-space: normal;
  }
  .welcome-hero-right {
    width: 100%;
    justify-content: space-between;
  }
  .welcome-agent-pill {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 4px;
    font-size: 12px;
  }
  .welcome-hero-footer {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
}

/* 保留给 Agent 详情页复用 */
.welcome-agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0 8px;
}

.welcome-agent-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  transition: var(--transition);
}

.welcome-agent-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.welcome-agent-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
}

.welcome-agent-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
}

.welcome-footer-line {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.85;
  margin-top: 6px;
}

/* ===== 娑堟伅鍐呴摼鎺ユ牱寮?===== */
.msg-link {
  display: inline-block;
  padding: 2px 8px;
  margin: 2px;
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  color: #74b9ff;
  text-decoration: none;
  font-size: 12px;
  transition: var(--transition);
}

.msg-link:hover {
  background: rgba(102, 126, 234, 0.3);
  color: white;
}

/* ===== 涓氬姟娴佹偓娴寜閽?===== */
.business-fab {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  animation: fabPulse 2s ease-in-out infinite;
  user-select: none;
}

.business-fab:active {
  cursor: grabbing;
}

.business-fab:hover .fab-tooltip,
.business-fab.dragging .fab-tooltip {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.business-fab:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 12px 48px rgba(102, 126, 234, 0.6);
}

.business-fab.dragging {
  animation: none;
  transform: scale(1.05);
  box-shadow: 0 16px 56px rgba(102, 126, 234, 0.7);
}

/* 杈撳叆鍖哄煙璇煶鎸夐挳甯冨眬 */
.input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.input-wrapper input {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}

.input-wrapper input::placeholder {
  color: var(--text-muted);
}

.voice-btn,
.send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.voice-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.voice-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  transform: scale(1.05);
}

.voice-btn.recording {
  background: #e74c3c;
  border-color: #c0392b;
  color: white;
  animation: voiceRecording 1.5s ease-in-out infinite;
}

@keyframes voiceRecording {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.send-btn {
  background: var(--policy-color);
  color: white;
}

.send-btn:hover {
  background: var(--policy-light);
  color: var(--policy-color);
  transform: scale(1.05);
}

.voice-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 20px;
  margin-bottom: 8px;
  animation: slideDown 0.3s ease-out;
}

/* 寮曠敤鍥炲 */
.quote-preview {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  margin: 0 0 8px 0;
  background: rgba(102, 126, 234, 0.12);
  border-left: 3px solid #667eea;
  border-radius: 10px;
  animation: slideDown 0.25s ease-out;
}

.quote-preview.hidden {
  display: none;
}

.quote-preview-line {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.quote-label {
  flex-shrink: 0;
  padding: 2px 8px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.quote-text {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quote-close {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: var(--transition);
}

.quote-close:hover {
  background: rgba(231, 76, 60, 0.2);
  color: #ff6b6b;
}

/* 琚紩鐢ㄧ殑娑堟伅楂樹寒 */
.message-bubble.quoted {
  box-shadow: 0 0 0 2px #667eea, 0 4px 16px rgba(102, 126, 60, 0.25);
  animation: quotePulse 0.4s ease-out;
}

@keyframes quotePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* 鍙抽敭寮曠敤鑿滃崟 */
.context-menu {
  position: fixed;
  z-index: 9999;
  min-width: 130px;
  background: rgba(30, 30, 50, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  overflow: hidden;
  animation: fadeIn 0.15s ease-out;
}

.context-menu-item {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.context-menu-item:hover {
  background: rgba(102, 126, 234, 0.25);
}

.context-menu-item + .context-menu-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* 寮曠敤鏍囪 */
.quote-citation {
  font-size: 12px;
  color: #9fb3ff;
  margin-bottom: 6px;
  padding: 4px 10px;
  background: rgba(102, 126, 234, 0.15);
  border-radius: 6px;
  display: inline-block;
}

/* 棣栭〉鏅烘収鍋滆溅鍏ュ彛 */
.parking-entry {
  margin: 0 20px 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  border: 1px solid rgba(102, 126, 234, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
  position: relative;
  overflow: hidden;
}

.parking-entry::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: 0.5s;
}

.parking-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
  border-color: rgba(102, 126, 234, 0.7);
}

.parking-entry:hover::before {
  left: 100%;
}

.parking-entry-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.parking-entry-text {
  flex: 1;
}

.parking-entry-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.parking-entry-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.parking-entry-arrow {
  font-size: 24px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.parking-entry:hover .parking-entry-arrow {
  transform: translateX(6px);
  color: var(--text-primary);
}

.voice-status.hidden {
  display: none;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.voice-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e74c3c;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.voice-text {
  font-size: 12px;
  color: #e74c3c;
}

.input-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

.fab-tooltip {
  position: absolute;
  bottom: 74px;
  right: 0;
  white-space: nowrap;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1001;
}

.fab-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 22px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.2);
}

@keyframes fabPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===== 涓氬姟娴侀潰鏉?===== */
.business-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100vh;
  background: linear-gradient(180deg, rgba(26, 26, 62, 0.98) 0%, rgba(15, 12, 41, 0.98) 100%);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  z-index: 999;
  overflow-y: auto;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.business-panel.hidden {
  transform: translateX(420px);
}

.business-panel-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.business-panel-header h3 {
  font-size: 18px;
  margin: 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.panel-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: rotate(90deg);
}

.business-panel-content {
  padding: 20px;
}

.business-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.business-section:last-child {
  border-bottom: none;
}

.business-section h4 {
  font-size: 15px;
  margin-bottom: 12px;
  color: #ffffff;
}

.business-section h5 {
  font-size: 13px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== 鍝嶅簲寮?===== */
@media (max-width: 768px) {
  .business-panel {
    width: 100%;
  }
  
  .business-panel.hidden {
    transform: translateX(100%);
  }
  
  .business-fab {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
}

/* ===== Select 涓嬫媺妗嗘牱寮?===== */
select,
#enterpriseSelect,
#aiProviderSelect {
  background: rgba(15, 12, 41, 0.95) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

select option,
#enterpriseSelect option,
#aiProviderSelect option {
  background: #1a1a3e !important;
  color: #ffffff !important;
  padding: 8px 12px !important;
}

select option:hover,
select option:focus,
select option:checked,
#enterpriseSelect option:hover,
#enterpriseSelect option:focus,
#enterpriseSelect option:checked,
#aiProviderSelect option:hover,
#aiProviderSelect option:focus,
#aiProviderSelect option:checked {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: #ffffff !important;
}

/* 娲诲姩褰掗泦 - 鍐呰仈瀛楁 */
.act-inline-fields {
  display: flex;
  gap: 16px;
  margin: 8px 0;
  align-items: flex-end;
}
.act-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.act-field .rw-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}
.act-field input[type="date"] {
  padding: 6px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
}


/* 园区智能管理驾驶舱 */
.module-entry.dashboard {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.2) 0%, rgba(103, 58, 183, 0.2) 100%);
  border-color: rgba(156, 39, 176, 0.4);
}
.module-entry.dashboard:hover {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.3) 0%, rgba(103, 58, 183, 0.3) 100%);
  border-color: rgba(156, 39, 176, 0.6);
}

/* 需求雷达 */
.module-entry.demand-radar {
  background: linear-gradient(135deg, rgba(0, 150, 136, 0.2) 0%, rgba(0, 121, 107, 0.2) 100%);
  border-color: rgba(0, 150, 136, 0.4);
}
.module-entry.demand-radar:hover {
  background: linear-gradient(135deg, rgba(0, 150, 136, 0.3) 0%, rgba(0, 121, 107, 0.3) 100%);
  border-color: rgba(0, 150, 136, 0.6);
}

/* 人才地图 */
.module-entry.talent-map {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(21, 101, 192, 0.2) 100%);
  border-color: rgba(33, 150, 243, 0.4);
}
.module-entry.talent-map:hover {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.3) 0%, rgba(21, 101, 192, 0.3) 100%);
  border-color: rgba(33, 150, 243, 0.6);
}

/* 园区资讯速递 */
.module-entry.news-feed {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.22) 0%, rgba(245, 124, 0, 0.22) 100%);
  border-color: rgba(255, 152, 0, 0.42);
}
.module-entry.news-feed:hover {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.32) 0%, rgba(245, 124, 0, 0.32) 100%);
  border-color: rgba(255, 152, 0, 0.62);
}

/* 活动智能处理 */
.module-entry.activity-processor {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(230, 126, 34, 0.2) 100%);
  border-color: rgba(255, 152, 0, 0.4);
}
.module-entry.activity-processor:hover {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.3) 0%, rgba(230, 126, 34, 0.3) 100%);
  border-color: rgba(255, 152, 0, 0.6);
}

/* 园区管理系统 */
.module-entry.park-management {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(56, 142, 60, 0.2) 100%);
  border-color: rgba(76, 175, 80, 0.4);
}
.module-entry.park-management:hover {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.3) 0%, rgba(56, 142, 60, 0.3) 100%);
  border-color: rgba(76, 175, 80, 0.6);
}


/* ===== 联网搜索开关 ===== */
.search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  user-select: none;
}
.search-toggle:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}
.search-toggle.active {
  background: rgba(102,126,234,0.2);
  border-color: rgba(102,126,234,0.4);
  color: #74b9ff;
}
.search-toggle .toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background 0.3s;
}
.search-toggle.active .toggle-dot {
  background: #74b9ff;
  box-shadow: 0 0 6px rgba(116,185,255,0.5);
}
