/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f1117;
  --bg2: #1a1d27;
  --bg3: #242736;
  --border: #2e3147;
  --primary: #6c8aff;
  --primary-dark: #5571e8;
  --danger: #ff5c5c;
  --text: #e2e4f0;
  --text2: #9096b0;
  --text3: #5a6080;
  --success: #4caf7d;
  --warning: #f5a623;
  --radius: 10px;
  --nav-h: 60px;
  --top-h: 48px;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ===== Utilities ===== */
.hidden { display: none !important; }
.active { display: flex !important; }

/* ===== Pages ===== */
.page {
  display: none;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.page.active { display: flex; }

.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 24px;
}

/* ===== Login ===== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-wrap {
  width: 100%;
  max-width: 360px;
  background: var(--bg2);
  border-radius: 16px;
  padding: 36px 28px;
  border: 1px solid var(--border);
}

.login-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #6c8aff 0%, #a855f7 100%);
  box-shadow:
    0 16px 40px -12px rgba(108,138,255,0.55),
    0 6px 16px -4px rgba(168,85,247,0.35),
    inset 0 1px 0 rgba(255,255,255,0.18);
}
.login-logo i {
  font-size: 28px;
  color: #fff;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.18));
}
.login-logo-pulse {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  background: #4caf7d;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(76,175,125,0.7);
  animation: hero-pulse 2s ease-out infinite;
}

.login-wrap h2 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 28px;
  color: var(--text);
}

/* ===== Main Frame ===== */
#main-frame {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh; /* 动态视口高度，避免移动端浏览器工具栏遮挡底部导航 */
}


/* ===== Top Bar ===== */
.top-bar {
  display: flex;
  align-items: center;
  height: var(--top-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 12px;
  gap: 10px;
  flex-shrink: 0;
}

.top-bar span#top-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ===== Pages container ===== */
#pages {
  flex: 1;
  overflow: hidden;
  position: relative;
}

#pages .page {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

/* ===== Bottom Nav ===== */
#bottom-nav {
  display: flex;
  height: var(--nav-h);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text3);
  font-size: 10px;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-item i { font-size: 18px; }
.nav-item.active { color: var(--primary); }

/* ===== Forms ===== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--text2);
  font-size: 13px;
}

.form-hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text3);
}

input[type="text"], input[type="tel"], input[type="number"],
input[type="datetime-local"], input[type="password"], textarea, select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
}

input[readonly] {
  opacity: 0.7;
  cursor: default;
}

textarea { resize: vertical; min-height: 80px; }

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239096b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text) !important;
  font-size: 14px !important;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #e04040; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text2); }
.btn-ghost:hover { color: var(--primary); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.btn-icon {
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 6px;
  transition: color 0.2s;
}
.btn-icon:hover { color: var(--primary); }

.btn-row {
  display: flex;
  gap: 10px;
}

/* ===== Input with button ===== */
.input-with-btn {
  display: flex;
  gap: 8px;
  align-items: center;
}
.input-with-btn input { flex: 1; }

/* ===== Error ===== */
.error-msg {
  color: var(--danger);
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
  min-height: 18px;
}

/* ===== Search bar ===== */
.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.search-bar input { flex: 1; }

/* ===== List items ===== */
.list-container { display: flex; flex-direction: column; gap: 1px; }

.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: var(--bg2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 6px;
  border: 1px solid var(--border);
}
.list-item:hover { background: var(--bg3); }

.list-item-icon {
  font-size: 18px;
  color: var(--primary);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.list-item-content { flex: 1; min-width: 0; }

.list-item-title {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item-sub {
  font-size: 12px;
  color: var(--text2);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item-arrow {
  color: var(--text3);
  font-size: 12px;
  flex-shrink: 0;
}

/* ===== Task status badge ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  flex-shrink: 0;
}
.badge-running { background: rgba(108,138,255,0.15); color: var(--primary); }
.badge-done { background: rgba(76,175,125,0.15); color: var(--success); }
.badge-stopped { background: rgba(255,92,92,0.15); color: var(--danger); }
.badge-pending { background: rgba(245,166,35,0.15); color: var(--warning); }

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 16px 0 4px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: default; }

/* ===== Output box ===== */
.output-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 13px;
  line-height: 1.6;
  font-family: "Cascadia Code", "Consolas", monospace;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 120px;
  max-height: 320px;
  overflow-y: auto;
  color: #c8d0e8;
}

/* ===== 任务报告（富文本，仅基础标签）===== */
/* 滚动行为与「执行结果」一致（同款细滚动条 + 320px 上限） */
#taskReport {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg3);
  color: var(--text);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.75;
  word-break: break-word;
}
#taskReport > *:first-child { margin-top: 0; }
#taskReport > *:last-child  { margin-bottom: 0; }

/* 标题 */
#taskReport h1, #taskReport h2, #taskReport h3, #taskReport h4 {
  color: #fff;
  font-weight: 700;
  line-height: 1.35;
  margin: 18px 0 10px;
}
#taskReport h1 { font-size: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
#taskReport h2 { font-size: 17px; padding-left: 9px; border-left: 3px solid var(--primary); }
#taskReport h3 { font-size: 15px; color: var(--primary); }
#taskReport h4 { font-size: 14px; color: var(--text2); }

/* 段落 / 文字 */
#taskReport p { margin: 8px 0; }
#taskReport b, #taskReport strong { color: #ffd060; font-weight: 700; }
#taskReport i, #taskReport em { color: var(--text2); font-style: italic; }
#taskReport u { text-decoration-color: var(--primary); }
#taskReport small { font-size: 12px; color: var(--text3); }
#taskReport mark { background: rgba(245,166,35,.25); color: #ffd9a0; border-radius: 3px; padding: 0 3px; }
#taskReport a { color: var(--primary); text-decoration: none; word-break: break-all; }
#taskReport a:hover { text-decoration: underline; }

/* 列表 */
#taskReport ul, #taskReport ol { margin: 8px 0; padding-left: 22px; }
#taskReport li { margin: 4px 0; }
#taskReport ul li::marker { color: var(--primary); }
#taskReport ol li::marker { color: var(--primary); font-weight: 600; }

/* 引用 */
#taskReport blockquote {
  margin: 10px 0;
  padding: 8px 14px;
  border-left: 3px solid var(--primary);
  background: rgba(108,138,255,.08);
  border-radius: 0 8px 8px 0;
  color: var(--text2);
}

/* 代码 */
#taskReport code {
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 12.5px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: #ffd060;
}
#taskReport pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  overflow-x: auto;
  margin: 10px 0;
}
#taskReport pre code { background: none; border: none; padding: 0; color: #c8d0e8; }

/* 分割线 */
#taskReport hr { border: none; border-top: 1px solid var(--border); margin: 14px 0; }

/* 表格 */
#taskReport table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 13px;
}
#taskReport th, #taskReport td {
  border: 1px solid var(--border);
  padding: 7px 10px;
  text-align: left;
}
#taskReport th { background: var(--bg2); color: var(--text); font-weight: 600; }
#taskReport tr:nth-child(even) td { background: rgba(255,255,255,.02); }

/* 图片 */
#taskReport img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }

/* ===== Section header ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== AI Level — 评分维度卡片 ===== */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.dim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
}
.dim-info { flex: 1; min-width: 0; }
.dim-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.dim-subs {
  display: block;
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
}
.dim-score {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  background: rgba(108,138,255,.12);
  border-radius: 10px;
  padding: 2px 8px;
}
.dim-example-btn {
  font-size: 12px !important;
  padding: 3px 11px !important;
  border: 1px solid var(--primary) !important;
  border-radius: 12px !important;
  color: var(--primary) !important;
  background: transparent !important;
  white-space: nowrap;
}
.dim-example-btn:active { background: rgba(108,138,255,.12) !important; }
.dim-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ===== 维度详情弹窗内容 ===== */
.dim-tagline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #c5d0ff;
  background: rgba(108,138,255,.15);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin: 14px 0 18px;
  line-height: 1.6;
}
.dim-sub-card {
  border-left: 3px solid var(--primary);
  background: #1e2235;
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.dim-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.dim-sub-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.dim-sub-score {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 10px;
  padding: 2px 10px;
  flex-shrink: 0;
}
.dim-sub-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 10px;
}
/* 低/高分示例 */
.dim-example-wrap {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.dim-example-box {
  flex: 1;
  border-radius: 8px;
  padding: 10px 11px;
  font-size: 12px;
  line-height: 1.7;
}
.dim-example-box.low {
  background: rgba(255,92,92,.1);
  border: 1px solid rgba(255,92,92,.35);
}
.dim-example-box.high {
  background: rgba(76,175,125,.1);
  border: 1px solid rgba(76,175,125,.35);
}
.dim-example-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.dim-example-box.low  .dim-example-label { color: #ff7b7b; }
.dim-example-box.high .dim-example-label { color: #5fd49a; }
.dim-example-text {
  color: var(--text2);
  white-space: pre-line;
  word-break: break-all;
}
/* 关键词标签 */
.dim-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.dim-tag {
  background: rgba(108,138,255,.1);
  border: 1px solid rgba(108,138,255,.3);
  border-radius: 10px;
  padding: 3px 10px;
  font-size: 12px;
  color: #c5d0ff;
  font-weight: 500;
}

/* ===== File list ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text2);
}
.breadcrumb-item { cursor: pointer; color: var(--primary); }
.breadcrumb-sep { color: var(--text3); }

.file-list { display: flex; flex-direction: column; gap: 4px; }

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s;
}
.file-item:hover { background: var(--bg3); }
.file-item .file-icon { color: var(--primary); width: 18px; text-align: center; font-size: 15px; }
.file-item .file-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item .file-meta { color: var(--text3); font-size: 11px; flex-shrink: 0; }
.file-del-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text3);
  font-size: 13px;
  padding: 4px 6px;
  border-radius: 5px;
  cursor: pointer;
  line-height: 1;
  opacity: 0;
  transition: opacity .15s, color .15s;
}
.file-item:hover .file-del-btn { opacity: 1; }
.file-del-btn:hover { color: var(--danger) !important; opacity: 1; }

/* 多选复选框 */
.file-cb-wrap { display: flex; align-items: center; flex-shrink: 0; }
.file-cb { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.file-item.selectable { border-color: rgba(108,138,255,0.25); }
.file-item.selectable:has(.file-cb:checked) { background: rgba(108,138,255,0.08); border-color: var(--primary); }

/* 文件工具栏 */
.file-toolbar { display: flex; gap: 4px; align-items: center; }

/* 「图片生成」目录的图片网格 */
.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.img-tile {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s;
}
.img-tile:active { border-color: var(--primary); }
.img-thumb-wrap { position: relative; width: 100%; aspect-ratio: 1 / 1; background: var(--bg3); }
.img-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-thumb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 30px;
}
.img-thumb-wrap.img-thumb-fallback::after {
  content: "\f1c5";                 /* fa-file-image */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 28px;
}
.img-name {
  font-size: 11px;
  color: var(--text2);
  padding: 5px 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.img-del {
  position: absolute !important;
  top: 4px; right: 4px;
  opacity: 1 !important;
  background: rgba(0,0,0,.5);
  color: #fff !important;
  border-radius: 6px;
  padding: 3px 6px;
}

/* 目录列表删除按钮（移动端始终可见） */
.dir-del-btn {
  color: var(--text3) !important;
  padding: 10px !important;   /* 扩大点击区域 */
  margin: -6px -4px -6px 0;
  flex-shrink: 0;
}
.dir-del-btn:hover,
.dir-del-btn:active { color: var(--danger) !important; }

/* ===== Home ===== */
.home-hero {
  text-align: center;
  padding: 36px 16px 28px;
}
.hero-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #6c8aff 0%, #a855f7 100%);
  box-shadow:
    0 16px 40px -12px rgba(108,138,255,0.55),
    0 6px 16px -4px rgba(168,85,247,0.35),
    inset 0 1px 0 rgba(255,255,255,0.18);
}
.hero-logo i {
  font-size: 30px;
  color: #fff;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.18));
}
.hero-pulse {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: #4caf7d;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(76,175,125,0.7);
  animation: hero-pulse 2s ease-out infinite;
}
@keyframes hero-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(76,175,125,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(76,175,125,0); }
  100% { box-shadow: 0 0 0 0 rgba(76,175,125,0); }
}
.home-hero h1 { font-size: 22px; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.5px; }
.hero-desc { color: var(--text2); font-size: 14px; line-height: 1.6; }

/* 图片 logo */
.hero-logo-img {
  display: block;
  height: 76px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 16px;
  object-fit: contain;
}

.home-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.home-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}
.home-card i { font-size: 28px; color: var(--primary); }
.home-card:hover { border-color: var(--primary); background: var(--bg3); }

/* 首页分区（案例 / 成果分享）通用头部 */
.home-sec { margin-top: 22px; }
.home-sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.home-sec-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.home-sec-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}
.home-sec-sub {
  font-size: 12px;
  color: var(--text3);
  margin-top: 3px;
}
.home-sec-badge {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
  padding: 1px 7px;
}

/* 成果分享区：整体不同背景色 + 文字配色，明显区别于案例集锦 */
.home-sec-share {
  margin-top: 30px;
  padding: 18px 14px 16px;
  border: 1px solid rgba(108,138,255,0.35);
  border-radius: 14px;
  background: #161b33;            /* 偏蓝紫的独立底色，与页面深黑背景拉开 */
  box-shadow: 0 0 0 4px rgba(108,138,255,0.06);
}
.home-sec-share .home-sec-title { color: #9db2ff; }      /* 标题蓝 */
.home-sec-share .home-sec-sub   { color: #7e8cc7; }      /* 副标题淡蓝 */
.home-sec-share .home-sec-icon  {
  background: rgba(108,138,255,0.22) !important;
  color: #b4c2ff !important;
}

/* 案例卡片网格 */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.case-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s;
}
.case-card:active { border-color: var(--primary); }
.case-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: var(--bg3);
}
.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-body {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.case-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.4;
}
.case-prompt {
  font-size: 11px;
  color: var(--text3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: 10px;
}
.case-btns {
  display: flex;
  gap: 6px;
}
.case-btn-detail {
  flex: 1;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  border-radius: 7px;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-btn-detail:active { background: var(--bg3); }
.case-btn {
  flex: 1;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.case-btn:active { opacity: .8; }
.case-btn:disabled { opacity: .6; cursor: default; }

/* ===== 成果分享卡片附加元素 ===== */
.share-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 11px;
}
.share-author {
  color: var(--text3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.share-author i { margin-right: 3px; }
.share-price {
  flex-shrink: 0;
  background: rgba(245,166,35,.15);
  color: var(--warning);
  border-radius: 8px;
  padding: 2px 7px;
  font-weight: 700;
}
.share-price.free { background: rgba(76,175,125,.15); color: var(--success); }

/* AI 提炼徽章 */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg,#6c8aff,#9b59b6);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  padding: 2px 9px;
}

/* 成果交易表单弹窗 */
.share-form-field { margin-bottom: 12px; }
.share-form-field label {
  display: block;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 5px;
}
.share-form-field label .req { color: var(--danger); margin-left: 2px; }
.share-form-field input[type="text"],
.share-form-field input[type="number"],
.share-form-field input[type="url"] {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
}
.share-form-field input:focus { border-color: var(--primary); }
.share-file-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text3);
  cursor: pointer;
}
.share-file-label.filled { color: var(--success); border-color: var(--success); border-style: solid; }
.share-file-label i { font-size: 15px; }

/* WEB APP 相关文件链接列表 */
.webapp-link-list { display: flex; flex-direction: column; gap: 8px; }
.webapp-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: border-color .15s, background .15s;
}
.webapp-link-item:active { background: var(--bg3); border-color: var(--primary); }
.webapp-link-item > i:first-child { color: var(--primary); flex-shrink: 0; }
.webapp-link-url {
  flex: 1;
  min-width: 0;
  color: var(--primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}

/* 任务交互记录中「指令」高亮 */
.record-cmd {
  color: #ffd060;
  font-weight: 600;
}

/* 消息红点徽章 */
.msg-badge {
  flex: 0 0 auto;           /* 覆盖 .mine-item span{flex:1}，防止被拉宽成椭圆 */
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  width: auto;
  height: 18px;
  box-sizing: border-box;
  border-radius: 9px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mine-item .msg-badge { flex: 0 0 auto; }

/* 消息列表项 */
.msg-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  margin-bottom: 8px;
}
.msg-item.unread { border-left: 3px solid var(--primary); }
.msg-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.msg-item-title { font-size: 14px; font-weight: 600; color: var(--text); }
.msg-item-time { font-size: 11px; color: var(--text3); flex-shrink: 0; }
.msg-item-content { font-size: 13px; color: var(--text2); line-height: 1.6; }
.msg-type-tag {
  font-size: 10px;
  border-radius: 6px;
  padding: 1px 6px;
  margin-right: 6px;
  vertical-align: middle;
}
.msg-type-review  { background: rgba(108,138,255,.15); color: var(--primary); }
.msg-type-earning { background: rgba(76,175,125,.15); color: var(--success); }
.msg-type-system  { background: var(--bg3); color: var(--text3); }

/* ===== Mine ===== */
/* 用户信息卡片 */
.mine-user-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px;
  margin-bottom: 16px;
}

.mine-user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(108,138,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

.mine-user-phone {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.mine-user-tag {
  font-size: 12px;
  color: var(--success);
  margin-top: 3px;
}

.mine-list { display: flex; flex-direction: column; gap: 6px; }
.mine-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
  font-size: 15px;
}
.mine-item:hover { background: var(--bg3); }
.mine-item > i:first-child { color: var(--primary); width: 20px; text-align: center; }
.mine-item span { flex: 1; }
.mine-item .arrow { color: var(--text3); font-size: 12px; }

/* ===== Placeholder ===== */
.placeholder-wrap {
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
}
.placeholder-icon { font-size: 48px; margin-bottom: 16px; display: block; }

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.hidden { display: none; }

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.modal-box {
  position: relative;
  background: var(--bg2);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-search { padding: 12px 16px 8px; }
.modal-search input { width: 100%; }

.modal-list { flex: 1; overflow-y: auto; padding: 4px 8px; }

.modal-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.modal-list-item:hover { background: var(--bg3); }
.modal-list-item i { color: var(--primary); }

.modal-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}

.modal-dir-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 8px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.modal-crumb-item {
  cursor: pointer;
  color: var(--primary);
  padding: 2px 5px;
  border-radius: 4px;
}
.modal-crumb-item:hover { background: var(--bg2); }
.modal-crumb-item.active { color: var(--text); cursor: default; font-weight: 500; }
.modal-crumb-sep { color: var(--text3); padding: 0 1px; }

/* ===== Schedule ===== */
.schedule-time-list { display: flex; flex-direction: column; gap: 8px; }
.schedule-time-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.schedule-time-item select, .schedule-time-item input {
  padding: 5px 8px;
}
.schedule-time-remove {
  background: none; border: none; color: var(--text3);
  cursor: pointer; padding: 4px; font-size: 14px;
}
.schedule-time-remove:hover { color: var(--danger); }

/* ===== Toast ===== */
#toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30,34,52,0.95);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
#toast.show { opacity: 1; }

/* 任务提交大提示 —— 垂直居中、更醒目 */
#toast-big {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background: var(--bg2);
  border: 1.5px solid var(--primary);
  color: var(--text);
  padding: 22px 36px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .3px;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(108,138,255,0.15);
}
#toast-big.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ===== Loading ===== */
.loading-wrap {
  display: flex;
  justify-content: center;
  padding: 40px;
  color: var(--text3);
}
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

#new-task-files-section{margin-bottom: 16px;}

/* ===== Persona Chips（智能体快速选择） ===== */
.persona-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.persona-chip {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.persona-chip:hover, .persona-chip:active {
  border-color: var(--primary);
  color: var(--primary);
}
.persona-chip.active {
  background: rgba(108,138,255,0.15);
  border-color: var(--primary);
  color: var(--primary);
}
.persona-chip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.persona-chip-del {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  padding: 0;
}
.persona-chip-wrap:hover .persona-chip-del { opacity: 1; }

/* ===== 额度统计 ===== */
.quota-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quota-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
}
.quota-label {
  color: var(--text3);
  font-size: 12px;
  margin-bottom: 6px;
}
.quota-value {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  word-break: break-all;
}
.quota-unit {
  font-size: 11px;
  color: var(--text3);
  margin-top: 3px;
}

/* 月份选择框 */
.quota-month-select {
  flex-shrink: 0;
  max-width: 110px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  padding: 4px 8px;
  outline: none;
  cursor: pointer;
}

/* 柱状图 */
.quota-chart-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 8px 8px;
}
.qbar-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 150px;
  min-width: max-content;
}
.qbar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 26px;
  flex-shrink: 0;
  height: 100%;
}
.qbar-val {
  font-size: 8px;
  color: var(--text3);
  height: 14px;
  line-height: 14px;
  text-align: center;
  white-space: nowrap;
}
.qbar-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
}
.qbar-bar {
  width: 100%;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  transition: height .25s ease;
}
.qbar-label {
  font-size: 9px;
  color: var(--text3);
  margin-top: 4px;
  text-align: center;
}
/* ===== 消耗排行 ===== */
.qtop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.qtop-item:last-child { border-bottom: none; }
.qtop-item:active { opacity: 0.7; }
.qtop-rank {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg3);
  color: var(--text2);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qtop-item:nth-child(1) .qtop-rank { background: #f5a623; color: #fff; }
.qtop-item:nth-child(2) .qtop-rank { background: #b0b0b0; color: #fff; }
.qtop-item:nth-child(3) .qtop-rank { background: #c07c3a; color: #fff; }
.qtop-body {
  flex: 1;
  min-width: 0;
}
.qtop-name {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qtop-dir {
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.qtop-bar-wrap {
  height: 4px;
  background: var(--bg3);
  border-radius: 2px;
  margin-top: 5px;
  overflow: hidden;
}
.qtop-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.qtop-power {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  text-align: right;
}
.qtop-unit {
  font-size: 11px;
  font-weight: 400;
  color: var(--text3);
  margin-left: 1px;
}

.quota-limit-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
}
.quota-limit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.quota-limit-nums {
  font-size: 15px;
  font-weight: 600;
}
.quota-progress-track {
  height: 8px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
}
.quota-progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* ===== 会员充值页 ===== */
.member-status-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  min-height: 56px;
  display: flex;
  align-items: center;
}
.member-status-none {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.member-status-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.member-status-left { display: flex; flex-direction: column; gap: 3px; }
.member-status-tier { font-size: 20px; font-weight: 800; letter-spacing: 2px; }
.member-status-due { font-size: 12px; color: var(--text3); margin-top: 2px; }
.member-status-coins {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.member-status-coins-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.member-status-coins-label {
  font-size: 11px;
  color: var(--text3);
}


.member-tabs {
  display: flex;
  background: var(--bg2);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 16px;
}
.member-tab {
  flex: 1;
  padding: 8px 4px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.member-tab.active { background: var(--primary); color: #fff; }

/* 横向滚动：一次露出 2 张 + 第 3 张的边 */
.member-plans { display: none; }
.member-plans.active {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 10px;
  padding-bottom: 4px;
  scrollbar-width: none;
  /* 右侧留缺口，暗示还有更多 */
  padding-right: 30px;
}
.member-plans.active::-webkit-scrollbar { display: none; }
.member-scroll-hint {
  font-size: 11px;
  color: var(--text3);
  text-align: right;
  margin: 4px 0 0;
}

.plan-card {
  flex-shrink: 0;
  min-width: calc(50% - 5px);
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 12px;
  padding: 14px 12px 12px;
  position: relative;
  scroll-snap-align: start;
}
.plan-card-featured {
  border-color: rgba(245,166,35,0.45);
  border-top-color: var(--warning);
  background: linear-gradient(160deg, var(--bg2) 0%, rgba(245,166,35,0.06) 100%);
}
.plan-badge {
  position: absolute;
  top: -4px;
  right: 10px;
  background: var(--warning);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 0 0 6px 6px;
  letter-spacing: 0.5px;
}
.plan-tier {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.plan-tier-max { color: var(--warning); }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 10px;
}
.plan-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.plan-period { font-size: 12px; color: var(--text3); }
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
  flex: 1;
}
.plan-feat {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text2);
  line-height: 1.4;
}
.plan-feat .fa-check { color: var(--success); font-size: 10px; flex-shrink: 0; margin-top: 2px; }
.plan-feat-star .fa-star { color: var(--warning); font-size: 10px; flex-shrink: 0; margin-top: 2px; }
.plan-feat-star { color: var(--warning); }
/* 按钮沉底 */
.plan-buy-btn { width: 100%; margin-top: auto; }
.plan-footer {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text3);
  text-align: center;
  line-height: 1.7;
}

/* 多媒体资源包 */
.member-desc {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 12px;
  line-height: 1.6;
}

/* ===== 体验包卡片 ===== */
.trial-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(108,138,255,0.12), rgba(108,138,255,0.04));
  border: 1px solid rgba(108,138,255,0.3);
  border-radius: 14px;
  padding: 14px 16px;
  position: relative;
  margin-bottom: 4px;
}
.trial-badge {
  position: absolute;
  top: -1px; right: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 0 0 6px 6px;
}
.trial-info { flex: 1; min-width: 0; }
.trial-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.trial-features {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--text2);
}
.trial-features span { display: flex; align-items: center; gap: 4px; }
.trial-hint { font-size: 11px; color: var(--primary); margin-top: 4px; }
.trial-price-wrap { text-align: center; flex-shrink: 0; }
.trial-price { font-size: 20px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }

/* ===== 算力包 ===== */
.compute-packages {
  background: var(--bg2);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.cp-row {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.cp-row:last-child { border-bottom: none; }
.cp-row-featured { background: rgba(99,102,241,.08); }
.cp-name {
  width: 46px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}
.cp-power {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.cp-unit {
  font-size: 11px;
  font-weight: 400;
  color: var(--text2);
  margin-left: 2px;
}
.cp-price {
  width: 52px;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
.cp-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--warning);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-bottom-left-radius: 6px;
}

/* 资源包同样横向滚动 */
.resource-cards {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 10px;
  padding-bottom: 12px;
  padding-right: 30px;
  scrollbar-width: none;
}
.resource-cards::-webkit-scrollbar { display: none; }
.res-card {
  flex-shrink: 0;
  min-width: calc(50% - 5px);
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 12px;
  padding: 14px 12px 12px;
  position: relative;
  scroll-snap-align: start;
}
.res-card-featured {
  border-color: rgba(245,166,35,0.45);
  border-top-color: var(--warning);
  background: linear-gradient(160deg, var(--bg2) 0%, rgba(245,166,35,0.06) 100%);
}
.res-badge {
  position: absolute;
  top: -4px;
  right: 10px;
  background: var(--warning);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 0 0 6px 6px;
  letter-spacing: 0.5px;
}
.res-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 2px;
}
.res-price-featured { color: var(--warning); }
.res-credits {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 10px;
}
.res-credits-num {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}
.res-features {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
  flex: 1;
}
.res-feat {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text2);
  line-height: 1.4;
}
.res-feat .fa-check { color: var(--success); font-size: 10px; flex-shrink: 0; margin-top: 2px; }
.res-feat-star .fa-star { color: var(--warning); font-size: 10px; flex-shrink: 0; margin-top: 2px; }
.res-feat-star { color: var(--warning); }
.res-buy-btn { width: 100%; margin-top: auto; }