/* TransferPro Modern Light-Tech Stylesheet (Light, Breezy & Futuristic) */

:root {
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --primary-glow: #6366f1;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  
  --text-main: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  
  --border-color: rgba(226, 232, 240, 0.9);
  --border-focus: rgba(99, 102, 241, 0.4);
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-blur: blur(20px) saturate(180%);
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 20px rgba(99, 102, 241, 0.05);
  
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(248, 250, 252, 0.6) 0%, transparent 100%);
  background-attachment: fixed;
}

/* 核心布局容器 */
.container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hidden {
  display: none !important;
}

/* 轻盈玻璃卡片底座 */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  box-shadow: var(--shadow-lg);
}

.text-center {
  text-align: center;
}

.text-secondary {
  color: var(--text-secondary);
  font-size: 14px;
}

/* 头部样式 */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  border-radius: 18px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(79, 70, 229, 0.2));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-logo:hover {
  transform: scale(1.08) rotate(3deg);
}

@media (max-width: 768px) {
  .app-logo {
    width: 34px;
    height: 34px;
  }
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .logo-text {
    font-size: 19px;
  }
}

/* 勋章 / 胶囊标记 */
.badge {
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.badge-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-success {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* 现代爽朗按钮 */
.btn {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--primary-color);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-small {
  padding: 6px 14px;
  font-size: 12.5px;
  border-radius: 8px;
}

/* === Landing 页面 === */
.intro-card {
  padding: 36px 40px;
}

.intro-card h2 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.qr-wrapper {
  padding: 16px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.1);
  margin: 20px 0 14px 0;
  animation: lightPulseBorder 3s infinite alternate;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes lightPulseBorder {
  0% {
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.1), 0 0 0 1px rgba(99, 102, 241, 0.15);
  }
  100% {
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.18), 0 0 0 1.5px rgba(6, 182, 212, 0.3);
  }
}

.qr-code canvas, .qr-code img {
  display: block;
  border-radius: 8px;
}

.qr-placeholder-spinner {
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-link-text {
  font-size: 13px;
  margin-top: 4px;
}

.qr-link-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.qr-link-text a:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

.guide-tip {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* 特性网格 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(241, 245, 249, 0.9);
  border-radius: 16px;
  transition: all 0.25s ease;
}

.feature-card:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.2);
}

.feature-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.feature-icon {
  font-size: 22px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 配对主卡片左右布局 */
.intro-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  width: 100%;
}

.intro-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.intro-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-left: 1px solid rgba(226, 232, 240, 0.8);
  padding-left: 40px;
  height: 100%;
  min-height: 250px;
}

.landing-status-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.status-row {
  font-size: 13.5px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
}

.status-label {
  color: var(--text-secondary);
  font-weight: 500;
  width: 80px;
  flex-shrink: 0;
}

.status-value {
  color: var(--text-main);
  font-weight: 600;
}

.status-value.status-waiting {
  color: var(--error-color);
  animation: statusPulse 2s infinite ease-in-out;
}

.status-value.status-connecting {
  color: var(--warning-color);
}

.status-value.status-connected {
  color: var(--success-color);
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* === 等待配对 (Connecting View) === */
.connecting-card {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #ffffff;
}

.spinner {
  width: 46px;
  height: 46px;
  border: 3.5px solid #e0e7ff;
  border-left-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.9s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
}

/* === 功能主页 (Connected View) === */
.connected-layout {
  display: grid;
  grid-template-columns: 240px 1.2fr 0.8fr;
  gap: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  height: 540px;
}

/* 覆盖子面板，实现 macOS 极简窗口 */
.connected-layout .glass-panel {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 24px 20px;
}

/* 列垂直分割线 */
.devices-panel {
  background: #f8fafc !important;
  border-right: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.transfer-panel {
  border-right: 1px solid rgba(226, 232, 240, 0.8) !important;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #ffffff !important;
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.9);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 爽朗拖拽上传区 */
.dropzone-area {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.dropzone-area:hover, .dropzone-area.dragover {
  border-color: var(--primary-glow);
  background: #f5f3ff;
  transform: scale(1.01);
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.upload-icon {
  font-size: 34px;
  filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.2));
}

.limit-indicator {
  font-size: 12px;
  margin-top: 10px;
  text-align: center;
  color: var(--text-muted);
}

/* 传输记录区 */
.transfer-container {
  margin-top: 16px;
  flex-grow: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.transfer-container h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.transfer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.file-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.file-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.file-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 70%;
}

.file-size {
  font-size: 12px;
  color: var(--text-secondary);
}

.progress-bar-wrapper {
  background: #e2e8f0;
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 100%);
  height: 100%;
  width: 0%;
  transition: width 0.15s ease-out;
  border-radius: 4px;
}

.transfer-stats {
  display: flex;
  font-size: 11.5px;
  color: var(--text-secondary);
  gap: 10px;
  align-items: center;
}

.transfer-success {
  border-color: #a7f3d0;
  background: #f0fdf4;
}

.transfer-error {
  border-color: #fecaca;
  background: #fef2f2;
}

/* 文本/即时消息 */
.chat-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #ffffff !important;
}

.chat-history {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
  margin-bottom: 12px;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.chat-message.bubble-me {
  align-self: flex-end;
}

.chat-message.bubble-peer {
  align-self: flex-start;
}

.chat-message.system {
  align-self: center;
  max-width: 95%;
  font-size: 12px;
  color: var(--text-muted);
}

.chat-meta {
  display: flex;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 3px;
  gap: 6px;
}

.bubble-me .chat-meta {
  justify-content: flex-end;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-all;
  box-shadow: var(--shadow-sm);
}

.bubble-me .chat-bubble {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  border-bottom-right-radius: 3px;
}

.bubble-peer .chat-bubble {
  background: #f1f5f9;
  color: #0f172a;
  border-bottom-left-radius: 3px;
  border: 1px solid #e2e8f0;
}

.system .chat-bubble {
  background: #f8fafc;
  color: var(--text-secondary);
  text-align: center;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

.chat-input-area {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.chat-input-area input {
  flex-grow: 1;
  height: 40px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  color: var(--text-main);
  padding: 0 16px;
  font-family: var(--font-family);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.chat-input-area input:focus {
  border-color: var(--primary-glow);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.chat-input-area button {
  height: 40px;
  padding: 0 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* === 微信与弹窗遮罩 === */
.guide-overlay, .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.guide-content, .modal-content {
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}

.warning-icon {
  font-size: 44px;
}

.instructions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e2e8f0;
}

.step-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.divider:not(:empty)::before {
  margin-right: .5em;
}

.divider:not(:empty)::after {
  margin-left: .5em;
}

/* 支付与赞助模块 */
.pay-qr-box {
  display: flex;
  justify-content: center;
}

.qr-mock-glow {
  padding: 12px 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-radius: 30px;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  margin-top: 8px;
  animation: floatPay 3s ease-in-out infinite;
}

/* === 动画定义 === */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes floatPay {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0px); }
}

/* 全屏拖拽上传遮罩 */
.drag-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.drag-overlay:not(.hidden) {
  display: flex;
}

.drag-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drag-overlay-box {
  border: 3px dashed var(--primary-glow);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 60px 40px;
  max-width: 90%;
  width: 420px;
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
  transform: scale(0.94);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.drag-overlay.active .drag-overlay-box {
  transform: scale(1);
}

/* === 设备名录面板 === */
.devices-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.devices-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 4px;
}

.device-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.device-item:hover {
  border-color: #cbd5e1;
  transform: translateX(2px);
}

.device-item.current-device {
  border-color: rgba(99, 102, 241, 0.4);
  background: #f5f3ff;
}

.device-icon {
  font-size: 20px;
}

.device-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  overflow: hidden;
}

.device-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.device-status {
  font-size: 11px;
  color: var(--text-secondary);
}

.device-status.online {
  color: var(--success-color);
  font-weight: 600;
}

.device-status.relay {
  color: var(--warning-color);
  font-weight: 600;
}

/* 目标选择器单项样式 */
.target-peer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.target-peer-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.target-peer-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

/* 手机端 Tab 导航条 */
.mobile-tabs-nav {
  display: none;
  gap: 6px;
  margin-bottom: 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px;
  border-radius: 12px;
}

.tab-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 9px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-nav-btn.active {
  background: #ffffff;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

/* 响应式样式 (移动端适配) */
@media (max-width: 768px) {
  body {
    padding: 12px 8px;
    align-items: flex-start;
  }

  .container {
    gap: 12px;
  }

  .intro-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .intro-right {
    border-left: none;
    border-top: 1px solid #e2e8f0;
    padding-left: 0;
    padding-top: 20px;
    min-height: auto;
  }

  .main-header.glass-panel {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 12px 16px;
    margin-bottom: 0;
  }

  .glass-panel.mobile-tab-content {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 16px;
    border-radius: 18px;
  }

  .mobile-tabs-nav {
    display: flex;
  }

  .mobile-tab-content {
    display: none !important;
  }
  
  .mobile-tab-content.active {
    display: flex !important;
  }
  
  .chat-panel {
    height: calc(100vh - 195px) !important;
    min-height: 320px;
  }
  
  .devices-panel, .transfer-panel {
    max-height: calc(100vh - 195px) !important;
  }

  .dropzone-area {
    padding: 24px 12px;
    border-color: #cbd5e1;
    background: #f8fafc;
  }

  .bubble-me .chat-bubble {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    border-radius: 16px !important;
    border-bottom-right-radius: 4px !important;
  }

  .bubble-peer .chat-bubble {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-radius: 16px !important;
    border-bottom-left-radius: 4px !important;
    border: 1px solid #e2e8f0 !important;
  }
  
  .chat-input-area input {
    border-radius: 20px;
    padding: 8px 14px;
    background: #f8fafc;
    border-color: #cbd5e1;
  }

  .connected-layout {
    grid-template-columns: 1fr !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: auto !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* 隐蔽面板无痕滚动 */
.devices-list::-webkit-scrollbar,
.transfer-list::-webkit-scrollbar,
.chat-history::-webkit-scrollbar {
  width: 0px;
  background: transparent;
  display: none;
}
.devices-list,
.transfer-list,
.chat-history {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* 笔记本小屏高度紧凑压缩 */
@media (max-height: 850px) and (min-width: 769px) {
  body {
    padding: 10px;
  }
  .container {
    gap: 10px;
  }
  .main-header {
    padding: 10px 20px;
  }
  .app-logo {
    width: 34px;
    height: 34px;
  }
  .logo-text {
    font-size: 19px;
  }
  .connected-layout .glass-panel {
    padding: 16px 14px;
  }
  .panel-title {
    font-size: 15px;
    margin-bottom: 10px;
    padding-bottom: 6px;
  }
  .dropzone-area {
    padding: 20px 10px;
  }
  .upload-icon {
    font-size: 28px;
  }
  .connected-layout {
    height: 460px;
  }
}
