/* ============================================================
   电脑端模板样式（配合站点原有 assets/style.css 使用）
   设计基调：与手机端同源的紫色品牌色，桌面端改为宽栏布局
   ============================================================ */
:root {
  --purple: #6C4DF8;
  --purple-l: #8E7BFF;
  --purple-soft: #F1EDFF;
  --blue: #4F8CFF;
  --bg: #F6F5FB;
  --card: #FFFFFF;
  --text: #1F1D2B;
  --muted: #8A8598;
  --faint: #B6B2C0;
  --line: #ECEAF3;
  --shadow-sm: 0 2px 10px rgba(31, 29, 43, .05);
  --shadow-md: 0 14px 40px -18px rgba(31, 29, 43, .22);
  --shadow-lg: 0 28px 70px -30px rgba(31, 29, 43, .35);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --nav-h: 68px;
  --wrap: 1280px;
}

html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1100px 560px at 10% -10%, rgba(108, 77, 248, .10), transparent 62%),
    radial-gradient(900px 480px at 92% -4%, rgba(79, 140, 255, .09), transparent 58%),
    var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* 通用容器 */
.dt-wrap { width: min(var(--wrap), calc(100% - 64px)); margin: 0 auto; }
.dt-main { min-height: calc(100vh - var(--nav-h) - 120px); }
.dt-link { color: inherit; text-decoration: none; }
.dt-hide { display: none !important; }

/* ============ 顶部导航 ============ */
.dt-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(22px) saturate(1.5);
  border-bottom: 1px solid rgba(236, 234, 243, .9);
  box-shadow: 0 1px 0 rgba(31, 29, 43, .03);
}
.dt-nav { height: var(--nav-h); display: flex; align-items: center; gap: 34px; }
.dt-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); flex: 0 0 auto; }
.dt-logo {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 19px;
  background: linear-gradient(135deg, var(--purple-l), var(--purple));
  box-shadow: 0 8px 18px -6px rgba(108, 77, 248, .55);
}
.dt-brand-txt b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.2px; line-height: 1.3; }
.dt-brand-txt span { display: block; font-size: 11px; color: var(--faint); line-height: 1.2; }
.dt-menu { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.dt-menu a {
  padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: #4A4653;
  text-decoration: none; transition: .18s;
}
.dt-menu a:hover { background: #F3F1FA; color: var(--text); }
.dt-menu a.on { color: var(--purple); background: var(--purple-soft); }
.dt-search { flex: 1 1 auto; max-width: 360px; position: relative; margin-left: 8px; }
.dt-search input {
  width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 12px;
  background: #FFF; padding: 0 14px 0 38px; font-size: 13px; outline: none; color: var(--text);
  transition: .18s;
}
.dt-search input:focus { border-color: #CFC4FF; box-shadow: 0 0 0 4px rgba(108, 77, 248, .09); }
.dt-search::before {
  content: '⌕'; position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  font-size: 18px; color: var(--faint); pointer-events: none;
}
.dt-nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: 0 0 auto; }
.dt-credit {
  display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #FFF;
  font-weight: 700; font-size: 13px; color: var(--purple); cursor: pointer; transition: .18s;
}
.dt-credit:hover { border-color: #D6CBFF; background: #FBFAFF; }
/* 积分胶囊全局不展示（积分入口保留在头像菜单 / 个人中心） */
.dt-credit { display: none; }
.dt-credit i { font-style: normal; font-size: 14px; }
.dt-credit span { color: var(--muted); font-weight: 500; font-size: 11px; }
.dt-login-btn {
  height: 38px; padding: 0 22px; border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--purple-l), var(--purple)); color: #FFF;
  font-size: 13px; font-weight: 700; box-shadow: 0 8px 20px -8px rgba(108, 77, 248, .8); transition: .18s;
}
.dt-login-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(108, 77, 248, .85); }
/* 已登录：头像左侧的「开始创作」按钮 */
.dt-create-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 18px;
  border-radius: 999px; background: linear-gradient(135deg, var(--purple-l), var(--purple));
  color: #FFF; font-size: 13px; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 22px -10px rgba(108, 77, 248, .85); transition: .18s;
}
.dt-create-btn i { font-style: normal; font-size: 14px; font-weight: 800; }
.dt-create-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(108, 77, 248, .9); }
/* 已在创作页时不再重复展示 */
body[data-nav="开始创作"] .dt-create-btn { display: none; }
.dt-avatar {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #8B6CFF, #6C4DF8); color: #FFF; font-weight: 800; font-size: 15px;
  cursor: pointer; border: none; box-shadow: 0 6px 16px -8px rgba(108, 77, 248, .75); transition: .18s;
}
.dt-avatar:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(108, 77, 248, .9); }
.dt-user { position: relative; }
.dt-user-menu {
  position: absolute; right: 0; top: calc(100% + 12px); width: 372px; max-width: calc(100vw - 24px);
  background: #FFF; border: 1px solid rgba(232, 228, 245, .9); border-radius: 22px;
  box-shadow: 0 30px 70px -30px rgba(40, 26, 90, .3), 0 2px 8px rgba(31, 29, 43, .05);
  padding: 16px; display: none; z-index: 130;
}
.dt-user-menu.show { display: block; animation: dtPop .16s ease; }

/* 头部：头像 + 昵称 / ID + 个人资料 */
.um-head { display: flex; align-items: center; gap: 12px; padding: 0 2px 14px; }
.um-av {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #8B6CFF, #6C4DF8); color: #FFF; font-size: 19px; font-weight: 800;
  box-shadow: 0 8px 18px -10px rgba(108, 77, 248, .85);
}
.um-id { flex: 1; min-width: 0; }
.um-name {
  font-size: 15px; font-weight: 800; color: var(--text); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.um-meta { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-size: 11.5px; color: var(--faint); }
.um-mode {
  font-style: normal; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  background: #F1EDFF; color: var(--purple);
}
.um-exp { margin-top: 3px; font-size: 11.5px; font-weight: 600; color: #B27600; }
.um-more { flex: 0 0 auto; font-size: 12px; color: var(--muted); text-decoration: none; transition: .16s; }
.um-more:hover { color: var(--purple); }

/* 个人账户卡 */
.um-panel {
  border: 1px solid #E9E4FA; border-radius: 16px; padding: 12px;
  background: linear-gradient(180deg, #FBF9FF, #FFF);
}
.um-panel-h { display: flex; align-items: center; justify-content: space-between; }
.um-panel-h b { font-size: 13.5px; font-weight: 800; color: var(--text); }
.um-use {
  font-size: 10.5px; font-weight: 700; color: var(--purple);
  background: #F1EDFF; border-radius: 999px; padding: 2px 8px;
}
.um-panel-s { margin: 3px 0 10px; font-size: 11px; color: var(--faint); }
.um-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.um-tile { background: #FFF; border: 1px solid #F0EDF8; border-radius: 12px; padding: 10px 11px; }
.um-tile-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.um-tile-top b { font-size: 18px; font-weight: 800; line-height: 1.2; color: var(--text); }
.um-tile-top b.is-vip { font-size: 13px; color: #B27600; }
.um-tile-top b.no-vip { font-size: 13px; color: var(--faint); font-weight: 600; }
.um-tile-top a { font-size: 11px; color: var(--purple); text-decoration: none; }
.um-tile-label { margin-top: 2px; font-size: 11px; color: var(--muted); }

/* 会员横幅 */
.um-banner {
  display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 11px 13px;
  border-radius: 14px; color: #FFF; cursor: pointer; transition: .18s;
  background: linear-gradient(120deg, #7C5CFF, #A77BFF 58%, #FFB86B);
  box-shadow: 0 12px 24px -16px rgba(108, 77, 248, .9);
}
.um-banner:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -16px rgba(108, 77, 248, .95); }
.um-v {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; font-size: 14px; font-weight: 900;
  display: grid; place-items: center; background: rgba(255, 255, 255, .22);
}
.um-banner-txt { flex: 1; min-width: 0; }
.um-banner-txt b { display: block; font-size: 13.5px; font-weight: 800; letter-spacing: .2px; }
.um-banner-txt small { display: block; margin-top: 1px; font-size: 10.5px; opacity: .9; }
.um-banner-btn {
  flex: 0 0 auto; padding: 5px 13px; border-radius: 999px; background: #FFF;
  color: #6C4DF8; font-size: 11.5px; font-weight: 800; box-shadow: 0 4px 10px rgba(60, 20, 120, .16);
}

/* 快捷入口 */
.um-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.um-grid a, .um-grid button {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 4px; border: none; background: none; border-radius: 12px;
  font-family: inherit; font-size: 11.5px; color: #5A5570;
  text-decoration: none; cursor: pointer; transition: .16s;
}
.um-grid a:hover, .um-grid button:hover { background: #F6F3FF; color: var(--purple); }
.um-grid i { font-style: normal; font-size: 17px; line-height: 1; }
.um-grid .um-out { color: #8A8496; }
.um-grid .um-out:hover { background: #FFF5F5; color: #C0392B; }
@keyframes dtPop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 联系客服弹窗 */
.dt-svc-mask {
  position: fixed; inset: 0; z-index: 999; padding: 24px;
  display: grid; place-items: center; background: rgba(24, 20, 38, .5);
  backdrop-filter: blur(3px);
}
.dt-svc-card {
  position: relative; width: min(92vw, 360px); padding: 26px 26px 22px;
  background: #FFF; border-radius: 20px; text-align: center;
  box-shadow: 0 30px 70px -30px rgba(30, 20, 70, .5);
}
.dt-svc-x {
  position: absolute; right: 12px; top: 8px; border: none; background: none;
  font-size: 22px; line-height: 1; color: #ADA8BE; cursor: pointer;
}
.dt-svc-x:hover { color: var(--purple); }
.dt-svc-card h3 { margin: 0 0 14px; font-size: 16px; font-weight: 800; color: var(--text); }
.dt-svc-body img {
  width: 200px; height: 200px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 12px;
}
.dt-svc-tip { margin: 12px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--muted); white-space: pre-line; }

/* 我的作品浮层（当前页弹出，不跳转） */
.dt-wk-mask {
  position: fixed; inset: 0; z-index: 900; padding: 28px;
  display: grid; place-items: center; background: rgba(24, 20, 38, .55);
  backdrop-filter: blur(4px);
}
.dt-wk-card {
  display: flex; flex-direction: column; overflow: hidden;
  width: min(1180px, 94vw); height: min(82vh, 880px);
  background: #FFF; border-radius: 20px;
  box-shadow: 0 36px 90px -36px rgba(30, 20, 70, .55);
}
.dt-wk-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.dt-wk-head b { font-size: 15px; font-weight: 800; color: var(--text); }
.dt-wk-tools { display: flex; align-items: center; gap: 14px; }
.dt-wk-open { font-size: 12px; color: var(--muted); text-decoration: none; transition: .16s; }
.dt-wk-open:hover { color: var(--purple); }
.dt-wk-x {
  border: none; background: none; padding: 0 2px; cursor: pointer;
  font-size: 22px; line-height: 1; color: #ADA8BE; transition: .16s;
}
.dt-wk-x:hover { color: var(--purple); }
.dt-wk-body { flex: 1; min-height: 0; }
.dt-wk-body iframe { display: block; width: 100%; height: 100%; border: none; }

/* 浮层内的作品页：隐藏站点导航与页脚，只保留内容 */
html.dt-embed .dt-header, html.dt-embed #dtFooter { display: none !important; }
html.dt-embed .dt-main { min-height: 0; }
html.dt-embed .dt-page { padding-top: 16px; }

/* ============ 首页 Hero ============ */
.dt-hero { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; padding: 64px 0 46px; }
.dt-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px;
  background: #FFF; border: 1px solid var(--line); border-radius: 999px; font-size: 12px;
  color: #5A5470; box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.dt-eyebrow b {
  background: linear-gradient(135deg, var(--purple-l), var(--purple)); color: #FFF;
  border-radius: 999px; padding: 2px 9px; font-size: 10px; letter-spacing: .5px;
}
.dt-h1 { font-size: 52px; line-height: 1.1; font-weight: 800; letter-spacing: -1.6px; margin: 0 0 18px; }
.dt-h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--blue), var(--purple) 62%, #A45BFF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dt-sub { font-size: 14.5px; line-height: 1.75; color: var(--muted); margin: 0 0 26px; max-width: 500px; }

/* 一句话创作框 */
.dt-composer {
  background: #FFF; border: 1px solid var(--line); border-radius: 22px;
  padding: 18px 18px 14px; max-width: 560px;
  box-shadow: 0 26px 60px -32px rgba(108, 77, 248, .45), 0 2px 8px rgba(31, 29, 43, .04);
  transition: border-color .2s, box-shadow .2s;
}
.dt-composer:focus-within {
  border-color: #D6CBFF;
  box-shadow: 0 30px 70px -34px rgba(108, 77, 248, .6), 0 0 0 4px rgba(108, 77, 248, .07);
}
.dt-composer textarea {
  width: 100%; height: 92px; border: none; outline: none; resize: none; font-family: inherit;
  font-size: 14.5px; line-height: 1.7; color: var(--text); background: transparent;
}
.dt-composer textarea::placeholder { color: var(--faint); }
.dt-composer-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid #F1EEFA;
}
.dt-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px;
  border-radius: 999px; background: #F6F4FC; color: #56506A; font-size: 11.5px; cursor: pointer;
  border: 1px solid transparent; transition: .16s; user-select: none;
}
.dt-chip:hover { background: #EFEBFB; }
.dt-chip.on { background: var(--purple-soft); color: var(--purple); border-color: #DCD1FF; font-weight: 700; }
.dt-chip.on::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--purple); }
.dt-composer-bar .sp { flex: 1; }
.dt-go {
  height: 40px; padding: 0 24px; border: none; border-radius: 11px; cursor: pointer;
  background: linear-gradient(135deg, var(--purple-l), var(--purple)); color: #FFF;
  font-size: 13.5px; font-weight: 700; box-shadow: 0 10px 24px -10px rgba(108, 77, 248, .9); transition: .18s;
}
.dt-go:hover { transform: translateY(-1px); }
.dt-quick { display: flex; align-items: center; gap: 8px; margin-top: 13px; flex-wrap: wrap; }
.dt-quick span { font-size: 11.5px; color: var(--faint); }
.dt-quick a {
  font-size: 11.5px; color: #56506A; background: #FFF; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 10px; text-decoration: none; transition: .16s;
}
.dt-quick a:hover { color: var(--purple); border-color: #DCD1FF; background: #FBFAFF; }

/* Hero 右侧作品拼贴 */
.dt-visual { position: relative; height: 468px; }
.dt-vcard {
  position: absolute; border-radius: 20px; overflow: hidden; background: #EDEAF6;
  box-shadow: 0 30px 60px -30px rgba(31, 29, 43, .45); border: 4px solid #FFF;
}
.dt-vcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dt-v1 { width: 54%; height: 82%; left: 0; top: 3%; }
.dt-v2 { width: 40%; height: 47%; right: 1%; top: 0; }
.dt-v3 { width: 39%; height: 40%; right: 6%; bottom: 2%; }
.dt-float {
  position: absolute; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px); border-radius: 14px; padding: 9px 14px; font-size: 12px; font-weight: 700;
  box-shadow: var(--shadow-md); border: 1px solid rgba(255, 255, 255, .7);
}
.dt-f1 { left: 8%; bottom: 8%; }
.dt-f2 { right: 0; top: 52%; }
.dt-float i { font-style: normal; }
.dt-float small { display: block; font-size: 10px; color: var(--muted); font-weight: 500; }

/* ============ 通用区块 ============ */
.dt-section { padding: 30px 0; }
.dt-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.dt-sec-title { font-size: 22px; font-weight: 800; letter-spacing: -.4px; margin: 0; }
.dt-sec-desc { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.dt-sec-more { font-size: 13px; color: var(--purple); font-weight: 600; text-decoration: none; white-space: nowrap; }
.dt-sec-more:hover { text-decoration: underline; }

/* 模型卡片 */
.dt-models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dt-model {
  background: #FFF; border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px 18px;
  transition: .2s; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.dt-model:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -26px rgba(108, 77, 248, .42); border-color: #E1DAF8; }
.dt-model-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, #F3EFFF, #E5DCFF);
}
/* 模型品牌 Logo：官方图形 + 品牌色底块 */
.dt-model-icon svg { width: 25px; height: 25px; display: block; }
.dt-model-icon.ic-openai { background: #FFFFFF; border: 1px solid var(--line); color: #0D0D0D; }
.dt-model-icon.ic-banana { background: #FFF8E3; border: 1px solid #F3E4BE; color: #E0A008; }
.dt-model-icon.ic-jimeng { background: #EEF3FF; border: 1px solid #DCE6FF; color: #2F62FF; }
.dt-model-name { margin-top: 14px; margin-bottom: 18px; font-size: 15px; font-weight: 800; line-height: 1.5; }
.dt-model-go {
  display: grid; place-items: center; width: 100%; height: 40px; margin-top: auto;
  font-size: 13px; font-weight: 700; color: var(--purple); background: var(--purple-soft);
  border-radius: 12px; text-decoration: none; transition: .2s;
}
.dt-model-go:hover { background: linear-gradient(135deg, #7C5CE6, #5B3FD8); color: #FFF; }

/* 模型区标题右侧注册引导 */
.dt-register {
  display: inline-grid; place-items: center; height: 52px; padding: 0 36px; border-radius: 999px;
  background: linear-gradient(135deg, #7C5CE6, #5B3FD8); color: #FFF;
  font-size: 16px; font-weight: 700; text-decoration: none; letter-spacing: .2px; white-space: nowrap;
  box-shadow: 0 18px 36px -18px rgba(91, 63, 216, .85); transition: .2s;
}
.dt-register:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -18px rgba(91, 63, 216, .95); }
.dt-badge {
  position: absolute; right: 14px; top: 14px; font-size: 10px; font-weight: 700; color: #0E9F6E;
  background: #E7F8F0; border-radius: 6px; padding: 2px 7px;
}

/* 提示词卡片 */
.dt-prompts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dt-prompt {
  background: #FFF; border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  cursor: pointer; transition: .2s; display: flex; flex-direction: column; gap: 8px;
}
.dt-prompt:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -26px rgba(108, 77, 248, .38); border-color: #E1DAF8; }
.dt-prompt .p-tag { font-size: 11px; color: var(--purple); background: var(--purple-soft); align-self: flex-start;
  border-radius: 6px; padding: 1px 8px; font-weight: 700; }
.dt-prompt .p-title { font-size: 14px; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.dt-prompt .p-text {
  font-size: 12px; color: var(--muted); line-height: 1.65; height: 60px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dt-prompt .p-use { font-size: 12px; color: var(--purple); font-weight: 700; margin-top: auto; }

/* 瀑布流作品 */
.dt-waterfall { column-count: 4; column-gap: 16px; }
.dt-waterfall.cols-3 { column-count: 3; }
.dt-work {
  break-inside: avoid; margin: 0 0 16px; border-radius: var(--r-md); overflow: hidden;
  background: #EDEAF6; position: relative; cursor: zoom-in; border: 1px solid #EFEDF7;
}
.dt-work img { width: 100%; display: block; transition: transform .5s ease; background: #EDEAF6; }
.dt-work:hover img { transform: scale(1.04); }

/* 紧凑作品网格：统一 3:4 图片 + 图片下方常驻信息栏 */
.dt-masonry { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: start; }
.dt-mcol { display: flex; flex-direction: column; gap: 12px; }
.dt-masonry .dt-work {
  margin: 0; display: flex; flex-direction: column; overflow: hidden;
  background: #FFF; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 6px 18px -12px rgba(31, 29, 43, .28); cursor: pointer;
}
.dt-masonry .dt-work:hover { box-shadow: 0 18px 36px -22px rgba(31, 29, 43, .48); }
.dt-masonry .dt-work img { display: block; width: 100%; aspect-ratio: 3 / 4; height: auto; object-fit: cover; }
.dt-work-cap { padding: 8px 10px 9px; background: #FFF; }
.dt-work-cap p {
  margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dt-masonry .dt-work-ov { inset: 0 0 auto; aspect-ratio: 3 / 4; padding: 10px; gap: 6px; }
.dt-masonry .dt-work-btns span { height: 26px; padding: 0 10px; font-size: 11.5px; }
.dt-work-ov {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px; gap: 8px; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(15,13,24,.72) 100%);
  opacity: 0; transition: opacity .22s;
}
.dt-work:hover .dt-work-ov { opacity: 1; }
.dt-work-ov p {
  margin: 0; color: #FFF; font-size: 12px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dt-work-btns { display: flex; gap: 8px; }
.dt-work-btns span {
  flex: 1; text-align: center; font-size: 11px; font-weight: 700; color: #FFF; padding: 6px 0;
  border-radius: 8px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .28);
}
.dt-work-btns span:hover { background: rgba(255, 255, 255, .3); }
.dt-work-btns span.solid { background: linear-gradient(135deg, var(--purple-l), var(--purple)); border-color: transparent; }

/* ============ 创作页 ============ */
.dt-create { display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 22px; padding: 24px 0 44px; align-items: start; }
.dt-panel { background: #FFF; border: 1px solid var(--line); border-radius: var(--r-lg); }
.dt-side { position: sticky; top: calc(var(--nav-h) + 18px); max-height: calc(100vh - var(--nav-h) - 36px); overflow: auto; padding: 6px 18px 18px; }
.dt-side::-webkit-scrollbar { width: 6px; }
.dt-side::-webkit-scrollbar-thumb { background: #DDD8EC; border-radius: 3px; }
.dt-field { padding: 16px 0; border-bottom: 1px solid #F3F1F9; }
.dt-field:last-child { border-bottom: none; }
.dt-label { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.dt-label small { font-size: 11px; color: var(--faint); font-weight: 500; }
.dt-label .cnt { font-size: 11px; color: var(--faint); font-weight: 500; }
.dt-textarea {
  width: 100%; height: 132px; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px; font-family: inherit; font-size: 13px; line-height: 1.65; color: var(--text);
  outline: none; resize: vertical; transition: .16s; background: #FCFBFE;
}
.dt-textarea:focus { border-color: #CFC4FF; background: #FFF; box-shadow: 0 0 0 4px rgba(108, 77, 248, .08); }
.dt-textarea::placeholder { color: var(--faint); }
.dt-mini-row { display: flex; gap: 8px; margin-bottom: 8px; }
.dt-mini {
  flex: 1; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #FFF;
  font-size: 12px; color: #56506A; cursor: pointer; font-family: inherit; transition: .16s;
}
.dt-mini:hover { color: var(--purple); border-color: #DCD1FF; background: #FBFAFF; }
.dt-mini.solid { background: var(--purple-soft); color: var(--purple); border-color: #DCD1FF; font-weight: 700; }

/* 参考图 */
/* 网格按列平分剩余宽度，缩略图随列宽自适应为正方形，避免右侧留白 */
.dt-refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.dt-ref-list { display: contents; }
.dt-ref { width: auto; height: auto; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; position: relative; background: #EDEAF6; }
.dt-ref img { width: 100%; height: 100%; object-fit: cover; }
.dt-ref .x {
  position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(20, 18, 28, .72); color: #FFF; font-size: 12px; display: grid; place-items: center;
  cursor: pointer; line-height: 1;
}
.dt-ref-add {
  width: auto; height: auto; aspect-ratio: 1 / 1; border: 1px dashed #D3CEE4; border-radius: 10px; display: grid;
  place-items: center; cursor: pointer; color: var(--purple); font-size: 22px; background: #FCFBFE; transition: .16s;
}
.dt-ref-add:hover { border-color: var(--purple); background: var(--purple-soft); }
.dt-tip { font-size: 11px; color: var(--faint); margin-top: 8px; line-height: 1.5; }

/* 模型选择（纵向列表） */
.dt-providers { display: grid; gap: 6px; }
.dt-prov {
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; cursor: pointer;
  display: flex; align-items: center; gap: 9px; transition: .16s; background: #FCFBFE;
}
.dt-prov:hover { border-color: #DCD1FF; background: #FBFAFF; }
.dt-prov.on { border-color: var(--purple); background: var(--purple-soft); box-shadow: 0 0 0 3px rgba(108, 77, 248, .07); }
.dt-prov-radio {
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid #D3CEE4; flex: 0 0 auto; position: relative;
}
.dt-prov.on .dt-prov-radio { border-color: var(--purple); }
.dt-prov.on .dt-prov-radio::after {
  content: ''; position: absolute; inset: 1.5px; border-radius: 50%; background: var(--purple);
}
.dt-prov-body { flex: 1; min-width: 0; }
.dt-prov-name { font-size: 12.5px; line-height: 1.35; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.dt-prov-note { margin-top: 1px; font-size: 10.5px; line-height: 1.35; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-prov-cost { font-size: 11.5px; color: #FF6B35; font-weight: 800; white-space: nowrap; }
.dt-prov-cost.free { color: #0E9F6E; }

/* 尺寸选择 */
.dt-sizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.dt-size {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 0 7px; text-align: center;
  cursor: pointer; transition: .16s; background: #FCFBFE; font-size: 10px; color: #56506A;
}
.dt-size:hover { border-color: #DCD1FF; }
.dt-size.on { border-color: var(--purple); background: var(--purple-soft); color: var(--purple); font-weight: 700; }
.dt-size i { display: block; border: 2px solid var(--purple); border-radius: 3px; margin: 0 auto 5px; opacity: .8; }
.dt-size em { display: block; font-style: normal; font-size: 9px; color: var(--faint); }

/* 数量 / 清晰度 */
.dt-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.dt-opt {
  height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line);
  font-size: 12px; color: #56506A; cursor: pointer; background: #FCFBFE; transition: .16s; position: relative;
}
.dt-opt:hover { border-color: #DCD1FF; }
.dt-opt.on { border-color: var(--purple); background: var(--purple-soft); color: var(--purple); font-weight: 700; }
.dt-opt i { position: absolute; bottom: 2px; font-size: 9px; font-style: normal; color: var(--faint); }
.dt-opt.on i { color: var(--purple); }

/* 可见范围 */
.dt-pub { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dt-pub-item {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer;
  background: #FCFBFE; transition: .16s;
}
.dt-pub-item.on { border-color: var(--purple); background: var(--purple-soft); }
.dt-pub-t { font-size: 12px; font-weight: 700; }
.dt-pub-s { font-size: 10px; color: var(--muted); line-height: 1.5; margin-top: 2px; }

/* 右侧画布 */
.dt-canvas { min-height: 640px; display: flex; flex-direction: column; overflow: hidden; }
.dt-canvas-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid #F3F1F9;
}
.dt-canvas-title { font-size: 15px; font-weight: 800; }
.dt-canvas-tabs { display: flex; gap: 6px; margin-left: 12px; }
.dt-canvas-tabs span {
  font-size: 12px; padding: 5px 12px; border-radius: 8px; cursor: pointer; color: var(--muted);
}
.dt-canvas-tabs span.on { background: var(--purple-soft); color: var(--purple); font-weight: 700; }
.dt-canvas-body {
  flex: 1; padding: 26px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 0%, #FBFAFF 0%, #F8F7FC 75%);
}
/* 创作台右侧：内嵌「我的作品」列表模式 */
.dt-canvas-body.dt-works-mode {
  display: block; padding: 16px; overflow-y: auto;
  align-items: stretch; justify-content: flex-start;
}
.dt-cw-pane { width: 100%; }
.dt-cw-pane .dt-list-empty { width: 100%; padding: 56px 16px; }
.dt-cw-pane .dt-list-empty .ico { font-size: 34px; }
.dt-cw-retry {
  margin-top: 14px; height: 36px; padding: 0 20px; border: none; border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-l), var(--purple)); color: #FFF;
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
  box-shadow: 0 10px 22px -10px rgba(108, 77, 248, .8);
}
/* 作品分页 */
.dt-cw-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 0 4px; }
.dt-cw-pager button {
  height: 34px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px;
  background: #FFF; color: #4A4653; font-size: 12.5px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: .16s;
}
.dt-cw-pager button:hover:not(:disabled) { border-color: #D6CBFF; color: var(--purple); background: #FBFAFF; }
.dt-cw-pager button:disabled { opacity: .45; cursor: not-allowed; }
.dt-cw-pager span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dt-cw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-content: start; }
.dt-cw-grid .dt-work-card { border-radius: 12px; }
.dt-empty { text-align: center; max-width: 380px; }
.dt-empty-art {
  width: 122px; height: 122px; margin: 0 auto 18px; border-radius: 30px; display: grid; place-items: center;
  font-size: 46px; background: linear-gradient(135deg, #F1EAFE, #E3DBFF);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 18px 40px -24px rgba(108, 77, 248, .7);
}
.dt-empty h3 { font-size: 17px; margin: 0 0 6px; font-weight: 800; }
.dt-empty p { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; line-height: 1.7; }
.dt-empty-tips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.dt-empty-tips span {
  font-size: 11px; color: #56506A; background: #FFF; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 11px;
}
.dt-canvas-results { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-content: start; }
.dt-canvas-results img { width: 100%; border-radius: 12px; display: block; cursor: zoom-in; background: #EDEAF6; }
.dt-canvas-foot {
  border-top: 1px solid #F3F1F9; padding: 14px 22px; display: flex; align-items: center; gap: 18px;
  background: #FFF;
}
.dt-cost { flex: 1; min-width: 0; }
.dt-cost-main { font-size: 13px; }
.dt-cost-main b { color: #FF6B35; font-size: 20px; font-weight: 800; margin: 0 2px; }
.dt-cost-sub { font-size: 11px; color: var(--faint); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-generate {
  height: 46px; padding: 0 40px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, var(--purple-l), var(--purple)); color: #FFF; font-size: 15px;
  font-weight: 800; box-shadow: 0 12px 26px -12px rgba(108, 77, 248, .9); transition: .18s;
}
.dt-generate:hover { transform: translateY(-1px); }
.dt-generate:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ============ 列表页（广场 / 作品） ============ */
.dt-page { padding: 34px 0 50px; }
.dt-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.dt-page-title { font-size: 30px; font-weight: 800; letter-spacing: -.8px; margin: 0 0 6px; }
.dt-page-sub { font-size: 13px; color: var(--muted); margin: 0; }
.dt-toolbar { display: flex; align-items: center; gap: 10px; }
.dt-toolbar .dt-search { max-width: 300px; margin: 0; }
.dt-toolbar .dt-search input { height: 38px; }
.dt-filter { display: flex; gap: 6px; background: #FFF; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.dt-filter span {
  font-size: 12.5px; padding: 6px 15px; border-radius: 999px; cursor: pointer; color: var(--muted);
  transition: .16s; user-select: none;
}
.dt-filter span:hover { color: var(--text); }
.dt-filter span.on { background: var(--purple); color: #FFF; font-weight: 700; }
.dt-stats { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.dt-stat {
  background: #FFF; border: 1px solid var(--line); border-radius: 12px; padding: 10px 18px;
  display: flex; align-items: baseline; gap: 7px;
}
.dt-stat b { font-size: 18px; font-weight: 800; }
.dt-stat span { font-size: 12px; color: var(--muted); }
.dt-loadmore {
  display: block; margin: 24px auto 0; height: 40px; padding: 0 30px; border-radius: 999px;
  border: 1px solid var(--line); background: #FFF; font-size: 13px; color: #56506A; cursor: pointer;
  font-family: inherit; transition: .16s;
}
.dt-loadmore:hover { border-color: #DCD1FF; color: var(--purple); }

/* 作品卡片（我的作品） */
.dt-works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dt-work-card {
  background: #FFF; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  transition: .2s; cursor: pointer;
}
.dt-work-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dt-wc-img { aspect-ratio: 3 / 4; background: #F1EFF8; position: relative; overflow: hidden; }
.dt-wc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dt-wc-badge {
  position: absolute; left: 10px; top: 10px; font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 6px; background: rgba(255, 255, 255, .92); color: #0E9F6E;
}
.dt-wc-badge.pending { color: var(--purple); }
.dt-wc-badge.failed { color: #C0392B; background: rgba(255, 235, 235, .95); }
.dt-wc-time {
  position: absolute; right: 10px; bottom: 10px; font-size: 10px; color: #FFF;
  background: rgba(15, 13, 24, .5); padding: 2px 8px; border-radius: 6px; backdrop-filter: blur(4px);
}
.dt-wc-body { padding: 11px 13px 13px; }
.dt-wc-prompt {
  font-size: 12px; color: #4A4653; line-height: 1.5; height: 36px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dt-wc-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--faint); }
.dt-wc-meta .m { display: flex; align-items: center; gap: 8px; }
.dt-wc-meta .lk.has { color: #FF6B8A; }
.dt-ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 12px; gap: 10px; }
.dt-spinner {
  width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid #E4DEF7; border-top-color: var(--purple);
  animation: dtSpin .9s linear infinite; margin: 0 auto;
}
@keyframes dtSpin { to { transform: rotate(360deg); } }

/* ============ 弹窗 ============ */
.dt-mask {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
  background: rgba(18, 16, 28, .55); backdrop-filter: blur(5px); padding: 32px;
}
.dt-mask.show { display: grid; }
.dt-modal {
  width: min(1000px, 94vw); max-height: 88vh; background: #FFF; border-radius: var(--r-xl);
  overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; box-shadow: var(--shadow-lg);
  animation: dtUp .2s ease;
}
@keyframes dtUp { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
.dt-modal-img { background: #14121C; display: grid; place-items: center; min-height: 320px; overflow: hidden; }
.dt-modal-img img { max-width: 100%; max-height: 88vh; display: block; object-fit: contain; cursor: zoom-in; }
.dt-modal-side { padding: 24px; display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.dt-modal-close {
  position: absolute; right: 26px; top: 20px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center; font-size: 18px; cursor: pointer;
  color: #4A4653; z-index: 3;
}
.dt-modal h3 { margin: 0; font-size: 17px; font-weight: 800; }
.dt-params { display: flex; flex-wrap: wrap; gap: 6px; }
.dt-params span {
  font-size: 11px; color: #56506A; background: #F6F4FC; border-radius: 6px; padding: 3px 9px;
}
.dt-modal-prompt {
  font-size: 12.5px; color: #4A4653; line-height: 1.7; background: #FBFaff; border: 1px solid #F0EDFA;
  border-radius: 12px; padding: 12px; max-height: 190px; overflow: auto; white-space: pre-wrap; flex: 1;
}
.dt-modal-btns { display: flex; gap: 10px; margin-top: auto; }
.dt-btn {
  flex: 1; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #FFF;
  font-family: inherit; font-size: 13px; font-weight: 700; color: #4A4653; cursor: pointer; transition: .16s;
}
.dt-btn:hover { border-color: #DCD1FF; color: var(--purple); background: #FBFAFF; }
.dt-btn.solid {
  border: none; color: #FFF; background: linear-gradient(135deg, var(--purple-l), var(--purple));
  box-shadow: 0 10px 22px -12px rgba(108, 77, 248, .9);
}
.dt-btn.danger { color: #C0392B; background: #FCEBEB; border-color: #F6D6D6; }

/* 图片查看器 */
.dt-viewer {
  position: fixed; inset: 0; z-index: 300; display: none; place-items: center;
  background: rgba(8, 7, 12, .93); cursor: zoom-out;
}
.dt-viewer.show { display: grid; }
.dt-viewer img { max-width: 94vw; max-height: 90vh; object-fit: contain; border-radius: 6px; }
.dt-viewer .x { position: absolute; right: 26px; top: 18px; color: #FFF; font-size: 30px; opacity: .8; }

/* 空状态（列表页） */
.dt-list-empty {
  background: #FFF; border: 1px dashed #DDD7EE; border-radius: var(--r-lg); padding: 64px 20px; text-align: center;
}
.dt-list-empty .ico { font-size: 46px; margin-bottom: 12px; }
.dt-list-empty h4 { margin: 0 0 6px; font-size: 16px; }
.dt-list-empty p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }

/* ============ 页脚 ============ */
.dt-footer { border-top: 1px solid var(--line); background: #FFF; margin-top: 28px; }
.dt-footer-in {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px 0 12px; flex-wrap: nowrap;
}
.dt-footer-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dt-footer-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.dt-footer-brand .dt-logo { width: 30px; height: 30px; font-size: 14px; border-radius: 9px; }
.dt-footer-brand b { font-size: 14px; color: var(--text); white-space: nowrap; }
.dt-footer-main p { margin: 0; font-size: 12px; color: var(--faint); white-space: nowrap; }
.dt-footer-links { display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; flex-shrink: 0; }
.dt-footer-links a { font-size: 12.5px; color: var(--muted); cursor: pointer; text-decoration: none; transition: .18s; }
.dt-footer-links a:hover { color: var(--purple); }
.dt-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding: 10px 0 14px;
}
.dt-footer-legal { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.dt-footer-legal a { font-size: 11.5px; color: var(--faint); cursor: pointer; text-decoration: none; transition: .18s; }
.dt-footer-legal a:hover { color: var(--purple); }
.dt-copy { font-size: 11.5px; color: var(--faint); }
@media (max-width: 900px) {
  .dt-footer-main p { display: none; }
}
@media (max-width: 720px) {
  .dt-footer-in { padding: 16px 0 12px; gap: 12px; flex-wrap: wrap; }
  .dt-footer-links { gap: 16px; }
}

/* ============ 响应式 ============ */
@media (max-width: 1180px) {
  .dt-wrap { width: calc(100% - 40px); }
  .dt-h1 { font-size: 42px; }
  .dt-hero { gap: 36px; }
  .dt-waterfall { column-count: 3; }
  .dt-masonry { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dt-models, .dt-prompts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt-works { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .dt-search { display: none; }
  .dt-hero { grid-template-columns: 1fr; padding-top: 40px; }
  .dt-visual { height: 380px; }
  .dt-create { grid-template-columns: 1fr; }
  .dt-side { position: static; max-height: none; }
  .dt-waterfall { column-count: 2; }
  .dt-masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dt-works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt-modal { grid-template-columns: 1fr; max-height: 92vh; overflow: auto; }
  .dt-modal-img img { max-height: 46vh; }
}
@media (max-width: 620px) {
  .dt-wrap { width: calc(100% - 28px); }
  .dt-menu { display: none; }
  .dt-h1 { font-size: 34px; }
  .dt-models, .dt-prompts, .dt-works { grid-template-columns: 1fr 1fr; }
  .dt-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 个人中心（电脑版） ---------- */
.dt-pgrid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.dt-pcard { background: #FFF; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.dt-puser { position: sticky; top: 92px; text-align: center; }
.dt-pav {
  width: 76px; height: 76px; border-radius: 24px; margin: 2px auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: #FFF;
  background: linear-gradient(135deg, #8B6CFF, #6C4DF8);
  box-shadow: 0 12px 30px -12px rgba(108, 77, 248, .55);
}
.dt-pname { font-size: 18px; font-weight: 800; color: var(--text); word-break: break-all; }
.dt-pid { font-size: 12px; color: var(--faint); margin-top: 2px; }
.dt-pvip { display: inline-block; margin-top: 10px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #F3EFFF; color: var(--purple); }
.dt-pvip.on { background: linear-gradient(135deg, #FBE3B4, #F2C66D); color: #8A5B00; }
.dt-pcredits { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 16px 0 12px; padding: 14px; border-radius: 14px; background: linear-gradient(120deg, #F7F3FF, #FFF); }
.dt-pcredits i { font-style: normal; font-size: 18px; }
.dt-pcredits b { font-size: 26px; font-weight: 800; color: var(--purple); line-height: 1; }
.dt-pcredits span { font-size: 12px; color: var(--muted); }
.dt-pquick { display: grid; gap: 4px; margin-top: 14px; text-align: left; }
.dt-pquick a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; font-size: 13px; color: var(--text); text-decoration: none; transition: .18s; }
.dt-pquick a:hover { background: #F6F3FF; color: var(--purple); }
.dt-pmain { display: grid; gap: 20px; }
.dt-pstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dt-pstat { background: #FFF; border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; }
.dt-pstat b { display: block; font-size: 24px; font-weight: 800; color: var(--text); line-height: 1.2; }
.dt-pstat span { font-size: 12px; color: var(--muted); }
.dt-phead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dt-phead h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--text); }
.dt-phead a { font-size: 12.5px; color: var(--purple); text-decoration: none; }
.dt-pworks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dt-pwork { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #F1EFF8; text-decoration: none; }
.dt-pwork img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.dt-pwork:hover img { transform: scale(1.05); }
.dt-pwork span { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); color: #FFF; font-size: 11.5px; opacity: 0; transition: .2s; }
.dt-pwork:hover span { opacity: 1; }
.dt-prow { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid #F4F2FA; font-size: 13px; }
.dt-prow:first-of-type { border-top: none; }
.dt-prow span { color: var(--muted); }
.dt-prow b { font-weight: 700; color: var(--text); }
@media (max-width: 960px) {
  .dt-pgrid { grid-template-columns: 1fr; }
  .dt-puser { position: static; }
  .dt-pstats { grid-template-columns: 1fr 1fr; }
  .dt-pworks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 覆盖场景（仿参考站场景卡） ---------- */
.dt-scenes-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.dt-scenes-title { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.4px; line-height: 1.35; color: var(--text); }
.dt-scenes-title em { font-style: normal; color: var(--purple); }
.dt-scenes-desc { margin: 12px 0 0; font-size: 13.5px; line-height: 1.9; color: var(--muted); }
.dt-scene-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.dt-scene {
  display: flex; flex-direction: column; background: #FFF; border: 1px solid #F0EDF7;
  border-radius: 14px; overflow: hidden; cursor: pointer; transition: .22s;
  box-shadow: 0 2px 10px -4px rgba(31, 29, 43, .06);
}
.dt-scene:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(31, 29, 43, .42); border-color: #E2DAFF; }
.dt-scene .s-img { aspect-ratio: 4 / 3; overflow: hidden; background: #F5F4F9; }
.dt-scene .s-img img { width: 100%; height: 100%; object-fit: cover; transition: .45s; }
.dt-scene:hover .s-img img { transform: scale(1.04); }
.dt-scene .s-body { padding: 16px 18px 18px; }
.dt-scene .s-body h3 { margin: 0 0 7px; font-size: 15px; font-weight: 800; color: var(--text); }
.dt-scene .s-body p {
  margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 1024px) {
  .dt-scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt-scenes-title { font-size: 24px; }
}
@media (max-width: 620px) { .dt-scene-grid { grid-template-columns: 1fr; } }

/* ---------- 开始创作引导栏 ---------- */
.dt-cta {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: 56px;
  margin-top: 56px; padding: 46px 48px;
  background: linear-gradient(120deg, #FBFAFF 0%, #F4EFFF 100%);
  border: 1px solid #ECE5FA; border-radius: 24px;
}
.dt-cta .cta-left { min-width: 0; }
.dt-cta .cta-eyebrow {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  background: #FFF; border: 1px solid #E6DEF9; color: var(--purple);
  font-size: 11.5px; font-weight: 700; letter-spacing: .4px;
}
.dt-cta .cta-title { margin: 14px 0 0; font-size: 30px; font-weight: 800; line-height: 1.3; letter-spacing: -.6px; color: var(--text); }
.dt-cta .cta-title em { font-style: normal; color: var(--purple); }
.dt-cta .cta-sub { margin: 12px 0 0; max-width: 46ch; font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.dt-cta .cta-actions { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.dt-cta .cta-btn {
  display: grid; place-items: center; height: 46px; padding: 0 30px; border-radius: 12px;
  background: linear-gradient(135deg, #7C5CE6, #5B3FD8); color: #FFF;
  font-size: 14px; font-weight: 700; text-decoration: none;
  box-shadow: 0 16px 30px -18px rgba(91, 63, 216, .8); transition: .2s;
}
.dt-cta .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -18px rgba(91, 63, 216, .9); }
.dt-cta .cta-note { font-size: 12px; color: var(--muted); }
/* 右侧：竖向步骤，去掉卡片噪音，用细线串联 */
.dt-cta .cta-steps { list-style: none; margin: 0; padding: 0; }
.dt-cta .cta-step { position: relative; display: flex; gap: 16px; padding-bottom: 26px; }
.dt-cta .cta-step:last-child { padding-bottom: 0; }
.dt-cta .cta-step:not(:last-child)::after {
  content: ''; position: absolute; left: 13.5px; top: 34px; bottom: 8px; width: 1px;
  background: linear-gradient(#D8CBF6, rgba(216, 203, 246, .1));
}
.dt-cta .cta-step .n {
  position: relative; z-index: 1; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: #FFF; border: 1px solid #DED2F8; color: var(--purple);
  font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.dt-cta .cta-step h4 { margin: 3px 0 3px; font-size: 14px; font-weight: 800; color: var(--text); }
.dt-cta .cta-step p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
@media (max-width: 1080px) {
  .dt-cta { grid-template-columns: 1fr; gap: 30px; padding: 32px 26px; }
  .dt-cta .cta-title { font-size: 24px; }
  .dt-cta .cta-steps { max-width: 560px; }
}
@media (max-width: 620px) {
  .dt-cta { margin-top: 40px; padding: 26px 20px; border-radius: 20px; }
  .dt-cta .cta-title { font-size: 21px; }
  .dt-cta .cta-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dt-cta .cta-btn { width: 100%; }
}

/* ---------- 创作页顶部三段式推广条 ---------- */
.dt-promo {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin: 18px 0 0;
}
.dt-promo-card {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; background: #FFF; border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--text); transition: .18s;
}
.dt-promo-card:hover {
  border-color: #DCD1FF; transform: translateY(-1px);
  box-shadow: 0 12px 26px -20px rgba(31, 29, 43, .45);
}
.dt-promo-ico {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-size: 17px; background: var(--purple-soft);
}
.dt-promo-card.p2 .dt-promo-ico { background: #FFF4E3; }
.dt-promo-card.p3 .dt-promo-ico { background: #E9F7F0; }
.dt-promo-body { flex: 1; min-width: 0; }
.dt-promo-body b {
  display: block; font-size: 12.5px; font-weight: 800; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dt-promo-body small {
  display: block; margin-top: 2px; font-size: 11px; line-height: 1.4; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dt-promo-go { flex: 0 0 auto; font-size: 11.5px; font-weight: 700; color: var(--purple); white-space: nowrap; }
.dt-promo-card.p2 .dt-promo-go { color: #B27600; }
.dt-promo-card.p3 .dt-promo-go { color: #0E9F6E; }
@media (max-width: 1080px) {
  .dt-promo { grid-template-columns: 1fr; gap: 8px; margin: 14px 0 12px; }
}

/* ===== PC 端登录弹窗：居中单卡片 ===== */
@media (min-width: 480px) {
  .lg-mask { align-items: center; padding: 32px 0; }
  .lg-modal {
    width: min(94vw, 420px); max-height: 90vh;
    padding: 30px 32px 24px; border-radius: 22px; overflow-y: auto;
    background: #FFF; box-shadow: 0 32px 80px -32px rgba(30, 20, 70, .45);
  }
  .lg-close { right: 14px; top: 10px; font-size: 22px; color: #ADA8BE; }
  .lg-close:hover { color: #6C4DF8; }

  .lg-gift { text-align: center; }
  .lg-gift-circle {
    width: 52px; height: 52px; margin: 4px auto 0; border-radius: 16px;
    background: linear-gradient(140deg, #7C5CFF, #B18CFF); color: #fff; font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 26px -12px rgba(108, 77, 248, .75);
  }
  .lg-big-title {
    text-align: center; font-size: 21px; line-height: 1.4;
    margin-top: 16px; color: #211C33; letter-spacing: .2px;
  }
  .lg-gold { background: none; -webkit-text-fill-color: currentColor; color: #6C4DF8; }
  .lg-chips { justify-content: center; gap: 8px; margin-top: 12px; }
  .lg-chip {
    background: #F5F2FF; border: 1px solid #E8E2FF; color: #6C4DF8;
    font-size: 12px; padding: 4px 10px; border-radius: 999px;
  }
  .lg-chips-sub { text-align: center; font-size: 12px; color: #9B96A8; margin-top: 10px; line-height: 1.6; }

  .lg-tabs {
    display: flex; gap: 4px; margin-top: 20px; padding: 4px;
    background: #F5F3FA; border: none; border-radius: 12px;
  }
  .lg-tab { padding: 9px 0; font-size: 13px; border-radius: 9px; color: #7A748C; }
  .lg-tab.on { background: #FFF; color: #6C4DF8; box-shadow: 0 2px 8px rgba(40, 25, 90, .1); }
  .lg-tab.on::after { display: none; }

  .lg-panel { padding-top: 2px; }
  .lg-fld { margin-top: 14px; }
  .lg-fld:first-child { margin-top: 14px; }
  .lg-label { font-size: 12.5px; color: #5A5570; margin-bottom: 6px; }
  .lg-ipt {
    height: 46px; border-radius: 12px; font-size: 14px; padding: 0 14px;
    background: #F7F6FB; border: 1px solid transparent;
  }
  .lg-ipt:focus { background: #FFF; border-color: #8E7BFF; box-shadow: 0 0 0 3px rgba(108, 77, 248, .12); }
  .lg-btn-code { height: 46px; border-radius: 12px; font-size: 12.5px; padding: 0 14px; }
  .lg-cap-img { height: 46px; width: 132px; border-radius: 12px; }
  .lg-btn-main {
    height: 48px; margin-top: 20px; font-size: 15.5px; border-radius: 13px;
    background: linear-gradient(135deg, #7C5CFF, #6C4DF8);
    box-shadow: 0 14px 26px -14px rgba(108, 77, 248, .85);
  }
  .lg-sub-btn { margin-top: 14px; font-size: 13px; }
  .lg-agree { margin-top: 16px; justify-content: center; font-size: 12px; }
  .lg-tip-line { margin-top: 10px; font-size: 12px; }
  .lg-doc { width: min(92vw, 640px); }
}


/* ===== 创作页：整屏自适应，左右两栏内部滚动，生成按钮常驻可见 ===== */
body[data-nav="开始创作"] { height: 100vh; overflow: hidden; }
body[data-nav="开始创作"] #dtFooter { display: none; }
body[data-nav="开始创作"] .dt-main {
  height: calc(100vh - var(--nav-h)); min-height: 0; overflow: hidden;
}
body[data-nav="开始创作"] .dt-wrap { height: 100%; }
body[data-nav="开始创作"] .dt-create {
  height: 100%; padding: 16px 0; align-items: stretch; gap: 18px;
}
body[data-nav="开始创作"] .dt-side {
  position: static; top: auto; max-height: none; height: 100%;
  overflow-y: auto; overscroll-behavior: contain;
}
body[data-nav="开始创作"] .dt-canvas { height: 100%; min-height: 0; }
body[data-nav="开始创作"] .dt-canvas-body { min-height: 0; }
body[data-nav="开始创作"] .dt-canvas-foot { flex: 0 0 auto; }

/* 创作台右侧作品区：列表内部滚动，翻页条固定可见 */
body[data-nav="开始创作"] .dt-canvas-body.dt-works-mode {
  display: flex; flex-direction: column; overflow: hidden; padding: 0 16px;
}
body[data-nav="开始创作"] #paneWorks { display: flex; flex-direction: column; height: 100%; min-height: 0; }
body[data-nav="开始创作"] .dt-cw-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 0 10px; overscroll-behavior: contain; }
body[data-nav="开始创作"] .dt-cw-scroll::-webkit-scrollbar { width: 6px; }
body[data-nav="开始创作"] .dt-cw-scroll::-webkit-scrollbar-thumb { background: #DDD8EC; border-radius: 3px; }
body[data-nav="开始创作"] .dt-cw-pager {
  flex: 0 0 auto; margin: 0 -16px; padding: 10px 16px; background: #FFF;
  border-top: 1px solid #F3F1F9; display: flex; align-items: center; justify-content: center; gap: 12px;
}

/* ===== 作品详情框（创作台）===== */
.dt-wm {
  position: fixed; inset: 0; z-index: 700; display: none; align-items: center; justify-content: center;
  padding: 28px; background: rgba(24, 20, 40, .5); backdrop-filter: blur(8px);
}
.dt-wm.show { display: flex; animation: dtFade .18s ease; }
@keyframes dtFade { from { opacity: 0 } to { opacity: 1 } }
.dt-wm-box {
  position: relative; width: min(960px, 100%); max-height: min(86vh, 780px);
  display: flex; background: #FFF; border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(28, 18, 66, .55);
}
.dt-wm-x {
  position: absolute; right: 12px; top: 10px; z-index: 3; width: 34px; height: 34px;
  border: none; border-radius: 10px; background: rgba(255, 255, 255, .82); color: #8A8496;
  font-size: 20px; line-height: 1; cursor: pointer; transition: .16s;
}
.dt-wm-x:hover { background: #FFF; color: #C0392B; }
.dt-wm-media {
  flex: 1.2; min-width: 0; display: grid; place-items: center;
  padding: 20px; background: radial-gradient(700px 400px at 30% 20%, #F7F4FF, #EFEBF8 70%);
}
.dt-wm-media img {
  max-width: 100%; max-height: calc(86vh - 76px); object-fit: contain;
  border-radius: 14px; box-shadow: 0 24px 50px -26px rgba(30, 20, 70, .45); background: #FFF;
}
.dt-wm-info {
  flex: 1; min-width: 320px; display: flex; flex-direction: column;
  padding: 24px 24px 20px; overflow-y: auto;
}
.dt-wm-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-right: 34px; }
.dt-wm-head b { font-size: 16px; font-weight: 800; color: var(--text); }
.dt-wm-id { font-size: 11.5px; color: var(--purple); background: var(--purple-soft); border-radius: 999px; padding: 2px 8px; }
.dt-wm-time { font-size: 11.5px; color: var(--faint); }
.dt-wm-label { margin: 18px 0 8px; font-size: 12px; font-weight: 700; color: #7A748C; letter-spacing: .3px; }
.dt-wm-prompt {
  font-size: 13px; line-height: 1.75; color: #3C3850; background: #F8F6FD;
  border: 1px solid #F0ECFB; border-radius: 12px; padding: 12px 14px;
  max-height: 190px; overflow-y: auto; white-space: pre-wrap; word-break: break-word;
}
.dt-wm-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.dt-wm-meta span {
  font-size: 12px; color: #56506A; background: #F6F4FC; border: 1px solid #EFECF9;
  border-radius: 999px; padding: 5px 11px;
}
.dt-wm-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; margin-bottom: auto; }
.dt-wm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #FFF;
  font-size: 13.5px; font-weight: 700; color: #4A4653; cursor: pointer; font-family: inherit; transition: .16s;
}
.dt-wm-btn i { font-style: normal; font-size: 14px; }
.dt-wm-btn:hover { border-color: #D6CBFF; background: #FBFAFF; color: var(--purple); }
.dt-wm-btn.solid {
  border: none; color: #FFF; background: linear-gradient(135deg, var(--purple-l), var(--purple));
  box-shadow: 0 12px 24px -12px rgba(108, 77, 248, .85);
}
.dt-wm-btn.solid:hover { color: #FFF; filter: brightness(1.04); }
.dt-wm-btn.danger { color: #B24B3E; border-color: #F3E2DE; background: #FFF9F8; }
.dt-wm-btn.danger:hover { color: #C0392B; background: #FFF3F1; border-color: #EFCFC8; }
@media (max-width: 860px) {
  .dt-wm { padding: 14px; }
  .dt-wm-box { flex-direction: column; max-height: 92vh; }
  .dt-wm-media { flex: 0 0 auto; padding: 14px; }
  .dt-wm-media img { max-height: 42vh; }
  .dt-wm-info { min-width: 0; padding: 16px 18px 18px; }
  .dt-wm-prompt { max-height: 120px; }
}

/* 失败作品：卡片内显示失败原因 */
.dt-ph-fail { color: #C0392B; }
.dt-ph-fail .dt-ph-why {
  margin-top: 8px; font-size: 11.5px; line-height: 1.5; color: #A05A4E;
  max-height: 42px; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word;
}
/* 详情框：无图（失败作品）时单栏铺满 */
.dt-wm-box.no-media .dt-wm-info { flex: 1 1 auto; min-width: 0; padding: 26px 28px 22px; }
.dt-wm-box.no-media .dt-wm-prompt { max-height: 240px; color: #A05A4E; background: #FFF7F5; border-color: #F6E4DF; }

/* 卡片文案完整换行显示（不再截断） */
.dt-wc-prompt {
  height: auto !important; display: block !important; -webkit-line-clamp: none !important;
  overflow: visible !important; white-space: normal; word-break: break-word;
}
.dt-wc-prompt.failed { color: #A05A4E; }
.dt-ph-why { max-height: none !important; display: block !important; -webkit-line-clamp: none !important; overflow: visible !important; }
/* 创作台网格按内容自适应行高，卡片文案可完整展开 */
body[data-nav="开始创作"] .dt-cw-grid .dt-wc-body { padding-bottom: 12px; }

/* 失败原因显示在卡片图区内（可滚动看全） */
.dt-ph { padding: 14px; }
.dt-ph-in { width: 100%; max-height: 100%; overflow-y: auto; }
.dt-ph-fail .dt-ph-why {
  margin-top: 8px; max-height: none; overflow: visible; display: block;
  -webkit-line-clamp: none; font-size: 11.5px; line-height: 1.55;
  color: #A05A4E; text-align: left; word-break: break-word; white-space: normal;
}

/* 卡片提示词仅一行，超长省略（悬停看全文） */
.dt-wc-prompt {
  display: block !important; height: auto !important; white-space: nowrap !important;
  overflow: hidden !important; text-overflow: ellipsis; -webkit-line-clamp: none !important;
  word-break: normal !important;
}

/* 作品详情框收紧尺寸，保证最后一行提示词完整可见 */
.dt-wm-box { width: min(840px, 100%) !important; max-height: min(76vh, 660px) !important; border-radius: 20px !important; }
.dt-wm-media { padding: 16px !important; }
.dt-wm-media img { max-height: calc(76vh - 60px) !important; }
.dt-wm-info { padding: 20px 22px 18px !important; }
.dt-wm-label { margin: 14px 0 7px !important; }
.dt-wm-prompt { max-height: 128px !important; padding: 10px 12px !important; line-height: 1.7 !important; }
.dt-wm-prompt::-webkit-scrollbar { width: 6px; }
.dt-wm-prompt::-webkit-scrollbar-thumb { background: #DCD6EE; border-radius: 3px; }
.dt-wm-btns { margin-top: 16px !important; gap: 8px !important; }
.dt-wm-btn { height: 40px !important; font-size: 13px !important; }
@media (max-width: 860px) {
  .dt-wm-box { max-height: 90vh !important; }
  .dt-wm-media img { max-height: 38vh !important; }
  .dt-wm-prompt { max-height: 104px !important; }
}

/* 详情框提示词不再限高：完整展开，避免半行被裁切 */
.dt-wm-prompt {
  max-height: none !important; height: auto !important; overflow: visible !important;
  line-height: 1.65 !important; font-size: 12.5px !important;
}
.dt-wm-info { overflow-y: auto; padding-bottom: 20px !important; scrollbar-width: thin; }
.dt-wm-info::-webkit-scrollbar { width: 6px; }
.dt-wm-info::-webkit-scrollbar-thumb { background: #E1DCEF; border-radius: 3px; }

/* ---------- 创作页自适应布局：整屏工作台，按钮常驻可见 ---------- */
.dt-works.dt-cw-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }

@media (min-width: 1100px) {
  .dt-create-wrap { display: flex; flex-direction: column; height: calc(100vh - var(--nav-h)); }
  .dt-create-wrap .dt-promo { flex: 0 0 auto; }
  .dt-create-wrap .dt-create {
    flex: 1 1 auto; min-height: 0; align-items: stretch;
    grid-template-columns: 372px minmax(0, 1fr);
    padding: 18px 0 18px;
  }
  .dt-create-wrap .dt-side { position: static; height: auto; max-height: 100%; align-self: start; overflow-y: auto; }
  .dt-create-wrap .dt-canvas { height: 100%; min-height: 0; }
  .dt-create-wrap .dt-canvas-body { min-height: 0; }
  .dt-create-wrap .dt-canvas-foot { flex: 0 0 auto; }
}
@media (min-width: 1100px) and (max-width: 1280px) {
  .dt-create-wrap .dt-create { grid-template-columns: 340px minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 1099px) {
  .dt-create { grid-template-columns: 1fr; gap: 16px; padding: 16px 0 32px; }
  .dt-side { position: static; max-height: none; overflow: visible; }
  .dt-canvas { min-height: 520px; }
  .dt-promo { margin-top: 14px; }
}
@media (max-width: 1000px) {
  .dt-works.dt-cw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .dt-works.dt-cw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .dt-works.dt-cw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .dt-canvas-head { padding: 14px 16px; }
  .dt-canvas-foot { padding: 12px 16px; gap: 12px; }
  .dt-canvas-body.dt-works-mode { padding: 12px; }
}
/* 窄屏（<1100px）：恢复整页滚动，生成条固定底部常驻，避免参数区占满一屏后创作台被裁掉 */
@media (max-width: 1099px) {
  body[data-nav="开始创作"] { height: auto; overflow: auto; }
  body[data-nav="开始创作"] .dt-main { height: auto; min-height: 0; overflow: visible; padding-bottom: 86px; }
  body[data-nav="开始创作"] .dt-wrap { height: auto; }
  body[data-nav="开始创作"] .dt-create { height: auto; align-items: start; gap: 16px; padding: 16px 0 24px; }
  body[data-nav="开始创作"] .dt-side { position: static; height: auto; max-height: none; overflow: visible; }
  body[data-nav="开始创作"] .dt-canvas { height: auto; min-height: 420px; overflow: visible; }
  body[data-nav="开始创作"] .dt-canvas-body.dt-works-mode { overflow: visible; }
  body[data-nav="开始创作"] #paneWorks { height: auto; }
  body[data-nav="开始创作"] .dt-cw-scroll { flex: none; overflow: visible; }
  body[data-nav="开始创作"] .dt-canvas-foot {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 60;
    width: 100%; max-width: 1180px; border-radius: 16px 16px 0 0;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 32px -20px rgba(28, 18, 66, .45);
  }
}
/* ---------- 创作台作品区：骨架屏加载 / 空态重绘 ---------- */
.dt-cw-pane .dt-list-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, #FFF, #FCFCFD);
  padding: 40px 20px;
}
.dt-cw-pane .dt-list-empty .ico {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 14px;
  display: grid; place-items: center; font-size: 22px; background: var(--purple-soft);
}
.dt-cw-pane .dt-list-empty h4 { font-size: 15px; font-weight: 800; }
.dt-cw-pane .dt-list-empty p { max-width: 340px; margin: 0 auto 16px; font-size: 12.5px; line-height: 1.6; }
.dt-cw-pane .dt-cw-retry {
  height: 34px; padding: 0 18px; border-radius: 10px;
  background: var(--purple); box-shadow: none; font-size: 12.5px;
}
.dt-cw-grid.is-refreshing { opacity: .45; transition: opacity .2s; pointer-events: none; }
.dt-wc-skel { background: #FFF; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.dt-wc-skel .sk-img { display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: 9px; }
.dt-wc-skel .sk-l { display: block; height: 9px; margin-top: 9px; border-radius: 5px; }
.dt-wc-skel .sk-l1 { width: 78%; }
.dt-wc-skel .sk-l2 { width: 50%; margin-top: 6px; }
.dt-wc-skel .sk-img, .dt-wc-skel .sk-l {
  background: linear-gradient(100deg, #F4F4F7 20%, #ECECF1 38%, #F4F4F7 56%);
  background-size: 300% 100%;
  animation: dtSkel 1.4s ease-in-out infinite;
}
@keyframes dtSkel { 0% { background-position: 120% 0; } 100% { background-position: -20% 0; } }
@media (prefers-reduced-motion: reduce) {
  .dt-wc-skel .sk-img, .dt-wc-skel .sk-l { animation: none; }
}
/* ---------- 真实人像头像 ---------- */
.dt-avatar, .um-av, .dt-pav, .iv-ava, .dt-user .dt-avatar { overflow: hidden; }
.dt-avatar img, .um-av img, .dt-pav img, .iv-ava img {
  width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit;
}.dt-avatar, .um-av, .dt-pav, .iv-ava { background: #F1F2F7 !important; box-shadow: none; }
/* ---------- 个人中心：左卡重排，与右栏对齐 ---------- */
.dt-pgrid { grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.dt-puser { padding: 24px 20px 18px; border-radius: 16px; }
.dt-pav { width: 84px; height: 84px; border-radius: 26px; margin: 0 auto 14px; font-size: 32px; }
.dt-pname { font-size: 19px; line-height: 1.35; }
.dt-pid { margin-top: 4px; font-size: 12px; }
.dt-pvip { margin-top: 10px; }
.dt-pcredits {
  margin: 18px 0 14px; padding: 14px 12px; border-radius: 12px;
  background: #F7F7FA; border: 1px solid var(--line);
}
.dt-pcredits b { font-size: 24px; }
.dt-pbtn { width: 100%; height: 40px; border-radius: 12px; }
.dt-pdivider { height: 1px; margin: 16px -20px; background: var(--line); }
.dt-pquick { margin-top: 0; gap: 2px; }
.dt-pquick a { justify-content: space-between; padding: 11px 10px; border-radius: 10px; font-size: 13px; }
.dt-pquick a span { display: flex; align-items: center; gap: 9px; }
.dt-pquick a em { font-style: normal; font-size: 15px; color: var(--faint); transition: color .18s, transform .18s; }
.dt-pquick a:hover em { color: var(--purple); transform: translateX(2px); }
.dt-plogout {
  width: 100%; height: 38px; margin-top: 14px; border-radius: 12px;
  background: #FFF; border: 1px solid var(--line); color: var(--muted); box-shadow: none;
}
.dt-plogout:hover { color: #C0392B; border-color: #F1D6D6; background: #FFF8F8; }
@media (max-width: 1180px) { .dt-pgrid { grid-template-columns: 280px minmax(0, 1fr); } }
@media (max-width: 1024px) {
  .dt-pgrid { grid-template-columns: 1fr; }
  .dt-puser { position: static; top: auto; }
}.dt-pbtn { text-align: center; }
/* 个人中心：左右两栏底部对齐 */
.dt-pgrid { align-items: stretch; }
.dt-puser {
  position: static; top: auto; display: flex; flex-direction: column; height: 100%;
}
.dt-pbtn, .dt-plogout, .dt-pcredits, .dt-pquick { flex: 0 0 auto; }
.dt-pdivider-bottom { margin-top: auto; }
@media (max-width: 1024px) {
  .dt-puser { height: auto; }
  .dt-pdivider-bottom { margin-top: 16px; }
}
/* 首页底部 CTA：步骤条移到左，文案与按钮移到右 */
.dt-cta { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.dt-cta .cta-steps { order: 1; }
.dt-cta .cta-left { order: 2; }
@media (max-width: 900px) {
  .dt-cta .cta-steps { order: 2; }
  .dt-cta .cta-left { order: 1; }
}
/* 清晰度选项：文字与积分双层排列，修复重叠 */
.dt-opt {
  height: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; line-height: 1.15; font-size: 12px; white-space: nowrap;
}
.dt-opt i {
  position: static; bottom: auto; font-size: 9.5px; line-height: 1; opacity: .9;
}
@media (max-width: 1100px) { .dt-opt { height: 40px; } }
/* 清晰度：去掉积分小字，只留档位 */
.dt-opt { height: 36px; gap: 0; }
.dt-opt i { display: none !important; }
/* 品牌图标：自绘「山峦 + 阳光 + 星芒」标记 */
.dt-logo { width: 40px; height: 40px; border-radius: 13px; font-size: 0; }
.dt-logo svg { display: block; width: 23px; height: 23px; }