:root {
  --btn-radius: 10px;
  --primary-color: #C81D27;
  --primary-hover: #A91520;
  --btn-padding-y: 8px;
  --btn-padding-x: 18px;
  --font-size: 14px;
  /* 文字灰度色阶 — Apple HIG */
  --text-primary: #29181A;
  --text-body: #4B3336;
  --text-secondary: #806A6C;
  --text-muted: #806A6C;
  --text-placeholder: #A99496;
  --border-color: rgba(86, 31, 35, 0.12);
  --border-light: rgba(86, 31, 35, 0.07);
  --bg-page: #FFF8F5;
  --bg-surface: #FFFDFC;
  --bg-subtle: #FFF4F1;
}

/* 手动剪辑轨道 */
.clip-timeline-panel {
  background: #fff;
  border: 1px solid var(--border-color, rgba(0, 0, 0, .06));
  border-radius: 14px;
  margin-top: 18px;
  padding: 18px;
}

.clip-timeline-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.clip-timeline-header h2 {
  color: #111827;
  font-size: 16px;
  margin: 0 0 4px;
}

.clip-timeline-header p,
.clip-timeline-header span {
  color: #6b7280;
  font-size: 12px;
  margin: 0;
}

.clip-timeline-header span {
  background: #FFF1F0;
  border-radius: 999px;
  color: #A91520;
  font-weight: 600;
  padding: 7px 11px;
  white-space: nowrap;
}

.clip-timeline-track {
  align-items: stretch;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  min-height: 196px;
  overflow-x: auto;
  padding: 12px;
}

.clip-timeline-empty {
  align-items: center;
  color: #9ca3af;
  display: flex;
  font-size: 13px;
  justify-content: center;
  min-width: 100%;
}

.clip-timeline-item {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  cursor: grab;
  flex: 0 0 150px;
  padding: 8px;
  position: relative;
}

.clip-timeline-item.dragging {
  opacity: .45;
}

.clip-timeline-order {
  align-items: center;
  background: #A91520;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  left: 4px;
  position: absolute;
  top: 4px;
  width: 24px;
  z-index: 2;
}

.clip-timeline-thumb {
  align-items: center;
  background: #eef2f7;
  border-radius: 7px;
  display: flex;
  height: 78px;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.clip-timeline-thumb img,
.clip-timeline-thumb video {
  height: 100% !important;
  object-fit: contain;
  width: 100% !important;
}

.clip-timeline-name {
  color: #374151;
  font-size: 12px;
  margin: 7px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clip-timeline-duration {
  align-items: center;
  color: #6b7280;
  display: flex;
  font-size: 11px;
  gap: 4px;
}

.clip-timeline-duration input {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  height: 30px;
  padding: 4px 5px;
  width: 54px;
}

.clip-timeline-subtitle {
  align-items: stretch;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  gap: 4px;
  margin-top: 6px;
}

.clip-timeline-subtitle input {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  height: 30px;
  padding: 4px 6px;
  width: 100%;
}

.clip-timeline-actions {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 7px;
}

.clip-timeline-actions button {
  background: #f3f4f6;
  border: 0;
  border-radius: 6px;
  color: #374151;
  cursor: pointer;
  min-height: 32px;
}

.clip-timeline-actions button:hover:not(:disabled),
.clip-timeline-actions button:focus-visible {
  background: #FDE9E8;
  color: #83131B;
  outline: 2px solid #F6A0A4;
}

.clip-timeline-actions button:disabled {
  cursor: default;
  opacity: .35;
}

.clip-timeline-actions button.danger:hover,
.clip-timeline-actions button.danger:focus-visible {
  background: #fee2e2;
  color: #dc2626;
}

/* 手动剪辑台：沿用后台的浅色页面和蓝色操作按钮 */
.manual-edit-page { background: var(--bg-page, #FFF8F5); color: #1f2937; min-height: calc(100vh - 54px); padding: 22px; }
.manual-edit-header { align-items: flex-end; display: flex; gap: 20px; justify-content: space-between; margin: 0 auto 16px; max-width: 1560px; }
.manual-edit-header .breadcrumb { color: #6b7280; margin-bottom: 8px; }
.manual-edit-header h1 { color: #111827; font-size: 28px; letter-spacing: -.025em; }
.manual-edit-header-actions { align-items: center; display: flex; gap: 10px; }
.manual-edit-header-actions select { background: #fff; border: 1px solid #d1d5db; border-radius: 8px; color: #374151; min-height: 42px; padding: 0 12px; }
.manual-edit-header-actions .btn { min-height: 42px; }
.manual-edit-workbench { display: grid; gap: 12px; grid-template-columns: 250px minmax(380px, 1fr) 235px; margin: 0 auto 14px; max-width: 1560px; }
.manual-assets-panel, .manual-preview-panel, .manual-settings-panel, .manual-timeline-shell { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; }
.manual-assets-panel, .manual-settings-panel { min-height: 420px; padding: 14px; }
.manual-preview-panel { min-height: 420px; padding: 14px; }
.manual-panel-title { align-items: center; border-bottom: 1px solid #e5e7eb; color: #1f2937; display: flex; font-size: 14px; font-weight: 700; justify-content: space-between; padding-bottom: 11px; }
.manual-panel-title span:last-child { color: #6b7280; font-size: 12px; font-weight: 500; }
.manual-add-material { background: #A91520; border-radius: 8px; color: #fff; font-weight: 700; margin: 13px 0; min-height: 42px; padding: 0 12px; width: 100%; }
.manual-add-material:hover, .manual-add-material:focus-visible { background: #83131B; outline: 2px solid #F6A0A4; outline-offset: 2px; }
.manual-assets-list { display: grid; gap: 8px; max-height: 340px; overflow-y: auto; }
.manual-empty-tip, .manual-track-empty { align-items: center; color: #9ca3af; display: flex; font-size: 12px; justify-content: center; min-height: 80px; text-align: center; }
.manual-asset-item { align-items: center; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; display: grid; gap: 8px; grid-template-columns: 42px minmax(0, 1fr) auto; min-height: 54px; padding: 5px; }
.manual-asset-thumb { background: #eef2f7; border-radius: 5px; height: 40px; overflow: hidden; width: 40px; }
.manual-asset-thumb img, .manual-asset-thumb video { height: 100% !important; object-fit: cover; width: 100% !important; }
.manual-asset-item > span { color: #374151; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manual-asset-item button, .manual-audio-actions button, .manual-playbar button { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 6px; color: #374151; min-height: 32px; padding: 0 8px; }
.manual-asset-item button:hover, .manual-audio-actions button:hover, .manual-playbar button:hover { background: #FFF1F0; border-color: #F6A0A4; color: #83131B; }
.manual-preview-box { align-items: center; background: #FFF8F5; border-radius: 8px; display: flex; height: 420px; justify-content: center; margin-top: 12px; overflow: hidden; }
.manual-preview-box video, .manual-preview-box img { display: block; height: auto; max-height: 100%; max-width: 100%; object-fit: contain; width: auto; }
.manual-preview-empty { color: #9ca3af; font-size: 13px; }
.manual-playbar { align-items: center; display: flex; margin-top: 10px; }
.manual-setting-label { color: #4b5563; display: grid; font-size: 12px; gap: 8px; margin-top: 16px; }
.manual-setting-label output { color: #A91520; float: right; font-weight: 700; }
.manual-setting-label select { background: #fff; border: 1px solid #d1d5db; border-radius: 7px; color: #374151; min-height: 38px; padding: 0 8px; width: 100%; }
.manual-setting-label input[type="range"] { accent-color: #A91520; width: 100%; }
.manual-audio-actions { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin-top: 8px; }
.manual-toggle { align-items: center; color: #374151; display: flex; font-size: 13px; gap: 8px; margin-top: 16px; }
.manual-toggle input { accent-color: #A91520; height: 17px; width: 17px; }
.manual-timeline-shell { margin: 0 auto; max-width: 1560px; overflow: hidden; padding: 14px; }
.manual-timeline-toolbar { align-items: center; display: flex; justify-content: space-between; margin-bottom: 14px; }
.manual-timeline-toolbar h2 { color: #1f2937; font-size: 16px; }
.manual-timeline-toolbar > span { background: #FFF1F0; border-radius: 99px; color: #A91520; font-size: 12px; font-weight: 700; padding: 7px 10px; }
.manual-time-ruler { border-bottom: 1px solid #e5e7eb; height: 28px; margin-left: 102px; position: relative; }
.manual-time-ruler span { color: #9ca3af; font-size: 10px; position: absolute; transform: translateX(-50%); }
.manual-track-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); min-height: 104px; }
.manual-track-row + .manual-track-row { border-top: 1px solid #e5e7eb; }
.manual-track-label { align-items: center; border-right: 1px solid #e5e7eb; color: #4b5563; display: flex; font-size: 12px; justify-content: center; }
.manual-track-content { align-items: center; background: #fcfcfd; display: flex; gap: 8px; min-height: 104px; overflow-x: auto; padding: 9px 12px; }
.manual-video-clip { background: #e8f7fa; border: 1px solid #22b9cf; border-radius: 7px; cursor: grab; flex: 0 0 auto; min-height: 84px; overflow: hidden; padding: 6px 7px 5px; position: relative; }
.manual-video-clip.dragging { opacity: .45; }
.manual-video-thumb { background: #d6edf1; border-radius: 4px; float: left; height: 45px; margin-right: 7px; overflow: hidden; width: 64px; }
.manual-video-thumb img, .manual-video-thumb video { height: 100% !important; object-fit: cover; width: 100% !important; }
.manual-video-name { color: #155e75; font-size: 11px; font-weight: 700; overflow: hidden; padding-top: 2px; text-overflow: ellipsis; white-space: nowrap; }
.manual-video-clip label { color: #0f766e; display: block; font-size: 10px; margin-top: 8px; }
.manual-video-clip input { background: #fff; border: 1px solid #8ed8e4; border-radius: 4px; color: #155e75; height: 23px; margin-left: 3px; padding: 0 3px; width: 42px; }
.manual-clip-remove { background: rgba(255, 255, 255, .92); border: 1px solid #b6dce2; border-radius: 50%; color: #0f766e; height: 22px; position: absolute; right: 5px; top: 5px; width: 22px; }
.manual-audio-clip { align-items: center; background: repeating-linear-gradient(90deg, #e8f1ff 0 5px, #dceaff 5px 9px); border: 1px solid #75a8ff; border-radius: 7px; color: #1e4f9a; display: flex; height: 58px; justify-content: space-between; padding: 0 12px; }
.manual-audio-clip small { color: #3b6db6; font-size: 11px; }
.manual-subtitle-clip { background: #f4edff; border: 1px solid #c5a3ff; border-radius: 7px; color: #5b3294; display: grid; flex: 0 0 auto; font-size: 10px; gap: 5px; min-height: 64px; padding: 7px; }
.manual-subtitle-clip.disabled { opacity: .45; }
.manual-subtitle-clip input { background: #fff; border: 1px solid #d7c0fb; border-radius: 4px; color: #5b3294; height: 28px; padding: 0 6px; width: 100%; }
.manual-picker-summary { color: #4b5563; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.manual-picker-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); max-height: 52vh; overflow-y: auto; }
.manual-picker-item { background: #fff; border: 1px solid #dbe3ee; border-radius: 9px; color: #24334a; min-height: 130px; overflow: hidden; padding: 7px; position: relative; text-align: left; }
.manual-picker-item.selected { border: 2px solid #A91520; background: #FFF1F0; }
.manual-picker-check { align-items: center; background: #A91520; border: 2px solid #fff; border-radius: 50%; color: #fff; display: none; font-size: 12px; font-style: normal; font-weight: 700; height: 22px; justify-content: center; position: absolute; right: 5px; top: 5px; width: 22px; z-index: 1; }
.manual-picker-item.selected .manual-picker-check { display: flex; }
.manual-picker-item > span { display: block; height: 74px; overflow: hidden; }
.manual-picker-item img, .manual-picker-item video { height: 100% !important; object-fit: cover; width: 100% !important; }
.manual-picker-item b { display: block; font-size: 12px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manual-picker-item em { color: #64748b; display: block; font-size: 11px; font-style: normal; margin-top: 4px; }

@media (max-width: 1050px) {
  .manual-edit-workbench { grid-template-columns: 220px minmax(320px, 1fr); }
  .manual-settings-panel { grid-column: 1 / -1; min-height: auto; }
}

@media (max-width: 700px) {
  .manual-edit-page { padding: 14px; }
  .manual-edit-header { align-items: flex-start; flex-direction: column; }
  .manual-edit-workbench { grid-template-columns: 1fr; }
  .manual-assets-panel, .manual-preview-panel { min-height: auto; }
  .manual-preview-box { height: 280px; }
  .manual-track-row { grid-template-columns: 64px minmax(0, 1fr); }
  .manual-time-ruler { margin-left: 74px; }
  .manual-timeline-toolbar { align-items: flex-start; gap: 10px; }
}

@media (max-width: 768px) {
  .clip-timeline-panel {
    margin-bottom: 80px;
    padding: 14px;
  }

  .clip-timeline-header {
    align-items: flex-start;
    gap: 10px;
  }
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: #111827;
  background: #FFF8F5;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}

/* 全局焦点可见样式 */
a:focus-visible,
[tabindex]:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 1px;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; font-size: 13px; }
table { border-collapse: collapse; width: 100%; }

/* 图标统一样式 */
.icon { width: 1.1em; height: 1.1em; vertical-align: -0.18em; display: inline; flex-shrink: 0; }
.icon-md { width: 1.4em; height: 1.4em; vertical-align: -0.25em; }
.icon-lg { width: 2em; height: 2em; }
.icon-xl { width: 44px; height: 44px; }
.template-icon .icon { width: 28px; height: 28px; }
.p-icon .icon { width: 48px; height: 48px; }
.breadcrumb .icon { opacity: 0.75; }
.icon-spin { animation: icon-spin 1.5s linear infinite; }
@keyframes icon-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.app-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  height: 54px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  color: #111827;
  padding: 0 22px;
  flex-shrink: 0;
  box-shadow: none;
  position: relative;
  z-index: 10;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

.logo { display: flex; align-items: center; gap: 8px; }
.mobile-back-button { display: none; }
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  box-shadow: 0 7px 16px rgba(154, 24, 31, .18);
  flex: 0 0 auto;
}
.logo-text { font-size: 15px; font-weight: 700; }
.logo-sub { font-size: 12px; opacity: 0.65; }

.spacer { flex: 1; }

.top-info { display: flex; align-items: center; gap: 10px; margin-right: 16px; }
.env-tag {
  background: rgba(0,0,0,0.04);
  padding: 3px 10px; border-radius: 8px;
  font-size: 12px;
  color: #86868B;
}
.date, .version { font-size: 12px; opacity: 0.65; color: #86868B; }

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

/* ===== 登录后首页与功能入口 ===== */
.site-nav {
  align-items: center;
  display: flex;
  gap: 36px;
  margin-right: 36px;
}
.site-nav-link {
  color: #26334a;
  font-size: 15px;
  font-weight: 600;
  min-height: 44px;
  padding: 0 2px;
  position: relative;
}
.site-nav-link::after {
  background: #A91520;
  border-radius: 999px;
  bottom: 4px;
  content: '';
  height: 3px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) scaleX(0);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
  width: 22px;
}
.site-nav-link:hover, .site-nav-link.active { color: #83131B; }
.site-nav-link.active::after { transform: translateX(-50%) scaleX(1); }
.site-nav-link:focus-visible,
.home-create-button:focus-visible,
.function-card:focus-visible,
.function-hub-home:focus-visible { outline: 3px solid #F6A0A4; outline-offset: 3px; }

.home-page,
.function-hub-page { min-height: 100%; }
.home-hero {
  align-items: center;
  background:
    radial-gradient(circle at 74% 26%, rgba(255,255,255,.98) 0 2px, transparent 3px),
    radial-gradient(circle at 85% 18%, rgba(255,255,255,.8) 0 4px, transparent 5px),
    radial-gradient(circle at 77% 66%, rgba(255,255,255,.9) 0 3px, transparent 4px),
    radial-gradient(ellipse at 52% 74%, rgba(255,255,255,.94) 0 16%, transparent 49%),
    linear-gradient(130deg, #FFFDFC 0%, #FFF4F1 43%, #FFE7E4 100%);
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 54px);
  overflow: hidden;
  padding: 56px 28px 96px;
  position: relative;
}
.home-hero::before,
.home-hero::after,
.home-hero-orbit {
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 50%;
  content: '';
  pointer-events: none;
  position: absolute;
  transform: rotate(-18deg);
}
.home-hero::before { bottom: -72%; height: 110%; right: -12%; width: 125%; }
.home-hero::after { bottom: -68%; height: 90%; right: -2%; width: 100%; }
.home-hero-orbit.orbit-one { bottom: -56%; height: 70%; right: 13%; width: 72%; }
.home-hero-orbit.orbit-two { bottom: -44%; height: 54%; right: 33%; width: 56%; }
.home-hero-copy { max-width: 760px; position: relative; text-align: center; z-index: 1; }
.home-kicker { color: #56709e; font-size: 16px; font-weight: 700; letter-spacing: .08em; margin-bottom: 20px; }
.home-hero h1 {
  color: #0d2042;
  font-size: clamp(54px, 7.4vw, 106px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
  text-wrap: balance;
}
.home-description { color: #536d99; font-size: clamp(18px, 2vw, 27px); font-weight: 500; margin-top: 28px; }
.home-create-button {
  background: #A91520;
  border-radius: 14px;
  box-shadow: 0 14px 26px rgba(37,99,235,.27);
  color: #fff;
  display: inline-flex;
  font-size: 24px;
  font-weight: 700;
  justify-content: center;
  margin-top: 44px;
  min-height: 70px;
  min-width: 260px;
  padding: 16px 34px;
  transition: background .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s cubic-bezier(.2,.8,.2,1), transform .22s cubic-bezier(.2,.8,.2,1);
}
.home-create-button:hover { background: #83131B; box-shadow: 0 18px 32px rgba(37,99,235,.34); transform: translateY(-2px); }

.function-hub-page { background: linear-gradient(135deg, #FFF9F7, #FFF5F2); min-height: calc(100vh - 54px); padding: clamp(28px, 3.5vw, 52px) clamp(18px, 6.5vw, 110px) 46px; }
.function-hub-heading { align-items: end; display: flex; justify-content: flex-end; margin: 0 auto 22px; max-width: 1440px; }
.function-hub-eyebrow { color: #A91520; font-size: 14px; font-weight: 700; letter-spacing: .12em; margin-bottom: 8px; }
.function-hub-heading h1 { color: #10213e; font-size: clamp(30px, 3.2vw, 46px); letter-spacing: -.025em; line-height: 1.18; text-wrap: balance; }
.function-hub-heading p:not(.function-hub-eyebrow) { color: #60708b; font-size: 15px; margin-top: 12px; }
.function-hub-home { border: 1px solid #d6e1f2; border-radius: 10px; color: #315178; font-size: 14px; font-weight: 600; min-height: 44px; padding: 0 16px; transition: background .2s ease, border-color .2s ease; }
.function-hub-home:hover { background: #fff; border-color: #F6A0A4; }
.function-hub-return {
  align-items: center;
  border: 1px solid #d6e1f2;
  border-radius: 10px;
  color: #315178;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 7px;
  margin: 14px 24px -2px;
  min-height: 40px;
  padding: 0 13px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.function-hub-return:hover { background: #FFF1F0; border-color: #F6A0A4; color: #83131B; }
.function-hub-return:focus-visible { outline: 3px solid #F6A0A4; outline-offset: 3px; }
.function-card-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 auto; max-width: 1440px; }
.function-card {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(31,48,78,.08);
  display: flex;
  gap: 20px;
  min-height: 204px;
  padding: 30px 32px;
  text-align: left;
  transition: border-color .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s cubic-bezier(.2,.8,.2,1), transform .22s cubic-bezier(.2,.8,.2,1);
}
.function-card:hover { border-color: #76a9ff; box-shadow: 0 18px 32px rgba(31,48,78,.14); transform: translateY(-4px); }
.function-card.featured { border: 2px solid #2671f7; box-shadow: 0 14px 28px rgba(37,99,235,.16); }
.function-card-icon { align-items: center; border-radius: 18px; display: inline-flex; flex: 0 0 94px; height: 94px; justify-content: center; width: 94px; }
.function-card-icon img { height: 48px; width: 48px; }
.tone-blue { background: linear-gradient(135deg, #d7e8ff, #8dbdff); }.tone-violet { background: linear-gradient(135deg, #e9dcff, #c0a8ff); }.tone-mint { background: linear-gradient(135deg, #c9f4e7, #89ddc8); }.tone-peach { background: linear-gradient(135deg, #ffe7c8, #ffbd85); }.tone-sky { background: linear-gradient(135deg, #d9e9ff, #9fc6ff); }.tone-lilac { background: linear-gradient(135deg, #e7e1ff, #b8a8fa); }.tone-cyan { background: linear-gradient(135deg, #cef5fa, #7bdae7); }.tone-amber { background: linear-gradient(135deg, #ffe4b5, #ffc45d); }.tone-rose { background: linear-gradient(135deg, #ffd9ea, #f5a0c9); }.tone-coral { background: linear-gradient(135deg, #ffe0d6, #ffad9a); }
.function-card-copy { display: grid; gap: 9px; min-width: 0; }
.function-card-copy strong { color: #111827; font-size: clamp(22px, 1.8vw, 29px); line-height: 1.15; }
.function-card-copy small { color: #65718a; font-size: 14px; line-height: 1.55; }
.touch-card { background: linear-gradient(135deg, #fff 0%, #fff6f2 100%); }
.touch-hub-page { background: linear-gradient(135deg, #fff9f5, #f2f7ff); min-height: calc(100vh - 54px); padding: clamp(28px, 3.5vw, 52px) clamp(18px, 6.5vw, 110px) 46px; }
.touch-hub-heading { display: flex; justify-content: flex-end; margin: 0 auto 22px; max-width: 1440px; }
.touch-card-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 auto; max-width: 1440px; }
.touch-function-card { align-items: center; background: #fff; border: 1px solid rgba(148,163,184,.14); border-radius: 18px; box-shadow: 0 12px 24px rgba(31,48,78,.08); display: flex; gap: 20px; min-height: 174px; padding: 27px 30px; text-align: left; transition: border-color .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s cubic-bezier(.2,.8,.2,1), transform .22s cubic-bezier(.2,.8,.2,1); }
.touch-function-card:hover { border-color: #76a9ff; box-shadow: 0 18px 32px rgba(31,48,78,.14); transform: translateY(-4px); }
.touch-function-card:focus-visible { outline: 3px solid #F6A0A4; outline-offset: 3px; }

.bell-wrap {
  position: relative;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.bell-wrap:hover { background: rgba(0,0,0,0.04); }
.bell-wrap .badge {
  position: absolute;
  top: -2px; right: -2px;
  background: #EF4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.notif-dropdown {
  display: none;
  position: absolute;
  top: 40px; right: 0;
  width: 320px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 0.5px solid rgba(0,0,0,0.08);
  color: #111827;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
  z-index: 100;
  max-height: 400px;
  overflow-y: auto;
}
.notif-dropdown.show { display: block; }
.notif-item {
  padding: 12px 14px;
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
  cursor: pointer;
  display: flex;
  gap: 10px;
  transition: background 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.notif-item:hover { background: rgba(0,0,0,0.02); }
.notif-item:last-child { border-bottom: none; }
.notif-item .n-icon { font-size: 16px; flex-shrink: 0; }
.notif-item .n-text { font-size: 12px; flex: 1; line-height: 1.4; }
.notif-item .n-time { font-size: 11px; color: #86868B; margin-top: 3px; }
.notif-item.read { opacity: 0.5; }

.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
  color: #374151;
}

.main-body { display: flex; flex: 1; overflow: hidden; }

.bottom-tab-bar {
  display: none;
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background: #FFF8F5;
}

.breadcrumb {
  padding: 14px 24px 0;
  font-size: 13px;
  color: #86868B;
}
.breadcrumb .sep { margin: 0 6px; color: #C7C7CC; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px 16px;
}
.page-header h1 { font-size: 24px; font-weight: 600; color: #111827; }

.page-subtitle {
  padding: 12px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.page-panel {
  display: none;
}
.page-panel.active {
  display: block;
}

.btn-create {
  background: #C81D27;
  color: #fff;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--btn-radius);
  font-size: var(--font-size);
  font-weight: 500;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-create:hover {
  background: #A91520;
  box-shadow: 0 2px 8px rgba(59,130,246,0.2);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px 12px;
  flex-wrap: wrap;
}

.toolbar select, .toolbar input {
  border: 0.5px solid rgba(0,0,0,0.08);
  background: #FFFFFF;
  padding: 12px 14px;
  border-radius: 10px;
  outline: none;
  font-size: 13px;
}
.toolbar select:focus, .toolbar input:focus { border-color: #C81D27; box-shadow: 0 0 0 3px rgba(59,130,246,0.08); }

.search-box {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 0 14px;
  min-width: 220px;
}
.search-box input {
  border: none;
  background: transparent;
  flex: 1;
  padding: 12px 0;
  outline: none;
  font-size: 13px;
}
.search-icon { color: #86868B; margin-right: 6px; font-size: 12px; }

.spacer-tool { flex: 1; }

.batch-info { font-size: 12px; color: #86868B; }

.btn-batch {
  background: rgba(0,0,0,0.04);
  border: 0.5px solid rgba(0,0,0,0.06);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  color: #374151;
  position: relative;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.btn-batch:hover { background: rgba(0,0,0,0.06); }

.batch-menu {
  display: none;
  position: absolute;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
  padding: 4px;
  z-index: 10;
  min-width: 120px;
}
.batch-menu.show { display: block; }
.batch-menu > div {
  padding: 8px 12px;
  font-size: 12.5px;
  cursor: pointer;
  border-radius: 8px;
  color: #374151;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.batch-menu > div:hover { background: rgba(0,0,0,0.04); }
.batch-menu > div.danger { color: #EF4444; }
.batch-menu > div.danger:hover { background: rgba(239,68,68,0.08); }

.table-wrap {
  padding: 0 24px 24px;
}
.table-scroll {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
  overflow-x: auto;
}

table th {
  background: #FFF8F5;
  font-size: 12px;
  font-weight: 600;
  color: #86868B;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
  white-space: nowrap;
}
table td {
  padding: 11px 14px;
  font-size: 13px;
  color: #374151;
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
}
table tbody tr:hover { background: #FAFAFA; }
table tbody tr:last-child td { border-bottom: none; }

.col-check { width: 36px; text-align: center; }
.col-check input { cursor: pointer; }
.col-actions { width: 200px; text-align: right; white-space: nowrap; }

#page-vc-task table {
  table-layout: fixed;
  width: 100%;
}

@media (min-width: 769px) {
  #page-vc-task .table-scroll {
    width: min(100%, 1080px);
  }

  #page-vc-task table {
    min-width: 1000px;
  }

  #page-vc-task thead th:nth-child(3),
  #page-vc-task .task-cell-name {
    width: 360px;
  }
}

#page-vc-task table td {
  vertical-align: middle;
}

.task-cell-check {
  width: 40px;
}

.task-cell-thumb {
  width: 70px;
}

.task-cell-name {
  width: 200px;
}

.task-cell-name strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
}

.task-cell-type {
  width: 100px;
}

.task-cell-progress {
  width: 100px;
}

.task-cell-status {
  width: 80px;
}

.task-cell-actions {
  width: 220px;
  text-align: right;
  white-space: nowrap;
}

/* 合成任务操作按钮缩小 */
#page-vc-task .btn-action {
  padding: 4px 8px;
  font-size: 12px;
  margin-left: 3px;
}

@media (max-width: 768px) {
  .batch-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* 合成任务表格 → 卡片式布局 */
  #page-vc-task .table-scroll {
    overflow-x: visible !important;
  }
  
  #page-vc-task table,
  #page-vc-task thead,
  #page-vc-task tbody,
  #page-vc-task tr,
  #page-vc-task td {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
  }
  
  #page-vc-task thead {
    display: none !important;
  }
  
  #page-vc-task table {
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }
  
  #page-vc-task tr.task-row {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    margin-bottom: 8px;
    padding: 10px 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  }
  
  #page-vc-task tr.task-row td {
    padding: 2px 0 !important;
    border: none !important;
  }
  
  /* 头部：缩略图 + 任务名称 + 状态 */
  #page-vc-task .task-cell-thumb {
    width: 44px !important;
    display: inline-block !important;
    vertical-align: middle !important;
  }
  
  #page-vc-task .task-cell-name {
    display: inline-block !important;
    width: calc(100% - 58px) !important;
    vertical-align: middle !important;
    padding-left: 8px !important;
    font-size: 13px !important;
  }
  
  #page-vc-task .task-cell-check {
    float: right !important;
    width: auto !important;
    display: inline-block !important;
  }
  
  /* 进度条单独占一行，紧凑 */
  #page-vc-task .task-cell-progress {
    margin-top: 6px !important;
    width: 100% !important;
  }
  
  /* 状态、类型合并到一行 */
  #page-vc-task .task-cell-type {
    display: inline-block !important;
    font-size: 11px !important;
    color: #9ca3af !important;
    margin-top: 4px !important;
    margin-right: 8px !important;
  }
  
  #page-vc-task .task-cell-type::before {
    content: '类型：';
    color: #9ca3af;
  }
  
  #page-vc-task .task-cell-status {
    display: inline-block !important;
    margin-top: 4px !important;
    width: auto !important;
  }
  
  /* 操作按钮在底部，紧凑横向排列 */
  #page-vc-task .task-cell-actions {
    width: 100% !important;
    margin-top: 6px !important;
    padding-top: 6px !important;
    border-top: 1px solid #f3f4f6 !important;
    text-align: right !important;
    white-space: normal !important;
  }
  
  #page-vc-task .task-cell-actions .btn {
    padding: 3px 8px !important;
    font-size: 11px !important;
    margin-left: 4px !important;
  }
  
  /* 缩略图内部尺寸 */
  #page-vc-task .task-thumb {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
  }
  
  #page-vc-task .task-thumb-img {
    width: 36px !important;
    height: 36px !important;
  }
  
  #page-vc-task .task-thumb-fallback {
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
  }
  
  /* 批量进度条优化 */
  #page-vc-task #batchSummaryBar {
    padding: 10px 12px !important;
  }
  
  #page-vc-task #batchSummaryText {
    font-size: 12px !important;
  }
  
  #storeListGrid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

.task-thumb {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  overflow: hidden;
  border-radius: 8px;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 44px;
}

.task-thumb img,
.task-thumb video,
.task-thumb-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: cover;
  display: block;
}

.task-thumb-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  font-size: 16px;
}

.task-ratio {
  display: inline-block;
  margin-left: 4px;
  color: #6B7280;
  font-size: 12px;
}

.btn-action {
  padding: var(--btn-padding-y) 16px;
  border-radius: var(--btn-radius);
  font-size: var(--font-size);
  font-weight: 500;
  background: rgba(0,0,0,0.04);
  color: #374151;
  margin-left: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.btn-action:hover { background: rgba(0,0,0,0.06); transform: scale(1.01); }
.btn-action.edit { background: rgba(59,130,246,0.1); color: #C81D27; }
.btn-action.edit:hover { background: rgba(59,130,246,0.15); }
.btn-action.del { background: rgba(239,68,68,0.1); color: #EF4444; }
.btn-action.del:hover { background: rgba(239,68,68,0.15); }
.btn-action.data { background: rgba(16,185,129,0.1); color: #10B981; }
.btn-action.data:hover { background: rgba(16,185,129,0.15); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 500;
}
.status-badge.on { background: rgba(16,185,129,0.1); color: #059669; }
.status-badge.off { background: rgba(239,68,68,0.1); color: #DC2626; }
.status-badge.pending { background: rgba(245,158,11,0.1); color: #B45309; }
.status-badge.linked { background: rgba(59,130,246,0.1); color: #C81D27; }
.status-badge.active { background: rgba(16,185,129,0.1); color: #059669; }

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.on { background: #10B981; }
.status-dot.off { background: #EF4444; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 0;
}
.pagination .info { font-size: 12px; color: #86868B; }
.pagination .controls { display: flex; gap: 4px; }
.page-btn {
  min-width: 30px; height: 30px;
  padding: 0 10px;
  background: #FFFFFF;
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  font-size: 12px;
  color: #374151;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.page-btn:hover:not(.disabled):not(.active) { background: #FAFAFA; }
.page-btn.active { background: #C81D27; color: #fff; border-color: #C81D27; }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.page-size { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #86868B; }
.page-size select { border: 0.5px solid rgba(0,0,0,0.08); padding: 4px 8px; border-radius: 8px; background: #fff; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #86868B;
  font-size: 13px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 24px 16px;
}
.kpi-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
  border-left: 3px solid rgba(59,130,246,0.2);
  display: flex;
  align-items: center;
  gap: 14px;
}
.kpi-card.blue { border-left-color: rgba(59,130,246,0.3); }
.kpi-card.green { border-left-color: rgba(16,185,129,0.3); }
.kpi-card.purple { border-left-color: rgba(139,92,246,0.3); }
.kpi-card.red { border-left-color: rgba(239,68,68,0.3); }
.kpi-card.amber { border-left-color: rgba(245,158,11,0.3); }
.kpi-card.highlight { border-left-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.02); }
.kpi-label { font-size: 12px; color: #86868B; margin-bottom: 4px; }
.kpi-value { font-size: 24px; font-weight: 700; color: #111827; margin-bottom: 2px; line-height: 1.2; }
.kpi-change { font-size: 11.5px; color: #10B981; }
.kpi-tip { font-size: 11px; color: #86868B; }
.kpi-icon { font-size: 28px; flex-shrink: 0; opacity: 0.8; }
.kpi-content { flex: 1; min-width: 0; }

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.btn-sm.btn-primary {
  background: #C81D27;
  color: #fff;
  border: none;
}
.btn-sm.btn-outline {
  background: transparent;
  color: #C81D27;
  border: 0.5px solid #C81D27;
}
.btn-sm:hover { opacity: 0.9; }

.stats-panel {
  padding: 0 24px 24px;
}

.placeholder {
  text-align: center;
  padding: 60px 24px;
  background: #FFFFFF;
  margin: 0 24px 24px;
  border-radius: 12px;
}
.p-icon { font-size: 48px; margin-bottom: 16px; }
.p-title { font-size: 16px; font-weight: 600; color: #111827; margin-bottom: 6px; }
.p-desc { font-size: 13px; color: #86868B; }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show { display: flex; }

.modal {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  width: 480px;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.08);
}
.modal.large { width: 600px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.modal-header h2 { font-size: 15px; font-weight: 600; color: #111827; }
.modal-header .close {
  font-size: 16px;
  color: #86868B;
  padding: 4px 8px;
  border-radius: 8px;
}
.modal-header .close:hover { background: rgba(0,0,0,0.04); color: #111827; }

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 0.5px solid rgba(0,0,0,0.06);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn {
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--btn-radius);
  font-size: var(--font-size);
  font-weight: 500;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
}
.btn:hover { box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02); }
.btn:active { }
.btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
.btn-primary { background: #C81D27; color: #fff; }
.btn-primary:hover { background: #A91520; }
.btn-secondary { background: rgba(0,0,0,0.04); color: #374151; border: 0.5px solid rgba(0,0,0,0.06); }
.btn-secondary:hover { background: rgba(0,0,0,0.06); }
.btn-danger { background: #EF4444; color: #fff; }
.btn-danger:hover { background: #DC2626; }
.btn-sm { padding: 5px 14px; font-size: 12px; }
.btn-sm.btn-primary { background: #C81D27; }
.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: var(--btn-radius); font-weight: 600; }
.btn-danger:hover { background: #DC2626; }

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #86868B;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 0.5px solid rgba(0,0,0,0.08);
  background: #FFFFFF;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #C81D27; box-shadow: 0 0 0 3px rgba(59,130,246,0.08); }
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 1px;
  border-color: var(--primary-color);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.toast {
  position: fixed;
  top: 70px;
  right: 24px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 0.5px solid rgba(0,0,0,0.08);
  color: #111827;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
  z-index: 2000;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: #10B981; color: #fff; border-color: rgba(16,185,129,0.3); }
.toast.error { background: #EF4444; color: #fff; border-color: rgba(239,68,68,0.3); }

.progress-bar {
  background: rgba(0,0,0,0.04);
  border-radius: 10px;
  height: 18px;
  overflow: hidden;
  position: relative;
  max-width: 100px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #C81D27, #E54B52);
  transition: width 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.progress-bar-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* 账号绑定 - 简洁版 */
.account-plat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
  padding: 0 24px 32px;
}
.account-plat-card {
  background: #FFFFFF;
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.account-plat-card:hover {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.04);
}
.account-plat-card.no-cred {
  opacity: 0.55;
  background: #FAFAFA;
}
.account-plat-header {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 12px;
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
}
.account-plat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.account-plat-info { flex: 1; min-width: 0; }
.account-plat-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}
.account-plat-count {
  font-size: 12px;
  color: #86868B;
  margin-top: 2px;
}
.account-plat-count strong {
  color: #C81D27;
  font-weight: 600;
}
.account-plat-btn {
  padding: 8px 14px;
  background: #C81D27;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.account-plat-btn:hover { background: #A91520; }
.account-plat-btn:disabled {
  background: rgba(0,0,0,0.08);
  cursor: not-allowed;
  opacity: 0.6;
}

.account-plat-empty {
  padding: 20px 16px;
  text-align: center;
  color: #86868B;
  font-size: 13px;
  background: #FAFAFA;
}
.account-plat-empty-icon {
  font-size: 24px;
  margin-bottom: 6px;
  opacity: 0.5;
}

.account-plat-list {
  padding: 8px 0;
  max-height: 280px;
  overflow-y: auto;
}
.account-list-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
  transition: background 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.account-list-item:last-child { border-bottom: none; }
.account-list-item:hover { background: #FAFAFA; }
.account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #C81D27;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  margin-right: 10px;
}
.account-list-info { flex: 1; min-width: 0; }
.account-list-name {
  font-size: 13.5px;
  color: #111827;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-list-meta {
  font-size: 11.5px;
  color: #86868B;
  margin-top: 1px;
}
.account-list-status {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  margin-right: 4px;
}
.account-list-status.expired { background: #EF4444; }
.account-list-action {
  background: transparent;
  border: none;
  color: #86868B;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.account-list-action:hover {
  background: rgba(239,68,68,0.08);
  color: #EF4444;
}

/* 旧的样式保留但不再用 */
.account-grid { display: none; }
.platform-card {
  background: #FFFFFF;
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.platform-card:hover {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.04);
}
.platform-card.linked {
  border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.03);
}
.platform-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.platform-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.platform-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.platform-sub {
  font-size: 11.5px;
  color: #86868B;
  margin-top: 2px;
}
.platform-card-status {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  align-self: flex-start;
  margin-left: auto;
}
.platform-card-status.linked { background: rgba(16,185,129,0.1); color: #059669; }
.platform-card-status.unlinked { background: rgba(0,0,0,0.04); color: #86868B; }
.platform-card-status.no-cred { background: rgba(245,158,11,0.1); color: #B45309; }

.platform-card-info {
  font-size: 12px;
  color: #374151;
  line-height: 1.6;
  padding: 8px 10px;
  background: #FAFAFA;
  border-radius: 8px;
}
.platform-card-info .label { color: #86868B; margin-right: 6px; }

.platform-card-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
}
.platform-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.platform-btn-primary {
  background: #C81D27;
  color: #fff;
}
.platform-btn-primary:hover { background: #A91520; }
.platform-btn-secondary {
  background: #FFFFFF;
  color: #374151;
  border-color: rgba(0,0,0,0.06);
}
.platform-btn-secondary:hover { background: rgba(0,0,0,0.04); }
.platform-btn-danger {
  background: rgba(239,68,68,0.08);
  color: #DC2626;
}
.platform-btn-danger:hover { background: rgba(239,68,68,0.12); }
.platform-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* OAuth流程提示 */
.oauth-step {
  padding: 14px 16px;
  background: #FAFAFA;
  border-radius: 12px;
  margin-bottom: 12px;
  border-left: none;
  border-left: 3px solid #C81D27;
}
.oauth-step-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}
.oauth-step-content {
  font-size: 12.5px;
  color: #374151;
  line-height: 1.7;
}
.oauth-url {
  background: #1C1C1E;
  color: #E54B52;
  padding: 8px 10px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 11.5px;
  word-break: break-all;
  margin: 6px 0;
  cursor: text;
  user-select: all;
}

.token-input {
  width: 100%;
  min-height: 80px;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  resize: vertical;
  outline: none;
  background: #FFFFFF;
}
.token-input:focus { border-color: #C81D27; box-shadow: 0 0 0 3px rgba(59,130,246,0.08); }

/* 模态框中的tab切换 */
.modal-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.modal-tab {
  padding: 8px 14px;
  font-size: 12.5px;
  color: #86868B;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-weight: 500;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.modal-tab.active {
  color: #C81D27;
  border-bottom-color: #C81D27;
}
.modal-tab-content { display: none; }
.modal-tab-content.active { display: block; }

/* 凭证配置表格 */
.cred-table {
  width: 100%;
  font-size: 12.5px;
}
.cred-table tr { border-bottom: 0.5px solid rgba(0,0,0,0.04); }
.cred-table td {
  padding: 10px 4px;
  vertical-align: middle;
}
.cred-table td:first-child {
  width: 120px;
  font-weight: 600;
  color: #374151;
}
.cred-table input {
  width: 100%;
  border: 0.5px solid rgba(0,0,0,0.08);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
  outline: none;
  background: #FFFFFF;
}
.cred-table input:focus { border-color: #C81D27; box-shadow: 0 0 0 3px rgba(59,130,246,0.08); }

/* 账号绑定列表中的特殊字段 */
.token-warning {
  color: #EF4444;
  font-size: 11px;
  margin-top: 3px;
}

/* ===== 登录/注册页面 ===== */
.auth-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #FFF8F5, #F6E8E5);
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.auth-box {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 36px 32px;
  width: 380px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.08);
  text-align: center;
}
.auth-logo {
  margin-bottom: 28px;
}
.auth-logo-mark {
  display: block;
  width: 82px;
  height: 82px;
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(154, 24, 31, .18);
  margin: 0 auto 12px;
}
.auth-logo h1 {
  font-size: 22px;
  color: #111827;
  font-weight: 700;
  margin-bottom: 2px;
}
.auth-logo p {
  font-size: 13px;
  color: #86868B;
}
.auth-form h2 {
  font-size: 18px;
  color: #111827;
  margin-bottom: 20px;
  font-weight: 600;
}
.form-group {
  margin-bottom: 14px;
  text-align: left;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #86868B;
  margin-bottom: 5px;
}
.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-sizing: border-box;
  background: #FFFFFF;
}
.form-group input:focus {
  border-color: #C81D27;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}
.form-error {
  color: #EF4444;
  font-size: 12.5px;
  margin-bottom: 12px;
  min-height: 18px;
  text-align: left;
}
.btn-auth {
  width: 100%;
  padding: 12px;
  background: #C81D27;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  margin-bottom: 14px;
}
.btn-auth:hover { background: #A91520; }
.btn-auth:active { opacity: 0.8; }
.auth-switch {
  font-size: 13px;
  color: #86868B;
}
.auth-switch a {
  color: #C81D27;
  text-decoration: none;
  font-weight: 600;
}
.form-row-auth {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #86868B;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.switch-account-link {
  font-size: 13px;
  color: #C81D27;
  text-decoration: none;
}
.switch-account-link:hover {
  text-decoration: underline;
}
.saved-accounts-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
}
.saved-account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
}
.saved-account-item:last-child {
  border-bottom: none;
}
.saved-account-item:hover {
  background: rgba(0,0,0,0.02);
}
.saved-account-name {
  font-size: 13px;
  color: #374151;
}
.saved-account-delete {
  font-size: 12px;
  color: #86868B;
  padding: 2px 6px;
  border-radius: 8px;
}
.saved-account-delete:hover {
  background: rgba(239,68,68,0.08);
  color: #EF4444;
}
.auth-tip {
  font-size: 11px;
  color: #86868B;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 0.5px solid rgba(0,0,0,0.04);
}
.auth-tip a {
  color: #C81D27;
  text-decoration: none;
}

.auth-tabs {
  display: flex;
  margin-bottom: 20px;
  background: rgba(0,0,0,0.02);
  border-radius: 10px;
  padding: 3px;
}
.auth-tab {
  flex: 1;
  padding: 9px 12px;
  font-size: 13px;
  color: #86868B;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  text-align: center;
  font-weight: 500;
}
.auth-tab.active {
  background: #fff;
  color: #C81D27;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.code-input-row {
  display: flex;
  gap: 10px;
}
.code-input-row input {
  flex: 1;
}
.btn-code {
  padding: 12px 18px;
  background: #F3F4F6;
  color: #374151;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  white-space: nowrap;
}
.btn-code:hover:not(:disabled) {
  background: #E5E7EB;
}
.btn-code:active:not(:disabled) {
  opacity: 0.8;
}
.btn-code:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.auth-divider {
  margin: 0 8px;
  color: rgba(0,0,0,0.15);
}
.auth-divider-line {
  display: flex;
  align-items: center;
  margin: 16px 0;
  gap: 12px;
}
.auth-divider-line::before,
.auth-divider-line::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: rgba(0,0,0,0.08);
}
.auth-divider-line span {
  font-size: 12px;
  color: #86868B;
}
.btn-wechat {
  background: #07C160 !important;
}
.btn-wechat:hover {
  background: #06AD56 !important;
}
.btn-wechat svg {
  margin-right: 8px;
  vertical-align: middle;
}

/* ===== 用户菜单 ===== */
.user-menu {
  position: relative;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
}
.user-menu:hover { background: rgba(0,0,0,0.04); }
.user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #111827;
}
.mobile-user-icon { display: none; }
.user-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vip-badge {
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}
.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 20px rgba(0,0,0,0.06);
  min-width: 140px;
  padding: 6px 0;
  z-index: 100;
}
.user-dropdown.show { display: block; }
.user-dropdown-item {
  padding: 8px 14px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.user-dropdown-item:hover { background: rgba(0,0,0,0.04); }
.user-dropdown-item.logout { color: #EF4444; }
.user-dropdown-item.logout:hover { background: rgba(239,68,68,0.08); }
.user-dropdown-divider { height: 0.5px; background: rgba(0,0,0,0.06); margin: 4px 0; }

/* 隐藏app-wrapper直到登录 */
.app-wrapper.hidden { display: none; }

/* 登录页面加载动画 */
.auth-loading {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* API连接状态提示 */
.api-status {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 12.5px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.api-status.show { opacity: 1; }
.api-status.offline {
  background: rgba(239,68,68,0.08);
  color: #DC2626;
  border: 0.5px solid rgba(239,68,68,0.15);
}
.api-status.online {
  background: rgba(16,185,129,0.08);
  color: #059669;
  border: 0.5px solid rgba(16,185,129,0.15);
}

/* ===== 充值页面 ===== */
.recharge-page {
  padding: 28px;
  max-width: 900px;
}
.recharge-page h2 {
  font-size: 18px;
  color: #111827;
  margin-bottom: 6px;
}
.recharge-page .subtitle {
  color: #86868B;
  font-size: 13px;
  margin-bottom: 24px;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .plans-grid { grid-template-columns: 1fr; }
}
.plan-card-wrap {
  background: #FFFFFF;
  border: 2px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.plan-card-wrap:hover {
  border-color: #C81D27;
  box-shadow: 0 1px 3px rgba(59,130,246,0.08), 0 4px 12px rgba(59,130,246,0.06);
}
.plan-card-wrap.selected {
  border-color: #C81D27;
  background: rgba(59,130,246,0.03);
}
.plan-card-wrap.recommended::before {
  content: '';
}
.plan-card-wrap.highlight {
  border-color: rgba(245,158,11,0.3);
  background: linear-gradient(180deg, rgba(245,158,11,0.04) 0%, #FFFFFF 30%);
}
.plan-card-wrap.highlight:hover {
  border-color: #f59e0b;
  box-shadow: 0 1px 3px rgba(245,158,11,0.1), 0 4px 12px rgba(245,158,11,0.08);
}
.plan-card-wrap.highlight.selected {
  border-color: #f59e0b;
  background: rgba(245,158,11,0.03);
}
.plan-badge {
  display: inline-block;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #C81D27;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.plan-card-wrap .plan-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}
.plan-card-wrap .plan-price {
  font-size: 28px;
  font-weight: 700;
  color: #C81D27;
  margin-bottom: 4px;
}
.plan-card-wrap .plan-price span {
  font-size: 13px;
  font-weight: 400;
  color: #86868B;
}
.plan-card-wrap .plan-desc {
  font-size: 12px;
  color: #86868B;
  margin-bottom: 10px;
}
.plan-card-wrap .plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plan-card-wrap .plan-features li {
  font-size: 12px;
  color: #374151;
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}
.plan-card-wrap .plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  color: #10B981;
  font-weight: 700;
}
.plan-card-wrap .plan-vip {
  margin-top: 10px;
  font-size: 11px;
  color: #B45309;
  background: rgba(245,158,11,0.1);
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-block;
}

/* 支付方式 */
.pay-section {
  background: #FFFFFF;
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.pay-section h3 {
  font-size: 14px;
  color: #111827;
  margin-bottom: 14px;
}
.pay-methods {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.pay-method {
  border: 2px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.pay-method:hover { border-color: #C81D27; }
.pay-method.selected { border-color: #C81D27; background: rgba(59,130,246,0.03); color: #C81D27; }
.pay-method-icon {
  font-size: 20px;
}

/* 二维码区域 */
.qr-section {
  background: #FFFFFF;
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 30px;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.qr-box {
  text-align: center;
}
.qr-placeholder {
  width: 160px;
  height: 160px;
  background: #FAFAFA;
  border: 2px dashed rgba(0,0,0,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 40px;
  margin-bottom: 8px;
  color: #86868B;
}
.qr-amount {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}
.qr-tip {
  font-size: 12px;
  color: #86868B;
  margin-top: 4px;
}
.qr-info {
  flex: 1;
}
.qr-info h3 { font-size: 15px; color: #111827; margin-bottom: 10px; }
.qr-info p { font-size: 13px; color: #86868B; line-height: 1.7; margin-bottom: 8px; }
.qr-info .note {
  background: rgba(245,158,11,0.1);
  border: 0.5px solid rgba(245,158,11,0.2);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #B45309;
  line-height: 1.6;
}
.pay-btn {
  padding: 10px 24px;
  background: #C81D27;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.pay-btn:hover { background: #A91520; }
.pay-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* VIP状态提示 */
.vip-tip-bar {
  background: #C81D27;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vip-tip-bar .vip-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vip-tip-bar .vip-days {
  font-size: 20px;
  font-weight: 700;
}
.vip-tip-bar .btn {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 0.5px solid rgba(255,255,255,0.3);
}

/* ===== 视频剪辑 ===== */
.editor-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 20px;
  padding: 0 24px 24px;
}
.editor-panel {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.editor-section {
  margin-bottom: 20px;
}
.editor-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.editor-section textarea {
  width: 100%;
  min-height: 200px;
  font-size: 14px;
  line-height: 1.8;
  resize: vertical;
  box-sizing: border-box;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 12px 14px;
}
.material-selector {
  min-height: 80px;
  background: #FAFAFA;
  border: 2px dashed rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}
.material-tips {
  width: 100%;
  text-align: center;
  color: #86868B;
  font-size: 12px;
  padding: 20px 0;
}
.material-thumb {
  width: 60px;
  height: 60px;
  background: rgba(0,0,0,0.04);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: relative;
}

.material-thumb-more {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 60px;
  color: #A91520;
  background: #EEF2FF;
  font-size: 13px;
  font-weight: 700;
}
.material-thumb video,
.material-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.material-thumb .remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: #EF4444;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.template-card {
  background: #FAFAFA;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.template-card:hover {
  border-color: rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.02);
}
.template-card.active {
  border-color: #C81D27;
  background: rgba(59,130,246,0.03);
}
.template-icon { font-size: 28px; margin-bottom: 6px; }
.template-name { font-size: 12px; color: #374151; font-weight: 500; }

.preview-panel {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.preview-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
}
.preview-box {
  aspect-ratio: 9/16;
  max-height: 400px;
  background: #FFF8F5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.preview-box.platform-select {
  display: block;
  aspect-ratio: auto;
  max-height: none;
}
.preview-placeholder {
  text-align: center;
  color: #86868B;
}
.preview-placeholder .p-icon { font-size: 48px; margin-bottom: 12px; }
.preview-placeholder .p-title { font-size: 14px; color: #374151; margin-bottom: 4px; }
.preview-placeholder .p-desc { font-size: 12px; color: #86868B; }
.preview-tips {
  margin-top: 16px;
  padding: 12px 16px;
  background: #FAFAFA;
  border-radius: 10px;
}
.tip-item {
  font-size: 12px;
  color: #86868B;
  line-height: 1.8;
}
.btn-lg {
  width: 100%; padding: 12px; font-size: 14px;
  background: #C81D27;
  color: #fff; border: none; border-radius: 10px;
  font-weight: 600; cursor: pointer; transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.btn-lg:hover { box-shadow: 0 2px 8px rgba(59,130,246,0.2); }

/* 素材选择弹窗 */
.material-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding: 10px 0;
}
.material-picker-item {
  border: 2px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.material-picker-item:hover { border-color: #C81D27; }
.material-picker-item.selected { border-color: #C81D27; background: rgba(59,130,246,0.03); }
.material-picker-item .mp-icon {
  font-size: 32px;
  text-align: center;
  padding: 10px 0;
  background: #FAFAFA;
  border-radius: 8px;
  margin-bottom: 6px;
}
.material-picker-item .mp-name {
  font-size: 11px;
  color: #374151;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* AI仿写结果 */
.rewrite-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px;
}
.rewrite-item {
  background: #FAFAFA;
  border-radius: 12px;
  padding: 14px;
}
.rewrite-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.rewrite-num {
  width: 22px;
  height: 22px;
  background: #C81D27;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rewrite-style {
  font-size: 11px;
  color: #C81D27;
  padding: 2px 8px;
  background: rgba(59,130,246,0.1);
  border-radius: 8px;
}
.rewrite-content {
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 10px;
}
.rewrite-actions {
  display: flex;
  gap: 8px;
}
.range-value {
  font-size: 12px;
  color: #C81D27;
  font-weight: 600;
  margin-left: 8px;
}

/* 智能发布 - 平台选择面板 */
.publish-platform-panel {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.publish-platform-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.publish-platform-tips {
  margin-top: 12px;
  padding: 10px 14px;
  background: #FAFAFA;
  border-radius: 8px;
}
.publish-platform-tips .tip-item {
  font-size: 12px;
  color: #86868B;
  line-height: 1.7;
}
.publish-task-section {
  margin: 4px 20px 24px;
  padding-top: 18px;
  border-top: 1px solid #E5E7EB;
}
.publish-task-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.publish-task-header h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}
.publish-task-header p {
  margin: 3px 0 0;
  color: #6B7280;
  font-size: 12px;
}
.publish-task-list {
  min-width: 0;
}
.publish-task-empty {
  padding: 20px 0;
  color: #6B7280;
  font-size: 13px;
}
.publish-task-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(100px, 180px) 38px auto;
  gap: 8px 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #F0F2F5;
}
.publish-task-main {
  min-width: 0;
}
.publish-task-name {
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.publish-task-detail {
  margin-top: 3px;
  overflow: hidden;
  color: #6B7280;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.publish-task-status {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.publish-task-status.pending { color: #92400E; background: #FEF3C7; }
.publish-task-status.running { color: #83131B; background: #FDE9E8; }
.publish-task-status.completed { color: #047857; background: #D1FAE5; }
.publish-task-status.partial { color: #9A3412; background: #FFEDD5; }
.publish-task-status.failed { color: #B91C1C; background: #FEE2E2; }
.publish-task-progress {
  height: 6px;
  overflow: hidden;
  background: #E5E7EB;
  border-radius: 3px;
}
.publish-task-progress span {
  display: block;
  height: 100%;
  background: #C81D27;
  border-radius: inherit;
  transition: width .2s ease;
}
.publish-task-percent {
  color: #6B7280;
  font-size: 11px;
  text-align: right;
}
.publish-task-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.publish-task-action {
  display: inline-flex;
  min-width: 64px;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid #DCE6F5;
  background: #F3F7FD;
  border-radius: 6px;
  color: #A91520;
  font-size: 12px;
  cursor: pointer;
}
.publish-task-action img {
  width: 14px;
  height: 14px;
}
.publish-task-action.delete {
  border-color: #FECACA;
  background: #FEF2F2;
  color: #DC2626;
}
.publish-task-action.delete img {
  filter: invert(21%) sepia(87%) saturate(3000%) hue-rotate(350deg) brightness(94%) contrast(88%);
}
.publish-task-action:hover:not(:disabled) {
  border-color: #F6A0A4;
  background: #EAF2FF;
}
.publish-task-action.delete:hover:not(:disabled) {
  border-color: #FCA5A5;
  background: #FEE2E2;
}
.publish-task-action:focus-visible {
  outline: 2px solid #A91520;
  outline-offset: 2px;
}
.publish-task-action:disabled {
  cursor: wait;
  opacity: .55;
}

@media (max-width: 768px) {
  .publish-task-section {
    margin: 4px 8px 88px;
  }
  .publish-task-header {
    align-items: center;
  }
  .publish-task-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
  }
  .publish-task-main { grid-column: 1; grid-row: 1; }
  .publish-task-status { grid-column: 2; grid-row: 1; }
  .publish-task-progress { grid-column: 1; grid-row: 2; }
  .publish-task-percent { grid-column: 2; grid-row: 2; }
  .publish-task-actions {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .publish-task-action {
    min-width: 76px;
    min-height: 44px;
  }
  .publish-task-detail {
    white-space: normal;
  }
}

/* 发布时间选项 */
.publish-time-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.publish-time-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: #FAFAFA;
  border: 2px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.publish-time-card:hover {
  border-color: #C81D27;
}
.publish-time-card input[type="radio"] {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #C81D27;
}
.publish-time-card:has(input[type="radio"]:checked) {
  border-color: #C81D27;
  background: rgba(59,130,246,0.04);
}
.publish-time-text {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.publish-time-desc {
  font-size: 11px;
  color: #86868B;
}

/* 平台发布网格 */
.platform-publish-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.platform-publish-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #FAFAFA;
  border: 2px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.platform-publish-item:hover { border-color: #C81D27; }
.platform-publish-item.selected { border-color: #C81D27; background: rgba(59,130,246,0.03); }
.platform-publish-icon { font-size: 28px; }
.platform-publish-info { flex: 1; }
.platform-publish-name { font-size: 13px; font-weight: 500; color: #374151; }
.platform-publish-count { font-size: 11px; color: #86868B; }
.platform-publish-check { font-size: 18px; color: #C81D27; }
.platform-publish-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.platform-publish-item.disabled:hover { border-color: rgba(0,0,0,0.06); }

/* 平台账号选择列表 */
.platform-account-list {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: #FAFAFA;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  margin-top: -4px;
}
.platform-account-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  padding: 4px 0;
}
.platform-account-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #C81D27;
  cursor: pointer;
}

/* 账号绑定 — 平台卡片网格 */
.accounts-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.accounts-platform-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px 16px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
}
.accounts-platform-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border-color: #C81D27;
  transform: translateY(-2px);
}
.accounts-platform-card.bound {
  border-color: rgba(16,185,129,0.3);
}
.accounts-platform-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 22px;
}
.accounts-platform-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}
.accounts-platform-status {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}
.accounts-platform-status.bound {
  background: rgba(16,185,129,0.1);
  color: #059669;
}
.accounts-platform-status.unbound {
  background: rgba(0,0,0,0.04);
  color: #86868B;
}

/* AI助手建议 */
.ai-suggestions .section-body {
  padding: 4px 0;
}
.ai-todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
  cursor: pointer;
  transition: background 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.ai-todo-item:last-child {
  border-bottom: none;
}
.ai-todo-item:hover {
  background: rgba(0,0,0,0.02);
  margin: 0 -12px;
  padding: 12px;
  border-radius: 8px;
}
.ai-todo-num {
  width: 24px;
  height: 24px;
  background: #C81D27;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-todo-content {
  flex: 1;
}
.ai-todo-title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 2px;
}
.ai-todo-reason {
  font-size: 11px;
  color: #86868B;
}
.ai-todo-action {
  flex-shrink: 0;
}

/* 标签样式 */
.tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(59,130,246,0.1);
  color: #C81D27;
  border-radius: 8px;
  font-size: 11px;
}

/* 上传区域 */
.upload-area {
  border: 2px dashed rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.upload-area:hover {
  border-color: #C81D27;
  background: rgba(59,130,246,0.03);
}

/* ===== 全局增强 ===== */

/* 统一卡片效果 */
.page-panel {
  animation: fadeSlideIn 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.breadcrumb { font-size: 12px; color: #86868B; margin-bottom: 6px; }
.breadcrumb .sep { margin: 0 6px; color: #C7C7CC; }
.page-header h1 { font-size: 24px; font-weight: 600; color: #111827; margin: 0; }

/* 表格优化 */
table { border-radius: 12px; overflow: hidden; }
thead th {
  background: #FFF8F5;
  font-size: 12px;
  font-weight: 600;
  color: #86868B;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
tbody td {
  padding: 12px 14px;
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
  font-size: 13px;
}
tbody tr:hover { background: #FAFAFA; }
tbody tr:last-child td { border-bottom: none; }

/* 操作按钮增强 — 合并到上方 .btn-action */

/* 状态标签 */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}
.status-badge.on { background: rgba(16,185,129,0.1); color: #059669; }
.status-badge.pending { background: rgba(245,158,11,0.1); color: #B45309; }
.status-badge.off { background: rgba(0,0,0,0.04); color: #86868B; }

/* 进度条 */
.progress-bar {
  height: 20px; background: rgba(0,0,0,0.04); border-radius: 10px; overflow: hidden;
  max-width: 100px;
}
.progress-bar-fill {
  height: 100%; background: linear-gradient(90deg, #C81D27, #E54B52);
  border-radius: 10px; transition: width 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* 输入框增强 */
input[type="text"], input[type="password"], input[type="number"], textarea, select {
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  transition: border-color 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  outline: none;
  background: #FFFFFF;
}
input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
  border-color: #C81D27;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}

/* 表单组 */
.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 500; color: #86868B; }
.upload-icon { font-size: 32px; margin-bottom: 8px; }
.upload-text {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}
.upload-hint {
  font-size: 12px;
  color: #86868B;
}

/* ===== 预览面板动态内容 ===== */
.preview-info {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  gap: 10px;
  box-sizing: border-box;
}
.preview-info .clip-preview-media-wrap {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  justify-content: center;
  width: 100%;
}
.preview-info .clip-preview-media {
  flex-shrink: 0;
  max-height: calc(100% - 50px);
  max-width: 100%;
}
.preview-info .clip-preview-media video,
.preview-info .clip-preview-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.clip-preview-controls-row {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  gap: 8px;
  max-width: 280px;
  padding: 0 4px;
  width: 100%;
}
.clip-preview-playbtn {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border: none;
  border-radius: 50%;
  color: #111827;
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  font-size: 12px;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}
.clip-preview-playbtn:hover { background: #fff; }
.clip-preview-time {
  color: rgba(255, 255, 255, .75);
  flex-shrink: 0;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: center;
}
.clip-preview-progress {
  background: rgba(255, 255, 255, .2);
  border-radius: 2px;
  cursor: pointer;
  flex: 1;
  height: 4px;
  overflow: hidden;
}
.clip-preview-progress-bar {
  background: #C81D27;
  border-radius: 2px;
  height: 100%;
  transition: width .1s linear;
  width: 0%;
}
.clip-preview-error {
  align-items: center;
  background: rgba(17, 24, 39, .82);
  border-radius: 8px;
  bottom: 0;
  box-sizing: border-box;
  color: #FCA5A5;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 6px;
  justify-content: center;
  left: 0;
  line-height: 1.5;
  padding: 16px;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  z-index: 5;
}
.manual-preview-media {
  align-items: center;
  background: #000;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-height: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}
.manual-preview-media video,
.manual-preview-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.preview-info .pi-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-info .pi-thumb img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.15);
}
.preview-count-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #C81D27;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1C1C1E;
  padding: 0 5px;
}
.preview-thumb-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  max-width: 100%;
  padding: 0 4px;
}
.preview-thumb-strip img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}
.preview-summary {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  line-height: 1.6;
  max-width: 200px;
}
.preview-summary .ps-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.preview-summary .ps-meta {
  font-size: 11px;
  color: #9ca3af;
}
.preview-summary .ps-text {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  white-space: pre-line;
  margin-top: 4px;
  max-height: 80px;
  overflow: hidden;
}
.preview-icon-big {
  font-size: 56px;
  margin-bottom: 4px;
  opacity: 0.9;
}

/* ===== 弹窗内嵌视频播放器 ===== */
.modal-video-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.modal-video-wrap video {
  width: 100%;
  max-height: 55vh;
  border-radius: 12px;
  background: #000;
  outline: none;
}
.modal-video-title {
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

/* ============================================================
   响应式适配 — 手机端 & 平板竖屏 (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  /* ---- 顶栏 ---- */
  .topbar {
    height: 52px;
    padding: 0 8px;
  }
  .logo, .site-nav, .top-info { display: none; }
  .mobile-back-button {
    align-items: center;
    border-radius: 50%;
    color: #83131B;
    display: flex;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
    width: 44px;
  }
  .mobile-back-button[hidden] { display: none; }
  .mobile-back-button svg { height: 22px; width: 22px; }
  .mobile-back-button:hover { background: #eaf2ff; }
  .mobile-back-button:focus-visible { outline: 3px solid #F6A0A4; outline-offset: 2px; }
  .top-actions { gap: 2px; }
  .bell-wrap, .user-menu {
    align-items: center;
    display: flex;
    height: 44px;
    justify-content: center;
    padding: 0;
    width: 44px;
  }
  .bell-wrap { border-radius: 50%; }
  .bell-wrap .badge { right: 1px; top: 1px; }
  .notif-dropdown { right: -44px; width: min(320px, calc(100vw - 16px)); }
  .user-menu { border-radius: 50%; }
  .user-info {
    align-items: center;
    border-radius: 50%;
    display: flex;
    height: 44px;
    justify-content: center;
    padding: 0;
    width: 44px;
  }
  .user-info > :not(.mobile-user-icon) { display: none; }
  .mobile-user-icon {
    background: #e7f0ff;
    border: 1px solid #c7dcff;
    border-radius: 50%;
    display: block;
    height: 34px;
    padding: 7px;
    width: 34px;
  }
  .user-dropdown { right: 0; }

  .home-hero { min-height: calc(100vh - 52px); padding: 48px 22px 80px; }
  .home-kicker { font-size: 13px; margin-bottom: 16px; }
  .home-hero h1 { font-size: clamp(46px, 14vw, 68px); }
  .home-description { font-size: 17px; line-height: 1.65; margin-top: 22px; }
  .home-create-button { border-radius: 12px; font-size: 19px; margin-top: 34px; min-height: 60px; min-width: min(100%, 250px); padding: 12px 24px; }
  .function-hub-page { padding: 20px 14px 88px; }
  .function-hub-heading { align-items: flex-start; gap: 16px; margin-bottom: 18px; }
  .function-hub-heading h1 { font-size: 29px; }
  .function-hub-heading p:not(.function-hub-eyebrow) { font-size: 13px; max-width: 230px; }
  .function-hub-home { flex: 0 0 auto; font-size: 12px; padding: 0 12px; }
  .function-hub-return { display: none; }
  .function-card-grid,
  .touch-card-grid {
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(clamp(132px, 40vw, 200px), 1fr));
  }
  .function-card,
  .touch-function-card {
    align-items: flex-start;
    aspect-ratio: 1;
    border-radius: 15px;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    min-height: 0;
    padding: clamp(12px, 3.4vw, 20px);
  }
  .function-card-icon { border-radius: 14px; flex: 0 0 52px; height: 52px; width: 52px; }
  .function-card-icon img { height: 28px; width: 28px; }
  .function-card-copy { gap: 4px; }
  .function-card-copy strong { font-size: clamp(17px, 4.8vw, 21px); text-wrap: balance; }
  .function-card-copy small { font-size: clamp(11px, 3vw, 12px); line-height: 1.4; }
  .touch-hub-page { padding: 20px 14px 88px; }
  .touch-hub-heading { margin-bottom: 18px; }

  .bottom-tab-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    min-height: 62px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 0.5px solid rgba(0,0,0,0.08);
    box-shadow: 0 -4px 18px rgba(15,23,42,0.06);
  }
  .bottom-tab-item {
    background: transparent;
    border: 0;
    min-width: 0;
    min-height: 50px;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #6B7280;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1), color 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  }
  .bottom-tab-item .icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .bottom-tab-item .icon svg {
    width: 20px;
    height: 20px;
  }
  .bottom-tab-item .label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .bottom-tab-item.active {
    color: #A91520;
    background: rgba(59,130,246,0.1);
  }
  .content {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  /* ---- 内容区 ---- */
  .content-area { padding: 12px 8px; }

  /* ---- 编辑器双栏 → 单栏 ---- */
  .editor-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 8px 16px;
  }
  .editor-panel { order: 1; }
  .preview-panel { order: 2; }
  .publish-platform-panel { order: 2; }
  .preview-box {
    max-height: 280px;
    aspect-ratio: auto;
  }

  /* ---- 工具栏 ---- */
  .toolbar {
    padding: 0 8px 10px;
    gap: 6px;
  }
  .search-box {
    min-width: 0;
    flex: 1;
  }
  .toolbar input, .toolbar select { font-size: 14px; padding: 10px 12px; }

  /* ---- 弹窗 → 全屏 ---- */
  .modal-overlay { padding: 0; }
  .modal, .modal.large {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
    overflow-y: auto;
  }
  .modal-body { max-height: none; flex: 1; overflow-y: auto; }
  .modal-footer { position: sticky; bottom: 0; background: rgba(255,255,255,0.82); backdrop-filter: blur(40px); }

  /* ---- KPI 卡片 ---- */
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi-value { font-size: 20px; }

  /* ---- 表格 → 横向滚动 ---- */
  .table-wrap, table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .col-check { width: 28px; }
  .col-actions { width: 120px; }

  /* ---- 通知下拉 ---- */
  .notif-dropdown { width: 100vw; right: -12px; }

  /* ---- Toast ---- */
  .toast {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    text-align: center;
  }

  /* ---- 表单 ---- */
  .form-row { grid-template-columns: 1fr; }
  textarea { font-size: 16px !important; } /* 防iOS缩放 */

  /* ---- 按钮 ---- */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }

  /* ---- 页面面板 ---- */
  .page-panel { padding: 8px; }
  .page-header { padding: 12px 8px; }
  .page-header h1 { font-size: 18px; }

  /* ---- 管理后台双栏 ---- */
  .settings-layout, .two-col { grid-template-columns: 1fr; }
}

/* ---- 地图内容诊断卡片 ---- */
.map-diagnose-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.map-diag-card {
  background: var(--card-bg, #fff);
  border: 0.5px solid var(--border-color, rgba(0,0,0,0.06));
  border-radius: var(--btn-radius, 12px);
  overflow: hidden;
  transition: box-shadow 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.map-diag-card:hover { box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.04); }
.diag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-surface, #FAFAFA);
  border-bottom: 0.5px solid var(--border-color, rgba(0,0,0,0.06));
}
.diag-store-info { display: flex; align-items: center; gap: 10px; }
.diag-store-info strong { font-size: 15px; color: var(--text-primary, #111827); }
.diag-city { font-size: 12px; color: var(--text-muted, #86868B); background: var(--bg-surface, rgba(0,0,0,0.04)); padding: 2px 8px; border-radius: 10px; }
.diag-score { display: flex; align-items: baseline; gap: 2px; font-size: 28px; font-weight: 700; padding: 6px 14px; border-radius: 12px; }
.diag-score span { font-size: 14px; font-weight: 500; }
.score-high { color: #10B981; background: rgba(16,185,129,0.1); }
.score-mid { color: #FF9F0A; background: rgba(255,159,10,0.1); }
.score-low { color: #EF4444; background: rgba(239,68,68,0.08); }
.diag-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.diag-row { display: flex; align-items: center; gap: 12px; }
.diag-label { font-size: 12px; color: var(--text-muted, #86868B); min-width: 60px; }
.diag-value { font-size: 13px; color: var(--text-primary, #111827); font-weight: 500; }
.diag-value.platforms { display: flex; gap: 6px; flex-wrap: wrap; }
.map-platform-tag { font-size: 12px; background: var(--bg-surface, rgba(0,0,0,0.04)); padding: 3px 10px; border-radius: 12px; white-space: nowrap; }
.diag-summary { font-size: 13px; color: var(--text-primary, #374151); background: var(--bg-surface, rgba(59,130,246,0.03)); padding: 10px 14px; border-radius: 8px; line-height: 1.6; }
.diag-suggestions { font-size: 12px; color: var(--text-muted, #86868B); }
.diag-suggestions summary { cursor: pointer; font-weight: 600; color: var(--text-primary, #374151); padding: 4px 0; }
.diag-suggestions ul { margin: 8px 0 0 16px; display: flex; flex-direction: column; gap: 4px; }
.diag-suggestions li { line-height: 1.5; }
.diag-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 0.5px solid var(--border-color, rgba(0,0,0,0.06)); background: var(--bg-surface, #FAFAFA); }
.diag-time { font-size: 12px; color: var(--text-muted, #9ca3af); }
.diag-actions { display: flex; gap: 8px; }
.diag-tips { font-size: 13px; color: var(--text-muted, #86868B); background: var(--bg-surface, rgba(0,0,0,0.02)); padding: 12px 16px; border-radius: 8px; margin-top: 8px; }
.diag-tips p { margin-bottom: 6px; font-weight: 600; color: var(--text-primary, #374151); }
.diag-tips ul { margin-left: 16px; display: flex; flex-direction: column; gap: 3px; }

/* ---- 内容参考（直播内容） ---- */
.comp-list-wrap { margin-top: 20px; }
.comp-list { display: flex; flex-direction: column; gap: 12px; }
.comp-card { background: var(--card-bg, #fff); border: 0.5px solid var(--border-color, rgba(0,0,0,0.06)); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02); }
.comp-card.comp-live { border-color: #EF4444; box-shadow: 0 0 0 2px rgba(239,68,68,0.15); }
.comp-status-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; font-size: 13px; font-weight: 600; }
.comp-status-bar.live { background: rgba(239,68,68,0.08); color: #EF4444; }
.comp-status-bar.offline { background: rgba(0,0,0,0.02); color: #86868B; }
.comp-body { padding: 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.comp-info { flex: 1; min-width: 0; }
.comp-name { font-size: 15px; font-weight: 600; color: var(--text-primary, #111827); margin-bottom: 4px; }
.comp-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted, #86868B); }
.comp-notes { margin-top: 8px; font-size: 13px; color: var(--text-muted, #86868B); }
.comp-actions { display: flex; gap: 6px; flex-shrink: 0; }
.comp-analysis { margin: 0 16px 16px; padding: 14px; background: rgba(59,130,246,0.03); border-radius: 8px; font-size: 13px; }
.comp-analysis.comp-analysis-hint { background: rgba(245,158,11,0.08); color: #B45309; text-align: center; }
.ana-header { font-weight: 700; color: #C81D27; margin-bottom: 8px; }
.ana-strategy { color: var(--text-primary, #111827); margin-bottom: 8px; line-height: 1.6; }
.ana-details { margin-top: 8px; }
.ana-details summary { cursor: pointer; font-weight: 600; color: var(--text-primary, #374151); }
.ana-details ul { margin: 8px 0 0 16px; display: flex; flex-direction: column; gap: 4px; }
.ana-details li { line-height: 1.6; }
.ana-templates { margin-top: 10px; padding: 10px; background: #fff; border-radius: 8px; }
.ana-templates strong { display: block; margin-bottom: 6px; font-size: 12px; color: #86868B; }
.talk-tpl { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed rgba(0,0,0,0.06); }
.talk-tpl:last-child { border-bottom: none; }
.ana-timing { margin-top: 8px; font-size: 13px; color: #10B981; font-weight: 500; }
.comp-search-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 0.5px solid var(--border-color, rgba(0,0,0,0.06)); }
.comp-search-item:last-child { border-bottom: none; }
.btn-danger-outline { background: #fff; color: #EF4444; border: 0.5px solid rgba(239,68,68,0.3); }
.btn-danger-outline:hover { background: rgba(239,68,68,0.08); }
.btn-xs { padding: 3px 8px; font-size: 11px; border-radius: 8px; }
.page-header-actions { display: flex; gap: 8px; align-items: center; }
.pulse-dot { animation: pulse 2s infinite; }

/* ---- 移动端 ---- */
@media (max-width: 640px) {
  .diag-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .diag-score { align-self: flex-end; }
  .diag-body { padding: 12px 14px; }
  .diag-footer { flex-direction: column; gap: 8px; align-items: flex-start; }
  .comp-body { flex-direction: column; }
  .comp-actions { width: 100%; justify-content: flex-end; }
  .page-header-actions { flex-wrap: wrap; }
}

/* ============================================================
   直播助手 — 页面样式
   ============================================================ */
.live-assistant-layout {
  display: flex;
  gap: 16px;
  height: calc(100vh - 180px);
  min-height: 500px;
}

/* ---- 左侧：直播间 ---- */
.la-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.la-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}

.la-url-input {
  flex: 1;
  padding: 12px 14px;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  font-size: 13px;
  min-width: 0;
  outline: none;
  background: #FFFFFF;
}
.la-url-input:focus {
  border-color: #C81D27;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}

.la-webview-wrap {
  flex: 1;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid rgba(0,0,0,0.06);
  position: relative;
  min-height: 300px;
}

.la-webview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #9ca3af;
  background: #1C1C1E;
  text-align: center;
  padding: 20px;
}

/* ---- 右侧：话术面板 ---- */
.la-right {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.la-section {
  background: #FFFFFF;
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}

.la-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 10px;
}

/* 话术分类Tab */
.la-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.la-tab {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 14px;
  cursor: pointer;
  background: rgba(0,0,0,0.04);
  color: #374151;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  user-select: none;
  white-space: nowrap;
}
.la-tab:hover { background: rgba(0,0,0,0.06); }
.la-tab.active {
  background: rgba(59,130,246,0.1);
  color: #C81D27;
  font-weight: 600;
}
/* AI智能Tab特殊样式 */
.la-tab-ai {
  background: rgba(59,130,246,0.06);
  color: #C81D27;
  border: 0.5px solid rgba(59,130,246,0.15);
}
.la-tab-ai:hover { background: rgba(59,130,246,0.1); }
.la-tab-ai.active {
  background: #C81D27;
  color: #fff;
  border-color: transparent;
}

/* 话术卡片 */
.la-script-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.la-script-card {
  padding: 10px 12px;
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  background: #FAFAFA;
}
.la-script-card:hover {
  border-color: #C81D27;
  background: rgba(59,130,246,0.03);
  box-shadow: 0 1px 3px rgba(59,130,246,0.08);
}
.la-script-card.copied {
  border-color: #10B981;
  background: rgba(16,185,129,0.03);
}

.la-script-text {
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 6px;
}

.la-script-copy {
  font-size: 11px;
  color: #86868B;
  text-align: right;
}
.la-script-card:hover .la-script-copy { color: #C81D27; }
.la-script-card.copied .la-script-copy { color: #10B981; }

/* 快捷操作按钮 */
.la-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.la-quick-btn {
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(0,0,0,0.04);
  color: #374151;
  border: 0.5px solid rgba(0,0,0,0.06);
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  font-family: inherit;
  text-align: center;
}
.la-quick-btn:hover {
  background: rgba(59,130,246,0.06);
  border-color: #C81D27;
  color: #C81D27;
}
.la-quick-btn:active {
  transform: scale(0.97);
}

/* 本场记录统计 */
.la-stats {
  display: flex;
  gap: 10px;
}

.la-stat-item {
  flex: 1;
  text-align: center;
  background: rgba(0,0,0,0.02);
  border-radius: 10px;
  padding: 10px 8px;
}

.la-stat-num {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #C81D27;
}

.la-stat-label {
  display: block;
  font-size: 11px;
  color: #86868B;
  margin-top: 2px;
}

/* ---- 响应式：窄屏时左右变上下 ---- */
@media (max-width: 900px) {
  .live-assistant-layout {
    flex-direction: column;
    height: auto;
  }
  .la-left {
    min-height: 350px;
  }
  .la-right {
    width: 100%;
  }
  .la-toolbar {
    flex-wrap: wrap;
  }
  .la-url-input {
    min-width: 150px;
  }
  .la-script-list {
    max-height: 200px;
  }
}

/* ===== AI内容工厂 ===== */
.ai-factory-shell {
  max-width: 920px;
  margin: 0 auto;
  padding-bottom: 32px;
}

.ai-factory-hero,
.ai-factory-form,
.ai-factory-summary,
.mkt-panel {
  background: var(--bg-surface, #FFFFFF);
  border: 0.5px solid var(--border-color, rgba(0,0,0,0.06));
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.04));
}

.ai-factory-hero {
  padding: 18px 20px;
  margin-bottom: 14px;
}

.ai-factory-eyebrow {
  color: var(--primary-color, #C81D27);
  font-size: var(--font-size-sm, 12px);
  font-weight: 700;
  margin-bottom: 6px;
}

.ai-factory-hero h2 {
  color: var(--text-primary, #111827);
  font-size: var(--font-size-2xl, 18px);
  margin: 0 0 6px;
  letter-spacing: 0;
}

.ai-factory-hero p {
  color: var(--text-body, #374151);
  font-size: var(--font-size-md, 14px);
  line-height: 1.7;
  margin: 0;
}

.ai-factory-form {
  padding: 18px;
  margin-bottom: 14px;
}

.ai-factory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ai-factory-submit {
  width: 100%;
  margin-top: 12px;
}

.ai-factory-summary {
  padding: 16px 18px;
  margin-bottom: 10px;
}

.ai-factory-summary h3 {
  color: var(--text-primary, #111827);
  font-size: var(--font-size-xl, 16px);
  margin: 0 0 10px;
}

.ai-factory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-factory-tags span {
  background: rgba(59,130,246,0.08);
  color: var(--primary-color, #C81D27);
  border-radius: var(--radius-full, 999px);
  font-size: var(--font-size-sm, 12px);
  font-weight: 600;
  padding: 4px 10px;
}

.ai-factory-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.mkt-tab {
  min-height: 40px;
  border: 0.5px solid var(--border-color, rgba(0,0,0,0.06));
  border-radius: var(--radius-sm, 8px);
  background: var(--bg-surface, #FFFFFF);
  color: var(--text-body, #374151);
  font-size: var(--font-size-md, 14px);
  font-weight: 600;
  cursor: pointer;
}

.mkt-tab.active {
  border-color: rgba(59,130,246,0.35);
  background: rgba(59,130,246,0.08);
  color: var(--primary-color, #C81D27);
}

.mkt-panel {
  display: none;
  padding: 18px;
}

.mkt-panel.active {
  display: block;
}

.ai-factory-platform-title,
.ai-factory-section-title {
  color: var(--text-primary, #111827);
  font-size: var(--font-size-lg, 15px);
  font-weight: 700;
  margin-bottom: 8px;
}

.ai-factory-subtle {
  color: var(--text-secondary, #86868B);
  font-size: var(--font-size-sm, 12px);
  margin-bottom: 10px;
}

.ai-factory-copy,
.ai-factory-tip,
.ai-factory-empty {
  background: var(--bg-subtle, #FAFAFA);
  border-radius: var(--radius-sm, 8px);
  color: var(--text-body, #374151);
  font-size: var(--font-size-md, 14px);
  line-height: 1.75;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-factory-tip {
  margin-top: 10px;
}

.ai-factory-scene {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 54px;
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--border-light, rgba(0,0,0,0.04));
}

.ai-factory-scene strong {
  color: var(--primary-color, #C81D27);
  font-size: var(--font-size-sm, 12px);
}

.ai-factory-scene span {
  color: var(--text-body, #374151);
  font-size: var(--font-size-sm, 12px);
  line-height: 1.6;
}

.ai-factory-scene em {
  color: var(--text-secondary, #86868B);
  font-size: var(--font-size-xs, 11px);
  font-style: normal;
  text-align: right;
}

.ai-factory-action {
  margin-top: 12px;
}

/* ===== 客户运营 ===== */
.customer-ops-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

.customer-ops-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: var(--bg-surface, #FFFFFF);
  border: 0.5px solid var(--border-color, rgba(0,0,0,0.06));
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.04));
  padding: 14px 16px;
}

.customer-ops-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md, 10px);
  background: rgba(59,130,246,0.08);
  color: var(--primary-color, #C81D27);
}

.customer-ops-icon .icon {
  width: 20px;
  height: 20px;
}

.customer-ops-copy {
  min-width: 0;
}

.customer-ops-copy h2 {
  color: var(--text-primary, #111827);
  font-size: var(--font-size-lg, 15px);
  margin: 0 0 4px;
  letter-spacing: 0;
}

.customer-ops-copy p {
  color: var(--text-body, #374151);
  font-size: var(--font-size-sm, 12px);
  line-height: 1.55;
  margin: 0;
}

.customer-ops-status {
  justify-self: end;
  border-radius: var(--radius-full, 999px);
  background: var(--bg-subtle, #FAFAFA);
  color: var(--text-secondary, #86868B);
  font-size: var(--font-size-xs, 11px);
  font-weight: 700;
  padding: 5px 9px;
  white-space: nowrap;
}

/* ===== NFC 标签管理 ===== */
.page-header-desc {
  color: var(--text-secondary, #86868B);
  font-size: var(--font-size-sm, 12px);
  line-height: 1.55;
  margin-top: 4px;
  max-width: 620px;
}

.nfc-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 24px 14px;
}

.nfc-guide-step {
  background: var(--bg-surface, #FFFFFF);
  border: 0.5px solid var(--border-color, rgba(0,0,0,0.06));
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.04));
  padding: 13px 14px;
}

.nfc-guide-step b {
  color: var(--text-primary, #111827);
  display: block;
  font-size: var(--font-size-md, 14px);
  margin-bottom: 5px;
}

.nfc-guide-step span {
  color: var(--text-body, #374151);
  display: block;
  font-size: var(--font-size-sm, 12px);
  line-height: 1.55;
}

.nfc-row-sub {
  color: var(--text-secondary, #86868B);
  font-size: var(--font-size-xs, 11px);
  margin-top: 3px;
  word-break: break-all;
}

.nfc-link-line {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.nfc-link-line span {
  background: var(--bg-subtle, #FAFAFA);
  border: 0.5px solid var(--border-light, rgba(0,0,0,0.04));
  border-radius: var(--radius-sm, 8px);
  color: var(--text-body, #374151);
  display: block;
  font-size: var(--font-size-xs, 11px);
  line-height: 1.45;
  overflow: hidden;
  padding: 7px 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nfc-empty {
  padding: 34px 20px;
}

.nfc-empty-title {
  color: var(--text-primary, #111827);
  font-size: var(--font-size-lg, 15px);
  font-weight: 700;
  margin-bottom: 6px;
}

.nfc-empty-desc {
  color: var(--text-body, #374151);
  font-size: var(--font-size-sm, 12px);
  line-height: 1.6;
  margin: 0 auto 14px;
  max-width: 360px;
}

.nfc-modal-note {
  background: rgba(59,130,246,0.07);
  border: 0.5px solid rgba(59,130,246,0.18);
  border-radius: var(--radius-md, 10px);
  color: var(--text-body, #374151);
  font-size: var(--font-size-sm, 12px);
  line-height: 1.65;
  margin-bottom: 14px;
  padding: 12px;
}

.form-hint {
  color: var(--text-secondary, #86868B);
  font-size: var(--font-size-xs, 11px);
  line-height: 1.5;
  margin-top: 5px;
}

.nfc-write-modal {
  text-align: left;
}

.nfc-write-store {
  color: var(--text-body, #374151);
  font-size: var(--font-size-sm, 12px);
  margin-bottom: 10px;
  text-align: center;
}

.nfc-qr-img {
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-md, 10px);
  display: block;
  height: 240px;
  margin: 0 auto 14px;
  width: 240px;
}

.nfc-write-modal label {
  color: var(--text-primary, #111827);
  display: block;
  font-size: var(--font-size-sm, 12px);
  font-weight: 700;
  margin-bottom: 6px;
}

.nfc-write-url {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.nfc-write-url input {
  border: 0.5px solid var(--border-color, rgba(0,0,0,0.06));
  border-radius: var(--radius-sm, 8px);
  color: var(--text-body, #374151);
  font-size: var(--font-size-sm, 12px);
  min-width: 0;
  padding: 10px 12px;
}

.nfc-write-tip {
  color: var(--text-secondary, #86868B);
  font-size: var(--font-size-xs, 11px);
  line-height: 1.55;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .ai-factory-shell {
    max-width: none;
    padding-bottom: 88px;
  }

  .ai-factory-hero,
  .ai-factory-form,
  .ai-factory-summary,
  .mkt-panel {
    border-radius: var(--radius-md, 10px);
  }

  .ai-factory-grid,
  .ai-factory-tabs {
    grid-template-columns: 1fr;
  }

  .ai-factory-scene {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .ai-factory-scene em {
    grid-column: 2;
    text-align: left;
  }

  .customer-ops-item {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    padding: 12px;
  }

  .customer-ops-icon {
    width: 40px;
    height: 40px;
  }

  .customer-ops-status {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }

  .nfc-guide {
    grid-template-columns: 1fr;
    padding: 0 12px 12px;
  }

  .nfc-link-line {
    min-width: 240px;
  }

  .nfc-write-url {
    grid-template-columns: 1fr;
  }

  .nfc-qr-img {
    height: 220px;
    width: 220px;
  }
}

/* ===== 2.1.5 Product refresh: variance 6, motion 3, density 5 =====
   Home and function hub remain on their existing visual system. */
.page-panel:not(#page-home):not(#page-function-hub) {
  --product-ink: #10213f;
  --product-body: #45556f;
  --product-muted: #71809a;
  --product-line: #dfe7f4;
  --product-accent: #A91520;
  --product-soft: #eaf1ff;
  --product-shadow: 0 10px 28px rgba(41, 66, 107, .07);
  color: var(--product-body);
  min-height: calc(100vh - 54px);
}

.page-panel:not(#page-home):not(#page-function-hub) .breadcrumb {
  color: var(--product-muted);
  font-size: 12px;
  letter-spacing: .01em;
  padding-top: 20px;
}

.page-panel:not(#page-home):not(#page-function-hub) .breadcrumb .sep { color: #a6b3c6; }

.page-panel:not(#page-home):not(#page-function-hub) .page-header {
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 18px;
  padding-top: 12px;
}

.page-panel:not(#page-home):not(#page-function-hub) .page-header h1,
.page-panel:not(#page-home):not(#page-function-hub) .manual-edit-header h1 {
  color: var(--product-ink);
  font-size: clamp(23px, 2vw, 29px);
  font-weight: 750;
  letter-spacing: -.035em;
}

.page-panel:not(#page-home):not(#page-function-hub) .page-header p,
.page-panel:not(#page-home):not(#page-function-hub) .page-header-desc {
  color: var(--product-muted) !important;
  line-height: 1.65;
  max-width: 680px;
}

.page-panel:not(#page-home):not(#page-function-hub) .card,
.page-panel:not(#page-home):not(#page-function-hub) .editor-panel,
.page-panel:not(#page-home):not(#page-function-hub) .preview-panel,
.page-panel:not(#page-home):not(#page-function-hub) .publish-platform-panel,
.page-panel:not(#page-home):not(#page-function-hub) .table-scroll,
.page-panel:not(#page-home):not(#page-function-hub) .manual-assets-panel,
.page-panel:not(#page-home):not(#page-function-hub) .manual-preview-panel,
.page-panel:not(#page-home):not(#page-function-hub) .manual-settings-panel,
.page-panel:not(#page-home):not(#page-function-hub) .manual-timeline-shell {
  background: #fff;
  border: 1px solid var(--product-line);
  border-radius: 16px;
  box-shadow: var(--product-shadow);
}

.page-panel:not(#page-home):not(#page-function-hub) .editor-layout {
  gap: 18px;
  grid-template-columns: minmax(340px, .88fr) minmax(0, 1.4fr);
  margin: 0 auto;
  max-width: 1480px;
  padding: 0 28px 30px;
}

.page-panel:not(#page-home):not(#page-function-hub) .editor-panel,
.page-panel:not(#page-home):not(#page-function-hub) .preview-panel { padding: 20px; }

.page-panel:not(#page-home):not(#page-function-hub) .editor-section { margin-bottom: 18px; }

.page-panel:not(#page-home):not(#page-function-hub) .editor-section-title,
.page-panel:not(#page-home):not(#page-function-hub) .preview-title {
  color: var(--product-ink);
  font-size: 14px;
  font-weight: 720;
}

.page-panel:not(#page-home):not(#page-function-hub) .editor-section-title {
  border-bottom-color: var(--product-line);
  padding-bottom: 10px;
}

.page-panel:not(#page-home):not(#page-function-hub) .material-selector,
.page-panel:not(#page-home):not(#page-function-hub) .upload-area {
  background: #f8faff;
  border-color: #cbd8ec;
  border-radius: 11px;
}

.page-panel:not(#page-home):not(#page-function-hub) input[type="text"],
.page-panel:not(#page-home):not(#page-function-hub) input[type="password"],
.page-panel:not(#page-home):not(#page-function-hub) input[type="number"],
.page-panel:not(#page-home):not(#page-function-hub) input[type="datetime-local"],
.page-panel:not(#page-home):not(#page-function-hub) textarea,
.page-panel:not(#page-home):not(#page-function-hub) select {
  border-color: #cfdae9;
  border-radius: 11px;
  color: var(--product-body);
  min-height: 42px;
}

.page-panel:not(#page-home):not(#page-function-hub) input:focus,
.page-panel:not(#page-home):not(#page-function-hub) textarea:focus,
.page-panel:not(#page-home):not(#page-function-hub) select:focus {
  border-color: var(--product-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

.page-panel:not(#page-home):not(#page-function-hub) .btn-create,
.page-panel:not(#page-home):not(#page-function-hub) .btn-primary,
.page-panel:not(#page-home):not(#page-function-hub) .manual-add-material {
  background: var(--product-accent);
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(37, 99, 235, .16);
  font-weight: 700;
}

.page-panel:not(#page-home):not(#page-function-hub) .btn-create:hover,
.page-panel:not(#page-home):not(#page-function-hub) .btn-primary:hover,
.page-panel:not(#page-home):not(#page-function-hub) .manual-add-material:hover { background: #83131B; }

.page-panel:not(#page-home):not(#page-function-hub) .btn-secondary,
.page-panel:not(#page-home):not(#page-function-hub) .btn-batch,
.page-panel:not(#page-home):not(#page-function-hub) .manual-audio-actions button,
.page-panel:not(#page-home):not(#page-function-hub) .manual-playbar button {
  background: #FFF9F7;
  border: 1px solid #d4dfef;
  border-radius: 10px;
  color: #334761;
  font-weight: 650;
}

.page-panel:not(#page-home):not(#page-function-hub) .btn-secondary:hover,
.page-panel:not(#page-home):not(#page-function-hub) .btn-batch:hover,
.page-panel:not(#page-home):not(#page-function-hub) .manual-audio-actions button:hover,
.page-panel:not(#page-home):not(#page-function-hub) .manual-playbar button:hover {
  background: var(--product-soft);
  border-color: #a9c5ef;
  color: #83131B;
}

.page-panel:not(#page-home):not(#page-function-hub) button:focus-visible,
.page-panel:not(#page-home):not(#page-function-hub) a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .28);
  outline-offset: 2px;
}

/* The material library is offset slightly to avoid a rigid equal-card wall. */
#page-vc-material .category-grid {
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 16px;
  padding: 0 28px 30px;
}

#page-vc-material .category-card {
  border: 1px solid var(--product-line);
  border-radius: 16px;
  box-shadow: var(--product-shadow);
  min-height: 205px;
  padding: 22px 18px 16px;
}

#page-vc-material .category-card:nth-child(3n + 2) { transform: translateY(10px); }

#page-vc-material .category-card:hover {
  border-color: var(--cat-color, var(--product-accent));
  box-shadow: 0 16px 34px rgba(37, 99, 235, .11);
  transform: translateY(-2px);
}

#page-vc-material .category-card:nth-child(3n + 2):hover { transform: translateY(6px); }
#page-vc-material .material-icon-grid { padding: 0 28px 30px; }

/* Dark video canvases make the preview the obvious focal point. */
#page-vc-edit .preview-box,
#page-vc-digital .preview-box,
#page-vc-text2clip .preview-box,
#page-vc-manual-edit .manual-preview-box {
  background: #111b2e;
  border: 1px solid #24324a;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
}

#page-vc-edit .preview-placeholder .p-title,
#page-vc-digital .preview-placeholder .p-title,
#page-vc-text2clip .preview-placeholder .p-title { color: #eef4ff; }

#page-vc-edit .preview-placeholder .p-desc,
#page-vc-digital .preview-placeholder .p-desc,
#page-vc-text2clip .preview-placeholder .p-desc,
#page-vc-manual-edit .manual-preview-empty { color: #aab9d0; }

#page-vc-manual-edit {
  background: #f4f7fc;
  padding: 24px 28px 32px;
}

#page-vc-manual-edit .manual-edit-header,
#page-vc-manual-edit .manual-edit-workbench,
#page-vc-manual-edit .manual-timeline-shell { max-width: 1520px; }

#page-vc-manual-edit .manual-edit-workbench {
  gap: 16px;
  grid-template-columns: 260px minmax(420px, 1fr) 250px;
}

#page-vc-manual-edit .manual-preview-box { height: 360px; }
#page-vc-manual-edit .manual-timeline-shell { padding: 18px; }
#page-vc-manual-edit .manual-track-content { background: #FFFDFC; }

.page-panel:not(#page-home):not(#page-function-hub) .table-wrap,
.page-panel:not(#page-home):not(#page-function-hub) .works-grid,
.page-panel:not(#page-home):not(#page-function-hub) .batch-grid,
.page-panel:not(#page-home):not(#page-function-hub) .publish-task-section {
  margin-left: auto;
  margin-right: auto;
  max-width: 1480px;
}

#page-vc-task .table-wrap { padding: 0 28px 30px; }
#page-vc-task table th { background: #f3f6fb; color: #64748b; font-weight: 700; }
#page-vc-task table td { border-bottom-color: #e8edf5; }
.page-panel:not(#page-home):not(#page-function-hub) .status-badge,
.page-panel:not(#page-home):not(#page-function-hub) .tag { border-radius: 999px; }

@media (prefers-reduced-motion: no-preference) {
  .page-panel:not(#page-home):not(#page-function-hub) .card,
  .page-panel:not(#page-home):not(#page-function-hub) .editor-panel,
  .page-panel:not(#page-home):not(#page-function-hub) .preview-panel,
  .page-panel:not(#page-home):not(#page-function-hub) .category-card,
  .page-panel:not(#page-home):not(#page-function-hub) .btn,
  .page-panel:not(#page-home):not(#page-function-hub) .btn-create {
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-panel:not(#page-home):not(#page-function-hub),
  .page-panel:not(#page-home):not(#page-function-hub) *,
  .page-panel:not(#page-home):not(#page-function-hub) *::before,
  .page-panel:not(#page-home):not(#page-function-hub) *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 900px) {
  .page-panel:not(#page-home):not(#page-function-hub) .editor-layout,
  #page-vc-manual-edit .manual-edit-workbench { grid-template-columns: 1fr; }
  #page-vc-manual-edit .manual-settings-panel { grid-column: auto; }
  #page-vc-material .category-card:nth-child(3n + 2) { transform: none; }
}

@media (max-width: 700px) {
  .page-panel:not(#page-home):not(#page-function-hub) .breadcrumb { padding: 16px 14px 0; }
  .page-panel:not(#page-home):not(#page-function-hub) .page-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 14px 16px;
  }
  .page-panel:not(#page-home):not(#page-function-hub) .editor-layout,
  #page-vc-material .category-grid,
  #page-vc-material .material-icon-grid,
  #page-vc-task .table-wrap { padding-left: 14px; padding-right: 14px; }
  #page-vc-manual-edit { padding: 16px 14px 88px; }
  #page-vc-manual-edit .manual-preview-box { height: 300px; }
}

/* 智能剪辑：两步卡片式（选素材 → 确认成片） */
#page-vc-edit {
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px 34px 42px;
}

#page-vc-edit .breadcrumb { padding: 0; }

#page-vc-edit .sc-hero { margin: 18px 0 26px; }

#page-vc-edit .sc-hero h1 {
  color: #10233f;
  font-size: 32px;
  letter-spacing: -.06em;
  line-height: 1.1;
  margin: 5px 0 7px;
}

#page-vc-edit .sc-hero p {
  color: #718098;
  font-size: 14px;
  margin: 0;
}

#page-vc-edit .sc-kicker {
  color: #2a6bf2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

/* 隐藏态兜底：flex/grid 容器会覆盖 UA 的 [hidden]，需显式声明 */
#page-vc-edit [hidden] { display: none !important; }

/* 步骤标题行 */
#page-vc-edit .sc-step-head {
  align-items: center;
  display: flex;
  gap: 10px;
  margin: 0 0 14px;
}

#page-vc-edit .sc-step-num {
  align-items: center;
  background: linear-gradient(135deg, #3475f4, #6fa8ff);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  width: 26px;
}

#page-vc-edit .sc-step-head h2 { color: #17273e; font-size: 18px; margin: 0; }
#page-vc-edit .sc-step-sub { color: #8492a5; font-size: 12px; }
#page-vc-edit .sc-back-btn { margin-left: auto; }

/* 第一步：选素材大卡片 */
#page-vc-edit .sc-select-card {
  align-items: center;
  background: linear-gradient(135deg, #f2f7ff, #FFFDFC);
  border: 1.5px dashed #acc8f6;
  border-radius: 18px;
  color: #1d3150;
  cursor: pointer;
  display: flex;
  gap: 16px;
  padding: 34px 26px;
  transition: all .2s;
}

#page-vc-edit .sc-select-card .icon { height: 34px; width: 34px; }
#page-vc-edit .sc-select-card strong { display: block; font-size: 17px; margin-bottom: 4px; }
#page-vc-edit .sc-select-card span { color: #8090a9; font-size: 13px; }

/* 已选素材条 */
#page-vc-edit .sc-selected-panel {
  background: rgba(255, 255, 255, .96);
  border: 1px solid #e1e8f3;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(34, 62, 108, .06);
  margin-top: 14px;
  padding: 14px 16px;
}

#page-vc-edit .sc-selected-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

#page-vc-edit .sc-count {
  background: #edf4ff;
  border-radius: 999px;
  color: #2862c8;
  font-size: 12px;
  line-height: 24px;
  padding: 0 10px;
}

#page-vc-edit .sc-material-strip {
  background: #fbfdff;
  border: 0;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 76px;
  padding: 8px;
}

#page-vc-edit .sc-material-strip .material-tips { align-self: center; color: #8a98ad; font-size: 12px; width: 100%; }

/* 主按钮 */
#page-vc-edit .sc-cta-row {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

#page-vc-edit .sc-main-btn {
  background: linear-gradient(135deg, #3475f4, #6fa8ff);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(52, 117, 244, .28);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  height: 54px;
  min-width: 280px;
}

#page-vc-edit .sc-main-btn:disabled { opacity: .6; }
#page-vc-edit .sc-manual-link { color: #8492a5; font-size: 13px; }

/* AI 处理中 */
#page-vc-edit .sc-working { margin-top: 22px; }

#page-vc-edit .sc-working-card {
  background: #fff;
  border: 1px solid #e1e8f3;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(34, 62, 108, .06);
  padding: 22px 24px;
}

#page-vc-edit .sc-working-title { color: #17273e; font-size: 15px; font-weight: 700; margin-bottom: 14px; }

#page-vc-edit .sc-working-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#page-vc-edit .sc-working-list li {
  align-items: center;
  color: #8492a5;
  display: flex;
  font-size: 13px;
  gap: 10px;
}

#page-vc-edit .sc-w-dot { background: #e1e8f3; border-radius: 50%; flex-shrink: 0; height: 10px; width: 10px; }
#page-vc-edit .sc-working-list li.active { color: #2862c8; }
#page-vc-edit .sc-working-list li.active .sc-w-dot { animation: scPulse 1s ease-in-out infinite; background: #3475f4; }
#page-vc-edit .sc-working-list li.done { color: #10b981; }
#page-vc-edit .sc-working-list li.done .sc-w-dot { background: #10b981; }

@keyframes scPulse {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

#page-vc-edit .sc-working-note { color: #9aa8bd; font-size: 12px; margin: 12px 0 0; }

/* 第二步：主题行 */
#page-vc-edit .sc-topic-row {
  align-items: center;
  background: #fff;
  border: 1px solid #e1e8f3;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 14px;
}

#page-vc-edit .sc-topic-row label { color: #4d5f79; font-size: 13px; font-weight: 700; white-space: nowrap; }

#page-vc-edit .sc-topic-row input {
  background: #f7faff;
  border: 1px solid #d9e4f2;
  border-radius: 9px;
  color: #1a2f4e;
  flex: 1;
  font-size: 14px;
  height: 38px;
  min-width: 0;
  padding: 0 12px;
}

/* 第二步：分镜 + 预览双栏 */
#page-vc-edit .sc-confirm-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .9fr);
}

#page-vc-edit .sc-scenes-panel,
#page-vc-edit .sc-preview-panel {
  background: rgba(255, 255, 255, .96);
  border: 1px solid #e1e8f3;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(34, 62, 108, .07);
  padding: 18px 20px;
}

#page-vc-edit .clip-timeline-header { color: #40526d; justify-content: space-between; margin-bottom: 12px; }
#page-vc-edit .clip-timeline-header > div { align-items: center; display: flex; gap: 8px; }
#page-vc-edit .clip-timeline-header strong { color: #213550; font-size: 15px; }
#page-vc-edit .clip-timeline-track { background: #f7faff; border: 1px solid #e5edf8; border-radius: 11px; min-height: 196px; padding: 12px; }

#page-vc-edit .sc-preview-panel { display: flex; flex-direction: column; }
#page-vc-edit .sc-preview-box { flex: 1; margin: 0; min-height: 320px; aspect-ratio: auto; max-height: none; }

/* 声音与字幕：始终可见，预演与导出共用同一组参数。 */
#page-vc-edit .sc-output-settings {
  border-top: 1px solid #dce5f1;
  margin-top: 18px;
  padding-top: 18px;
}
#page-vc-edit .sc-output-settings-head,
#page-vc-edit .sc-output-block-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
#page-vc-edit .sc-output-settings-head { gap: 16px; margin-bottom: 18px; }
#page-vc-edit .sc-output-settings-head h3,
#page-vc-edit .sc-output-block-head h4 { color: #1b304f; margin: 0; }
#page-vc-edit .sc-output-settings-head h3 { font-size: 17px; }
#page-vc-edit .sc-output-settings-head p { color: #6c7b91; font-size: 12px; line-height: 1.5; margin: 4px 0 0; }
#page-vc-edit .sc-output-settings-head > span {
  background: #e8f2ff;
  border-radius: 999px;
  color: #175bb7;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 750;
  padding: 6px 9px;
}
#page-vc-edit .sc-output-block { padding: 0 0 18px; }
#page-vc-edit .sc-output-block + .sc-output-block { border-top: 1px solid #e6edf6; padding-top: 18px; }
#page-vc-edit .sc-output-block-head { margin-bottom: 10px; }
#page-vc-edit .sc-output-block-head h4 { font-size: 14px; }
#page-vc-edit .sc-output-block-head > span { color: #65758d; font-size: 11px; }
#page-vc-edit .sc-source-audio-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .8fr);
  margin-bottom: 18px;
}
#page-vc-edit .sc-source-toggle {
  align-items: center;
  color: #263a58;
  display: flex;
  gap: 10px;
  min-height: 44px;
}
#page-vc-edit .sc-source-toggle input { accent-color: #286be6; height: 19px; margin: 0; width: 19px; }
#page-vc-edit .sc-source-toggle span { display: grid; gap: 2px; }
#page-vc-edit .sc-source-toggle strong { font-size: 12px; }
#page-vc-edit .sc-source-toggle small { color: #687991; font-size: 11px; font-weight: 400; }
#page-vc-edit .sc-source-volume { color: #52627a; display: grid; font-size: 12px; gap: 6px; }
#page-vc-edit .sc-source-volume output { color: #174a98; font-variant-numeric: tabular-nums; font-weight: 750; justify-self: end; margin-top: -20px; }
#page-vc-edit .sc-source-volume input { accent-color: #286be6; min-height: 24px; width: 100%; }
#page-vc-edit .sc-bgm-label { align-items: center; border-top: 1px solid #e6edf6; display: flex; justify-content: space-between; margin-bottom: 10px; padding-top: 16px; }
#page-vc-edit .sc-bgm-label strong { color: #1b304f; font-size: 13px; }
#page-vc-edit .sc-bgm-label span { color: #65758d; font-size: 11px; }
#page-vc-edit .smart-clip-bgm-row { align-items: center; display: flex; gap: 7px; }
#page-vc-edit .smart-clip-bgm-row select { flex: 1; min-width: 0; }
#page-vc-edit .smart-clip-bgm-row select,
#page-vc-edit .smart-clip-bgm-row .btn { min-height: 44px; }
#page-vc-edit .smart-clip-bgm-row .btn-icon {
  align-items: center;
  background: #eef4ff;
  border: 1px solid #cddcf4;
  border-radius: 9px;
  display: inline-flex;
  flex-shrink: 0;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}
#page-vc-edit .smart-clip-bgm-row .btn-icon .icon { height: 15px; width: 15px; }
#page-vc-edit .smart-clip-setting-note { color: #9aa8bd; font-size: 11px; margin: 8px 0 0; }
#page-vc-edit .sc-audio-controls {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}
#page-vc-edit .sc-audio-controls > label { color: #52627a; display: grid; font-size: 12px; gap: 7px; }
#page-vc-edit .sc-audio-volume { grid-column: span 2; }
#page-vc-edit .sc-audio-volume output { color: #174a98; font-variant-numeric: tabular-nums; font-weight: 750; justify-self: end; margin-top: -21px; }
#page-vc-edit .sc-audio-controls input[type="range"] { accent-color: #286be6; cursor: pointer; min-height: 24px; width: 100%; }
#page-vc-edit .sc-number-unit { align-items: center; background: #fff; border: 1px solid #cad9ee; border-radius: 9px; display: flex; min-height: 44px; overflow: hidden; }
#page-vc-edit .sc-number-unit input { border: 0; color: #23324a; font: inherit; height: 42px; min-width: 0; padding: 0 4px 0 10px; width: 100%; }
#page-vc-edit .sc-number-unit span { color: #73839a; padding-right: 9px; }
#page-vc-edit .sc-loop-toggle { align-items: center; align-self: end; display: flex !important; gap: 9px !important; min-height: 44px; }
#page-vc-edit .sc-loop-toggle input { accent-color: #286be6; height: 18px; margin: 0; width: 18px; }
#page-vc-edit .sc-caption-block .caption-style-settings { border-top: 0; margin-top: 0; padding-top: 0; }
#page-vc-edit .sc-transcription-row { align-items: center; display: flex; gap: 12px; justify-content: space-between; margin-top: 10px; }
#page-vc-edit .sc-transcription-row p { color: #52627a; font-size: 12px; line-height: 1.55; margin: 0; max-width: 52ch; }
#page-vc-edit .sc-transcription-row .btn { flex: 0 0 auto; min-height: 44px; }
#page-vc-edit .sc-transcription-note { border-bottom: 1px solid #e6edf6; margin-bottom: 16px; padding-bottom: 16px; }
#page-vc-edit #clipTranscriptionStatus[data-tone="working"] { color: #175bb7; }
#page-vc-edit #clipTranscriptionStatus[data-tone="success"] { color: #16734b; }
#page-vc-edit #clipTranscriptionStatus[data-tone="warning"] { color: #8a4b09; }
#page-vc-edit #clipTranscriptionStatus[data-tone="error"] { color: #b42318; }
#page-vc-edit .sc-caption-block .caption-style-settings select { min-height: 44px; }
#page-vc-edit .sc-caption-block .caption-coordinate-grid input[type="range"] { min-height: 28px; }
#page-vc-edit .sc-output-settings :is(button, select, input):focus-visible { outline: 3px solid rgba(40, 107, 230, .3); outline-offset: 2px; }

/* AI 内容识别折叠区 */
#page-vc-edit .sc-analysis { margin-top: 14px; }

#page-vc-edit .sc-analysis summary {
  color: #4d5f79;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

#page-vc-edit .sc-analysis summary::-webkit-details-marker { display: none; }
#page-vc-edit .sc-analysis-body { background: #fff; border: 1px solid #e1e8f3; border-radius: 12px; margin-top: 10px; padding: 14px; }
#page-vc-edit #btnAnalyzeContent { margin-bottom: 10px; }
#page-vc-edit #contentAnalysisProgress { background: #f3f7fd; border-radius: 8px; color: #62728c; font-size: 12px; margin-top: 8px; padding: 8px; }

/* 提交行 */
#page-vc-edit .sc-submit-row {
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #e1e8f3;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(34, 62, 108, .06);
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 18px;
  padding: 14px 20px;
}

#page-vc-edit .sc-submit-hint { color: #8492a5; font-size: 13px; margin-right: auto; }

@media (hover: hover) {
  #page-vc-edit .sc-select-card:hover { background: #eaf3ff; border-color: #5a93ef; transform: translateY(-1px); }
  #page-vc-edit .sc-main-btn:hover { transform: translateY(-1px); }
}

@media (max-width: 1180px) {
  #page-vc-edit .sc-confirm-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  #page-vc-edit { padding: 20px 14px 30px; }
  #page-vc-edit .sc-confirm-grid { grid-template-columns: 1fr; }
  #page-vc-edit .sc-output-settings-head { align-items: flex-start; }
  #page-vc-edit .sc-audio-controls { grid-template-columns: 1fr 1fr; }
  #page-vc-edit .sc-audio-volume { grid-column: span 2; }
  #page-vc-edit .sc-main-btn { min-width: 0; width: 100%; }
  #page-vc-edit .sc-submit-row { flex-direction: column-reverse; }
  #page-vc-edit .sc-submit-hint { margin-right: 0; }
  #page-vc-edit .sc-step-head { flex-wrap: wrap; }
  #page-vc-edit .sc-back-btn { margin-left: 0; }
}

@media (max-width: 460px) {
  #page-vc-edit .smart-clip-bgm-row { align-items: stretch; flex-wrap: wrap; }
  #page-vc-edit .smart-clip-bgm-row select { flex-basis: calc(100% - 54px); }
  #page-vc-edit .smart-clip-music-picker { flex: 1 0 100%; }
  #page-vc-edit .sc-audio-controls { grid-template-columns: 1fr; }
  #page-vc-edit .sc-audio-volume { grid-column: auto; }
}

/* 2.2.23 智能剪辑工作台：创作意图、镜头选择与连续预演 */
#page-vc-edit .sc-hero { max-width: 760px; }
#page-vc-edit .sc-hero h1 { color: #111827; letter-spacing: -.035em; }
#page-vc-edit .sc-hero p { color: #596579; font-size: 15px; line-height: 1.65; }
#page-vc-edit .sc-step-num { background: #A91520; }

#page-vc-edit .sc-select-card {
  background: #fff;
  border: 1px dashed #9bb7e4;
  border-radius: 10px;
  min-height: 112px;
}
#page-vc-edit .sc-select-card:focus-visible,
#page-vc-edit .sc-field input:focus-visible,
#page-vc-edit .sc-field select:focus-visible,
#page-vc-edit .sc-topic-row input:focus-visible,
#page-vc-edit .clip-timeline-item:focus-visible,
#page-vc-edit .clip-sequence-controls button:focus-visible,
#page-vc-edit .clip-sequence-controls input:focus-visible {
  border-color: #A91520;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
  outline: 0;
}
#page-vc-edit .sc-selected-panel,
#page-vc-edit .sc-working-card,
#page-vc-edit .sc-scenes-panel,
#page-vc-edit .sc-preview-panel,
#page-vc-edit .sc-submit-row {
  border-radius: 10px;
  box-shadow: none;
}

#page-vc-edit .sc-intent-panel {
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 10px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
  padding: 18px;
}
#page-vc-edit .sc-field { min-width: 0; }
#page-vc-edit .sc-field-wide { grid-column: 1 / -1; }
#page-vc-edit .sc-field label {
  color: #344054;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}
#page-vc-edit .sc-field input,
#page-vc-edit .sc-field select {
  background: #fff;
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  color: #182230;
  font: inherit;
  min-height: 44px;
  padding: 0 11px;
  width: 100%;
}
#page-vc-edit .sc-field input::placeholder { color: #8a94a6; }
#page-vc-edit .sc-use-all-toggle {
  align-items: center;
  background: #f7faff;
  border: 1px solid #d8e5f7;
  border-radius: 9px;
  color: #263a58;
  display: flex;
  gap: 10px;
  min-height: 44px;
  padding: 9px 11px;
}
#page-vc-edit .sc-use-all-toggle input { accent-color: #286be6; height: 18px; margin: 0; width: 18px; }
#page-vc-edit .sc-use-all-toggle span { display: grid; gap: 2px; }
#page-vc-edit .sc-use-all-toggle strong { font-size: 12px; }
#page-vc-edit .sc-use-all-toggle small { color: #687991; font-size: 11px; font-weight: 400; line-height: 1.45; }
#page-vc-edit .sc-transition-control { color: #52627a; display: grid; font-size: 12px; gap: 7px; }
#page-vc-edit .sc-transition-control select { background: #fff; border: 1px solid #cad9ee; border-radius: 9px; color: #23324a; font: inherit; min-height: 44px; padding: 0 10px; width: 100%; }
#page-vc-edit .sc-main-btn {
  background: #A91520;
  border-radius: 8px;
  box-shadow: none;
  min-height: 50px;
}
#page-vc-edit .sc-main-btn:hover { background: #83131B; }

#page-vc-edit .sc-confirm-grid { grid-template-columns: minmax(520px, 1.35fr) minmax(340px, .8fr); }
#page-vc-edit .sc-preview-panel { position: sticky; top: 16px; }
#page-vc-edit .clip-timeline-track {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 720px;
  overflow-x: hidden;
  overflow-y: auto;
}
#page-vc-edit .clip-timeline-item {
  cursor: pointer;
  display: grid;
  flex: none;
  gap: 7px 10px;
  grid-template-areas:
    "order thumb name source"
    "order thumb note note"
    "order thumb duration duration"
    "order thumb subtitle subtitle"
    "order thumb actions actions";
  grid-template-columns: 28px 118px minmax(0, 1fr) auto;
  padding: 10px;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
#page-vc-edit .clip-timeline-item:hover { border-color: #9db6dc; }
#page-vc-edit .clip-timeline-item.active {
  border-color: #A91520;
  box-shadow: inset 3px 0 0 #A91520;
}
#page-vc-edit .clip-timeline-order {
  grid-area: order;
  height: 26px;
  left: auto;
  position: static;
  top: auto;
  width: 26px;
}
#page-vc-edit .clip-timeline-thumb { grid-area: thumb; height: 92px; }
#page-vc-edit .clip-timeline-name { align-self: center; grid-area: name; margin: 0; }
#page-vc-edit .clip-timeline-source {
  align-items: center;
  color: #667085;
  display: flex;
  font-size: 11px;
  gap: 8px;
  grid-area: source;
}
#page-vc-edit .clip-timeline-source span:last-child { background: #eef4ff; border-radius: 4px; color: #2459aa; padding: 3px 6px; }
#page-vc-edit .clip-timeline-note {
  color: #596579;
  font-size: 12px;
  grid-area: note;
  line-height: 1.45;
  margin: 0;
}
#page-vc-edit .clip-timeline-duration { grid-area: duration; }
#page-vc-edit .clip-timeline-subtitle { grid-area: subtitle; margin-top: 0; }
#page-vc-edit .clip-caption-editor { display: grid; gap: 7px; grid-area: subtitle; }
#page-vc-edit .clip-caption-editor-head { align-items: center; color: #3b4e6a; display: flex; font-size: 11px; font-weight: 700; justify-content: space-between; }
#page-vc-edit .clip-caption-editor-head small { color: #65758d; font-size: 10px; font-weight: 500; }
#page-vc-edit .clip-caption-segment { align-items: center; display: grid; gap: 6px; grid-template-columns: 72px minmax(0, 1fr) 36px; }
#page-vc-edit .clip-caption-time { color: #65758d; font-size: 10px; font-variant-numeric: tabular-nums; }
#page-vc-edit .clip-caption-segment input { border: 1px solid #cbd7e8; border-radius: 7px; color: #263a58; min-height: 36px; min-width: 0; padding: 6px 8px; }
#page-vc-edit .clip-caption-segment button { background: #f5f7fa; border: 1px solid #d9e1ec; border-radius: 7px; color: #a12a2a; min-height: 36px; min-width: 36px; }
#page-vc-edit .clip-caption-segment :is(input, button):focus-visible { border-color: #A91520; box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); outline: 0; }
#page-vc-edit .clip-timeline-duration input,
#page-vc-edit .clip-timeline-subtitle input { min-height: 36px; }
#page-vc-edit .clip-timeline-actions { display: flex; gap: 6px; grid-area: actions; justify-content: flex-end; margin-top: 0; }
#page-vc-edit .clip-timeline-actions button { min-height: 36px; min-width: 38px; }

#page-vc-edit .sc-preview-box {
  background: #f4f6f9;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  min-height: 440px;
  overflow: hidden;
  padding: 0;
}
#page-vc-edit .clip-sequence-preview { display: flex; flex-direction: column; height: 100%; min-height: 438px; }
#page-vc-edit .clip-sequence-stage-wrap {
  align-items: center;
  background: #0b0d10;
  display: flex;
  flex: 1;
  justify-content: center;
  min-height: 330px;
  overflow: hidden;
  padding: 12px;
}
#page-vc-edit .clip-sequence-stage {
  background: #000;
  max-height: 390px;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}
#page-vc-edit .clip-sequence-stage img,
#page-vc-edit .clip-sequence-stage video { display: block; }
#page-vc-edit .clip-sequence-subtitle {
  background: rgba(0, 0, 0, .66);
  bottom: 8%;
  color: #fff;
  font-size: 14px;
  left: 50%;
  line-height: 1.45;
  max-width: 86%;
  padding: 5px 9px;
  position: absolute;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  transform: translateX(-50%);
}
#page-vc-edit .clip-sequence-error { align-items: center; color: #d5dae2; display: flex; font-size: 12px; height: 100%; justify-content: center; padding: 20px; text-align: center; }
#page-vc-edit .clip-sequence-meta { align-items: center; color: #667085; display: flex; flex-wrap: wrap; font-size: 11px; gap: 7px 12px; padding: 10px 12px 4px; }
#page-vc-edit .clip-sequence-meta strong { color: #83131B; }
#page-vc-edit .clip-sequence-controls { align-items: center; display: grid; gap: 8px; grid-template-columns: auto auto minmax(80px, 1fr) auto; padding: 8px 12px 12px; }
#page-vc-edit .clip-sequence-controls button {
  background: #A91520;
  border: 0;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  min-height: 38px;
  min-width: 58px;
}
#page-vc-edit .clip-sequence-controls span { color: #596579; font-size: 11px; font-variant-numeric: tabular-nums; }
#page-vc-edit .clip-sequence-controls input { accent-color: #A91520; min-height: 38px; width: 100%; }

/* 2.2.31 智能剪辑确认页：先审片，再集中设定成片效果。 */
#page-vc-edit .sc-confirm-grid {
  gap: 16px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
}
#page-vc-edit .sc-scenes-panel,
#page-vc-edit .sc-preview-panel { padding: 16px; }
#page-vc-edit .sc-preview-panel { position: sticky; top: 16px; }
#page-vc-edit .sc-preview-box { min-height: 400px; }
#page-vc-edit .clip-timeline-header { align-items: flex-start; gap: 12px; }
#page-vc-edit .clip-timeline-header > div { align-items: flex-start; flex-direction: column; gap: 3px; }
#page-vc-edit .clip-timeline-track {
  background: #f8fafc;
  gap: 8px;
  max-height: 570px;
  padding: 8px;
}
#page-vc-edit .clip-timeline-item {
  background: #fff;
  border: 1px solid #dce4ee;
  border-radius: 9px;
  cursor: grab;
  display: block;
  padding: 0;
  width: 100%;
}
#page-vc-edit .clip-timeline-item:hover { border-color: #aabed8; }
#page-vc-edit .clip-timeline-item.active { border-color: #A91520; box-shadow: inset 3px 0 0 #A91520; }
#page-vc-edit .clip-timeline-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 8px;
}
#page-vc-edit .clip-timeline-select {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: 26px 68px minmax(0, 1fr);
  min-width: 0;
  padding: 0;
  text-align: left;
}
#page-vc-edit .clip-timeline-select:focus-visible,
#page-vc-edit .clip-timeline-details summary:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(37, 99, 235, .28);
  outline-offset: 2px;
}
#page-vc-edit .clip-timeline-order {
  grid-area: auto;
  height: 24px;
  left: auto;
  position: static;
  top: auto;
  width: 24px;
}
#page-vc-edit .clip-timeline-thumb { grid-area: auto; height: 52px; width: 68px; }
#page-vc-edit .clip-timeline-copy { display: grid; gap: 5px; min-width: 0; }
#page-vc-edit .clip-timeline-name { align-self: auto; font-size: 12px; grid-area: auto; margin: 0; }
#page-vc-edit .clip-timeline-source { font-size: 10px; grid-area: auto; justify-content: flex-start; }
#page-vc-edit .clip-timeline-source span:last-child { font-size: 10px; padding: 2px 5px; }
#page-vc-edit .clip-timeline-duration {
  align-items: center;
  color: #52627a;
  display: grid;
  font-size: 10px;
  gap: 3px;
  grid-area: auto;
  grid-template-columns: auto 48px auto;
  white-space: nowrap;
}
#page-vc-edit .clip-timeline-duration input { min-height: 34px; padding: 3px 5px; text-align: center; width: 48px; }
#page-vc-edit .clip-timeline-duration > span { color: #75849a; }
#page-vc-edit .clip-timeline-actions { display: flex; gap: 4px; grid-area: auto; justify-content: flex-end; margin: 0; }
#page-vc-edit .clip-timeline-actions button { min-height: 34px; min-width: 34px; padding: 0; }
#page-vc-edit .clip-timeline-details { border-top: 1px solid #e7edf5; margin: 0 8px; }
#page-vc-edit .clip-timeline-details summary {
  color: #476180;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 2px;
}
#page-vc-edit .clip-timeline-details[open] summary { color: #83131B; }
#page-vc-edit .clip-timeline-note { font-size: 11px; grid-area: auto; margin: 0 2px 8px; }
#page-vc-edit .clip-timeline-subtitle,
#page-vc-edit .clip-caption-editor { grid-area: auto; margin: 0 2px 10px; }
#page-vc-edit .clip-timeline-subtitle input { min-height: 36px; }

#page-vc-edit .sc-output-settings {
  background: #fff;
  border: 1px solid #dce4ee;
  border-radius: 10px;
  display: grid;
  gap: 18px 22px;
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.22fr);
  margin-top: 16px;
  padding: 18px;
}
#page-vc-edit .sc-output-settings-head { grid-column: 1 / -1; margin: 0; }
#page-vc-edit .sc-output-block { border: 0; padding: 0; }
#page-vc-edit .sc-output-block + .sc-output-block { border-top: 0; padding-top: 0; }
#page-vc-edit .sc-transition-block { grid-column: 1; }
#page-vc-edit .sc-caption-block { grid-column: 1; }
#page-vc-edit .sc-audio-block { grid-column: 2; grid-row: span 2; }
#page-vc-edit .sc-output-block-head { border-bottom: 1px solid #e7edf5; margin-bottom: 12px; padding-bottom: 9px; }
#page-vc-edit .sc-output-block-head h4 { font-size: 13px; }
#page-vc-edit .sc-source-audio-row { grid-template-columns: minmax(0, 1fr) minmax(170px, .72fr); margin-bottom: 14px; }
#page-vc-edit .sc-bgm-label { margin-bottom: 9px; padding-top: 14px; }
#page-vc-edit .sc-audio-controls { gap: 10px; margin-top: 12px; }

@media (max-width: 1180px) {
  #page-vc-edit .sc-confirm-grid { grid-template-columns: 1fr; }
  #page-vc-edit .sc-preview-panel { position: static; }
  #page-vc-edit .sc-output-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #page-vc-edit .sc-transition-block,
  #page-vc-edit .sc-caption-block { grid-column: auto; }
  #page-vc-edit .sc-audio-block { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 700px) {
  #page-vc-edit .sc-preview-box { min-height: 320px; }
  #page-vc-edit .clip-timeline-track { max-height: none; }
  #page-vc-edit .clip-timeline-row { align-items: start; grid-template-columns: minmax(0, 1fr) auto; }
  #page-vc-edit .clip-timeline-select { grid-template-columns: 24px 58px minmax(0, 1fr); }
  #page-vc-edit .clip-timeline-thumb { height: 48px; width: 58px; }
  #page-vc-edit .clip-timeline-duration { grid-column: 1; justify-self: start; margin-left: 32px; }
  #page-vc-edit .clip-timeline-actions { grid-column: 2; grid-row: 1 / span 2; }
  #page-vc-edit .sc-output-settings { grid-template-columns: 1fr; padding: 15px; }
  #page-vc-edit .sc-output-settings-head { align-items: flex-start; }
  #page-vc-edit .sc-transition-block,
  #page-vc-edit .sc-caption-block,
  #page-vc-edit .sc-audio-block { grid-column: auto; grid-row: auto; }
  #page-vc-edit .sc-source-audio-row { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  #page-vc-edit .sc-confirm-grid { grid-template-columns: 1fr; }
  #page-vc-edit .sc-preview-panel { position: static; }
  #page-vc-edit .sc-intent-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  #page-vc-edit .sc-intent-panel { grid-template-columns: 1fr; }
  #page-vc-edit .sc-field-wide { grid-column: auto; }
  #page-vc-edit .clip-timeline-item {
    grid-template-areas:
      "order name"
      "thumb thumb"
      "source source"
      "note note"
      "duration duration"
      "subtitle subtitle"
      "actions actions";
    grid-template-columns: 28px minmax(0, 1fr);
  }
  #page-vc-edit .clip-timeline-thumb { height: 140px; }
  #page-vc-edit .clip-timeline-source { justify-content: space-between; }
  #page-vc-edit .sc-source-audio-row { grid-template-columns: 1fr; }
  #page-vc-edit .sc-transcription-row { align-items: stretch; flex-direction: column; }
  #page-vc-edit .sc-transcription-row .btn { width: 100%; }
  #page-vc-edit .clip-caption-segment { grid-template-columns: 64px minmax(0, 1fr) 36px; }
}
@media (max-width: 700px) {
  #page-vc-edit .clip-timeline-item { display: block; }
  #page-vc-edit .clip-timeline-row { align-items: start; grid-template-columns: minmax(0, 1fr) auto; }
  #page-vc-edit .clip-timeline-select { grid-template-columns: 24px 58px minmax(0, 1fr); }
  #page-vc-edit .clip-timeline-thumb { height: 48px; width: 58px; }
  #page-vc-edit .clip-timeline-source { justify-content: flex-start; }
  #page-vc-edit .clip-timeline-duration { grid-column: 1; justify-self: start; margin-left: 32px; }
  #page-vc-edit .clip-timeline-actions { grid-column: 2; grid-row: 1 / span 2; }
}
@media (prefers-reduced-motion: reduce) {
  #page-vc-edit *, #page-vc-edit *::before, #page-vc-edit *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 2.1.9 Copy-to-video and digital presenter workbenches */
#page-vc-digital,
#page-vc-text2clip {
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px 34px 42px;
}

#page-vc-digital .breadcrumb,
#page-vc-text2clip .breadcrumb { padding: 0; }

#page-vc-digital .unified-heading,
#page-vc-text2clip .unified-heading { margin: 18px 0 24px; }

#page-vc-digital .unified-heading h1,
#page-vc-text2clip .unified-heading h1 {
  color: #10233f;
  font-size: 32px;
  letter-spacing: -.06em;
  line-height: 1.1;
  margin: 5px 0 7px;
}

#page-vc-digital .unified-heading p,
#page-vc-text2clip .unified-heading p { color: #718098; font-size: 14px; margin: 0; }

#page-vc-digital .unified-kicker,
#page-vc-text2clip .unified-kicker,
#page-vc-digital .unified-step,
#page-vc-text2clip .unified-step { color: #2a6bf2; font-size: 11px; font-weight: 800; letter-spacing: .12em; }

#page-vc-digital .unified-workbench,
#page-vc-text2clip .unified-workbench { align-items: stretch; display: grid; gap: 18px; grid-template-columns: minmax(310px, 1fr) minmax(430px, 1.4fr) minmax(270px, .84fr); }

#page-vc-digital .unified-input-panel,
#page-vc-digital .unified-preview-panel,
#page-vc-digital .unified-settings-panel,
#page-vc-text2clip .unified-input-panel,
#page-vc-text2clip .unified-preview-panel,
#page-vc-text2clip .unified-settings-panel {
  background: rgba(255, 255, 255, .96);
  border: 1px solid #e1e8f3;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(34, 62, 108, .07);
  padding: 20px;
}

#page-vc-digital .unified-preview-panel,
#page-vc-text2clip .unified-preview-panel {
  background: linear-gradient(155deg, #16263d, #0d1728 68%, #122b4b);
  border-color: #1e3655;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 540px;
}

#page-vc-digital .unified-panel-header,
#page-vc-text2clip .unified-panel-header { align-items: center; display: flex; gap: 8px; margin-bottom: 17px; }
#page-vc-digital .unified-panel-header h2,
#page-vc-text2clip .unified-panel-header h2 { color: #17273e; font-size: 17px; line-height: 1; margin: 0; }
#page-vc-digital .unified-preview-panel .unified-panel-header h2,
#page-vc-text2clip .unified-preview-panel .unified-panel-header h2 { color: #f4f8ff; }
#page-vc-digital .unified-live-status,
#page-vc-text2clip .unified-live-status { background: rgba(124, 177, 255, .14); border-radius: 999px; color: #a9cbff; font-size: 12px; line-height: 26px; margin-left: auto; padding: 0 10px; }

#page-vc-digital .unified-video-source { align-items: center; background: #f5f9ff; border: 1px dashed #adc9f6; border-radius: 13px; display: flex; gap: 12px; justify-content: space-between; padding: 13px; }
#page-vc-digital .unified-video-source > div { align-items: center; display: grid; gap: 3px 9px; grid-template-columns: 24px 1fr; }
#page-vc-digital .unified-video-source .icon { grid-row: span 2; height: 21px; width: 21px; }
#page-vc-digital .unified-video-source strong { color: #1f3453; font-size: 13px; }
#page-vc-digital .unified-video-source span { color: #8291a7; font-size: 11px; }
#page-vc-digital .unified-video-source .btn { flex: none; white-space: nowrap; }
#page-vc-digital .unified-selected-source { color: #74839a; font-size: 12px; margin: 10px 1px 17px; min-height: 17px; }

#page-vc-digital .unified-field-label,
#page-vc-text2clip .unified-field-label,
#page-vc-digital .unified-setting-block > label,
#page-vc-text2clip .unified-setting-block > label { color: #4d5f79; display: block; font-size: 12px; font-weight: 700; margin-bottom: 9px; }

#page-vc-digital textarea,
#page-vc-text2clip textarea { background: #fbfdff; border: 1px solid #d9e4f2; border-radius: 11px; box-sizing: border-box; color: #1a2f4e; line-height: 1.65; padding: 12px; resize: vertical; width: 100%; }
#page-vc-text2clip textarea { min-height: 360px; }
#page-vc-digital .unified-input-note,
#page-vc-text2clip .unified-input-note { color: #8392a8; font-size: 12px; line-height: 1.5; margin: 9px 0 0; }

#page-vc-digital .unified-preview-box,
#page-vc-text2clip .unified-preview-box { align-items: center; background: rgba(3, 10, 23, .5); border: 1px solid rgba(167, 201, 255, .17); border-radius: 14px; display: flex; flex: 1; justify-content: center; margin: 0; min-height: 0; overflow: hidden; }
#page-vc-digital .unified-preview-box .preview-placeholder,
#page-vc-text2clip .unified-preview-box .preview-placeholder { color: #b5c4d9; }
#page-vc-digital .unified-preview-box .p-title,
#page-vc-text2clip .unified-preview-box .p-title { color: #f8fbff; }
#page-vc-digital .unified-preview-box .p-desc,
#page-vc-text2clip .unified-preview-box .p-desc { color: #9bb0ca; }
#page-vc-text2clip .unified-preview-note { background: rgba(172, 203, 249, .1); border-radius: 9px; color: #b7cae6; font-size: 12px; line-height: 1.55; margin-top: 13px; padding: 10px 11px; }

#page-vc-digital .unified-setting-block,
#page-vc-text2clip .unified-setting-block { border-bottom: 1px solid #edf1f7; margin-bottom: 17px; padding-bottom: 18px; }
#page-vc-digital .unified-setting-block select,
#page-vc-text2clip .unified-setting-block select { background: #f7faff; border: 1px solid #d9e4f2; border-radius: 9px; color: #1a2f4e; height: 40px; width: 100%; }
#page-vc-digital .unified-bgm-controls { align-items: center; display: flex; gap: 7px; }
#page-vc-digital .unified-bgm-controls select { flex: 1; min-width: 0; }
#page-vc-digital .unified-setting-block p { color: #8392a8; font-size: 12px; line-height: 1.5; margin: 8px 0 0; }
#page-vc-digital .unified-process-note,
#page-vc-text2clip .unified-process-note { background: #f6f9fe; border-radius: 10px; display: grid; gap: 6px; margin-bottom: 17px; padding: 12px; }
#page-vc-digital .unified-process-note strong,
#page-vc-text2clip .unified-process-note strong { color: #40536f; font-size: 12px; }
#page-vc-digital .unified-process-note span,
#page-vc-text2clip .unified-process-note span { color: #8291a7; font-size: 12px; line-height: 1.55; }
#page-vc-digital .unified-generate-button,
#page-vc-text2clip .unified-generate-button { justify-content: center; min-height: 44px; width: 100%; }
#page-vc-text2clip .unified-status { color: #728197; font-size: 12px; line-height: 1.55; margin-top: 11px; min-height: 18px; }

@media (hover: hover) {
  #page-vc-digital .unified-video-source:hover { background: #edf5ff; border-color: #5a93ef; }
  #page-vc-digital .unified-workbench .btn:hover,
  #page-vc-text2clip .unified-workbench .btn:hover { transform: translateY(-1px); }
}

@media (max-width: 1180px) {
  #page-vc-digital .unified-workbench,
  #page-vc-text2clip .unified-workbench { grid-template-columns: minmax(280px, .9fr) minmax(390px, 1.1fr); }
  #page-vc-digital .unified-settings-panel,
  #page-vc-text2clip .unified-settings-panel { grid-column: span 2; }
}

@media (max-width: 760px) {
  #page-vc-digital,
  #page-vc-text2clip { padding: 20px 14px 30px; }
  #page-vc-digital .unified-workbench,
  #page-vc-text2clip .unified-workbench { grid-template-columns: 1fr; }
  #page-vc-digital .unified-settings-panel,
  #page-vc-text2clip .unified-settings-panel { grid-column: auto; }
  #page-vc-digital .unified-preview-panel,
  #page-vc-text2clip .unified-preview-panel { min-height: 420px; }
  #page-vc-text2clip textarea { min-height: 280px; }
  #page-vc-digital .unified-video-source { align-items: flex-start; flex-direction: column; }
}

/* 用户音乐与字幕样式：所有视频入口共用 */
.caption-style-settings { border-top: 1px solid #e4ebf5; margin-top: 16px; padding-top: 15px; }
.caption-style-title { color: #17223b; font-size: 14px; font-weight: 750; margin-bottom: 10px; }
.caption-style-settings > label { color: #52627a; display: grid; font-size: 12px; gap: 6px; margin-bottom: 10px; }
.caption-style-settings select { background: #fff; border: 1px solid #cad9ee; border-radius: 8px; color: #23324a; font: inherit; min-height: 36px; padding: 0 10px; }
.caption-position-head { align-items: baseline; display: flex; justify-content: space-between; margin: 14px 0 8px; }
.caption-position-head span:first-child { color: #253754; font-size: 12px; font-weight: 700; }
.caption-position-head span:last-child { color: #71819a; font-size: 11px; }
.caption-position-note { color: #71819a; font-size: 12px; line-height: 1.5; margin: 0 0 10px; }
.caption-preview-host { isolation: isolate; position: relative; }
.caption-preview-overlay { --caption-x: 50%; --caption-y: 82%; inset: 0; overflow: hidden; pointer-events: none; position: absolute; touch-action: none; z-index: 6; }
.caption-preview-safe-area { border: 1px dashed rgba(198, 224, 255, .66); border-radius: 7px; inset: 7% 6%; opacity: 0; pointer-events: none; position: absolute; transition: opacity .16s ease; }
.caption-preview-axis { background: rgba(213, 234, 255, .58); opacity: 0; pointer-events: none; position: absolute; transition: opacity .16s ease; }
.caption-preview-axis-x { height: 1px; left: 6%; right: 6%; top: var(--caption-y); }
.caption-preview-axis-y { bottom: 7%; left: var(--caption-x); top: 7%; width: 1px; }
.caption-preview-overlay:hover .caption-preview-safe-area, .caption-preview-overlay:focus-within .caption-preview-safe-area, .caption-preview-overlay.is-dragging .caption-preview-safe-area { opacity: .88; }
.caption-preview-overlay:hover .caption-preview-axis, .caption-preview-overlay:focus-within .caption-preview-axis, .caption-preview-overlay.is-dragging .caption-preview-axis { opacity: .8; }
.caption-preview-draggable { background: transparent; border: 1px dashed transparent; border-radius: 7px; color: #FFFDFC; cursor: grab; font: 700 16px/1.2 inherit; left: var(--caption-x); max-width: 82%; padding: 6px 10px; pointer-events: auto; position: absolute; text-align: center; top: var(--caption-y); transform: translate(-50%, -50%); transition: left .16s cubic-bezier(.2,.8,.2,1), top .16s cubic-bezier(.2,.8,.2,1), font-size .16s ease, color .16s ease, background .16s ease, border-color .16s ease; white-space: nowrap; z-index: 1; }
.caption-preview-draggable:hover, .caption-preview-draggable:focus-visible, .caption-preview-overlay.is-dragging .caption-preview-draggable { background: rgba(8, 28, 58, .42); border-color: rgba(190, 222, 255, .95); }
.caption-preview-draggable:active { cursor: grabbing; }
.caption-preview-draggable:focus-visible { outline: 2px solid #b7d4ff; outline-offset: 3px; }
.caption-preview-draggable span { text-shadow: 0 2px 0 #121d2e, 0 0 5px #121d2e; }
.caption-preview-draggable.preset-bold { font-size: 18px; font-weight: 850; }
.caption-preview-draggable.preset-bold span { text-shadow: 0 2px 0 #08101d, 0 0 5px #08101d; }
.caption-preview-draggable.preset-card, .caption-preview-draggable.preset-card:hover { background: transparent; border-color: transparent; }
.caption-preview-draggable.preset-card span { background: #172b49; border-radius: 7px; box-shadow: 0 2px 0 rgba(0,0,0,.18); padding: 5px 9px; }
.caption-preview-draggable.preset-inverse { background: rgba(255,255,255,.22); color: #1a2940; }
.caption-preview-draggable.preset-inverse span { background: #f7fbff; border-radius: 7px; box-shadow: 0 2px 0 rgba(0,0,0,.12); padding: 5px 9px; text-shadow: none; }
.caption-preview-draggable.size-small { font-size: 13px; }
.caption-preview-draggable.size-large { font-size: 21px; }
.caption-coordinate-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 10px; }
.caption-coordinate-grid label { color: #50617a; display: grid; font-size: 12px; gap: 5px; }
.caption-coordinate-grid output { color: #174a98; float: right; font-variant-numeric: tabular-nums; font-weight: 750; }
.caption-coordinate-grid input[type="range"] { accent-color: #286be6; cursor: pointer; width: 100%; }
.smart-clip-bgm-row { align-items: center; display: flex; gap: 8px; }
.smart-clip-bgm-row select { flex: 1; min-width: 0; }
.smart-clip-music-picker { flex: 0 0 auto; white-space: nowrap; }
.smart-clip-setting-note { color: #8291a7; font-size: 12px; line-height: 1.45; margin: 7px 0 0; }
.user-music-picker > p { color: #61718a; font-size: 13px; margin: 0 0 12px; }
.user-music-list { display: grid; gap: 8px; margin-top: 14px; max-height: 260px; overflow-y: auto; }
.user-music-item { align-items: center; background: #fff; border: 1px solid #dbe6f5; border-radius: 9px; color: #243451; cursor: pointer; display: flex; gap: 10px; padding: 11px 12px; text-align: left; transition: border-color .16s ease, background .16s ease; width: 100%; }
.user-music-item > span { align-items: center; background: #e7f0ff; border-radius: 7px; color: #A91520; display: inline-flex; font-size: 18px; height: 30px; justify-content: center; width: 30px; }
.user-music-item.selected, .user-music-item:hover { background: #f3f7ff; border-color: #4c87eb; }
.user-music-empty { background: #f7f9fc; border: 1px dashed #cad8eb; border-radius: 9px; color: #71819a; font-size: 13px; line-height: 1.6; margin-top: 14px; padding: 15px; }

@media (max-width: 760px) {
  .smart-clip-bgm-row { align-items: stretch; flex-wrap: wrap; }
  .smart-clip-bgm-row select { flex-basis: 70%; }
}

/* ===== 泫知AI 品牌主题：暖白画布、斜切红色能量 ===== */
.topbar {
  background: rgba(255, 252, 250, .9);
  border-color: rgba(120, 33, 39, .12);
}

.site-nav-link::after {
  background: linear-gradient(90deg, #A91520, #EE3D43);
}

.site-nav-link:hover,
.site-nav-link.active {
  color: #A91520;
}

.home-hero {
  background:
    radial-gradient(ellipse at 82% 18%, rgba(242, 66, 72, .16) 0 2%, transparent 34%),
    radial-gradient(ellipse at 12% 88%, rgba(242, 153, 143, .18) 0 1%, transparent 40%),
    linear-gradient(128deg, #FFFDFC 0%, #FFF5F1 48%, #FCE1DE 100%);
}

.home-hero::before,
.home-hero::after,
.home-hero-orbit {
  border-color: rgba(200, 29, 39, .14);
}

.home-kicker,
.function-hub-eyebrow {
  color: #A91520;
}

.home-hero h1,
.function-hub-heading h1 {
  color: #35191C;
}

.home-description,
.function-hub-heading p:not(.function-hub-eyebrow) {
  color: #6C4B4E;
}

.home-create-button,
.btn-primary,
.btn-sm.btn-primary {
  background: linear-gradient(135deg, #A91520, #E63B42);
  box-shadow: 0 12px 24px rgba(169, 21, 32, .22);
}

.home-create-button:hover,
.btn-primary:hover,
.btn-sm.btn-primary:hover {
  background: #8B121A;
  box-shadow: 0 15px 30px rgba(139, 18, 26, .27);
}

.function-hub-page,
.touch-hub-page {
  background: linear-gradient(135deg, #FFF9F7, #FFF0EC);
}

.function-card,
.touch-function-card,
.auth-box {
  background: rgba(255, 253, 252, .92);
  border-color: rgba(120, 33, 39, .12);
  box-shadow: 0 12px 30px rgba(89, 32, 36, .08);
}

.function-card:hover,
.touch-function-card:hover {
  border-color: rgba(200, 29, 39, .38);
  box-shadow: 0 20px 34px rgba(89, 32, 36, .13);
}

.function-card.featured {
  border-color: #C81D27;
  box-shadow: 0 14px 30px rgba(200, 29, 39, .16);
}

.auth-overlay {
  background:
    linear-gradient(135deg, rgba(255, 250, 248, .95), rgba(255, 232, 228, .85)),
    linear-gradient(45deg, #FFF7F4, #F8DDD9);
}

.auth-box {
  border-radius: 22px;
}

.auth-logo h1,
.auth-form h2 {
  color: #35191C;
}

.auth-logo p,
.form-group label {
  color: #806A6C;
}

@media (max-width: 768px) {
  .logo-mark { width: 34px; height: 34px; }
  .logo-sub { display: none; }
  .auth-logo-mark { width: 74px; height: 74px; }
}
