/* ═══════════════════════════════════════════════════════════════
   eDragon V2 重构设计系统(2026-07-22 起)
   真值源:design_handoff_edragon_redesign/(README + 原型 dc.html)
   暖白纸感底 + 品牌蓝(oklch 262°)+ 珊瑚强调(35°)· 亮色专业工具风
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* 面 */
  --ed-bg:        #F7F6F2;
  --ed-card:      #ffffff;
  --ed-s1:        #FAF9F6;   /* 输入底 */
  --ed-s2:        #F7F5EF;   /* 胶囊底 */
  --ed-s3:        #F5F3EE;   /* hover 面 */
  --ed-s4:        #F1EFE8;   /* 中性 chip / 关闭钮 */
  --ed-border:    #E7E5DE;
  --ed-border-lt: #EFEDE6;
  --ed-dash:      #D8D5CC;
  /* 字 */
  --ed-text:      #201F1B;
  --ed-t2:        #3C3B34;
  --ed-t3:        #6E6C64;
  --ed-w1:        #8B897F;
  --ed-w2:        #A6A49A;
  --ed-w3:        #9B998F;
  /* 品牌蓝(oklch 262°,带 hex 兜底) */
  --ed-brand:       #4056C9; --ed-brand:       oklch(0.52 0.15 262);
  --ed-brand-deep:  #2F44A8; --ed-brand-deep:  oklch(0.44 0.15 262);
  --ed-brand-line:  #CBD4EE; --ed-brand-line:  oklch(0.88 0.04 262);
  --ed-brand-bg:    #F2F4FB; --ed-brand-bg:    oklch(0.97 0.015 262);
  --ed-brand-bg2:   #EDF0FA; --ed-brand-bg2:   oklch(0.96 0.02 262);
  --ed-brand-soft:  #DFE5F7; --ed-brand-soft:  oklch(0.9 0.04 262);
  /* 珊瑚(热度/复刻/常用) */
  --ed-coral:       #C7573F; --ed-coral:       oklch(0.55 0.15 35);
  --ed-coral-text:  #B04A35; --ed-coral-text:  oklch(0.5 0.15 35);
  --ed-coral-bg:    #FCEAE4; --ed-coral-bg:    oklch(0.95 0.04 35);
  /* 成功绿 */
  --ed-green:       #30A566; --ed-green:       oklch(0.6 0.14 150);
  --ed-green-text:  #1F7047; --ed-green-text:  oklch(0.42 0.12 150);
  --ed-green-bg:    #E9F6EE; --ed-green-bg:    oklch(0.95 0.05 150);
  --ed-green-line:  #9FD4B6; --ed-green-line:  oklch(0.7 0.1 150);
  /* 青(链接生视频 / 工具类) */
  --ed-teal-text:   #23787A; --ed-teal-text:   oklch(0.48 0.08 195);
  --ed-teal-bg:     #E3F2F1; --ed-teal-bg:     oklch(0.95 0.03 195);
  /* 积分金 / 企业版 */
  --ed-gold:        #D9A520; --ed-gold:        oklch(0.7 0.13 85);
  --ed-ent-bg:      #FBF0D4; --ed-ent-bg:      oklch(0.95 0.06 85);
  --ed-ent-text:    #8A6A14; --ed-ent-text:    oklch(0.48 0.1 85);
  /* 危险 */
  --ed-danger:      #C0392B; --ed-danger:      oklch(0.55 0.18 25);
  --ed-danger-bg:   #FBEAE7; --ed-danger-bg:   oklch(0.94 0.03 25);
  /* 阴影 */
  --ed-shadow-card: 0 14px 32px rgba(32,31,27,.1);
  --ed-shadow-pop:  0 18px 44px rgba(32,31,27,.13);
  --ed-shadow-hero: 0 22px 54px rgba(32,31,27,.08);
}

html, body {
  margin: 0; padding: 0;
  background: var(--ed-bg); color: var(--ed-text);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
a { color: var(--ed-brand); text-decoration: none; }
a:hover { color: var(--ed-brand-deep); }
input, textarea, button, select { font-family: inherit; }
::placeholder { color: var(--ed-w2); }

@keyframes edDotBlink { 0%,80%,100%{opacity:.25} 40%{opacity:1} }
@keyframes edRiseIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.ed-rise { animation: edRiseIn .22s ease; }

/* ───────── Toast ───────── */
#ed-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: #26251F; color: #fff; font-size: 13px; padding: 11px 18px;
  border-radius: 12px; z-index: 120; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  animation: edRiseIn .2s ease; max-width: 86vw; pointer-events: none;
}

/* ───────── 顶部导航(桌面) ───────── */
.ed-nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ed-card) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ed-border);
}
.ed-nav-in {
  max-width: 1320px; margin: 0 auto; padding: 0 24px; height: 60px;
  display: flex; align-items: center; gap: 2px;
}
.ed-logo { display: flex; align-items: center; gap: 9px; border: none; background: transparent; cursor: pointer; padding: 0; margin-right: 18px; }
.ed-logo-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--ed-brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
  overflow: hidden;
}
.ed-logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-logo-name { font-weight: 800; font-size: 16px; letter-spacing: -.2px; color: var(--ed-text); }
.ed-nav-sep { width: 1px; height: 20px; background: var(--ed-border); margin: 0 10px; flex: none; }
.ed-nav-link {
  flex: none; white-space: nowrap; border: none; background: transparent; cursor: pointer;
  font-size: 13.5px; color: var(--ed-t2); padding: 8px 10px; border-radius: 9px; text-decoration: none;
}
.ed-nav-link:hover { background: var(--ed-s3); color: var(--ed-t2); }
.ed-nav-link.active { color: var(--ed-brand-deep); font-weight: 700; background: var(--ed-brand-bg); }
.ed-nav-cat { position: relative; }
.ed-nav-cat > button {
  flex: none; white-space: nowrap; border: none; background: transparent; cursor: pointer;
  font-size: 13.5px; color: var(--ed-t2); padding: 8px 10px; border-radius: 9px;
}
.ed-nav-cat > button:hover, .ed-nav-cat.open > button { background: var(--ed-s3); }
.ed-nav-cat > button .caret { font-size: 9px; color: var(--ed-w3); margin-left: 4px; }
.ed-nav-drop {
  position: absolute; top: 46px; left: -8px; width: 330px; background: var(--ed-card);
  border: 1px solid var(--ed-border); border-radius: 14px; box-shadow: var(--ed-shadow-pop);
  padding: 8px; animation: edRiseIn .16s ease; display: none;
}
.ed-nav-cat.open .ed-nav-drop { display: block; }
.ed-menu-item {
  display: flex; align-items: center; gap: 11px; width: 100%; border: none; background: transparent;
  border-radius: 10px; padding: 9px 10px; cursor: pointer; text-align: left; text-decoration: none;
}
.ed-menu-item:hover { background: var(--ed-s3); }
.ed-menu-item.locked { cursor: default; opacity: .62; }
.ed-menu-chip {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
  background: var(--ed-s4); color: var(--ed-t3);
}
.ed-menu-chip.c-coral { background: var(--ed-coral-bg); color: var(--ed-coral-text); }
.ed-menu-chip.c-blue  { background: var(--ed-brand-bg2); color: var(--ed-brand-deep); }
.ed-menu-chip.c-green { background: var(--ed-green-bg); color: var(--ed-green-text); }
.ed-menu-chip.c-gold  { background: var(--ed-ent-bg); color: var(--ed-ent-text); }
.ed-menu-chip.c-purple{ background: #F0EBFA; color: #6D4FC1; }
.ed-menu-chip.c-teal  { background: var(--ed-teal-bg); color: var(--ed-teal-text); }
.ed-menu-name { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ed-text); }
.ed-menu-desc { display: block; font-size: 11.5px; color: var(--ed-w1); margin-top: 2px; }
.ed-badge-hot  { font-size: 10px; background: var(--ed-coral-bg); color: var(--ed-coral-text); padding: 1px 6px; border-radius: 5px; font-weight: 600; }
.ed-badge-ent  { font-size: 10px; background: var(--ed-ent-bg); color: var(--ed-ent-text); padding: 1px 6px; border-radius: 5px; font-weight: 700; }
.ed-badge-lock { font-size: 10px; background: var(--ed-s4); color: var(--ed-w3); padding: 1px 6px; border-radius: 5px; }
.ed-credits {
  display: flex; align-items: center; gap: 6px; background: var(--ed-s2);
  border: 1px solid var(--ed-border-lt); border-radius: 999px; padding: 5px 6px 5px 12px;
}
.ed-credits .gem { width: 8px; height: 8px; border-radius: 3px; background: var(--ed-gold); transform: rotate(45deg); }
.ed-credits .num { font-size: 13px; font-weight: 700; color: var(--ed-text); }
.ed-credits .topup {
  border: none; background: var(--ed-brand); color: #fff; font-size: 11px;
  padding: 4px 10px; border-radius: 999px; cursor: pointer; text-decoration: none;
}
.ed-credits .topup:hover { background: var(--ed-brand-deep); color: #fff; }
.ed-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--ed-brand-soft); color: var(--ed-brand-deep);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; margin-left: 10px;
  cursor: pointer; border: none; position: relative;
}
.ed-user-menu {
  position: absolute; right: 0; top: 40px; width: 190px; background: var(--ed-card); border: 1px solid var(--ed-border);
  border-radius: 12px; box-shadow: var(--ed-shadow-pop); padding: 8px; display: none; z-index: 70; text-align: left;
}
.ed-user-menu.open { display: block; }
.ed-user-menu .row { display: block; width: 100%; border: none; background: transparent; text-align: left;
  padding: 8px 10px; border-radius: 8px; font-size: 12.5px; color: var(--ed-t2); cursor: pointer; text-decoration: none; }
.ed-user-menu .row:hover { background: var(--ed-s3); }
.ed-login-cta {
  border: none; background: var(--ed-brand); color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 7px 16px; border-radius: 999px; cursor: pointer; margin-left: 10px; text-decoration: none; white-space: nowrap;
}
.ed-login-cta:hover { background: var(--ed-brand-deep); color: #fff; }

/* ───────── 顶部导航(移动)与抽屉 ───────── */
.ed-nav-m { display: none; }
.ed-drawer { position: fixed; inset: 0; background: var(--ed-card); z-index: 90; overflow: auto; padding: 16px 20px 40px; display: none; }
.ed-drawer.open { display: block; }
.ed-drawer .d-head { display: flex; align-items: center; gap: 10px; height: 44px; }
.ed-drawer .d-close { border: none; background: var(--ed-s4); width: 32px; height: 32px; border-radius: 9px; cursor: pointer; font-size: 15px; color: var(--ed-t3); }
.ed-drawer .d-direct { text-align: left; padding: 14px 2px; border: none; border-bottom: 1px solid var(--ed-border-lt); background: transparent; font-size: 15px; font-weight: 600; color: var(--ed-text); cursor: pointer; display: block; width: 100%; text-decoration: none; }
.ed-drawer .d-cat { border-bottom: 1px solid var(--ed-border-lt); }
.ed-drawer .d-cat > button { width: 100%; display: flex; align-items: center; padding: 15px 2px; border: none; background: transparent; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ed-text); }
.ed-drawer .d-cat .caret { color: var(--ed-w3); font-size: 11px; }
.ed-drawer .d-items { display: none; flex-direction: column; gap: 2px; padding-bottom: 12px; }
.ed-drawer .d-cat.open .d-items { display: flex; }
.ed-drawer .d-credit { margin-top: 18px; display: flex; align-items: center; gap: 10px; background: var(--ed-s2); border-radius: 12px; padding: 12px 14px; }

@media (max-width: 959px) {
  .ed-nav { display: none; }
  .ed-nav-m {
    display: flex; position: sticky; top: 0; z-index: 60;
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ed-border); height: 52px; align-items: center; gap: 10px; padding: 0 16px;
  }
  .ed-nav-m .m-credits { font-size: 12.5px; font-weight: 700; color: var(--ed-brand-deep); background: var(--ed-s2); border-radius: 999px; padding: 5px 11px; }
  .ed-nav-m .m-burger { border: none; background: transparent; cursor: pointer; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
  .ed-nav-m .m-burger span { width: 18px; height: 2px; background: var(--ed-text); border-radius: 2px; }
  .ed-nav-m .m-burger span:last-child { width: 12px; }
}

/* ───────── 通用组件 ───────── */
.ed-wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.ed-card { background: var(--ed-card); border: 1px solid var(--ed-border); border-radius: 13px; }
.ed-btn {
  border: none; background: var(--ed-brand); color: #fff; font-size: 13px; font-weight: 700;
  padding: 9px 18px; border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-block;
}
.ed-btn:hover { background: var(--ed-brand-deep); color: #fff; }
.ed-btn-ghost {
  border: 1px solid var(--ed-border); background: var(--ed-card); color: var(--ed-t3); font-size: 13px;
  padding: 9px 16px; border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-block;
}
.ed-btn-ghost:hover { border-color: #C9C6BC; color: var(--ed-t2); }
.ed-chip {
  border: 1px solid var(--ed-border); background: var(--ed-card); border-radius: 999px; padding: 7px 15px;
  font-size: 12px; color: var(--ed-t3); cursor: pointer;
}
.ed-chip:hover { border-color: #C9C6BC; color: var(--ed-text); }
.ed-chip.on { border: 1.5px solid var(--ed-brand); background: var(--ed-brand-bg); color: var(--ed-brand-deep); font-weight: 700; }
.ed-pop {
  background: var(--ed-card); border: 1px solid var(--ed-border); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(32,31,27,.18); animation: edRiseIn .16s ease;
}
.ed-overlay { position: fixed; inset: 0; background: rgba(24,23,19,.42); z-index: 100; overflow: auto; padding: 24px; }
.ed-modal { max-width: 760px; margin: 6vh auto; background: var(--ed-card); border-radius: 18px; padding: 26px 28px; animation: edRiseIn .22s ease; }
.ed-x { border: none; background: var(--ed-s4); width: 28px; height: 28px; border-radius: 8px; cursor: pointer; color: var(--ed-t3); font-size: 14px; }
.ed-stripes { background: repeating-linear-gradient(45deg, #EDEBE4 0 12px, #F5F3ED 12px 24px); }

/* ══ 场景页壳(原型「子功能场景页」范式:头部行 + 两栏 + 右栏三件套 + 平台chips + 结算条)══ */
.ed-scene { max-width: 1140px; margin: 0 auto; padding: 22px 24px 72px; }
.ed-scene-head { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-bottom: 18px; }
.ed-scene-head .back { border: 1px solid var(--ed-border-lt); background: var(--ed-s1); border-radius: 8px; padding: 5px 11px; font-size: 12px; color: var(--ed-t3); text-decoration: none; cursor: pointer; }
.ed-scene-head .back:hover { border-color: var(--ed-dash); }
.ed-scene-head .glyph { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--ed-brand-bg2); color: var(--ed-brand-deep); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.ed-scene-head .h-title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; color: var(--ed-text); }
.ed-scene-head .h-desc { display: block; font-size: 12px; color: var(--ed-w1); margin-top: 1px; }
.ed-scene-head .freeze { font-size: 11px; color: var(--ed-w2); }
.ed-scene-head .ent-tag { font-size: 10.5px; background: var(--ed-ent-bg); color: var(--ed-ent-text); padding: 2px 7px; border-radius: 5px; font-weight: 700; }
.ed-scene-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .ed-scene-grid { grid-template-columns: 1fr; } }
.ed-scene-form { background: var(--ed-card); border: 1px solid var(--ed-border); border-radius: 16px; padding: 20px 22px 22px; }
.ed-scene-side { display: flex; flex-direction: column; gap: 14px; }
.ed-side-card { background: var(--ed-card); border: 1px solid var(--ed-border); border-radius: 16px; padding: 16px 18px; }
.ed-side-card > .t { font-size: 12.5px; font-weight: 800; color: var(--ed-text); }
.ed-note { display: flex; gap: 8px; font-size: 12px; color: var(--ed-t3); line-height: 1.6; }
.ed-note .dot { color: var(--ed-brand); flex: none; }
.ed-agent-cta { display: block; border: 1px dashed var(--ed-dash); background: transparent; border-radius: 13px; padding: 13px; font-size: 12.5px; color: var(--ed-w1); text-decoration: none; line-height: 1.6; cursor: pointer; }
.ed-agent-cta:hover { border-color: var(--ed-brand-line); color: var(--ed-brand-deep); }
.ed-agent-cta b { color: var(--ed-brand-deep); }
/* 发布平台 chips(空壳:纯前端多选,后端规范注入为后续) */
.ed-plats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ed-plat-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ed-border); background: var(--ed-card); border-radius: 9px; padding: 6px 11px; font-size: 12px; color: var(--ed-t2); cursor: pointer; font-family: inherit; }
.ed-plat-chip:hover { border-color: var(--ed-dash); }
.ed-plat-chip.on { border-color: var(--ed-brand-line); background: var(--ed-brand-bg); color: var(--ed-brand-deep); font-weight: 600; }
.ed-plat-chip .b { flex: none; width: 17px; height: 17px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #fff; }
/* 底部结算条:预估消耗(大号深蓝)+ 行内主按钮 */
.ed-settle { display: flex; align-items: center; gap: 12px; margin-top: 20px; border-top: 1px solid var(--ed-border-lt); padding-top: 16px; }
.ed-settle .est-label { display: block; font-size: 11px; color: var(--ed-w1); }
.ed-settle .est { display: block; font-size: 20px; font-weight: 800; color: var(--ed-brand-deep); }
.ed-settle .est-note { font-size: 11px; color: var(--ed-w2); }
.ed-stripes-dark { background: repeating-linear-gradient(45deg, #2A2E3A 0 12px, #333849 12px 24px); }

/* ═══ 夜间模式(2026-07-27):暖调深灰,与白天同一套 --ed-* 变量,页面零改动即可换肤 ═══
   切换:<html data-theme="dark">(redesign_nav.js 的主题按钮写入 + localStorage 记忆) */
html[data-theme="dark"] {
  /* 面:暖调深灰(不用纯黑,减少对比疲劳) */
  --ed-bg:        #171614;
  --ed-card:      #201F1C;
  --ed-s1:        #26241F;   /* 输入底 */
  --ed-s2:        #2A2823;   /* 胶囊底 */
  --ed-s3:        #2E2C26;   /* hover 面 */
  --ed-s4:        #33302A;   /* 中性 chip */
  --ed-border:    #37342E;
  --ed-border-lt: #2C2A25;
  --ed-dash:      #46433B;
  /* 字:反相,保持层级 */
  --ed-text:      #F2F0EA;
  --ed-t2:        #DCD9D1;
  --ed-t3:        #B3AFA5;
  --ed-w1:        #948F84;
  --ed-w2:        #7A756B;
  --ed-w3:        #857F75;
  /* 品牌蓝:提亮以在深底上可读 */
  --ed-brand:       #7B90E8; --ed-brand:       oklch(0.68 0.13 262);
  --ed-brand-deep:  #9AACF0; --ed-brand-deep:  oklch(0.76 0.11 262);
  --ed-brand-line:  #3B4470; --ed-brand-line:  oklch(0.40 0.08 262);
  --ed-brand-bg:    #22243A; --ed-brand-bg:    oklch(0.27 0.04 262);
  --ed-brand-bg2:   #262943; --ed-brand-bg2:   oklch(0.30 0.05 262);
  --ed-brand-soft:  #333A5E; --ed-brand-soft:  oklch(0.36 0.06 262);
  /* 珊瑚 */
  --ed-coral:       #E08A70; --ed-coral:       oklch(0.72 0.12 35);
  --ed-coral-text:  #E89C82; --ed-coral-text:  oklch(0.76 0.11 35);
  --ed-coral-bg:    #3A2620; --ed-coral-bg:    oklch(0.28 0.05 35);
  /* 成功绿 */
  --ed-green:       #5CC48C; --ed-green:       oklch(0.74 0.13 150);
  --ed-green-text:  #7BD3A2; --ed-green-text:  oklch(0.80 0.12 150);
  --ed-green-bg:    #1E2F26; --ed-green-bg:    oklch(0.28 0.04 150);
  --ed-teal-text:   #7FCBCC; --ed-teal-text:   oklch(0.78 0.07 195);
  --ed-teal-bg:     #1C2E2E; --ed-teal-bg:     oklch(0.28 0.03 195);
  --ed-green-line:  #3C6650; --ed-green-line:  oklch(0.45 0.07 150);
  /* 积分金 / 企业版 */
  --ed-gold:        #E5BC55; --ed-gold:        oklch(0.80 0.11 85);
  --ed-ent-bg:      #35301E; --ed-ent-bg:      oklch(0.30 0.05 85);
  --ed-ent-text:    #E0C377; --ed-ent-text:    oklch(0.82 0.10 85);
  /* 危险 */
  --ed-danger:      #E4705F; --ed-danger:      oklch(0.66 0.16 25);
  --ed-danger-bg:   #3A211D; --ed-danger-bg:   oklch(0.27 0.05 25);
  /* 阴影:深底上用更黑更沉 */
  --ed-shadow-card: 0 14px 32px rgba(0,0,0,.45);
  --ed-shadow-pop:  0 18px 44px rgba(0,0,0,.55);
  --ed-shadow-hero: 0 22px 54px rgba(0,0,0,.40);
  color-scheme: dark;   /* 让原生控件(滚动条/表单)跟随 */
}
/* 夜间:媒体与占位条纹压暗,避免刺眼白块 */
html[data-theme="dark"] .ed-stripes { background: repeating-linear-gradient(45deg,#2B2924 0 12px,#242219 12px 24px); }
html[data-theme="dark"] img:not([src*=".svg"]) { filter: brightness(.94); }
/* 主题切换按钮 */
.ed-theme-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--ed-border);
  background: var(--ed-card); color: var(--ed-t3); cursor: pointer; font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center; flex: none; transition: border-color .15s, color .15s; }
.ed-theme-btn:hover { border-color: var(--ed-brand-line); color: var(--ed-brand-deep); }

/* ═══════════════════════════════════════════════
   邀请有礼顶栏入口 + 帮助与触达弹窗(2026-07-28)
   ═══════════════════════════════════════════════ */
.ed-invite-cta {
    display: inline-flex; align-items: center; gap: 4px; margin-right: 6px;
    padding: 6px 9px; border-radius: 999px; text-decoration: none;
    font-size: 12.5px; font-weight: 700; white-space: nowrap;
    color: var(--ed-ent-text); background: var(--ed-ent-bg);
    border: 1px solid var(--ed-gold); transition: all .15s;
}
.ed-invite-cta:hover { background: var(--ed-gold); color: #fff; border-color: var(--ed-gold); }
.ed-invite-cta .gift { font-size: 13px; }
/* 顶栏在 ~1300px 以下会被一级菜单挤爆:先收成纯图标胶囊(仍是金色,依旧显眼),
   宽屏(≥1360)才展示完整「邀请有礼」文案。移动端由抽屉里的入口承接。 */
@media (max-width: 1370px) {
    .ed-invite-cta { padding: 6px 9px; margin-right: 6px; font-size: 0; }
    .ed-invite-cta .gift { font-size: 15px; }
}

.ed-user-menu .row-sep { height: 1px; margin: 5px 0; background: var(--ed-border-lt); }
.ed-user-menu .row-dot {
    display: none; width: 6px; height: 6px; border-radius: 50%;
    background: var(--ed-danger); margin-left: 6px; vertical-align: middle;
}

.ed-modal-mask {
    position: fixed; inset: 0; z-index: 3000; display: flex;
    align-items: center; justify-content: center; padding: 20px;
    background: rgba(20, 19, 16, .45); backdrop-filter: blur(2px);
}
.ed-modal {
    position: relative; width: 100%; max-width: 360px; max-height: 86vh; overflow: auto;
    background: var(--ed-card); border: 1px solid var(--ed-border);
    border-radius: 18px; padding: 26px 24px 22px; text-align: center;
    box-shadow: var(--ed-shadow-hero);
}
.ed-modal.wide { max-width: 760px; text-align: left; padding: 22px; }
.ed-modal-x {
    position: absolute; right: 12px; top: 10px; width: 28px; height: 28px;
    border: none; background: transparent; color: var(--ed-w1);
    font-size: 20px; line-height: 1; cursor: pointer; border-radius: 8px;
}
.ed-modal-x:hover { background: var(--ed-s2); color: var(--ed-text); }
.ed-modal-t { font-size: 16px; font-weight: 800; color: var(--ed-text); }
.ed-modal-d { font-size: 12.5px; color: var(--ed-t3); margin-top: 8px; line-height: 1.7; }
.ed-modal-hint { font-size: 11.5px; color: var(--ed-w1); margin-top: 12px; }
.ed-modal-empty { font-size: 13px; color: var(--ed-w2); padding: 36px 0; text-align: center; }
.ed-qr {
    display: block; width: 210px; height: 210px; margin: 16px auto 0;
    border-radius: 12px; border: 1px solid var(--ed-border); background: #fff; padding: 6px;
    object-fit: contain;
}
.ed-qr-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: var(--ed-w2); background: var(--ed-s1);
}
.ed-qr-empty span { font-size: 11.5px; font-weight: 400; margin-top: 6px; }

.ed-msg-wrap { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 16px; margin-top: 14px; }
@media (max-width: 640px) { .ed-msg-wrap { grid-template-columns: 1fr; } }
.ed-msg-list { max-height: 58vh; overflow: auto; border-right: 1px solid var(--ed-border-lt); padding-right: 8px; }
.ed-msg-row {
    display: block; width: 100%; text-align: left; border: none; cursor: pointer;
    background: transparent; padding: 9px 10px; border-radius: 10px; font-family: inherit;
}
.ed-msg-row:hover { background: var(--ed-s2); }
.ed-msg-row.on { background: var(--ed-brand-bg); }
.ed-msg-row .t { display: block; font-size: 12.5px; font-weight: 600; color: var(--ed-t2); line-height: 1.5; }
.ed-msg-row .t em { font-style: normal; color: var(--ed-brand-deep); margin-right: 4px; }
.ed-msg-row .d { display: block; font-size: 11px; color: var(--ed-w2); margin-top: 3px; }
.ed-msg-body { max-height: 58vh; overflow: auto; }
.ed-msg-body .mb-h {
    font-size: 14.5px; font-weight: 800; color: var(--ed-text); line-height: 1.5;
    display: flex; align-items: baseline; gap: 10px; justify-content: space-between;
}
.ed-msg-body .mb-h span { font-size: 11.5px; font-weight: 400; color: var(--ed-w2); white-space: nowrap; }
.ed-msg-body .mb-c { font-size: 13px; color: var(--ed-t2); line-height: 1.85; margin-top: 12px; }

/* 未开通企业版:菜单整组置灰,可展开查看能力,点击引导联系客服(2026-07-28) */
.ed-nav-cat.ent-locked > button,
.d-cat.ent-locked > button { color: var(--ed-w2); }
.ed-nav-cat.ent-locked .ed-menu-item,
.d-cat.ent-locked .d-item { opacity: .55; }
.ed-nav-cat.ent-locked .ed-menu-item:hover,
.d-cat.ent-locked .d-item:hover { opacity: .78; }
.ed-nav-cat.ent-locked .ed-menu-chip,
.d-cat.ent-locked .d-chip { filter: grayscale(.75); }

/* 人像调节词条 chips(plan.md §4A.1,2026-07-28) */
.pt-chip {
    border: 1px solid var(--ed-border); background: var(--ed-card); color: var(--ed-t2);
    border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer;
    font-family: inherit; transition: all .12s; white-space: nowrap;
}
.pt-chip:hover { border-color: var(--ed-brand); color: var(--ed-brand-deep); }
.pt-chip.on {
    background: var(--ed-brand-bg); border-color: var(--ed-brand);
    color: var(--ed-brand-deep); font-weight: 700;
}
