/* AI Writer 工具集 - 主样式表 */

.login-close-x {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: #666;
  cursor: pointer;
  line-height: 1;
}
.login-close-x:hover {
  color: #000;
}


/* 顶部用户信息栏 */
.userbar {
  position: fixed;
  top: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
}
.userbar-text {
  font-size: 14px;
  color: #444;
  background: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.userbar-btn {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
}
.userbar-btn:hover {
  background: #f3f4f6;
}

body { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background:#f7f7f8; margin:0; color:#111; }
.container { max-width: 1000px; margin: 0 auto; padding: 24px; }
.app-title { font-size:20px; font-weight:700; }

/* 公告弹窗按钮 */
.announcements-btn {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.announcements-btn:hover { background: #f3f4f6; }
.announcements-btn .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* 公告弹窗 */
.announcements-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10002;
}
.announcements-overlay.show { display: flex; }
.announcements-card {
  background: #fff;
  border-radius: 18px;
  padding: 0;
  max-width: 600px;
  width: 100%;
  margin: 20px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(15,23,42,0.35);
  animation: login-pop 0.18s ease-out;
  overflow: hidden;
}
.announcements-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}
.announcements-header-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.announcements-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.announcements-close:hover { color: #000; }
.announcements-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 28px;
}
.announcements-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.announcements-tab {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.announcements-tab:hover { background: #f3f4f6; }
.announcements-tab.active {
  background: #0ea5e9;
  color: #fff;
  border-color: #0ea5e9;
}
.announcements-content {
  display: none;
  font-size: 14px;
  line-height: 1.8;
  color: #374151;
}
.announcements-content.active { display: block; }
.announcements-content h1, .announcements-content h2, .announcements-content h3 {
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.4;
}
.announcements-content h1 { font-size: 20px; }
.announcements-content h2 { font-size: 17px; }
.announcements-content h3 { font-size: 15px; }
.announcements-content p { 
  line-height: 1.85; 
  margin: 0 0 14px 0;
  font-size: 14px;
}
.announcements-content ul, .announcements-content ol {
  margin: 0 0 14px 0;
  padding-left: 20px;
  line-height: 1.8;
}
.announcements-content li {
  margin: 6px 0;
}

/* Release Notes 样式 */
.release-notes-list { display: flex; flex-direction: column; gap: 14px; }
.release-note { border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 20px; background: #f9fafb; }
.release-note-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.release-note-date { font-weight: 600; color: #0f172a; font-size: 14px; }
.release-note-version { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.release-note-section { margin-top: 10px; }
.release-note-label { font-size: 11px; font-weight: 700; color: #475569; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.02em; }
.release-note-items { margin: 0; padding-left: 18px; color: #1f2937; font-size: 13px; line-height: 1.7; }
.release-note-items li { margin: 5px 0; }
.site-empty { color: #9ca3af; font-size: 13px; text-align: center; padding: 24px; }

/* hub 背景装饰 */
.hub { min-height: calc(100vh - 120px); display:flex; align-items:center; justify-content:center; padding:32px 16px; position: relative; overflow: hidden; --home-bg-left-url: none; --home-bg-right-url: none; --home-bg-opacity: 1; }
/* 右侧背景图 - 自适应不同屏幕尺寸 */
.hub::before { 
  content:''; 
  position: absolute; 
  right: 0; 
  top: 50%; 
  transform: translateY(-50%); 
  width: clamp(280px, 40vw, 700px); 
  height: clamp(200px, 35vh, 500px); 
  background: var(--home-bg-right-url) no-repeat; 
  background-size: contain; 
  background-position: right center; 
  opacity: var(--home-bg-opacity, 1); 
  pointer-events: none; 
  z-index: 0; 
  animation: drift-bg 8s ease-in-out infinite; 
}
@media (max-width: 1200px) {
  .hub::before { width: clamp(200px, 35vw, 400px); height: clamp(150px, 30vh, 350px); }
}
@media (max-width: 768px) {
  .hub::before { width: clamp(150px, 30vw, 280px); height: clamp(100px, 25vh, 250px); opacity: calc(var(--home-bg-opacity, 1) * 0.6); }
}
/* 左侧背景图 - 自适应不同屏幕尺寸 */
.hub::after { 
  content:''; 
  position: absolute; 
  left: 0; 
  bottom: 10%; 
  width: clamp(250px, 35vw, 550px); 
  height: clamp(180px, 30vh, 400px); 
  background: var(--home-bg-left-url) no-repeat; 
  background-size: contain; 
  background-position: left bottom; 
  opacity: var(--home-bg-opacity, 1); 
  pointer-events: none; 
  z-index: 0; 
  animation: drift-bg-left 10s ease-in-out infinite; 
}
@media (max-width: 1200px) {
  .hub::after { width: clamp(180px, 30vw, 350px); height: clamp(130px, 25vh, 280px); }
}
@media (max-width: 768px) {
  .hub::after { width: clamp(120px, 25vw, 220px); height: clamp(90px, 20vh, 180px); opacity: calc(var(--home-bg-opacity, 1) * 0.6); }
}
@keyframes drift-bg { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-15px); } }
@keyframes drift-bg-left { 0%, 100% { transform: translateY(0px) translateX(0px); } 50% { transform: translateY(-10px) translateX(5px); } }
.grid { display:flex; flex-direction:column; gap:28px; width:100%; max-width:960px; position: relative; z-index: 1; }

/* ===== 工具分区样式 ===== */
.tool-zone { border-radius:20px; padding:22px 20px 18px; position:relative; }
.tool-zone-header { display:flex; align-items:center; gap:10px; margin-bottom:16px; padding-bottom:10px; border-bottom:1px solid rgba(0,0,0,.06); }
.tool-zone-icon { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.tool-zone-info { flex:1; }
.tool-zone-title { font-size:15px; font-weight:700; letter-spacing:0.01em; }
.tool-zone-desc { font-size:12px; margin-top:2px; opacity:0.7; }
.tool-zone-badge { font-size:11px; padding:3px 10px; border-radius:999px; font-weight:600; white-space:nowrap; }
.tool-zone-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap:16px; }

/* Zone: 基础工具 */
.zone-foundation { background:linear-gradient(135deg,#f0f9ff 0%,#e0f2fe 40%,#f0f9ff 100%); border:1px solid #bae6fd; }
.zone-foundation .tool-zone-icon { background:#0ea5e9; color:#fff; }
.zone-foundation .tool-zone-title { color:#0369a1; }
.zone-foundation .tool-zone-desc { color:#0c4a6e; }
.zone-foundation .tool-zone-badge { background:#0ea5e9; color:#fff; }

/* Zone: 单篇发布 */
.zone-single { background:linear-gradient(135deg,#f5f3ff 0%,#ede9fe 40%,#f5f3ff 100%); border:1px solid #c4b5fd; }
.zone-single .tool-zone-icon { background:#7c3aed; color:#fff; }
.zone-single .tool-zone-title { color:#5b21b6; }
.zone-single .tool-zone-desc { color:#4c1d95; }
.zone-single .tool-zone-badge { background:#7c3aed; color:#fff; }

/* Zone: 批量发布 */
.zone-batch { background:linear-gradient(135deg,#f0fdf4 0%,#dcfce7 40%,#f0fdf4 100%); border:1px solid #86efac; }
.zone-batch .tool-zone-icon { background:#16a34a; color:#fff; }
.zone-batch .tool-zone-title { color:#15803d; }
.zone-batch .tool-zone-desc { color:#14532d; }
.zone-batch .tool-zone-badge { background:#16a34a; color:#fff; }

/* Zone: 辅助工具 */
.zone-auxiliary { background:linear-gradient(135deg,#fefce8 0%,#fef9c3 40%,#fefce8 100%); border:1px solid #fde047; }
.zone-auxiliary .tool-zone-icon { background:#ca8a04; color:#fff; }
.zone-auxiliary .tool-zone-title { color:#a16207; }
.zone-auxiliary .tool-zone-desc { color:#713f12; }
.zone-auxiliary .tool-zone-badge { background:#ca8a04; color:#fff; }

/* Zone: 使用指南 */
.zone-guide { background:linear-gradient(135deg,#ecfdf5 0%,#d1fae5 40%,#ecfdf5 100%); border:1px solid #6ee7b7; }
.zone-guide .tool-zone-icon { background:#059669; color:#fff; }
.zone-guide .tool-zone-title { color:#047857; }
.zone-guide .tool-zone-desc { color:#065f46; }
.zone-guide .tool-zone-badge { background:#059669; color:#fff; }

@media (max-width: 640px) {
  .tool-zone { padding:16px 14px 14px; }
  .tool-zone-grid { grid-template-columns: 1fr; }
}

.tool { position:relative; border:1px solid #e5e7eb; border-radius:16px; padding:18px; background:#fff; cursor:pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.tool:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.08); border-color:#dbeafe; }
.tool .row { display:flex; align-items:center; gap:10px; }
.tool-id { display:inline-flex; width:28px; height:28px; border-radius:999px; align-items:center; justify-content:center; background:#eef6ff; color:#0369a1; font-weight:700; }
.tool-title { font-weight:700; }
.tool-desc { color:#555; font-size:13px; margin-top:8px; }
.badge { position:absolute; top:10px; right:10px; font-size:12px; padding:4px 8px; border-radius:999px; color:#fff; }
.badge-new { background:#16a34a; }
.badge-wip { background:#f59e0b; }

/* 推荐标签 */
.badge-recommend { display:inline-flex; align-items:center; gap:3px; font-size:12px; font-weight:600; color:#ea580c; background:linear-gradient(135deg,#fff7ed,#ffedd5); padding:2px 10px; border-radius:999px; border:1px solid #fed7aa; margin-left:8px; animation:recommend-pulse 2s ease-in-out infinite; }
@keyframes recommend-pulse { 0%,100%{ opacity:1; } 50%{ opacity:0.7; } }

/* 工具卡片问号图标 */
.tool-help { position:absolute; top:10px; right:10px; width:22px; height:22px; border-radius:50%; background:#f3f4f6; color:#6b7280; font-size:12px; font-weight:600; display:flex; align-items:center; justify-content:center; cursor:pointer; transition: all 0.15s ease; text-decoration:none; z-index:5; }
.tool-help:hover { background:#0ea5e9; color:#fff; transform:scale(1.1); }

/* 反馈浮动按钮 */
.feedback-fab { position:fixed; bottom:24px; right:24px; z-index:9000; }
.feedback-fab-btn { display:flex; align-items:center; gap:6px; padding:12px 18px; border-radius:999px; background:#0ea5e9; color:#fff; font-size:14px; font-weight:600; border:none; cursor:pointer; box-shadow:0 4px 16px rgba(14,165,233,0.35); transition: all 0.15s ease; }
.feedback-fab-btn:hover { background:#0284c7; transform:translateY(-2px); box-shadow:0 6px 20px rgba(14,165,233,0.45); }

/* 反馈弹窗 */
.feedback-overlay { position:fixed; inset:0; background:rgba(15,23,42,0.55); display:none; align-items:center; justify-content:center; z-index:10001; }
.feedback-card { background:#fff; border-radius:18px; padding:24px; max-width:480px; width:100%; margin:20px; box-shadow:0 24px 60px rgba(15,23,42,0.35); animation:login-pop 0.18s ease-out; }
.feedback-title { font-size:18px; font-weight:700; margin:0 0 8px; }
.feedback-desc { font-size:13px; color:#6b7280; margin-bottom:16px; }
.feedback-textarea { width:100%; min-height:120px; padding:12px; border-radius:12px; border:1px solid #d1d5db; font-size:14px; resize:vertical; }
.feedback-textarea:focus { border-color:#0ea5e9; outline:none; box-shadow:0 0 0 2px rgba(14,165,233,0.2); }
.feedback-input { width:100%; padding:10px 12px; border-radius:10px; border:1px solid #d1d5db; font-size:13px; margin-top:12px; }
.feedback-input:focus { border-color:#0ea5e9; outline:none; }
.feedback-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:16px; }
.feedback-status { font-size:12px; margin-top:10px; }

.theme-1 { border-color:#dbeafe; background: linear-gradient(0deg, #ffffff 0%, #f8fbff 100%); }
.theme-2 { border-color:#ffe4e6; background: linear-gradient(0deg, #ffffff 0%, #fff7f9 100%); }
.theme-3 { border-color:#fef3c7; background: linear-gradient(0deg, #ffffff 0%, #fffbeb 100%); }

/* icon */
.icon { width:26px; height:26px; }
.icon path { stroke-width:1.6; }

/* overlay & wizard */
.overlay{ position:fixed; inset:0; background:rgba(0,0,0,.35); display:none; align-items:flex-start; justify-content:center; padding:20px; z-index:9999; overflow-y:auto; }
.wizard{ width:100%; max-width:720px; background:#fff; border-radius:16px; box-shadow:0 12px 30px rgba(0,0,0,.18); padding:20px; animation:pop .18s ease-out; margin:auto 0; }
@keyframes pop{ from{ transform:scale(.96); opacity:.6 } to{ transform:scale(1); opacity:1 } }
.w-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.w-title{ font-size:20px; font-weight:700; }
.w-step{ font-size:12px; color:#666; }
.w-label{ font-weight:700; margin: 6px 0; }
.w-desc{ font-size:14px; color:#555; margin: 4px 0 8px; }
.w-example{ font-size:13px; background:#f6f8fa; border:1px dashed #d0d7de; padding:10px; border-radius:10px; color:#333; white-space:pre-wrap; }
textarea, input[type=text]{ width:100%; padding:12px; border-radius:12px; border:1px solid #ccc; font-size:14px; box-sizing:border-box; }
.w-actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:12px; }
button{ padding:10px 14px; border-radius:12px; border:1px solid #ccc; background:#fff; cursor:pointer; }
.btn-primary{ background:#0ea5e9; color:#fff; border-color:#0ea5e9; }
.btn-ghost{ background:transparent; }

.review-row{ display:grid; grid-template-columns:180px 1fr; gap:10px; align-items:start; margin:10px 0; }
.review-label{ font-weight:700; }
.copy-wrap{ display:flex; gap:8px; align-items:center; }
.readonly{ width:100%; height:260px; }
.small { color:#666; font-size: 12px; }

.close-x {
  border: none; background: transparent; cursor: pointer;
  font-size: 20px; line-height: 1; color: #666; padding: 6px 8px;
  border-radius: 10px;
}
.close-x:hover { background: #f3f4f6; }
.w-head-right { display:flex; align-items:center; gap:10px; }

/* 工具注释提示图标 */
.tool-tip-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: help;
  position: relative;
  font-size: 13px;
  color: #0ea5e9;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 3px 8px;
  margin-left: 8px;
  vertical-align: middle;
  white-space: nowrap;
}
.tool-tip-trigger:hover { background: #e0f2fe; }
.tool-tip-trigger .tip-icon { font-size: 14px; }
.tool-tip-trigger .tip-label { font-size: 12px; }
.tool-tip-trigger .tip-popup {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 10001;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 13px;
  line-height: 1.6;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  min-width: 260px;
  max-width: 400px;
  white-space: pre-wrap;
  word-break: break-word;
}
.tool-tip-trigger .tip-popup::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 16px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #1e293b;
}
.tool-tip-trigger:hover .tip-popup { display: block; }

/* 登录弹窗 */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.login-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 24px 24px 18px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(15,23,42,0.35);
  animation: login-pop 0.18s ease-out;
}
@keyframes login-pop {
  from { transform: translateY(10px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.login-card h2 {
  margin: 0 0 8px;
}
.login-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d4d4d8;
  margin: 6px 0;
  font-size: 14px;
  box-sizing: border-box;
}
.login-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: #0ea5e9;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  margin-top: 8px;
}
.login-btn:hover { filter: brightness(0.97); }
.login-error {
  color: #b91c1c;
  font-size: 12px;
  min-height: 16px;
  margin-top: 4px;
}

/* 文章话题生成结果区域样式 */
.q-result-card {
  background:#fff;
  border-radius:16px;
  padding:16px;
  box-shadow:0 4px 16px rgba(0,0,0,.06);
  margin-top:16px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.q-result-wrapper {
  position:relative;
  margin-top:8px;
}
.q-result-box {
  width:100%;
  height:320px;
  padding:12px;
  border-radius:12px;
  border:1px solid #d4d4d8;
  font-size:14px;
  box-sizing:border-box;
  resize:vertical;
  white-space:pre-wrap;
  overflow:auto;
}
.q-full-btn {
  position:absolute;
  top:8px;
  right:8px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid #d1d5db;
  background:#fff;
  font-size:12px;
  cursor:pointer;
}
.q-full-btn:hover { background:#f3f4f6; }

/* 写文章原材料生成器样式 */
.research-item {
  padding:12px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  margin-bottom:8px;
  background:#fafafa;
}
.research-item-header {
  display:flex;
  align-items:center;
  gap:10px;
}
.research-item-num {
  display:inline-flex;
  width:24px;
  height:24px;
  border-radius:999px;
  align-items:center;
  justify-content:center;
  background:#e0f2fe;
  color:#0369a1;
  font-weight:600;
  font-size:12px;
  flex-shrink:0;
}
.research-item-title {
  flex:1;
  font-size:13px;
  color:#374151;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.research-item-status {
  font-size:12px;
  flex-shrink:0;
}
.research-item-detail {
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid #e5e7eb;
}
.insight-item {
  padding:12px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  margin-bottom:8px;
  background:#fff;
}
.insight-topic {
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
}
.insight-topic-num {
  display:inline-flex;
  width:22px;
  height:22px;
  border-radius:999px;
  align-items:center;
  justify-content:center;
  background:#e0f2fe;
  color:#0369a1;
  font-weight:600;
  font-size:11px;
  flex-shrink:0;
}
.insight-input {
  width:100%;
  padding:10px;
  border-radius:10px;
  border:1px solid #d1d5db;
  font-size:13px;
  resize:vertical;
}
.insight-input:focus {
  border-color:#0ea5e9;
  outline:none;
  box-shadow:0 0 0 2px rgba(14,165,233,0.15);
}

/* 翻译语言选择样式 */
.translate-lang-checkbox {
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:6px 10px;
  border-radius:8px;
  border:1px solid #e2e8f0;
  background:#fff;
  font-size:13px;
  cursor:pointer;
  transition:all .15s ease;
}
.translate-lang-checkbox:hover {
  border-color:#0ea5e9;
  background:#f0f9ff;
}
.translate-lang-checkbox:has(input:checked) {
  border-color:#0ea5e9;
  background:#e0f2fe;
  color:#0369a1;
}
.translate-lang-checkbox input {
  margin:0;
  accent-color:#0ea5e9;
}
.translate-tab {
  padding:6px 12px;
  border-radius:8px;
  border:1px solid #e2e8f0;
  background:#fff;
  font-size:13px;
  cursor:pointer;
  transition:all .12s ease;
}
.translate-tab:hover {
  border-color:#0ea5e9;
  background:#f0f9ff;
}
.translate-tab.active {
  border-color:#0ea5e9;
  background:#0ea5e9;
  color:#fff;
}

/* 全屏模式 */
.q-fullscreen-overlay {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:10001;
}
.q-fullscreen-card {
  background:#fff;
  max-width:98vw;
  width:98vw;
  max-height:98vh;
  height:98vh;
  border-radius:16px;
  box-shadow:0 24px 80px rgba(0,0,0,.35);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.q-fullscreen-card textarea {
  flex:1;
  width:100%;
  resize:none;
  white-space:pre-wrap;
  overflow:auto;
  box-sizing:border-box;
  border-radius:12px;
  border:1px solid #d4d4d8;
  padding:10px;
}

.q-count-select {
  padding:6px 10px;
  border-radius:10px;
  border:1px solid #d4d4d8;
  font-size:13px;
}

/* 顶部提示条 */
.q-banner {
  margin-top:4px;
  padding:10px 16px;
  border-radius:999px;
  font-size:13px;
  line-height:1.5;
  text-align:center;
  display:none;
}
.q-banner--raw {
  background:#e0f2fe;
  color:#0f172a;
}
.q-banner--tagging {
  background:#fef3c7;
  color:#92400e;
}

/* 话题标记表格样式 */
.tagging-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.tagging-table th {
  background: #f0f4f8;
  padding: 10px 5px;
  font-size: 13px;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}
.tagging-table td {
  padding: 8px 5px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
  font-size: 13px;
}
.topic-cell {
  word-wrap: break-word;
  line-height: 1.4;
  padding-right: 6px;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tag-button {
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  background: #fff;
  transition: background-color 0.1s;
  white-space: nowrap;
}
.tag-button.selected {
  color: white;
  font-weight: 600;
  border-color: transparent;
}

/* 补充短语列 */
.prefix-group {
  display:flex;
  flex-direction:column;
  gap:4px;
  align-items:flex-start;
}
.prefix-button {
  padding:3px 7px;
  border-radius:999px;
  border:1px solid #d4d4d8;
  background:#f9fafb;
  font-size:11px;
  cursor:pointer;
  line-height:1.3;
  text-align:left;
  white-space:normal;
}
.prefix-button.selected {
  background:#0ea5e9;
  color:#fff;
  border-color:#0ea5e9;
}

.tagging-controls {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}
.export-output {
  width: 100%;
  min-height: 150px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  white-space: pre;
  overflow: auto;
  font-family: monospace;
  font-size: 13px;
  background: #f9f9f9;
}

/* Step 4 发布流程进度样式 */
#publishProgressList div { display: flex; align-items: center; gap: 6px; }
#publishProgressList div::before { content: '\23F3'; }
#publishProgressList div.running::before { content: '\1F504'; animation: spin 1s linear infinite; }
#publishProgressList div.done::before { content: '\2705'; }
#publishProgressList div.error::before { content: '\274C'; }
#publishProgressList div.pending { color: #9ca3af; }
#publishProgressList div.running { color: #2563eb; font-weight: 500; }
#publishProgressList div.done { color: #16a34a; }
#publishProgressList div.error { color: #dc2626; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* 发布流程入口按钮样式 */
#imagesPublishFlowEntry {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  margin-top: 16px;
  border: 2px dashed #6366f1;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%);
}
#imagesPublishFlowEntry .entry-title {
  font-weight: 700;
  color: #4f46e5;
  font-size: 15px;
}
#imagesPublishFlowEntry .entry-desc {
  font-size: 13px;
  color: #6366f1;
  text-align: center;
}

/* 发布预览图片样式 */
#publishPreviewContent img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 8px 0;
}

/* ===== B3: Skeleton screen loading ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  height: 120px;
  border-radius: 16px;
  margin-bottom: 18px;
}
.skeleton-line {
  height: 14px;
  margin-bottom: 10px;
  border-radius: 6px;
}
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.long { width: 95%; }
.skeleton-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* ===== B5: Progress bar for Tool 7 ===== */
.publish-progress-bar-wrap {
  width: 100%;
  background: #e5e7eb;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin: 8px 0;
}
.publish-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
  border-radius: 999px;
  transition: width 0.4s ease;
  width: 0%;
}
.publish-progress-text {
  font-size: 12px;
  color: #6b7280;
  text-align: right;
  margin-top: 2px;
}
