/* ========== 全局样式重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
  transition: all 0.2s ease;
}

body {
  background-color: #FFF4CC;
  color: #333;
  line-height: 1.6;
  background-image: radial-gradient(#FFE082 0.5px, transparent 0.5px);
  background-size: 20px 20px;
  padding-top: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* ========== 顶部导航栏 ========== */

/* ========== 主要标题区域 ========== */
.title-section {
  text-align: center;
 padding: 100px 20px 30px; /* 加大顶部内边距 */
  max-width: 800px;
  margin: 0 auto;
}

.main-title {
  font-size: 32px;
  color: #333;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.main-title span {
  color: #FF5722;
  text-shadow: 0 2px 4px rgba(255, 87, 34, 0.1);
}

.subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.8;
}

.tagline {
  display: inline-block;
  background-color: #FFE082;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* ========== 生成模式切换 ========== */
.mode-switch {
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 0;
}

.single-mode,
.batch-mode {
  padding: 10px 25px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.single-mode {
  background-color: #FF5722;
  color: #FFF;
  border-radius: 20px 0 0 20px;
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.2);
}

.batch-mode {
  background-color: #FFF;
  color: #666;
  border-radius: 0 20px 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.single-mode:hover,
.batch-mode:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ========== 核心功能区域（生成页） ========== */
.main-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 0 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.image-upload,
.settings-panel,
.result-panel {
  background-color: #FFF;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #FFE082;
}

.image-upload {
    width: 30%;
    min-height: 580px;   /* 保持统一最小高度 */
    min-width: 320px;    /* 调整后最小宽度 */
}

.upload-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background-color: #FF5722;
  border-radius: 2px;
}

.upload-tips {
  background-color: #FFF8E1;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
  border-left: 3px solid #FFC107;
}

/* 新版上传网格布局（三列） */
.image-grid {

  margin-bottom: 20px;
}

.image-item {
  position: relative;
  border: 2px dashed #FFCC80;
  border-radius: 8px;
  height: 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FF8A65;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.image-item:hover {
  background-color: #FFF8E1;
  border-color: #FF8A65;
  transform: scale(1.02);
}

.image-item input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.image-item i {
  font-size: 22px;
  margin-bottom: 6px;
}

.upload-remind {
  font-size: 12px;
  color: #999;
  text-align: center;
  padding: 8px;
  background-color: #FAFAFA;
  border-radius: 6px;
}

.settings-panel {
  width: 35%;
  min-height: 580px;
    min-width: 400px;
}

.panel-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background-color: #FF5722;
  border-radius: 2px;
}

.model-option {
  position: relative;
  display: block;
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 10px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
  background-color: #FFF;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.model-option:hover {
  border-color: #FFCC80;
  background-color: #FFF8E1;
}

.model-option.active {
  background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
  color: #FFF;
  border-color: #FF5722;
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.2);
}

.model-option.active::after {
  content: "✓";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}

.model-option small {
  color: #999;
  margin-left: 8px;
  font-weight: 400;
}

.model-option.active small {
  color: #FFE0B2;
}

.size-section,
.resolution-section,
.prompt-section {
  margin-top: 25px;
}

/* ====================== 图片尺寸选择区（图标放大+灰色图标优化） ====================== */
.size-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 15px;
}

.size-btn {
    padding: 6px 0;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    background-color: #FFF;
    cursor: pointer;
    font-size: 11px;
    text-align: center;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

/* 比例可视化小图标 - 灰色+放大 */
.size-btn::before {
    content: "";
    display: inline-block;
    margin-bottom: 3px;
    background-color: #999999; /* 核心修改：图标改为灰色 */
    border-radius: 1.5px;
}

/* 放大后的图标尺寸（位置不变） */
.size-btn:nth-child(1)::before { width: 12px; height: 12px; } /* 1:1 */
.size-btn:nth-child(2)::before { width: 9px; height: 13px; }  /* 2:3 */
.size-btn:nth-child(3)::before { width: 13px; height: 9px; }  /* 3:2 */
.size-btn:nth-child(4)::before { width: 10px; height: 13px; } /* 3:4 */
.size-btn:nth-child(5)::before { width: 13px; height: 10px; } /* 4:3 */
.size-btn:nth-child(6)::before { width: 9px; height: 11px; }  /* 4:5 */
.size-btn:nth-child(7)::before { width: 11px; height: 9px; }  /* 5:4 */
.size-btn:nth-child(8)::before { width: 7px; height: 13px; }  /* 9:16 */
.size-btn:nth-child(9)::before { width: 13px; height: 7px; }  /* 16:9 */
.size-btn:nth-child(10)::before { width: 14px; height: 6px; } /* 21:9 */
.size-btn:nth-child(11)::before { width: 6px; height: 16px; } /* 1:4 */
.size-btn:nth-child(12)::before { width: 16px; height: 6px; } /* 4:1 */
.size-btn:nth-child(13)::before { width: 5px; height: 18px; }  /* 1:8 */
.size-btn:nth-child(14)::before { width: 18px; height: 5px; } /* 8:1 */

.size-btn:hover {
    border-color: #FFCC80;
    background-color: #FFF8E1;
    transform: translateY(-1px);
}

.size-btn.active {
    background: #999999; /* 选中背景灰色 */
    color: #FFFFFF;      /* 文字白色 */
    border-color: #888888; /* 边框灰色 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.size-btn.active::before {
    background-color: #FFFFFF; /* 图标白色（最协调） */
}

.resolution-btn {
  padding: 10px 20px;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  background-color: #FFF;
  cursor: pointer;
  font-size: 14px;
  margin-right: 8px;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.resolution-btn:hover {
  border-color: #81C784;
  background-color: #E8F5E9;
  transform: translateY(-1px);
}

.resolution-btn.active {
  background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
  color: #FFF;
  border-color: #4CAF50;
  box-shadow: 0 2px 5px rgba(76, 175, 80, 0.2);
}

.prompt-label {
  display: block;
  background-color: #FFF8E1;
  padding: 10px 15px;
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  color: #666;
  border: 1px solid #FFCC80;
  border-bottom: none;
  font-weight: 500;
}

.prompt-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #FFCC80;
  border-radius: 0 0 8px 8px;
  resize: vertical;
  min-height: 90px;
  font-size: 14px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prompt-input:focus {
  border-color: #FF5722;
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.warning-text {
  font-size: 12px;
  color: #F44336;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background-color: #FFEBEE;
  border-radius: 6px;
  border-left: 3px solid #F44336;
}

.action-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-disabled {
  background: linear-gradient(135deg, #EF9A9A 0%, #E57373 100%);
  color: #FFF;
  cursor: not-allowed;
  box-shadow: 0 2px 5px rgba(229, 115, 115, 0.2);
}

.btn-login {
  background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
  color: #FFF;
  box-shadow: 0 4px 10px rgba(255, 87, 34, 0.2);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 87, 34, 0.3);
}

.result-panel {
    width: 30%;
    min-height: 580px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.result-icon {
  width: 90px;
  height: 90px;
  margin-bottom: 25px;
  border-radius: 50%;
  background: conic-gradient(#FFEB3B 0% 25%, #4CAF50 25% 50%, #2196F3 50% 75%, #FF5722 75% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  animation: rotate 8s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.result-icon-inner {
  width: 78px;
  height: 78px;
  background-color: #FFF4CC;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.result-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.result-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  max-width: 280px;
}

.result-panel img.scimgxx {
  width: 100%;
}

/* ========== 页面标题区（案例页） ========== */
.page-title-section {
  padding: 70px 30px 20px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.page-title span {
  color: #FF5722;
}

/* ========== 搜索与排序区 ========== */
.search-sort-area {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.sort-select {
  padding: 8px 15px;
  border: 1px solid #FFCC80;
  border-radius: 8px;
  background-color: #FFF;
  font-size: 14px;
  outline: none;
}

.sort-select:focus {
  border-color: #FF5722;
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.search-box {
  display: flex;
  align-items: center;
  background-color: #FFF;
  border: 1px solid #FFCC80;
  border-radius: 8px;
  padding: 0 15px;
  width: 300px;
}

.search-input {
  flex: 1;
  padding: 8px 0;
  border: none;
  outline: none;
  font-size: 14px;
}

.search-icon {
  color: #FF8A00;
  cursor: pointer;
}

/* ========== 案例展示容器（覆盖生成页的 .main-container 布局） ========== */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px 40px;
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

/* ========== 左侧分类导航 ========== */
.category-sidebar {
  width: 220px;
  background-color: #FFF;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #FFE082;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 80px;
  z-index: 90;
  list-style: none !important;
  margin: 0;
}

.category-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FFE082;
  color: #333;
}

.category-list {
  list-style: none !important;
  padding: 0;
  margin: 0;
}

.category-item {
  padding: 6px 8px;
  border-radius: 4px;
  margin-bottom: 2px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none !important;
}

.category-item:hover {
  background-color: #FFF8E1;
  color: #FF5722;
}

.category-item.active {
  background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
  color: #FFF;
  font-weight: 500;
}

.category-count {
  background-color: #FFE082;
  color: #666;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 10px;
}

.category-item.active .category-count {
  background-color: #FFF;
  color: #FF5722;
}

/* ========== 右侧案例网格 ========== */
.cases-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.case-card {
  background-color: #FFF;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #FFE082;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.case-image-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.case-card:hover .case-image {
  transform: scale(1.03);
}

.case-content {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #FFE082;
}

.case-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-author {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.case-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.case-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.lang-switch {
  font-size: 12px;
  color: #FF8A00;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #FFE082;
}

.lang-switch:hover {
  background-color: #FFF8E1;
}

.lang-switch.translate-active {
  background-color: #FFE082;
  color: #FF5722;
  font-weight: 500;
}

.copy-btn {
  font-size: 12px;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #E0E0E0;
  background-color: #FAFAFA;
}

.copy-btn:hover {
  background-color: #F5F5F5;
  color: #FF5722;
  border-color: #FFCC80;
}

.copy-try-btn {
  font-size: 12px;
  color: #FFF;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 4px;
  border: none;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  font-weight: 500;
}

.copy-try-btn:hover {
  background: linear-gradient(135deg, #1976D2 0%, #0D47A1 100%);
  transform: translateY(-1px);
}

/* ========== 分页样式 ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #FFCC80;
  background: #FFF;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.page-btn:hover:not(.active) {
  background: #FFF8E1;
  color: #FF5722;
}

.page-btn.active {
  background: #FF5722;
  color: #FFF;
  border-color: #FF5722;
}

.page-dot {
  color: #999;
  padding: 0 5px;
}

.page-prev, .page-next {
  padding: 0 15px;
  width: auto;
}

/* ========== 数据统计区 ========== */
.stats-section {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 50px 20px;
  text-align: center;
  margin-top: 40px;
}

.stat-item {
  position: relative;
  font-size: 32px;
  font-weight: 700;
  color: #FF8A00;
  padding-bottom: 15px;
}

.stat-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: #FFCC80;
  border-radius: 3px;
}

.stat-label {
  font-size: 15px;
  color: #666;
  margin-top: 12px;
  font-weight: 500;
}

/* ========== 页脚 ========== */
.footer {
  text-align: center;
  padding: 10px;
  font-size: 12px;
  color: #999;
  border-top: 1px solid #FFE082;
  background-color: #FFF8E1;
  height: 40px;
  margin-top: 30px;
}

/* ========== 切换按钮 ========== */
.toggle-status {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: #FFF;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  z-index: 999;
  font-weight: 500;
  box-shadow: 0 3px 10px rgba(33, 150, 243, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toggle-status:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

/* ========== 复制提示 ========== */
.copy-toast {
  position: fixed;
  background-color: #4CAF50;
  color: #FFF;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: 0 3px 12px rgba(76, 175, 80, 0.25);
  z-index: 9999;
  opacity: 0;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  white-space: nowrap;
}

.copy-toast.error {
  background-color: #F44336;
  box-shadow: 0 3px 12px rgba(244, 67, 54, 0.25);
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(-5px);
}

/* ========== 产品精修工具页面样式 ========== */
.container {
  display: flex;
  max-width: 100%;
  width: 100%;
  gap: 20px;
  padding: 20px;
  height: calc(100vh - 80px);
  overflow: hidden;
  min-width: 1200px;
}

/* 左侧导航：固定不滚动 */
.sidebar {
  width: 200px;
  background: #FFF;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #FFE082;
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-list {
  list-style: none;
}

.nav-item {
  padding: 10px 12px;
  margin: 4px 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  position: relative;
}

.nav-item.active {
  background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
  color: #FFF;
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.2);
}

.nav-item:hover:not(.active) {
  background-color: #FFF8E1;
}

.nav-item.all-apps {
  background: #FFF8E1;
  border: 1px dashed #FFC107;
  font-weight: 600;
  color: #FF8A00;
}

.vip {
  background: linear-gradient(135deg, #FF5722, #FF9800);
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 12px;
  font-weight: bold;
}

.service {
  background: #FFF8E1;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #666;
  border: 1px solid #FFE082;
  margin-top: 10px;
}

/* 中间操作区：固定宽度 */
.operation {
  width: 460px;
  background: #FFF;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #FFE082;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.op-header {
  background-color: #FFF8E1;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #FFE082;
}

.op-header-icon {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: #FFC107;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 14px;
}

.op-header-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.op-header-desc {
  font-size: 12px;
  color: #666;
  margin-left: 5px;
}

.op-content {
  padding: 15px;
  flex: 1;
  overflow-y: auto;
}

.op-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
  padding: 8px 10px;
  background: #FFF8E1;
  border-radius: 4px;
}

.upload-section {
  margin: 10px 0 20px 0;
}

.upload-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.upload-label-icon {
  color: #FF8A00;
  font-size: 16px;
}

.upload-box {
  border: 1px dashed #CCCCCC;
  border-radius: 4px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  background: #FFFFFF;
  margin-bottom: 10px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-box .icon {
  font-size: 32px;
  color: #999999;
  margin-bottom: 8px;
}

.upload-box-text {
  font-size: 14px;
  color: #666666;
  margin-bottom: 4px;
}

.upload-box-tip {
  font-size: 11px;
  color: #999999;
}

.prompt-box {
  margin: 20px 0;
}

.prompt-box label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.prompt-box textarea {
  width: 100%;
  height: 120px;
  border: 1px solid #CCCCCC;
  border-radius: 4px;
  padding: 12px;
  resize: none;
  outline: none;
  font-size: 13px;
}

.prompt-box textarea:focus {
  border-color: #FF8A00;
  box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.1);
}

.create-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #FF8A00 0%, #FF5722 100%);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(255, 87, 34, 0.2);
  margin-top: 10px;
}

.create-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(255, 87, 34, 0.3);
}

.tip {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin-top: 10px;
}

/* 右侧结果区：自适应宽度 */
.result {
  flex: 1;
  background: #FFF;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #FFE082;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 500px;
}

.result .title {
  font-size: 18px;
  font-weight: 700;
  color: #FF5722;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result .title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: #FF5722;
  border-radius: 2px;
}

.result-subtitle {
  font-size: 12px;
  color: #666;
  margin-bottom: 15px;
}

.compare-wrap {
  flex: 1;
  overflow-y: auto;
  padding-right: 5px;
  margin-right: -5px;
}

.compare-wrap::-webkit-scrollbar {
  width: 6px;
}

.compare-wrap::-webkit-scrollbar-track {
  background: #FFF8E1;
  border-radius: 3px;
}

.compare-wrap::-webkit-scrollbar-thumb {
  background: #FFCC80;
  border-radius: 3px;
}

.compare-card {
  margin-bottom: 20px;
  border: 1px solid #FFE082;
  border-radius: 8px;
  overflow: hidden;
  background: #FFF8E1;
}

.work-info {
  padding: 8px 12px;
  background: #FFF;
  border-bottom: 1px solid #FFE082;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.work-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFC107;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 11px;
}

.work-author {
  font-weight: 600;
  color: #FF5722;
}

.work-tag {
  background: #FFE082;
  color: #FF8A00;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
  margin: 0 3px;
}

.work-time {
  color: #999;
  margin-left: auto;
  font-size: 11px;
}

.prompt-desc {
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #333;
  background: #FFF;
  border-bottom: 1px solid #FFE082;
}

.compare-img-box {
  display: flex;
  width: 100%;
  padding: 5px;
}

.compare-img-item {
  flex: 1;
  position: relative;
  padding: 5px;
}

.compare-img-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.img-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #333;
  color: #FFF;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  z-index: 1;
}

.single-edit-bar {
  padding: 8px 12px;
  background: #FFF;
  border-top: 1px solid #FFE082;
  display: flex;
  gap: 8px;
  align-items: center;
}

.single-edit-bar label {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

.single-edit-bar input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #FFCC80;
  border-radius: 4px;
  outline: none;
  font-size: 12px;
}

.single-edit-bar button {
  padding: 6px 15px;
  background: linear-gradient(135deg, #FFC107 0%, #FFA000 100%);
  color: #FFF;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

/* 全部应用弹窗 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-container {
  width: 95%;
  max-width: 1400px;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin: 0 auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  min-width: 1000px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f5f5f5;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  z-index: 10;
}

.app-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-top: 40px;
}

.app-tabs::-webkit-scrollbar {
  height: 4px;
}

.app-tab-item {
  padding: 8px 15px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}

.app-tab-item.active {
  color: #FF5722;
  font-weight: bold;
  border-bottom: 2px solid #FF5722;
}

.app-tab-item .badge {
  position: absolute;
  top: -5px;
  right: 0;
  background: #ff4444;
  color: #fff;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-search {
  position: absolute;
  top: 20px;
  right: 60px;
  width: 300px;
  z-index: 5;
}

.app-search input {
  width: 100%;
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
  font-size: 13px;
}

.app-search input:focus {
  border-color: #FFC107;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

.app-card {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 15px;
  display: flex;
  gap: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.app-card:hover {
  border-color: #FFC107;
  background: #FFF8E1;
}

.app-card-img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.app-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card-info {
  flex: 1;
}

.app-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.app-card-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.4;
}

.app-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
}

.app-card-add {
  color: #FF8A00;
  cursor: pointer;
}

.app-card-add:hover {
  color: #FF5722;
}

/* ========== 响应式适配 ========== */
@media (max-width: 1200px) {
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .case-image-container {
    height: 200px;
  }
}
@media (max-width: 1200px) {
    .image-upload {
        min-width: 290px;  /* 小幅缩小，避免横向滚动 */
    }
    .settings-panel {
        min-width: 360px;  /* 核心区适度缩小，保证整体布局 */
    }
    .result-panel {
        min-width: 290px;  /* 同步左侧，保持对称 */
    }
}
@media (max-width: 992px) {
  .main-container {
    flex-direction: column;
    gap: 20px;
  }
  .image-upload,
  .settings-panel,
  .result-panel {
    width: 100%;
    margin-bottom: 20px;
  }
  .size-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-sidebar {
    position: static;
    width: 100%;
    margin-bottom: 20px;
    max-height: none;
  }
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-image-container {
    height: 180px;
  }
  .stats-section {
    gap: 40px;
  }
  .stat-item {
    font-size: 26px;
  }
  .container {
    min-width: auto;
    flex-direction: column;
    height: auto;
  }
  .sidebar {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }
  .operation {
    width: 100%;
  }
  .result {
    min-width: auto;
  }
  .modal-container {
    min-width: auto;
  }
}

@media (max-width: 576px) {
  .header {
    padding: 10px 15px;
  }
  .nav-menu {
    gap: 15px;
  }
  .size-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-title-section {
    padding: 20px 15px;
  }
  .search-box {
    width: 100%;
  }
  .main-container {
    padding: 0 15px 30px;
  }
  .cases-grid {
    grid-template-columns: 1fr;
  }
  .case-image-container {
    height: 220px;
  }
  .stats-section {
    flex-direction: column;
    gap: 30px;
  }
  .toggle-status {
    top: auto;
    bottom: 20px;
  }
  .copy-toast {
    bottom: 20px;
    padding: 10px 20px;
    font-size: 13px;
  }
  .app-search {
    position: static;
    width: 100%;
    margin-bottom: 15px;
    right: auto;
    top: auto;
  }
  .app-tabs {
    padding-top: 10px;
  }
}


