/* ============================================================
   ui-v26.css — UI v26 设计系统（员工C：创建页与功能页）
   2026-08-19
   ------------------------------------------------------------
   契约说明：本文件与员工A正在重写的 style.css 共用同一套
   :root 变量（--bg0/--bg1/--bg2/--bg3/--line/--text0/--text1/
   --text2/--gold/--gold2/--grad-gold/--grad-main/--danger/--ok/
   --r-lg/--r-md/--r-sm/--shadow-card/--font）与组件类名
   （.app-header .btn .btn-primary .btn-ghost .card .chip .avatar
   .badge .input .field .tabs .tab-item .empty .toast
   .section-title .divider）。
   各功能页在头部样式表之后加载本文件，确保新视觉优先。
   员工A合并 style.css 后，如组件样式齐全可移除本文件引用。
   ============================================================ */

:root {
  --bg0:#0b0d12; --bg1:#11141b; --bg2:#1a1f2a; --bg3:#232936;
  --line:rgba(255,255,255,.08);
  --text0:#f2f4f8; --text1:#a7aebc; --text2:#6b7384;
  --gold:#d4af37; --gold2:#f5d78e;
  --grad-gold:linear-gradient(135deg,#f5d78e,#d4af37);
  --grad-main:linear-gradient(135deg,#8b5cf6,#d4af37);
  --danger:#e5484d; --ok:#46a758;
  --r-lg:20px; --r-md:14px; --r-sm:10px;
  --shadow-card:0 8px 32px rgba(0,0,0,.35);
  --font:-apple-system,"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;
  --gold-soft:rgba(212,175,55,.12);
  --gold-line:rgba(212,175,55,.35);
}

/* 表单控件保持可选中文本（全局 user-select:none 会波及输入框） */
body, button, input, textarea, select {
  font-family: var(--font);
}
input, textarea {
  -webkit-user-select: text; user-select: text;
}

/* ============================================================
   统一顶栏 .app-header（所有页面同一片段）
   ============================================================ */
.app-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(11,13,18,.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.app-header-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  padding: 0 18px; height: 58px;
}
.app-logo {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 17px; font-weight: 800; letter-spacing: .5px;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none; white-space: nowrap;
  flex-shrink: 0;
}
.app-nav {
  display: flex; align-items: center; gap: 4px;
  margin: 0 auto;
}
.app-nav a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--text1);
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
}
.app-nav a:hover { color: var(--text0); background: rgba(255,255,255,.05); }
.app-nav a.is-active {
  color: #0b0d12; font-weight: 700;
  background: var(--grad-gold);
  box-shadow: 0 4px 16px rgba(212,175,55,.35);
}
.app-nav a.app-nav-create {
  border-color: var(--gold-line); color: var(--gold2);
  background: var(--gold-soft);
}
.app-nav a.app-nav-create:hover { box-shadow: 0 0 14px rgba(212,175,55,.3); }
.app-nav a.app-nav-create.is-active {
  background: var(--grad-gold); color: #0b0d12; border-color: transparent;
}
/* 右侧用户区 */
.app-user { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.app-user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  text-decoration: none; transition: border-color .2s, background .2s;
}
.app-user-chip:hover { border-color: var(--gold-line); background: rgba(212,175,55,.08); }
.app-user-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #0b0d12;
  background: var(--grad-gold);
  background-size: cover; background-position: center;
}
.app-user-name {
  font-size: 13px; font-weight: 600; color: var(--text0);
  max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-login-btn { text-decoration: none; }
.app-header .icon-btn-glass { width: 34px; height: 34px; }
.app-header .icon-btn-glass:hover { border-color: var(--gold-line); color: var(--gold2); }
[data-theme="light"] .app-header { background: rgba(255,255,255,.85); }
[data-theme="light"] .app-nav a:hover { background: rgba(0,0,0,.04); }
[data-theme="light"] .app-user-chip { background: rgba(0,0,0,.04); }

/* ============================================================
   基础组件
   ============================================================ */
.card {
  background: linear-gradient(160deg, var(--bg2), var(--bg1));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.card + .card { margin-top: 18px; }
.card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--text0);
  margin: 0 0 16px;
}
.card-title::before {
  content: ''; width: 4px; height: 15px; border-radius: 2px;
  background: var(--grad-gold); flex-shrink: 0;
}
.card-sub { font-size: 12px; color: var(--text2); margin: -10px 0 14px; line-height: 1.7; }

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field > label, .field-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text1); margin-bottom: 8px; letter-spacing: .3px;
}
.field .req { color: var(--gold); }

.input, textarea.input, input.input {
  width: 100%; box-sizing: border-box;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: 14px; color: var(--text0); line-height: 1.7;
  outline: none; font-family: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder, textarea.input::placeholder { color: var(--text2); }
.input:focus, textarea.input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.12), 0 0 18px rgba(212,175,55,.14);
  background: var(--bg2);
}
textarea.input { resize: vertical; min-height: 84px; }
.input.input-sm { padding: 9px 12px; font-size: 13px; }
[data-theme="light"] .input { background: #fff; color: #1a1f2a; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: var(--text1);
  background: transparent; border: 1px solid var(--line);
  cursor: pointer; user-select: none;
  transition: all .2s;
  font-family: inherit; text-decoration: none;
}
.btn:hover { border-color: var(--gold-line); color: var(--text0); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--grad-gold); color: #0b0d12;
  border: none; font-weight: 700;
  box-shadow: 0 6px 20px rgba(212,175,55,.28);
}
.btn-primary:hover { filter: brightness(1.08); color: #0b0d12; box-shadow: 0 8px 26px rgba(212,175,55,.4); }
.btn-ghost {
  background: rgba(212,175,55,.08);
  border: 1px solid var(--gold-line);
  color: var(--gold2);
}
.btn-ghost:hover { background: rgba(212,175,55,.16); color: var(--gold2); box-shadow: 0 0 14px rgba(212,175,55,.22); }
.btn-danger {
  background: rgba(229,72,77,.08); border: 1px solid rgba(229,72,77,.35);
  color: #f08a8e;
}
.btn-danger:hover { background: rgba(229,72,77,.16); color: #ffb3b6; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: var(--r-md); width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  color: var(--gold2); font-size: 12px; font-weight: 600;
}
.chip-ghost { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--text1); }
.chip-ghost:hover { border-color: var(--gold-line); color: var(--gold2); }
.chip .chip-x { cursor: pointer; opacity: .7; font-style: normal; }
.chip .chip-x:hover { opacity: 1; }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  background: var(--bg3); border: 2px solid var(--line); flex-shrink: 0;
}

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--bg3); color: var(--text1);
  font-size: 11px; font-weight: 600;
}
.badge-gold { background: var(--gold-soft); color: var(--gold2); border: 1px solid var(--gold-line); }
.badge-ok { background: rgba(70,167,88,.12); color: #6fd68a; border: 1px solid rgba(70,167,88,.3); }
.badge-danger { background: rgba(229,72,77,.1); color: #f08a8e; border: 1px solid rgba(229,72,77,.3); }

.tabs {
  display: flex; gap: 6px; padding: 4px;
  background: var(--bg1); border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.tab-item {
  flex: 1; padding: 9px 0; text-align: center;
  font-size: 13.5px; font-weight: 600; color: var(--text1);
  border: none; background: transparent; border-radius: 10px;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.tab-item:hover { color: var(--text0); }
.tab-item.active {
  background: var(--grad-gold); color: #0b0d12;
  box-shadow: 0 4px 14px rgba(212,175,55,.3);
}

.empty {
  text-align: center; padding: 44px 20px;
  color: var(--text2); font-size: 13.5px; line-height: 1.9;
}
.empty .empty-icon { font-size: 42px; display: block; margin-bottom: 10px; }

.section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; color: var(--text0);
  margin: 0 0 18px; letter-spacing: .5px;
}
.section-title::before {
  content: ''; width: 4px; height: 18px; border-radius: 2px;
  background: var(--grad-gold);
}
.section-title .section-title-sub {
  font-size: 12px; font-weight: 400; color: var(--text2); margin-left: 2px;
}

.divider { height: 1px; background: var(--line); border: none; margin: 14px 0; }

/* Toast（与 common.js showToast 的 .toast 类配套） */
.toast {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 9999; max-width: 88vw;
  padding: 11px 20px; border-radius: 12px;
  background: var(--bg2); border: 1px solid var(--gold-line);
  color: var(--text0); font-size: 13.5px; font-weight: 500;
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 20px rgba(212,175,55,.12);
  animation: toastIn .25s ease;
}
.toast.success { border-color: rgba(70,167,88,.5); }
.toast.error { border-color: rgba(229,72,77,.5); }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, -16px) scale(.95); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* ============================================================
   创建页 create.html —— 两栏布局
   ============================================================ */
.create-page {
  max-width: 1180px; margin: 0 auto;
  padding: 22px 18px 90px;
}
.create-head { text-align: center; margin-bottom: 22px; }
.create-head .lp-page-title {
  font-size: 26px; font-weight: 800; margin: 0 0 8px; color: var(--text0);
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.create-head p { font-size: 13px; color: var(--text1); line-height: 1.8; margin: 0 0 14px; }

.create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}
.create-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.create-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 74px; }
.create-side .card { padding: 18px; }

/* 基础信息：头像上传 + 实时预览 */
.avatar-upload-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar-preview-wrap { position: relative; flex-shrink: 0; }
#avatar-preview {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold-line);
  box-shadow: 0 0 22px rgba(212,175,55,.25);
  background: var(--bg3);
}
#avatar-preview.hidden { display: none; }
.live-preview {
  margin-top: 14px; padding: 10px 14px;
  border: 1px dashed var(--gold-line); border-radius: var(--r-sm);
  background: rgba(212,175,55,.05);
  font-size: 12px; color: var(--text1); line-height: 1.8;
}
.live-preview b { color: var(--gold2); font-weight: 600; }
.live-preview .lp-preview-status-text { color: var(--text2); display: block; font-size: 11px; }

/* 性别选择 */
#gender-group { display: flex; gap: 10px; }
.gender-option {
  flex: 1; padding: 12px 4px; border-radius: var(--r-sm);
  font-size: 13.5px; color: var(--text1);
  background: var(--bg1); border: 1px solid var(--line);
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.gender-option:hover { border-color: var(--gold-line); color: var(--text0); }
.gender-option.gender-active {
  background: rgba(212,175,55,.2) !important;
  border-color: var(--gold) !important;
  color: #fff !important;
  box-shadow: 0 0 14px rgba(212,175,55,.3);
}

/* 标签选择 */
.tag-opt-btn {
  display: inline-flex; padding: 6px 13px; border-radius: 999px;
  font-size: 12.5px; color: var(--text1);
  background: var(--bg1); border: 1px solid var(--line);
  cursor: pointer; transition: all .15s; user-select: none;
}
.tag-opt-btn:hover { border-color: var(--gold-line); color: var(--gold2); background: var(--gold-soft); }
.tag-selected {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--gold2);
  background: var(--gold-soft); border: 1px solid var(--gold-line);
}
.tag-selected span { cursor: pointer; opacity: .7; }
.tag-selected span:hover { opacity: 1; }

/* 侧栏：编辑模式提示卡 */
#edit-hint-card { display: none; }
body.edit-mode #edit-hint-card { display: block; }
.edit-mode-hint {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-sm);
  background: rgba(139,92,246,.08); border: 1px solid rgba(139,92,246,.3);
  font-size: 12.5px; line-height: 1.7; color: var(--text1);
}
.edit-mode-hint b { color: var(--gold2); }

/* 侧栏：保存卡 */
.save-card-actions { display: flex; flex-direction: column; gap: 10px; }

/* 世界书条目 */
.world-info-item {
  border: 1px solid rgba(212,175,55,.18); border-radius: var(--r-md);
  padding: 10px 12px; margin-bottom: 8px;
  background: var(--bg1);
}
.world-info-item .wi-keyword { font-weight: 700; font-size: 13px; color: var(--gold2); }
.world-info-item .wi-content {
  margin: 6px 0 0; font-size: 12px; color: var(--text2);
  line-height: 1.6; word-break: break-word;
}
.world-info-item input[type=checkbox] { accent-color: var(--gold); }
.world-info-item label { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text2); cursor: pointer; }

/* AI扩写按钮（世界书等旧逻辑生成的按钮也走此视觉） */
.ai-expand-btn {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: auto; flex-shrink: 0;
  font-size: 12px; font-weight: 600;
  padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold2); cursor: pointer;
  transition: all .2s; user-select: none; font-family: inherit;
}
.ai-expand-btn:hover { border-color: var(--gold2); color: var(--gold2); box-shadow: 0 0 12px rgba(212,175,55,.35); }
.ai-expand-btn:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.ai-expand-btn.ghost { border-color: var(--line); color: var(--text2); background: transparent; }
.ai-expand-btn.ghost:hover { color: var(--text0); border-color: var(--gold-line); box-shadow: none; }
.ai-expand-btn.danger { border-color: rgba(229,72,77,.4); color: #f08a8e; background: rgba(229,72,77,.06); }
.ai-expand-btn.danger:hover { border-color: rgba(229,72,77,.6); color: #ffb3b6; }

/* 帮助气泡（深色实底金边，兜底不依赖旧CSS） */
.help-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%;
  font-size: 11px; font-weight: 700; cursor: pointer;
  color: var(--gold2); background: var(--gold-soft);
  border: 1px solid var(--gold-line); line-height: 1;
  transition: all .2s; user-select: none;
}
.help-icon:hover { background: rgba(212,175,55,.22); box-shadow: 0 0 8px rgba(212,175,55,.3); }
.help-bubble {
  position: absolute; left: 50%; bottom: calc(100% + 8px);
  transform: translateX(-50%); min-width: 280px; max-width: 360px;
  background: #14120e; border: 1px solid var(--gold-line);
  border-radius: 12px; padding: 12px 16px;
  font-size: 12px; color: #f3f4f6; line-height: 1.8;
  z-index: 99999; box-shadow: 0 10px 40px rgba(0,0,0,.6);
}

/* ============================================================
   功能页通用
   ============================================================ */
.page-wrap { max-width: 760px; margin: 0 auto; padding: 22px 16px 90px; }
.page-wrap-wide { max-width: 1180px; margin: 0 auto; padding: 22px 16px 90px; }
.page-title-row { margin-bottom: 20px; }

/* ============================================================
   动效层（总经理 2026-08-19 加码：纯 CSS，动画仅用 transform/opacity，
   不引入库；prefers-reduced-motion 时全部禁用）
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {

  /* ---- 1. 创建页表单卡片入场：slideUp 渐显（侧栏错峰） ---- */
  .create-main .card, .create-side .card {
    animation: v26CardIn .5s cubic-bezier(.16,1,.3,1) backwards;
  }
  .create-main .card:nth-child(2) { animation-delay: .06s; }
  .create-main .card:nth-child(3) { animation-delay: .12s; }
  .create-main .card:nth-child(4) { animation-delay: .18s; }
  .create-side .card:nth-child(2) { animation-delay: .08s; }
  .create-side .card:nth-child(3) { animation-delay: .16s; }
  .create-side .card:nth-child(4) { animation-delay: .24s; }
  @keyframes v26CardIn { from { opacity: 0; transform: translateY(16px); } }

  /* ---- 1b. 字段聚焦：label 上浮 + 金色 ---- */
  .field > label, .field-label { transition: color .2s, transform .2s; }
  .field:focus-within > label,
  .field:focus-within > .field-label { color: var(--gold2); transform: translateY(-2px); }

  /* ---- 2. 表单分组卡片：hover 上浮 + 描边光效 ---- */
  .card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
  .card:hover {
    transform: translateY(-3px);
    border-color: rgba(212,175,55,.3);
    box-shadow: 0 16px 44px rgba(0,0,0,.45), 0 0 26px rgba(212,175,55,.12);
  }

  /* ---- 3. 头像预览 hover 放大；上传按钮渐变流光 ---- */
  #avatar-preview { transition: transform .25s ease; }
  .avatar-preview-wrap:hover #avatar-preview { transform: scale(1.06); }
  #avatar-file::file-selector-button {
    background: var(--grad-gold);
    color: #0b0d12; border: none; border-radius: 10px;
    padding: 8px 16px; font-size: 13px; font-weight: 600;
    cursor: pointer; margin-right: 12px;
    animation: v26UploadPulse 2.4s ease-in-out infinite;
  }
  #avatar-file:hover::file-selector-button { opacity: .85; }
  @keyframes v26UploadPulse { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }

  /* ---- 4. 保存/主按钮：渐变流光 + 点击 ripple ---- */
  .btn-primary { position: relative; overflow: hidden; }
  .btn-primary::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 55%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.4), transparent);
    transform: translateX(-180%) skewX(-20deg);
    animation: v26Shine 3.2s ease-in-out infinite;
    pointer-events: none;
  }
  .btn-primary:active::before {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: 12px; height: 12px; margin: -6px 0 0 -6px;
    border-radius: 50%; background: rgba(255,255,255,.45);
    animation: v26Ripple .5s ease-out forwards;
    pointer-events: none;
  }
  @keyframes v26Shine { 0%, 58% { transform: translateX(-180%) skewX(-20deg); } 88%, 100% { transform: translateX(330%) skewX(-20deg); } }
  @keyframes v26Ripple { from { transform: scale(0); opacity: .6; } to { transform: scale(30); opacity: 0; } }

  /* ---- 5. 功能页：主体 fade-in（仅 opacity，避免 transform 影响 fixed 弹层） ---- */
  .lp-profile-page, .token-page, .mom-feed, .chats-wrap, .pm-shell, .guide-page {
    animation: v26PageIn .5s ease backwards;
  }
  @keyframes v26PageIn { from { opacity: 0; } }

  /* ---- 5b. 卡片列表入场 stagger ---- */
  .mom-feed > *, .lp-wallet-grid > *, .cv-wrap > *, #history-list > * {
    animation: v26ItemIn .4s cubic-bezier(.16,1,.3,1) backwards;
  }
  .mom-feed > *:nth-child(2), .lp-wallet-grid > *:nth-child(2), .cv-wrap > *:nth-child(2), #history-list > *:nth-child(2) { animation-delay: .05s; }
  .mom-feed > *:nth-child(3), .lp-wallet-grid > *:nth-child(3), .cv-wrap > *:nth-child(3), #history-list > *:nth-child(3) { animation-delay: .1s; }
  .mom-feed > *:nth-child(4), .lp-wallet-grid > *:nth-child(4), #history-list > *:nth-child(4) { animation-delay: .15s; }
  .mom-feed > *:nth-child(5), #history-list > *:nth-child(5) { animation-delay: .2s; }
  .mom-feed > *:nth-child(6), #history-list > *:nth-child(6) { animation-delay: .25s; }
  @keyframes v26ItemIn { from { opacity: 0; transform: translateY(10px); } }

  /* ---- 5c. 数值弹跳（JS 触发 .bump 类） ---- */
  .bump { animation: v26Bump .45s cubic-bezier(.34,1.56,.64,1); }
  @keyframes v26Bump { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }

  /* ---- 6. 顶栏：导航 hover 渐变下划线展开；登录按钮流光 ---- */
  .app-nav a { position: relative; }
  .app-nav a::after {
    content: ''; position: absolute; left: 50%; bottom: 4px;
    width: 46%; height: 2px; border-radius: 1px;
    background: var(--grad-gold);
    transform: translateX(-50%) scaleX(0); opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
    pointer-events: none;
  }
  .app-nav a:hover::after { transform: translateX(-50%) scaleX(1); opacity: 1; }
  .app-login-btn { position: relative; overflow: hidden; }
  .app-login-btn::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 60%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.4), transparent);
    transform: translateX(-170%) skewX(-20deg);
    animation: v26Shine 3.4s ease-in-out infinite;
    pointer-events: none;
  }

  /* ---- AI 扩写按钮：加载中渐变旋转（保留原 disabled 文案） ---- */
  .ai-expand-btn:disabled::before {
    content: ''; display: inline-block; width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(212,175,55,.22);
    border-top-color: var(--gold);
    flex-shrink: 0;
    animation: v26Spin .8s linear infinite;
  }
  @keyframes v26Spin { to { transform: rotate(360deg); } }
}

/* 无障碍：用户偏好减少动效时全部禁用（瞬时完成，不影响布局） */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .create-layout { grid-template-columns: 1fr; }
  .create-side { position: static; order: 2; }
  .create-main { order: 1; }
}
@media (max-width: 768px) {
  .app-header-inner { height: 52px; padding: 0 12px; gap: 10px; }
  .app-nav { display: none; } /* 移动端用底部导航 */
  .app-logo { font-size: 15px; }
  .app-user-name { display: none; }
  .app-user-chip { padding: 4px; }
  .create-page { padding: 16px 12px 120px; }
  .create-head .lp-page-title { font-size: 22px; }
  .card { padding: 16px; }
  #gender-group { flex-wrap: wrap; }
  .gender-option { min-width: 84px; }
}

/* ===== 审核1修复：创建页两栏容器 max-width（防全宽拉伸）===== */
.create-page-inner { max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px; }

/* ============================================================
   ---------- 刘海屏/打孔屏/全面屏 安全区适配（GM 2026-08-20） ----------
   全机型统一：iPhone 灵动岛/刘海 + Android 打孔屏 + 底部手势横条。
   前提：各页面 <meta viewport> 均已带 viewport-fit=cover（本次已补齐）。
   @supports 兜底：不支持 env() 的旧浏览器自动跳过。
   ============================================================ */
@supports (padding-top: env(safe-area-inset-top)) {
  /* 功能页吸顶顶栏（钱包/我的/创造/动态/会话/指南）：header 整体拔高 + inner 保持原高，安全区作 padding-top */
  .app-header {
    height: calc(var(--header-h, 58px) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
  }
  .app-header-inner { height: var(--header-h, 58px); }
}
