/* H3 创作平台主题 */
html[data-theme='light'] body .page-video {
  background:
    radial-gradient(circle at 12% 0%, rgba(59, 130, 246, 0.10), transparent 42%),
    radial-gradient(circle at 92% 8%, rgba(168, 85, 247, 0.08), transparent 38%),
    #f7faff !important;
}

/* === v2：只保留一个服务商入口 === */
body .page-video .provider-grid { display: block !important; }

body .page-video .provider-grid > button.provider-btn:nth-child(n + 2) {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

body .page-video .provider-grid > button.provider-btn:nth-child(1) { width: 100% !important; }

body .page-video .filter-buttons .el-button-group > button:nth-child(n + 3) {
  display: none !important;
}

/* === v3：隐藏开源项目外链 === */
.index-page .link-button,
.page-index .link-button,
.index-page .menu-item .icon-github,
.index-page .menu-item .icon-gitee,
.index-page .menu-item .icon-book {
  display: none !important;
}

/* === v4：整体 UI 优化 === */
body .page-video .params-panel {
  background: #ffffff !important;
  border: 1px solid rgba(37, 99, 235, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
  padding: 20px 18px 18px !important;
  max-height: none !important;
  overflow: visible !important;
}

body .page-video .h3-hero { padding: 0 0 14px !important; }
body .page-video .h3-title {
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: #0f172a;
}
body .page-video .h3-subtitle { color: #64748b !important; font-size: 13px !important; }
body .page-video .h3-badge {
  font-size: 11px !important;
  letter-spacing: 0.08em;
  background: rgba(37, 99, 235, 0.10) !important;
  color: #1d4ed8 !important;
  border-radius: 999px;
  padding: 3px 10px !important;
}

body .page-video .provider-grid > button.provider-btn:nth-child(1) {
  background: linear-gradient(90deg, #eff6ff, #f5f3ff) !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  color: #1d4ed8 !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  font-weight: 600;
}

body .page-video .function-params .label {
  font-size: 13px !important;
  color: #334155 !important;
}
body .page-video .function-params .space-y-5 > * + * { margin-top: 14px !important; }

body .page-video .power-info {
  border-radius: 14px !important;
  background: linear-gradient(90deg, #f8fafc, #f1f5f9) !important;
  border: 1px solid #e2e8f0 !important;
  margin-top: 16px !important;
}

body .page-video .works-header { padding: 4px 2px 10px !important; }
body .page-video .video-task-item {
  border-radius: 16px !important;
  border: 1px solid #eef2f7 !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
body .page-video .video-task-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10) !important;
}

body .page-video .el-slider__bar {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
}
body .page-video .el-slider__button { border-color: #3b82f6 !important; }
body .page-video .el-slider__marks-text {
  font-size: 11px !important;
  color: #94a3b8 !important;
}

/* === v6 studio theme === */
html[data-theme='light'] {
  --el-color-primary: #7c3aed;
  --el-color-primary-light-3: #9b6ff0;
  --el-color-primary-light-5: #b79af5;
  --el-color-primary-light-7: #d3c2f9;
  --el-color-primary-light-8: #e2d7fb;
  --el-color-primary-light-9: #f1ebfd;
  --el-color-primary-dark-2: #6d28d9;
}

body {
  font-family: Inter, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif !important;
  background: #f5f5f3 !important;
}

/* ---- 布局 ---- */
body .layout { background: #f5f5f3 !important; }

body .layout .tab-box {
  width: 222px !important;
  flex: 0 0 222px !important;
  background: #17161a !important;
  border-right: 0 !important;
  box-shadow: none !important;
}

body .layout .menu-list {
  background: transparent !important;
  padding: 14px 10px 10px !important;
  height: 100% !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

body .layout .menu-list ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body .layout .menu-list-item {
  position: relative;
  color: #9d9da6 !important;
  border-radius: 10px !important;
  padding: 9px 10px !important;
  margin: 0 0 2px !important;
  min-height: 40px;
  transition: background 0.18s ease, color 0.18s ease;
}

body .layout .menu-list-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

body .layout .menu-list-item.active {
  background: rgba(139, 92, 246, 0.16) !important;
  color: #c4b5fd !important;
}

body .layout .menu-title { font-size: 13px !important; font-weight: 500; }
body .layout .menu-list-item .iconfont { font-size: 17px !important; }
body .layout .menu-list-item .el-icon { filter: brightness(1.6); }

/* 分组标题 */
body .layout .menu-list-item.studio-group-first { margin-top: 26px !important; }
body .layout .menu-list-item.studio-group-first::before {
  content: '创作空间';
  position: absolute;
  top: -19px;
  left: 10px;
  font-size: 11px;
  color: #5b5b66;
  letter-spacing: 0.04em;
}
body .layout .menu-list-item.studio-group-my { margin-top: 26px !important; }
body .layout .menu-list-item.studio-group-my::before {
  content: '我的空间';
  position: absolute;
  top: -19px;
  left: 10px;
  font-size: 11px;
  color: #5b5b66;
  letter-spacing: 0.04em;
}

body .layout .bot-line { background: rgba(255, 255, 255, 0.08) !important; }
body .layout .menu-bot-item,
body .layout .menu-bot-item .link-button { color: #9d9da6 !important; }

/* ---- 顶栏 ---- */
body .studio-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f5f5f3;
}

body .studio-topbar {
  height: 73px;
  flex: 0 0 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #fafaf8;
  border-bottom: 1px solid #e4e2e5;
  box-sizing: border-box;
}

body .studio-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8b8b93;
}
body .studio-crumb b { color: #29242e; font-weight: 500; }
body .studio-crumb i { font-style: normal; color: #c9c9d0; }

body .studio-actions { display: flex; align-items: center; gap: 12px; }
body .studio-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f5f68;
  background: #f1f0f2;
  cursor: pointer;
}
body .studio-icon-btn:hover { background: #e8e6ea; }
body .studio-avatar { cursor: pointer; }

body .right-main { flex: 1; min-height: 0; }
body .content.custom-scroll,
body .content {
  background: #f5f5f3 !important;
  padding: 24px 28px 60px !important;
}

/* ---- 视频创作页 ---- */
body .page-video {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr) !important;
  gap: 18px !important;
  align-items: start;
  background: transparent !important;
  padding: 0 !important;
}

body .page-video .params-panel {
  background: #ffffff !important;
  border: 1px solid #e5dcec !important;
  border-radius: 16px !important;
  box-shadow: 0 5px 15px rgba(80, 48, 95, 0.02) !important;
  padding: 20px 18px 18px !important;
  max-height: none !important;
  overflow: visible !important;
}

body .page-video .h3-hero { padding: 4px 0 18px !important; }
body .page-video .h3-eyebrow {
  font-size: 13px;
  color: #8b8b93;
  margin-bottom: 6px;
}
body .page-video .h3-title {
  font-size: 27px !important;
  font-weight: 550 !important;
  letter-spacing: -0.8px !important;
  color: #29242e !important;
  line-height: 1.35 !important;
  margin: 0 0 6px !important;
}
body .page-video .h3-subtitle {
  font-size: 13px !important;
  color: #8b8b93 !important;
  margin: 0;
}

body .page-video .provider-btn:nth-child(1) {
  background: #f7f5f9 !important;
  border: 1px solid #ece6f2 !important;
  color: #6d3fb8 !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  padding: 8px 12px !important;
  font-weight: 500;
}

body .page-video .function-params .label {
  font-size: 13px !important;
  color: #4b4653 !important;
  font-weight: 600;
}
body .page-video .function-params .space-y-5 > * + * { margin-top: 12px !important; }

body .page-video textarea.el-textarea__inner,
body .page-video .el-textarea__inner {
  background: #ffffff !important;
  border-radius: 10px !important;
  border: 1px solid #e2dce9 !important;
  box-shadow: none !important;
  font-size: 15px !important;
  padding: 12px 14px !important;
}

body .page-video .el-select__wrapper {
  border-radius: 9px !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 1px #e2dce9 inset !important;
  min-height: 38px !important;
}

body .page-video .power-info {
  background: #faf9fb !important;
  border: 1px solid #ece6f2 !important;
  border-radius: 12px !important;
  margin-top: 14px !important;
}

body .page-video .function-params > div:nth-last-child(1) button {
  background: linear-gradient(90deg, #8b5cf6, #7c3aed) !important;
  border-radius: 9px !important;
  height: 43px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.22) !important;
}
body .page-video .function-params > div:nth-last-child(1) button:hover {
  background: linear-gradient(90deg, #7c3aed, #6d28d9) !important;
}

/* 记录区 */
body .page-video .main-content {
  background: #ffffff !important;
  border: 1px solid #e5dcec !important;
  border-radius: 16px !important;
  box-shadow: 0 5px 15px rgba(80, 48, 95, 0.02) !important;
  padding: 16px !important;
  min-height: 560px;
}

body .page-video .works-header h2,
body .page-video .works-header .title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #29242e !important;
}

body .page-video .filter-buttons .el-button {
  border-radius: 999px !important;
  font-size: 12px !important;
  height: 30px !important;
}
body .page-video .filter-buttons .el-button--primary {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
}

body .page-video .video-task-item {
  border-radius: 12px !important;
  border: 1px solid #eee9f3 !important;
  box-shadow: none !important;
  background: #ffffff !important;
}
body .page-video .video-task-item:hover {
  box-shadow: 0 8px 20px rgba(80, 48, 95, 0.08) !important;
  transform: translateY(-2px);
}

body .page-video .el-slider__bar {
  background: linear-gradient(90deg, #a78bfa, #7c3aed) !important;
}
body .page-video .el-slider__button { border-color: #7c3aed !important; }
body .page-video .param-slider-value { color: #7c3aed !important; }

/* === v7 修正 === */
body .layout .tab-box {
  width: 222px !important;
  min-width: 222px !important;
  max-width: 222px !important;
  flex: 0 0 222px !important;
}

body .layout .menu-list-item {
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box;
}

body .layout .menu-list-item .menu-title {
  white-space: nowrap !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

body .layout .menu-list-item .iconfont,
body .layout .menu-list-item .el-icon {
  flex: 0 0 auto;
}

html[data-theme='light'] body .page-video {
  background: transparent !important;
}

body .page-video .provider-btn:nth-child(1) {
  justify-content: flex-start !important;
  width: auto !important;
  display: inline-flex !important;
  margin-bottom: 4px;
}

body .page-video .provider-grid {
  display: flex !important;
}

body .page-video .params-panel {
  min-width: 0;
}

/* 左侧参数卡宽度更接近参考站 */
body .page-video {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
}

/* 空状态更克制 */
body .page-video .main-content > div {
  background: transparent !important;
}

/* === v8 宽度与背景修正 === */
body .layout .menu-list {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

body .layout .menu-list > ul {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

body .layout .menu-list-item {
  width: 100% !important;
  box-sizing: border-box;
}

body .layout .menu-list .bot {
  width: 100% !important;
  box-sizing: border-box;
}

body .layout .menu-bot-item {
  width: 100% !important;
  box-sizing: border-box;
}

body .right-main,
body .right-main .el-scrollbar__wrap,
body .right-main .el-scrollbar__view {
  background: #f5f5f3 !important;
}

/* === v9 === */
/* 关闭 v6 的伪元素分组标题，改用真实元素 */
body .layout .menu-list-item.studio-group-first::before,
body .layout .menu-list-item.studio-group-my::before {
  content: none !important;
}
body .layout .menu-list-item.studio-group-first,
body .layout .menu-list-item.studio-group-my {
  margin-top: 2px !important;
}

body .layout .studio-group-title {
  list-style: none;
  padding: 0 10px;
  margin: 16px 0 6px;
  font-size: 11px;
  line-height: 1.6;
  color: #5b5b66;
  letter-spacing: 0.04em;
  font-weight: 500;
}
body .layout .studio-group-title:first-child { margin-top: 4px; }

/* 侧边栏底部 CTA */
body .layout .menu-list .bot {
  margin-top: auto;
  padding: 10px 0 4px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
body .layout .bot-line { display: none !important; }

/* 参数卡：选择器与输入框更紧凑 */
body .page-video .el-form-item { margin-bottom: 12px !important; }
body .page-video .function-params > div > label.label { margin-bottom: 4px !important; display: block; }

/* 记录卡：头部更接近参考站 */
body .page-video .main-content > .works-header,
body .page-video .main-content > .job-list-box > .works-header {
  padding: 2px 2px 12px !important;
  border-bottom: 1px solid #f3eff7;
  margin-bottom: 12px;
}
body .page-video .main-content h2,
body .page-video .main-content .works-header > * {
  color: #29242e !important;
}

/* 空状态收敛 */
body .page-video .el-empty { padding: 36px 0 !important; }
body .page-video .el-empty__image { width: 72px !important; }

/* 顶部按钮统一紫色圆角 */
body .studio-topbar .el-button--primary {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  height: 30px !important;
}

/* === v8: 左栏固定宽度，消除参数面板与创作记录之间的空白 === */
body .page-video {
  grid-template-columns: 400px minmax(0, 1fr) !important;
}

@media (max-width: 768px) {
  body .page-video {
    grid-template-columns: none !important;
  }
}
