:root {
                  --bg-dark: #1e1e1e;
                  --bg-panel: #2d2d30;
                  --bg-item: #333333;
                  --text-main: #cccccc;
                  --text-sub: #999999;
                  --color-red: #e74c3c;
                  --color-red-hover: #c0392b;
                  --color-green: #27ae60;
                  --color-green-hover: #2ecc71;
                  --border-color: #444;
}

body {
                  background-color: var(--bg-dark);
                  color: var(--text-main);
                  margin: 0;
                  padding: 0;
                  height: 100vh;
                  display: flex;
                  flex-direction: column;
                  overflow: hidden;
                  /* 禁止body滚动，由内部容器滚动 */
}

/* === 顶部工具栏 === */
.toolbar {
                  height: 60px;
                  background-color: var(--bg-panel);
                  display: flex;
                  align-items: center;
                  justify-content: space-between;
                  padding: 0 20px;
                  border-bottom: 1px solid #000;
                  flex-shrink: 0;
                  gap: 10px;
                  /* 元素间距 */
                  position: relative;
                  z-index: 5000;
                  overflow: visible;
}

.input-area {
                  display: flex;
                  align-items: center;
                  /* 垂直居中 */
                  gap: 10px;
                  flex: 1;
                  min-width: 0;
}

.toolbar input {
                  width: 300px;
                  flex: 1;
                  /* 允许伸缩 */
                  background-color: #1a1a1a;
                  border: 1px solid var(--border-color);
                  color: #fff;
                  /* 统一高度标准 */
                  height: 36px;
                  line-height: 34px;
                  padding: 0 10px;
                  border-radius: 4px;
                  font-size: 14px;
}

/* === 统一按钮样式 (粘贴、嗅探、上传、Cookie、设置) === */
.btn-paste,
.btn-sniff,
.btn-upload-local,
.btn-cookie,
.btn-settings-toggle {
                  height: 36px;
                  /* 强制统一高度 */
                  padding: 0 15px;
                  /* 统一内边距 */
                  font-size: 14px;
                  /* 统一字号 */
                  border-radius: 4px;
                  /* 统一圆角 */
                  font-weight: 500;
                  cursor: pointer;
                  display: inline-flex;
                  align-items: center;
                  justify-content: center;
                  white-space: nowrap;
                  transition: background 0.2s;
                  border: none;
                  outline: none;
}

/* 颜色定义 */
.btn-paste {
                  background-color: #409EFF;
                  /* 蓝色 */
                  color: white;
}

.btn-paste:hover {
                  background-color: #66b1ff;
}

.btn-sniff {
                  background-color: #8e44ad;
                  /* 紫色 */
                  color: white;
}

.btn-sniff:hover {
                  background-color: #9b59b6;
}

.btn-upload-local {
                  background-color: #e67e22;
                  /* 橙色 */
                  color: white;
}

.btn-upload-local:hover {
                  background-color: #f39c12;
}

.btn-cookie {
                  background-color: #555;
                  /* 默认灰色 */
                  color: white;
}

.btn-cookie:hover {
                  background-color: #666;
}

/* Cookie 加载成功的状态 (绿色) */
.btn-cookie.loaded {
                  background-color: #27ae60 !important;
                  color: white;
                  box-shadow: 0 0 5px rgba(39, 174, 96, 0.5);
}

/* 外援按钮 */
.btn-external {
                  background: transparent;
                  border: 1px solid #9b59b6;
                  color: #9b59b6;
                  padding: 5px 15px;
                  cursor: pointer;
                  border-radius: 4px;
                  font-size: 12px;
                  transition: all 0.3s;
                  font-weight: bold;
                  height: 36px;
                  display: inline-flex;
                  align-items: center;
                  justify-content: center;
}

.btn-external:hover {
                  background: #9b59b6;
                  color: white;
}

.btn-settings-toggle {
                  background: transparent;
                  border: 1px solid var(--color-green);
                  color: var(--color-green);
}

.btn-settings-toggle:hover,
.btn-settings-toggle.active {
                  background-color: var(--color-green);
                  color: white;
}

/* === 中间列表区域 === */
.list-container {
                  flex: 1;
                  overflow-y: auto;
                  padding: 20px;
                  display: flex;
                  flex-direction: column;
                  gap: 10px;
}

/* 单个视频任务条目 */
.task-item {
                  background-color: var(--bg-item);
                  border: 1px solid var(--border-color);
                  height: 80px;
                  display: flex;
                  align-items: center;
                  padding: 10px;
                  border-radius: 4px;
                  position: relative;
}

.task-thumb {
                  width: 100px;
                  height: 60px;
                  background-color: #000;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  margin-right: 15px;
                  color: #555;
                  font-size: 24px;
                  overflow: hidden;
                  border-radius: 4px;
}

.task-thumb img {
                  width: 100%;
                  height: 100%;
                  object-fit: cover;
}

.task-thumb svg {
                  width: 100%;
                  height: 100%;
                  padding: 12px;
                  box-sizing: border-box;
}

.task-info {
                  flex: 1;
                  display: flex;
                  flex-direction: column;
                  justify-content: center;
                  overflow: hidden;
}

.task-url {
                  font-size: 14px;
                  color: #fff;
                  margin-bottom: 5px;
                  white-space: nowrap;
                  overflow: hidden;
                  text-overflow: ellipsis;
}

.task-status {
                  font-size: 12px;
                  color: var(--text-sub);
}

.task-controls {
                  display: flex;
                  gap: 10px;
                  margin-left: 15px;
}

.icon-btn {
                  background: none;
                  border: none;
                  cursor: pointer;
                  font-size: 18px;
                  color: var(--text-sub);
                  transition: color 0.2s;
}

.icon-btn:hover {
                  color: #fff;
}

/* === 底部状态栏 === */
.footer {
                  height: 50px;
                  background-color: var(--bg-panel);
                  border-top: 1px solid #000;
                  display: flex;
                  align-items: center;
                  justify-content: space-between;
                  padding: 0 20px;
                  flex-shrink: 0;
                  font-size: 13px;
}

.footer-info {
                  display: flex;
                  gap: 20px;
}

/* === 底部状态栏按钮 (修改为清除) === */
.btn-clear-all {
                  background-color: #444;
                  color: #fff;
                  border: none;
                  padding: 8px 20px;
                  cursor: pointer;
                  border-radius: 2px;
                  transition: background 0.2s;
}

.btn-clear-all:hover {
                  background-color: #c0392b;
                  /* 悬停变红 */
}

/* === 弹窗样式 (复刻截图2) === */
.modal-overlay {
                  position: fixed;
                  top: 0;
                  left: 0;
                  right: 0;
                  bottom: 0;
                  background: rgba(0, 0, 0, 0.5);
                  display: none;
                  align-items: center;
                  justify-content: center;
                  z-index: 1000;
}

.settings-modal {
                  background-color: var(--bg-panel);
                  width: 550px;
                  padding: 20px;
                  border-radius: 4px;
                  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
                  color: #ccc;
}

.modal-header {
                  font-size: 16px;
                  font-weight: bold;
                  margin-bottom: 20px;
                  padding-bottom: 10px;
                  border-bottom: 1px solid var(--border-color);
}

.form-row {
                  display: flex;
                  align-items: center;
                  margin-bottom: 15px;
}

.form-row label {
                  width: 60px;
                  text-align: right;
                  margin-right: 15px;
                  font-weight: bold;
}

.form-row select,
.form-row input {
                  flex: 1;
                  max-width: calc(100% - 100px); /* [修改] 减少100像素宽度 */
                  background-color: #1a1a1a;
                  border: 1px solid var(--border-color);
                  color: #ccc;
                  padding: 5px;
}

.modal-footer {
                  display: flex;
                  justify-content: center;
                  gap: 10px;
                  margin-top: 20px;
}

.btn-modal-ok {
                  background-color: var(--color-red);
                  color: white;
                  border: none;
                  padding: 6px 20px;
                  border-radius: 2px;
                  cursor: pointer;
}

.btn-modal-cancel {
                  background-color: #555;
                  color: white;
                  border: none;
                  padding: 6px 20px;
                  border-radius: 2px;
                  cursor: pointer;
}

/* === 新增：圆形进度按钮样式 (Step 1) === */
.task-controls {
                  display: flex;
                  gap: 15px;
                  align-items: center;
                  margin-left: 20px;
}

/* 按钮容器 */
.progress-btn {
                  position: relative;
                  width: 40px;
                  height: 40px;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  background: none;
                  border: none;
                  cursor: pointer;
                  padding: 0;
                  outline: none;
}

/* SVG 圆环 */
.progress-ring {
                  position: absolute;
                  top: 0;
                  left: 0;
                  transform: rotate(-90deg);
                  /* 从顶部开始旋转 */
}

/* 背景圆环 (灰色) */
.ring-bg {
                  stroke: #444;
                  stroke-width: 3;
                  fill: transparent;
}

/* 进度圆环 (绿色) */
.ring-val {
                  stroke: var(--color-green);
                  stroke-width: 3;
                  fill: transparent;
                  stroke-dasharray: 113;
                  /* 2 * PI * r(18) ≈ 113 */
                  stroke-dashoffset: 113;
                  /* 默认全空 */
                  transition: stroke-dashoffset 0.3s linear;
                  stroke-linecap: round;
}

/* 按钮中间的图标 (下载/暂停) */
.icon-inner {
                  font-size: 14px;
                  color: #888;
                  z-index: 2;
                  transition: color 0.2s;
                  font-family: "Segoe UI Symbol", sans-serif;
                  /* 确保符号显示 */
}

.progress-btn:hover .icon-inner {
                  color: #fff;
}

/* 删除按钮样式微调 */
.btn-delete {
                  font-size: 18px;
                  color: #666;
                  background: none;
                  border: none;
                  cursor: pointer;
}

.btn-delete:hover {
                  color: #e74c3c;
}

.task-controls {
                  display: flex;
                  gap: 15px;
                  align-items: center;
                  margin-left: 20px;
}

/* Button Container */
.progress-btn {
                  position: relative;
                  width: 40px;
                  height: 40px;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  background: none;
                  border: none;
                  cursor: pointer;
                  padding: 0;
                  outline: none;
}

/* SVG Ring Container */
.progress-ring {
                  position: absolute;
                  top: 0;
                  left: 0;
                  transform: rotate(-90deg);
                  /* Rotate to start from top */
}

/* Background Ring (Grey) */
.ring-bg {
                  stroke: #444;
                  stroke-width: 3;
                  fill: transparent;
}

/* Progress Ring (Green) */
.ring-val {
                  stroke: var(--color-green);
                  stroke-width: 3;
                  fill: transparent;
                  stroke-dasharray: 113;
                  /* Circumference: 2 * PI * 18 ≈ 113 */
                  stroke-dashoffset: 113;
                  /* Default empty */
                  transition: stroke-dashoffset 0.3s linear;
                  stroke-linecap: round;
}

/* Inner Icon (Download/Pause) */
.icon-inner {
                  font-size: 14px;
                  color: #888;
                  z-index: 2;
                  transition: color 0.2s;
                  font-family: "Segoe UI Symbol", sans-serif;
}

.progress-btn:hover .icon-inner {
                  color: #fff;
}

/* Delete Button */
.btn-delete {
                  font-size: 18px;
                  color: #666;
                  background: none;
                  border: none;
                  cursor: pointer;
                  transition: color 0.2s;
}

.btn-delete:hover {
                  color: #e74c3c;
}

/* === [Step 1 Additions] Empty State Guide Styles === */
.empty-state {
                  display: flex;
                  flex-direction: column;
                  align-items: center;
                  justify-content: center;
                  color: #ccc;
                  margin-top: 40px;
                  width: 100%;
}

.empty-title {
                  font-size: 20px;
                  margin-bottom: 30px;
                  color: #fff;
}

.empty-content {
                  display: flex;
                  align-items: flex-start;
                  gap: 50px;
                  padding: 20px;
                  border: 1px dashed #444;
                  border-radius: 8px;
                  background: rgba(255, 255, 255, 0.02);
                  max-width: 800px;
}

.steps-list {
                  text-align: left;
                  line-height: 2.5;
                  font-size: 14px;
}

.laptop-img-placeholder {
                  width: 200px;
                  height: 120px;
                  background: #333;
                  border-radius: 4px;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  color: #666;
                  font-size: 12px;
                  border: 2px solid #555;
}

/* Tips Section at Bottom */
.empty-tips {
                  margin-top: 40px;
                  font-size: 12px;
                  color: #888;
                  max-width: 800px;
                  line-height: 1.6;
                  text-align: left;
}

.empty-tips strong {
                  color: #ccc;
}

.empty-tips a {
                  color: var(--color-green);
                  text-decoration: none;
}

/* Loading Animation for Thumbnail */
.thumb-loading {
                  width: 20px;
                  height: 20px;
                  border: 2px solid #555;
                  border-top: 2px solid var(--color-green);
                  border-radius: 50%;
                  animation: spin 1s linear infinite;
}

@keyframes spin {
                  0% {
                                    transform: rotate(0deg);
                  }

                  100% {
                                    transform: rotate(360deg);
                  }
}

/* === Step 1: Empty State & Guide Styles === */
.empty-state-container {
                  display: flex;
                  flex-direction: column;
                  align-items: center;
                  justify-content: center;
                  height: 100%;
                  color: #999;
                  padding: 20px;
}

.guide-title {
                  font-size: 20px;
                  color: #ddd;
                  margin-bottom: 30px;
}

.guide-content {
                  display: flex;
                  align-items: center;
                  gap: 40px;
                  margin-bottom: 40px;
                  background: rgba(255, 255, 255, 0.03);
                  padding: 30px;
                  border-radius: 8px;
                  border: 1px dashed #444;
}

.guide-steps {
                  display: flex;
                  flex-direction: column;
                  gap: 15px;
                  text-align: left;
                  font-size: 14px;
                  color: #ccc;
}

.guide-steps div {
                  line-height: 1.5;
}

.laptop-placeholder {
                  width: 220px;
                  height: 130px;
                  background: #333;
                  border: 2px solid #555;
                  border-radius: 5px;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  position: relative;
}

/* Simple Laptop Base CSS Shape */
.laptop-placeholder::after {
                  content: '';
                  position: absolute;
                  bottom: -10px;
                  left: -10%;
                  width: 120%;
                  height: 10px;
                  background: #444;
                  border-radius: 0 0 5px 5px;
}

.tips-section {
                  max-width: 800px;
                  text-align: left;
                  font-size: 12px;
                  color: #777;
                  line-height: 1.6;
                  border-top: 1px solid #333;
                  padding-top: 15px;
}

.tips-section strong {
                  color: #bbb;
}

.tips-section a {
                  color: var(--color-green);
                  text-decoration: none;
}

/* Thumb Loading Animation */
.thumb-loading {
                  width: 24px;
                  height: 24px;
                  border: 2px solid #444;
                  border-top: 2px solid var(--color-green);
                  border-radius: 50%;
                  animation: spin 1s linear infinite;
}

@keyframes spin {
                  0% {
                                    transform: rotate(0deg);
                  }

                  100% {
                                    transform: rotate(360deg);
                  }
}

/* === 空状态引导页样式 (仿截图效果) === */
.empty-state-container {
                  display: flex;
                  flex-direction: column;
                  align-items: center;
                  justify-content: center;
                  padding: 40px 20px;
                  color: #ccc;
                  width: 100%;
                  max-width: 900px;
                  margin: 0 auto;
}

.guide-title {
                  font-size: 22px;
                  color: #fff;
                  margin-bottom: 30px;
                  letter-spacing: 1px;
}

/* 中间主要内容区域：虚线框 */
.guide-content {
                  display: flex;
                  align-items: center;
                  justify-content: space-between;
                  gap: 40px;
                  margin-bottom: 30px;
                  padding: 40px 50px;
                  /* 这里的虚线边框 */
                  border-top: 1px dashed #444;
                  border-bottom: 1px dashed #444;
                  width: 100%;
                  box-sizing: border-box;
}

/* 左侧文字步骤 */
.guide-steps {
                  display: flex;
                  flex-direction: column;
                  gap: 20px;
                  text-align: left;
                  font-size: 15px;
                  color: #bbb;
                  line-height: 1.6;
}

.guide-steps p {
                  margin: 0;
}

/* 右侧 CSS 绘制的笔记本电脑 */
.laptop-visual {
                  position: relative;
                  width: 240px;
                  height: 140px;
                  /* 屏幕外框 */
                  border: 2px solid #666;
                  border-radius: 6px;
                  padding: 8px;
                  box-sizing: border-box;
                  display: flex;
                  align-items: center;
                  justify-content: center;
}

/* 屏幕内部 */
.laptop-screen {
                  width: 100%;
                  height: 100%;
                  background-color: #dcdcdc;
                  /* 浅色背景模拟截图 */
                  border-radius: 2px;
                  position: relative;
                  overflow: hidden;
}

/* 模拟浏览器地址栏 */
.fake-browser-bar {
                  width: 80%;
                  height: 12px;
                  background: #fff;
                  border-radius: 6px;
                  margin: 15px auto 5px;
                  border: 1px solid #ccc;
}

/* 模拟红色按钮 */
.fake-btn {
                  width: 60px;
                  height: 16px;
                  background: #e74c3c;
                  margin: 10px auto;
                  border-radius: 2px;
}

/* 笔记本底座 */
.laptop-visual::after {
                  content: '';
                  position: absolute;
                  bottom: -12px;
                  left: -10%;
                  width: 120%;
                  height: 10px;
                  background: #444;
                  border-radius: 0 0 8px 8px;
                  border-top: 2px solid #333;
}

/* 底部温馨提示 */
.tips-section {
                  width: 100%;
                  text-align: left;
                  font-size: 13px;
                  color: #888;
                  line-height: 1.8;
                  padding-top: 10px;
}

.tips-label {
                  color: #dba656;
                  /* 截图中的黄色/橙色高亮 */
                  font-weight: bold;
                  font-size: 14px;
                  margin-right: 5px;
}

.tips-highlight {
                  color: #ddd;
                  font-weight: bold;
                  margin: 0 3px;
}

/* ... 前面的代码保持不变 ... */

/* 修改：粘贴链接按钮 - 改为蓝色 */
.btn-paste {
                  background-color: #409EFF;
                  /* 蓝色 */
                  color: white;
                  border: none;
                  padding: 8px 20px;
                  font-weight: bold;
                  cursor: pointer;
                  border-radius: 2px;
                  transition: background 0.2s;
}

.btn-paste:hover {
                  background-color: #66b1ff;
                  /* 浅蓝色悬停 */
}

/* ... 中间代码 ... */

/* 修改：上传按钮 - 改为蓝色 (与粘贴链接一致) */
.btn-upload-local {
                  background-color: #409EFF;
                  /* 蓝色 */
                  color: white;
                  border: none;
                  padding: 8px 15px;
                  font-weight: bold;
                  cursor: pointer;
                  border-radius: 2px;
                  margin-left: 10px;
                  display: flex;
                  align-items: center;
                  gap: 5px;
}

.btn-upload-local:hover {
                  background-color: #66b1ff;
                  /* 浅蓝色悬停 */
}

/* ... 后面的代码保持不变 ... */
/* ... 前面的代码保持不变 ... */

/* 任务控制区容器 */
.task-controls {
                  display: flex;
                  gap: 15px;
                  align-items: center;
                  margin-left: 20px;
}

/* 单个任务的 开始/暂停 按钮 (替代原来的圆环按钮或新增) */
.btn-action {
                  background: none;
                  border: 1px solid #555;
                  border-radius: 50%;
                  width: 32px;
                  height: 32px;
                  color: #ccc;
                  cursor: pointer;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  transition: all 0.2s;
                  font-size: 14px;
}

.btn-action:hover {
                  border-color: #409EFF;
                  color: #409EFF;
                  background-color: rgba(64, 158, 255, 0.1);
}

/* 正在进行中的样式 */
.btn-action.running {
                  color: #E6A23C;
                  /* 黄色代表暂停/进行中 */
                  border-color: #E6A23C;
}

/* 完成的样式 */
.btn-action.completed {
                  color: #67C23A;
                  /* 绿色 */
                  border-color: #67C23A;
                  cursor: default;
}


/* 打开文件夹按钮 - 无背景 */
.btn-open-folder {
                  background: none !important;
                  border: none !important;
                  color: #e6a23c;
                  /* 橙色文件夹图标 */
                  cursor: pointer;
                  font-size: 20px;
                  padding: 4px 8px;
                  transition: all 0.2s ease;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  opacity: 0.8;
}

.btn-open-folder:hover {
                  color: #f0a040;
                  /* 悬停时变亮 */
                  opacity: 1;
                  transform: scale(1.1);
}

/* 解析按钮 - 播放图标/刷新图标，无背景 */
.btn-parse-task {
                  background: none !important;
                  border: none !important;
                  color: #409eff;
                  /* 蓝色播放图标 */
                  cursor: pointer;
                  font-size: 20px;
                  padding: 4px 8px;
                  transition: all 0.2s ease;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  opacity: 0.8;
                  line-height: 1;
                  width: 24px;
                  height: 24px;
                  margin-right: 5px;
}

.btn-parse-task:hover {
                  color: #66b1ff;
                  /* 悬停时变亮 */
                  opacity: 1;
                  transform: scale(1.1);
}

/* 删除按钮 - 叉号，无背景 */
.btn-delete-task {
                  background: none !important;
                  border: none !important;
                  color: #999;
                  /* 默认灰色，和其他按钮一致 */
                  cursor: pointer;
                  font-size: 24px;
                  font-weight: bold;
                  padding: 4px 8px;
                  transition: all 0.2s ease;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  opacity: 0.8;
                  /* 和其他按钮的opacity一致 */
                  line-height: 1;
                  width: 24px;
                  height: 24px;
}

.btn-delete-task:hover {
                  color: #e74c3c;
                  /* 悬停时变红 */
                  opacity: 1;
                  transform: scale(1.2);
}

/* 隐藏原来的圆环进度按钮样式，如果不需要了可以注释掉，或者复用 */
/* ... */
/* === 笔记本电脑外框 (保持原有，微调尺寸) === */
.laptop-visual {
                  position: relative;
                  width: 280px;
                  /* 稍微加大一点尺寸 */
                  height: 180px;
                  border: 2px solid #555;
                  border-radius: 8px;
                  padding: 6px;
                  box-sizing: border-box;
                  background: #222;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 笔记本屏幕区域 */
.laptop-screen {
                  width: 100%;
                  height: 100%;
                  background-color: #2d2d2d;
                  /* 深色背景 */
                  border-radius: 4px;
                  position: relative;
                  overflow: hidden;
                  font-family: Arial, sans-serif;
}

/* 笔记本底座 */
.laptop-visual::after {
                  content: '';
                  position: absolute;
                  bottom: -10px;
                  left: -10%;
                  width: 120%;
                  height: 8px;
                  background: #333;
                  border-radius: 0 0 10px 10px;
                  border-top: 1px solid #111;
}

/* === 1. 模拟浏览器窗口 (背景层) === */
.scene-browser {
                  position: absolute;
                  top: 15px;
                  left: 50%;
                  transform: translateX(-50%);
                  width: 85%;
                  height: 60px;
                  background-color: #dcd6ce;
                  /* 米色/浅灰背景 */
                  border-radius: 6px 6px 0 0;
                  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
                  z-index: 1;
                  border: 1px solid #bba;
}

.browser-tab {
                  width: 80px;
                  height: 16px;
                  background-color: #cbbba8;
                  /* 深米色 Tab */
                  border-radius: 6px 6px 0 0;
                  margin-left: 10px;
                  margin-top: -6px;
                  /* 突出顶部 */
                  font-size: 8px;
                  color: #555;
                  line-height: 16px;
                  text-align: center;
                  position: relative;
                  top: 6px;
}

.browser-bar {
                  width: 90%;
                  height: 14px;
                  background-color: #f0f0f0;
                  margin: 10px auto 0;
                  border-radius: 10px;
                  border: 1px solid #ccc;
                  font-size: 8px;
                  color: #888;
                  line-height: 14px;
                  padding-left: 6px;
                  overflow: hidden;
                  white-space: nowrap;
                  text-overflow: ellipsis;
}

/* === 2. 模拟软件窗口 (前景层) === */
.scene-app {
                  position: absolute;
                  bottom: 0;
                  left: 50%;
                  transform: translateX(-50%);
                  width: 90%;
                  height: 90px;
                  background-color: #e0e0e0;
                  border-radius: 6px 6px 0 0;
                  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.5);
                  z-index: 3;
                  /* 最上层 */
                  display: flex;
                  flex-direction: column;
}

.app-header {
                  height: 25px;
                  background-color: #444;
                  /* 深色 Header */
                  display: flex;
                  align-items: center;
                  padding: 0 10px;
                  border-radius: 5px 5px 0 0;
}

.app-icon {
                  width: 12px;
                  height: 12px;
                  background-color: #c0392b;
                  border-radius: 50%;
                  margin-right: 6px;
                  border: 1px solid #fff;
}

.app-header span {
                  font-size: 10px;
                  color: #fff;
                  font-weight: bold;
}

.app-body {
                  flex: 1;
                  background-color: #ddd;
                  display: flex;
                  align-items: center;
                  padding-left: 15px;
}

/* 红色粘贴按钮 */
.app-btn {
                  background-color: #c0392b;
                  /* 红色 */
                  color: white;
                  font-size: 10px;
                  font-weight: bold;
                  padding: 5px 12px;
                  border-radius: 2px;
                  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
                  display: inline-block;
}

/* === 3. 虚线箭头 (连接浏览器地址栏与按钮) === */
.scene-arrow {
                  position: absolute;
                  z-index: 2;
                  /* 在浏览器之上，APP之下(或之上都可以，看遮挡关系) */
                  width: 40px;
                  height: 50px;
                  top: 40px;
                  /* 浏览器地址栏附近 */
                  left: 50%;
                  margin-left: 20px;
                  /* 偏右 */

                  /* 绘制曲线：使用边框和圆角 */
                  border-right: 2px dashed #d35400;
                  /* 橙色虚线 */
                  border-top: 2px dashed #d35400;
                  border-top-right-radius: 100%;
                  /* 圆弧 */

                  transform: rotate(10deg);
                  /* 稍微旋转角度以匹配截图 */
                  opacity: 0.8;
}

/* 箭头头部 */
.scene-arrow-head {
                  position: absolute;
                  z-index: 4;
                  /* 确保显示在最上层 */
                  width: 0;
                  height: 0;
                  border-top: 4px solid transparent;
                  border-bottom: 4px solid transparent;
                  border-right: 6px solid #d35400;
                  /* 箭头颜色 */

                  /* 定位到 APP 按钮附近 */
                  top: 103px;
                  left: 70px;
                  transform: rotate(10deg);
}

/* === 新增：嗅探相关样式 === */

/* 嗅探按钮 (紫色系，区别于其他按钮) */
.btn-sniff {
                  background-color: #8e44ad;
                  color: white;
                  border: none;
                  padding: 8px 15px;
                  font-weight: bold;
                  cursor: pointer;
                  border-radius: 2px;
                  margin-left: 10px;
                  /* 与前一个按钮的间距 */
                  transition: background 0.2s;
                  display: flex;
                  align-items: center;
                  gap: 5px;
}

.btn-sniff:hover {
                  background-color: #9b59b6;
}

/* 嗅探结果列表容器 */
.sniff-list-container {
                  max-height: 400px;
                  overflow-y: auto;
                  background-color: #1a1a1a;
                  border: 1px solid #444;
                  border-radius: 4px;
                  padding: 5px;
                  margin-bottom: 15px;
}

/* 单个资源条目 */
.sniff-item {
                  display: flex;
                  align-items: center;
                  justify-content: space-between;
                  background-color: #333;
                  border-bottom: 1px solid #444;
                  padding: 10px 15px;
                  margin-bottom: 5px;
                  border-radius: 4px;
                  transition: background 0.2s;
}

.sniff-item:hover {
                  background-color: #444;
}

/* 资源信息区域 */
.sniff-info {
                  display: flex;
                  flex-direction: column;
                  gap: 4px;
                  flex: 1;
                  margin-right: 15px;
}

.sniff-res {
                  color: #0dff72;
                  /* 绿色高亮分辨率 */
                  font-weight: bold;
                  font-size: 14px;
}

.sniff-detail {
                  color: #aaa;
                  font-size: 12px;
}

/* 资源下载按钮 */
.btn-sniff-dl {
                  background-color: #2980b9;
                  color: white;
                  border: none;
                  padding: 5px 12px;
                  border-radius: 2px;
                  cursor: pointer;
                  font-size: 12px;
}

.btn-sniff-dl:hover {
                  background-color: #3498db;
}

/* 滚动条美化 (可选) */
.sniff-list-container::-webkit-scrollbar {
                  width: 8px;
}

.sniff-list-container::-webkit-scrollbar-thumb {
                  background: #555;
                  border-radius: 4px;
}

/* 加载 Cookie 按钮 (橙色系，区别于其他) */
.btn-cookie {
                  background-color: #e67e22;
                  color: white;
                  border: none;
                  padding: 8px 15px;
                  font-weight: bold;
                  cursor: pointer;
                  border-radius: 2px;
                  margin-left: 10px;
                  display: flex;
                  align-items: center;
                  gap: 5px;
                  transition: background 0.2s;
}

.btn-cookie:hover {
                  background-color: #d35400;
}

/* 已加载状态 */
.btn-cookie.loaded {
                  background-color: #27ae60;
                  /* 绿色表示已加载 */
}

/* === Fix: Toolbar Buttons Layout === */
/* 强制顶部所有功能按钮文字不换行，且允许容器挤压输入框而非换行 */
.btn-paste,
.btn-sniff,
.btn-upload-local,
.btn-cookie {
                  white-space: nowrap !important;
                  /* 强制文字一行 */
                  flex-shrink: 0;
                  /* 禁止按钮被压缩 */
                  height: 34px;
                  /* 统一高度，视情况微调 */
                  display: flex;
                  align-items: center;
                  justify-content: center;
}

/* 稍微调整输入框，让它能自适应缩小 */
.toolbar input {
                  min-width: 100px;
                  /* 防止输入框变得太小 */
}

/* === Sniff Modal Enhancements === */

/* 选中状态的样式 */
.sniff-item.selected {
                  background-color: #409EFF !important;
                  /* 选中变蓝 */
                  border: 1px solid #66b1ff;
}

.sniff-item.selected .sniff-res,
.sniff-item.selected .sniff-detail {
                  color: #fff !important;
                  /* 选中后文字变白 */
}

/* 分类标题 */
.sniff-section-title {
                  color: #aaa;
                  font-size: 12px;
                  margin: 10px 0 5px 0;
                  padding-left: 5px;
                  border-left: 3px solid #27ae60;
}

/* 文案显示区域 */
.sniff-text-area {
                  background: #222;
                  color: #ddd;
                  padding: 10px;
                  border-radius: 4px;
                  font-size: 13px;
                  line-height: 1.5;
                  max-height: 80px;
                  overflow-y: auto;
                  margin-bottom: 10px;
                  border: 1px solid #444;
                  cursor: pointer;
}

.sniff-text-area.selected {
                  border: 2px solid #409EFF;
                  background: #111;
}

/* 图片网格 */
.sniff-img-grid {
                  display: flex;
                  flex-wrap: wrap;
                  gap: 10px;
}

.sniff-img-item {
                  width: 80px;
                  height: 80px;
                  object-fit: cover;
                  border: 2px solid transparent;
                  border-radius: 4px;
                  cursor: pointer;
                  background: #000;
}

.sniff-img-item.selected {
                  border-color: #409EFF;
                  opacity: 0.8;
}


/* === 下载菜单样式 === */
.download-menu-overlay {
                  position: fixed;
                  top: 0;
                  left: 0;
                  right: 0;
                  bottom: 0;
                  background: rgba(0, 0, 0, 0.6);
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  z-index: 2000;
}

.download-menu-modal {
                  background-color: var(--bg-panel);
                  width: 400px;
                  border-radius: 8px;
                  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
                  color: #ccc;
                  overflow: hidden;
}

.download-menu-header {
                  display: flex;
                  justify-content: space-between;
                  align-items: center;
                  padding: 15px 20px;
                  border-bottom: 1px solid var(--border-color);
                  font-size: 16px;
                  font-weight: bold;
                  color: #fff;
}

.download-menu-list {
                  padding: 10px;
                  max-height: 300px;
                  overflow-y: auto;
}

.download-menu-item {
                  padding: 12px 15px;
                  margin-bottom: 8px;
                  background: var(--bg-item);
                  border: 1px solid var(--border-color);
                  border-radius: 4px;
                  cursor: pointer;
                  transition: all 0.2s;
                  font-size: 14px;
}

.download-menu-item:hover {
                  background: #3a3a3a;
                  border-color: #409eff;
                  color: #409eff;
}

.download-menu-footer {
                  display: flex;
                  justify-content: center;
                  gap: 10px;
                  padding: 15px 20px;
                  border-top: 1px solid var(--border-color);
}

.btn-download-all {
                  background-color: #409eff;
                  color: white;
                  border: none;
                  padding: 8px 20px;
                  border-radius: 4px;
                  cursor: pointer;
                  font-size: 14px;
                  transition: background 0.2s;
}

.btn-download-all:hover {
                  background-color: #66b1ff;
}

.btn-close-menu {
                  background-color: #555;
                  color: white;
                  border: none;
                  padding: 8px 20px;
                  border-radius: 4px;
                  cursor: pointer;
                  font-size: 14px;
                  transition: background 0.2s;
}

.btn-close-menu:hover {
                  background-color: #666;
}

/* 下载按钮样式 */
.btn-download-files {
                  background: none !important;
                  border: none !important;
                  color: #67c23a;
                  cursor: pointer;
                  font-size: 20px;
                  padding: 4px 8px;
                  transition: all 0.2s ease;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  opacity: 0.8;
}

.btn-download-files:hover {
                  color: #85ce61;
                  opacity: 1;
                  transform: scale(1.1);
}

/* === 灵感建议模块样式 === */
.input-area-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.inspiration-container {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(45, 45, 48, 0.96);
  border: 1px solid #000;
  border-radius: 6px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.inspiration-container.hidden {
  display: none;
}

.inspiration-container.inspiration-closing {
  opacity: 0;
  transform: translateY(-10px);
}

.inspiration-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 5px;
}

.inspiration-more-link {
  color: #9b59b6;
  text-decoration: none;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.3s;
}

.inspiration-more-link:hover {
  color: #b075c7;
}

.inspiration-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inspiration-item {
  background: #1a1a1a;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-main);
  opacity: 0;
  animation: fadeInUp 0.3s ease-out forwards;
}

.inspiration-item:hover {
  background: #232323;
  border-color: #666;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.inspiration-icon {
  font-size: 16px;
}

.inspiration-text {
  white-space: nowrap;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === 下载菜单样式 === */
.download-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.download-menu-modal {
  background: #2d2d30;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.download-menu-header {
  padding: 15px 20px;
  border-bottom: 1px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: #fff;
}

.download-menu-list {
  padding: 10px;
  max-height: 400px;
  overflow-y: auto;
}

.download-menu-item {
  padding: 12px 15px;
  margin-bottom: 8px;
  background: #333;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  color: #ccc;
  font-size: 14px;
}

.download-menu-item:hover {
  background: #3a3a3a;
  border-color: #409EFF;
  color: #fff;
}

.download-menu-footer {
  padding: 15px 20px;
  border-top: 1px solid #444;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-download-all {
  background: #27ae60;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-download-all:hover {
  background: #2ecc71;
}

.btn-close-menu {
  background: #555;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-close-menu:hover {
  background: #666;
}

/* 下载按钮样式 */
.btn-download-files {
  background: #409EFF;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.btn-download-files:hover {
  background: #66b1ff;
  transform: scale(1.1);
}
