/* P0 主路径 · iPhone 15 Pro Max + 高级感配色（图2-4） */
:root {
  /* 图4 雀黛 + 图2 深澜 */
  --lux-deep: #000026;
  --lux-peacock: #153c46;
  /* 图4 琥黄 + 图2 爱马仕橙 + 图3 雅黄 */
  --lux-gold: #f9b400;
  --lux-orange: #ff770f;
  --lux-yellow: #ffd217;
  /* 图3 克莱因蓝 */
  --lux-blue: #002e9f;
  --lux-surface: #0c1f28;
  --lux-card: rgba(255, 255, 255, 0.06);
  --lux-card-border: rgba(249, 180, 0, 0.18);
  --lux-text: #f5f7fa;
  /* 次级/辅助文案：提高对比，避免 opacity 叠深色导致眼疲劳 */
  --lux-label: rgba(245, 247, 250, 0.78);
  --lux-muted: rgba(220, 228, 238, 0.62);
  --lux-muted-tertiary: rgba(220, 228, 238, 0.48);
  --lux-danger: #ff6b6b;
  /* iOS 字号阶梯（pt → px，原型 1:1） */
  --ios-large-title: 28px;
  --ios-title2: 22px;
  --ios-title3: 20px;
  --ios-headline: 17px;
  --ios-body: 17px;
  --ios-callout: 16px;
  --ios-subhead: 15px;
  --ios-footnote: 13px;
  --ios-caption1: 12px;
  --ios-caption2: 11px;
  --ios-lh-tight: 1.25;
  --ios-lh-body: 1.47;
  --ios-lh-relaxed: 1.55;
  --iphone-w: 430px;
  --iphone-h: 932px;
  --frame-pad: 3px;
  --frame-outer-r: 52px;
  --frame-inner-r: 48px;
  --safe-top: 59px;
  --safe-bottom: 12px;
  --tabbar-h: 62px;
}

* { box-sizing: border-box; }

body.proto-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  background: #ececef;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* index.html iframe 嵌入预览 */
html.proto-embed body.proto-body {
  min-height: 0;
  background: #101010;
  overflow: hidden;
}
html.proto-embed .proto-tabs {
  display: none !important;
}
html.proto-embed .proto-page-layout {
  margin: 0;
  padding: 0;
  max-width: none;
  justify-content: flex-start;
}
html.proto-embed .proto-stage {
  margin: 0;
}
html.proto-embed .iphone-pro-max {
  margin: 0 auto;
  padding: var(--frame-pad);
  width: calc(var(--iphone-w) + var(--frame-pad) * 2);
  border-radius: var(--frame-outer-r);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}
html.proto-embed .iphone-screen.screen-with-tab {
  max-height: var(--iphone-h);
}

/* 评审用状态切换（设备外） */
.proto-tabs {
  max-width: calc(var(--iphone-w) + var(--frame-pad) * 2);
  margin: 12px auto 0;
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  overflow-x: auto;
  background: rgba(0, 0, 38, 0.85);
  border: 1px solid rgba(249, 180, 0, 0.2);
  border-radius: 14px;
  backdrop-filter: blur(12px);
}
.proto-tabs .state-tab {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--lux-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.proto-tabs .state-tab.active {
  background: linear-gradient(135deg, var(--lux-gold), var(--lux-orange));
  color: var(--lux-deep);
  font-weight: 600;
  border-color: transparent;
}

/* iPhone 15 Pro Max · 细边框模拟器（对齐图二风格 · 430×932） */
.iphone-pro-max {
  position: relative;
  width: calc(var(--iphone-w) + var(--frame-pad) * 2);
  margin: 20px auto 28px;
  padding: var(--frame-pad);
  background: #101010;
  border-radius: var(--frame-outer-r);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.85),
    0 0 0 2px rgba(255, 255, 255, 0.06),
    0 20px 50px -12px rgba(0, 0, 0, 0.35);
}
.iphone-pro-max::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 120px;
  width: 3px;
  height: 56px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, #3a3a3c, #1c1c1e);
  box-shadow: -1px 0 0 rgba(255, 255, 255, 0.04);
}
.iphone-pro-max::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 168px;
  width: 3px;
  height: 72px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #3a3a3c, #1c1c1e);
}

.iphone-screen {
  width: var(--iphone-w);
  min-height: var(--iphone-h);
  max-height: var(--iphone-h);
  overflow-x: hidden;
  border-radius: var(--frame-inner-r);
  background: linear-gradient(180deg, var(--lux-deep) 0%, var(--lux-peacock) 42%, #0f2830 100%);
  position: relative;
  color: var(--lux-text);
  isolation: isolate;
  /* Apple：SF Pro Text + 苹方，正文 17pt，舒适行高 */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: var(--ios-body);
  line-height: var(--ios-lh-body);
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* 覆盖 Tailwind 过粗/过小字号（全站原型统一） */
.iphone-screen .font-black,
.iphone-screen .font-bold {
  font-weight: 600 !important;
}
.iphone-screen .font-semibold {
  font-weight: 500 !important;
}
.iphone-screen .font-medium {
  font-weight: 500 !important;
}
.iphone-screen .tracking-widest,
.iphone-screen .tracking-tight {
  letter-spacing: -0.02em !important;
}
.iphone-screen .text-\[10px\] {
  font-size: var(--ios-caption1) !important;
  line-height: 16px !important;
}
.iphone-screen .text-xs {
  font-size: var(--ios-footnote) !important;
  line-height: 18px !important;
}
.iphone-screen .text-sm {
  font-size: var(--ios-subhead) !important;
  line-height: 20px !important;
}
.iphone-screen .text-base {
  font-size: var(--ios-body) !important;
  line-height: 24px !important;
}
.iphone-screen .text-lg {
  font-size: var(--ios-title3) !important;
  line-height: 26px !important;
  font-weight: 600 !important;
}
.iphone-screen .text-xl {
  font-size: var(--ios-title2) !important;
  line-height: 28px !important;
  font-weight: 600 !important;
}
.iphone-screen .text-2xl {
  font-size: var(--ios-large-title) !important;
  line-height: 34px !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
}
/* 用固定色替代低 opacity，保证深色背景可读性 */
.iphone-screen [class*="opacity-80"],
.iphone-screen [class*="opacity-75"],
.iphone-screen [class*="opacity-70"] {
  opacity: 1 !important;
  color: var(--lux-label) !important;
}
.iphone-screen [class*="opacity-60"],
.iphone-screen [class*="opacity-50"] {
  opacity: 1 !important;
  color: var(--lux-muted) !important;
}
.iphone-screen [class*="opacity-40"],
.iphone-screen [class*="opacity-30"] {
  opacity: 1 !important;
  color: var(--lux-muted-tertiary) !important;
}
.iphone-screen h1,
.iphone-screen h2,
.iphone-screen h3,
.iphone-screen h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: var(--ios-lh-tight);
}
.iphone-screen p {
  line-height: var(--ios-lh-body);
}

/* 有 Tab 的壳层页：内容区滚动 + Tab 贴底（消除底部大空隙） */
.iphone-screen.screen-with-tab {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.iphone-screen.screen-with-tab .screen-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.iphone-screen.screen-with-tab .screen-body::-webkit-scrollbar { width: 0; }

.iphone-screen:not(.screen-with-tab):not(.immersive-flow):not(.chat-flow) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}
.iphone-screen:not(.screen-with-tab):not(.immersive-flow):not(.chat-flow) > .status-bar,
.iphone-screen:not(.screen-with-tab):not(.immersive-flow):not(.chat-flow) > .nav-bar {
  flex-shrink: 0;
}
.iphone-screen:not(.screen-with-tab):not(.immersive-flow):not(.chat-flow) > .state-panel.active {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.iphone-screen:not(.screen-with-tab):not(.immersive-flow):not(.chat-flow) > .state-panel.active::-webkit-scrollbar {
  width: 0;
}
.iphone-screen:not(.screen-with-tab):not(.immersive-flow):not(.chat-flow) > .screen-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.iphone-screen:not(.screen-with-tab):not(.immersive-flow):not(.chat-flow) > .screen-content::-webkit-scrollbar {
  width: 0;
}

/* 无 Tab 页：Home 条占底行（内容区上方滚动，不压在列表中间） */
.iphone-screen:not(.screen-with-tab):not(.immersive-flow):not(.chat-flow) > .home-indicator {
  position: static;
  flex-shrink: 0;
  align-self: center;
  width: 134px;
  height: 5px;
  margin: 6px auto 10px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  z-index: 60;
  pointer-events: none;
  transform: none;
  left: auto;
  bottom: auto;
}

/* 沉浸 / 对话页：Home 条同样贴 flex 底行（勿 absolute 叠内容） */
.iphone-screen.immersive-flow > .home-indicator,
.iphone-screen.chat-flow > .home-indicator {
  position: static;
  flex-shrink: 0;
  align-self: center;
  width: 134px;
  height: 5px;
  margin: 6px auto 10px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  z-index: 60;
  pointer-events: none;
  transform: none;
}

/* 主路径沉浸页：顶栏固定 + 中间滚动 + 底栏贴底（F4/JD 等） */
.iphone-screen.immersive-flow {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}
.iphone-screen.immersive-flow > .nav-bar {
  flex-shrink: 0;
}
.iphone-screen.immersive-flow > .screen-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.iphone-screen.immersive-flow > .screen-scroll::-webkit-scrollbar {
  width: 0;
}
.iphone-screen.immersive-flow > .fixed-bottom-bar {
  flex-shrink: 0;
  position: relative;
  bottom: auto;
  margin-top: 0;
  z-index: 40;
}
.iphone-screen.immersive-flow > .fixed-bottom-bar[hidden] {
  display: none !important;
}
.iphone-screen.immersive-flow > .fixed-bottom-bar.f2-action-bar {
  padding-bottom: calc(8px + var(--safe-bottom));
}
.iphone-screen.immersive-flow > .fixed-bottom-bar.f2-action-bar .btn-ghost {
  width: 100%;
}

/* 沉浸页：顶栏下方 meta / 合规条不参与滚动 */
.iphone-screen.immersive-flow > .screen-meta,
.iphone-screen.immersive-flow > .screen-banner {
  flex-shrink: 0;
}

/* 多态贴底栏：data-dock-for 对应 state-panel id，仅该态 active 时显示 */
.iphone-screen.immersive-flow > .fixed-bottom-bar[data-dock-for] {
  display: none;
}
.iphone-screen.immersive-flow:has(#form.active) > .fixed-bottom-bar[data-dock-for="form"],
.iphone-screen.immersive-flow:has(#diary.active) > .fixed-bottom-bar[data-dock-for="diary"],
.iphone-screen.immersive-flow:has(#apply.active) > .fixed-bottom-bar[data-dock-for="apply"],
.iphone-screen.immersive-flow:has(#edit.active) > .fixed-bottom-bar[data-dock-for="edit"] {
  display: block;
}
.iphone-screen.immersive-flow:has(#preview.active) > .fixed-bottom-bar[data-dock-for="preview"] {
  display: flex;
}

/* 对话页：消息区滚动 + 输入栏贴底（对齐微信聊天 composer） */
.iphone-screen.chat-flow {
  --chat-keyboard-inset: 0px;
}
.iphone-screen.chat-flow > .screen-scroll.chat-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 20px 12px;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}
.iphone-screen.chat-flow > .screen-scroll.chat-scroll::-webkit-scrollbar {
  width: 0;
}
.iphone-screen.chat-flow .chat-scroll-inner {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
}
.iphone-screen.chat-flow .chat-messages {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.iphone-screen.chat-flow .chat-scroll-footer {
  flex-shrink: 0;
}
.iphone-screen.chat-flow > .fixed-bottom-bar.chat-composer {
  flex-shrink: 0;
  position: relative;
  bottom: auto;
  margin-top: 0;
  padding: 8px 12px calc(6px + var(--safe-bottom));
  background: rgba(0, 0, 38, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(calc(-1 * var(--chat-keyboard-inset, 0px)));
  transition: transform 0.12s ease-out;
  z-index: 50;
}
.iphone-screen.chat-flow.composer-focused > .fixed-bottom-bar.chat-composer {
  border-top-color: rgba(249, 180, 0, 0.22);
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.45);
}
.iphone-screen.chat-flow > .fixed-bottom-bar.chat-composer .input-lux {
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 40px;
  caret-color: var(--lux-gold);
  -webkit-user-select: text;
  user-select: text;
  touch-action: manipulation;
}
.iphone-screen.chat-flow.composer-focused > .fixed-bottom-bar.chat-composer .input-lux:focus {
  border-color: var(--lux-gold);
  box-shadow: 0 0 0 3px rgba(249, 180, 0, 0.18);
}
.iphone-screen.chat-flow > .fixed-bottom-bar.chat-composer .btn-primary {
  flex-shrink: 0;
  padding: 10px 16px;
  min-height: 40px;
  border-radius: 8px;
}
.iphone-screen.chat-flow.composer-focused > .screen-scroll.chat-scroll {
  scroll-padding-bottom: 12px;
}

.module-strip {
  display: flex;
  gap: 8px;
  padding: 0 20px 12px;
  overflow-x: auto;
  flex-shrink: 0;
}
.module-strip::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.module-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  font-size: var(--ios-footnote);
  line-height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--lux-muted);
  cursor: pointer;
}
.module-chip__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.55;
  pointer-events: none;
}
.module-chip__label {
  white-space: nowrap;
}
.module-chip.is-active {
  background: rgba(249, 180, 0, 0.2);
  border-color: rgba(249, 180, 0, 0.45);
  color: var(--lux-gold);
  font-weight: 500;
}
.module-chip.is-active .module-chip__icon {
  opacity: 1;
}
.module-chip.is-done {
  background: rgba(249, 180, 0, 0.12);
  border-color: rgba(249, 180, 0, 0.25);
  color: var(--lux-gold);
}
.module-chip.is-done .module-chip__icon {
  opacity: 0.85;
}

/* F2 等：上传图片/文档 */
.upload-action-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.upload-chip-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px dashed rgba(249, 180, 0, 0.35);
  background: rgba(249, 180, 0, 0.08);
  color: var(--lux-gold);
  font-size: var(--ios-footnote);
  line-height: 18px;
  font-weight: 500;
  cursor: pointer;
}
.upload-chip-btn i {
  font-size: 14px;
  opacity: 0.9;
}
.upload-chip-btn:hover {
  border-color: rgba(249, 180, 0, 0.55);
  background: rgba(249, 180, 0, 0.12);
}
[data-spec-id="zone_feedback_upload"].is-invalid .upload-chip-btn,
.zone-f2-input.is-invalid .upload-chip-btn {
  border-color: rgba(239, 68, 68, 0.55);
}
.attachment-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.attachment-list:empty {
  display: none;
}
.attachment-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--ios-footnote);
  line-height: 18px;
}
.attachment-item-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.25);
}
.attachment-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 46, 159, 0.35);
  color: #7eb8ff;
}
.attachment-item-meta {
  flex: 1;
  min-width: 0;
}
.attachment-item-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.attachment-item-size {
  font-size: var(--ios-caption1);
  color: var(--lux-muted);
  margin-top: 2px;
}
.attachment-item-remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--lux-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.attachment-item-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}
.input-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 8px;
  font-size: var(--ios-caption1);
  color: var(--lux-muted-tertiary);
}
.input-divider::before,
.input-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 灵动岛 · iPhone 15 Pro Max（126×37pt 示意） */
.dynamic-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 37px;
  background: #000;
  border-radius: 20px;
  z-index: 120;
  margin: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.status-bar {
  position: relative;
  flex-shrink: 0;
  height: var(--safe-top);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 28px 10px;
  font-size: var(--ios-subhead);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--lux-text);
  z-index: 110;
}

/* 无状态栏、仅 nav 的内页：为灵动岛留白 */
.iphone-screen > .dynamic-island + .nav-bar {
  padding-top: 48px;
}
html.proto-embed .iphone-pro-max::before,
html.proto-embed .iphone-pro-max::after {
  display: none;
}

.state-panel:not(.active) {
  display: none !important;
}
.state-panel.active {
  display: block !important;
}
/* 加载等居中态：仅 active 时用 flex，避免 Tailwind .flex 把隐藏态顶出来 */
.state-panel.active.state-panel--flex {
  display: flex !important;
}

/* 组件 */
.badge-ai {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--ios-caption1);
  line-height: 16px;
  font-weight: 500;
  color: var(--lux-label);
  background: var(--lux-card);
  border: 1px solid var(--lux-card-border);
  padding: 5px 10px;
  border-radius: 999px;
}
.badge-ai i { color: var(--lux-gold); }

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 20px;
  font-weight: 600;
  font-size: var(--ios-headline);
  line-height: var(--ios-lh-tight);
  letter-spacing: -0.01em;
  color: var(--lux-deep);
  background: linear-gradient(135deg, var(--lux-gold) 0%, var(--lux-orange) 100%);
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(249, 180, 0, 0.35);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  width: 100%;
  padding: 12px;
  font-size: var(--ios-callout);
  line-height: var(--ios-lh-body);
  font-weight: 500;
  color: var(--lux-label);
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  cursor: pointer;
}

.card-lux {
  background: var(--lux-card);
  border: 1px solid var(--lux-card-border);
  border-radius: 20px;
  backdrop-filter: blur(12px);
}

.text-accent { color: var(--lux-gold); }
.text-link {
  color: var(--lux-yellow);
  text-decoration: underline;
  font-size: var(--ios-footnote);
  line-height: 18px;
  font-weight: 500;
}
.text-caption {
  font-size: var(--ios-caption1);
  line-height: 16px;
  font-weight: 500;
  color: var(--lux-muted);
}
.heading-xl {
  font-size: var(--ios-large-title);
  font-weight: 600;
  line-height: 34px;
  letter-spacing: -0.03em;
  color: var(--lux-text);
}

.chip-gold {
  background: rgba(249, 180, 0, 0.15);
  color: var(--lux-gold);
  border: 1px solid rgba(249, 180, 0, 0.35);
}
.chip-blue {
  background: rgba(0, 46, 159, 0.35);
  color: #7eb8ff;
  border: 1px solid rgba(0, 46, 159, 0.5);
}
.chip-miss {
  background: rgba(255, 107, 107, 0.2);
  color: #ffb4b4;
  border: 1px solid rgba(255, 107, 107, 0.35);
}

/* F1 · 关键词缺口 & 改写建议 */
.f1-kw-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: var(--ios-caption1);
  line-height: 16px;
  border-radius: 10px;
}
.f1-suggestion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.f1-suggestion-card {
  overflow: hidden;
}
.f1-suggestion-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 0;
  cursor: pointer;
  font-size: var(--ios-caption1);
  color: var(--lux-muted);
}
.f1-suggestion-head input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--lux-gold);
  flex-shrink: 0;
}
.f1-suggestion-original {
  padding: 10px 12px;
  font-size: var(--ios-footnote);
  line-height: 1.45;
  opacity: 0.55;
  text-decoration: line-through;
}
.f1-suggestion-ai {
  padding: 10px 12px 12px;
  background: rgba(249, 180, 0, 0.08);
  border-top: 1px solid rgba(249, 180, 0, 0.2);
}
.f1-suggestion-ai .f1-ai-badge {
  font-size: 10px;
  color: var(--lux-gold);
}
.f1-suggestion-ai p:last-child {
  font-size: var(--ios-footnote);
  line-height: 1.45;
  margin-top: 4px;
}
.f1-match-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* E2 · HR 扫读预览 */
@keyframes e2ScanPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}
.e2-resume-card {
  background: #fff;
  color: #0f172a;
  border-radius: 16px;
  padding: 16px;
  font-size: var(--ios-footnote);
  line-height: 1.45;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.e2-scan-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.e2-scan-intro p {
  margin: 0;
}
.btn-e2-play {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(249, 180, 0, 0.35);
  background: rgba(249, 180, 0, 0.12);
  color: var(--lux-gold);
  font-size: var(--ios-caption1);
  font-weight: 600;
}
.btn-e2-play:active {
  opacity: 0.85;
}
.e2-glance {
  border-radius: 10px;
  padding: 8px 10px;
  transition: opacity 0.25s ease;
}
.e2-glance--gold {
  background: rgba(249, 180, 0, 0.12);
  box-shadow: 0 0 0 2px var(--lux-gold);
}
.e2-glance--blue {
  background: rgba(0, 46, 159, 0.08);
  box-shadow: 0 0 0 2px var(--lux-blue);
}
.e2-glance-time {
  font-size: 10px;
  margin-top: 4px;
  font-weight: 600;
}
.e2-glance--gold .e2-glance-time {
  color: #b45309;
}
.e2-glance--blue .e2-glance-time {
  color: var(--lux-blue);
}
.e2-resume-muted {
  color: #64748b;
  font-size: var(--ios-caption1);
}

/* ATS 完整预览（33）· 分行展示 · 段落呼吸感 */
.resume-ats-card {
  padding: 18px 16px 20px;
  line-height: 1.5;
}
.resume-ats-header {
  margin: 0;
}
.resume-ats-name {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: #0f172a;
}
.resume-ats-target {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  margin: 6px 0 0;
  line-height: 1.45;
}
.resume-ats-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}
.resume-ats-contact span {
  display: block;
}
.resume-ats-divider {
  margin: 14px 0 4px;
  border: none;
  border-top: 1px solid #e2e8f0;
}
.resume-ats-section {
  margin-top: 14px;
}
.resume-ats-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #94a3b8;
  margin: 0 0 6px;
}
.resume-ats-entry-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  line-height: 1.45;
}
.resume-ats-entry-meta {
  font-size: 12px;
  color: #64748b;
  margin: 4px 0 0;
  line-height: 1.45;
}
.resume-ats-bullets {
  margin: 6px 0 0;
  padding-left: 1.1em;
  list-style: disc;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}
.resume-ats-bullets li + li {
  margin-top: 4px;
}
.resume-ats-skills {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}
.resume-ats-contact--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 4px;
}
.resume-ats-contact--inline span:not(:last-child)::after {
  content: ' · ';
  color: #94a3b8;
}

.scan-hl-active {
  animation: e2ScanPulse 1.2s ease-in-out infinite;
}
.e2-skip-card {
  text-align: center;
  padding: 24px 16px;
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lux-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lux-text);
}

.fixed-bottom-bar {
  position: sticky;
  bottom: 0;
  padding: 16px 20px calc(12px + var(--safe-bottom));
  background: linear-gradient(0deg, var(--lux-deep) 60%, transparent);
  border-top: 1px solid rgba(249, 180, 0, 0.1);
  z-index: 40;
}

.input-lux {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--lux-text);
  font-size: var(--ios-body);
  line-height: var(--ios-lh-body);
  outline: none;
}
.input-lux:focus {
  border-color: var(--lux-gold);
  box-shadow: 0 0 0 3px rgba(249, 180, 0, 0.15);
}
/* 表单获焦 · 键盘顶起时留出底部空间（非 chat-composer 页） */
.iphone-screen:not(.chat-flow) {
  --form-keyboard-inset: 0px;
}
.iphone-screen:not(.chat-flow).form-input-focused {
  padding-bottom: calc(var(--safe-bottom) + 14px + var(--form-keyboard-inset, 0px));
}
.iphone-screen.immersive-flow.form-input-focused > .screen-scroll {
  padding-bottom: var(--form-keyboard-inset, 0px);
}
.input-lux::placeholder { color: var(--lux-muted); }
.input-lux.is-invalid {
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.card-lux.is-invalid {
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.select-lux {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(0, 0, 0, 0.25)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a8b3cf' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 32px 12px 14px;
  color: var(--lux-text);
  font-size: var(--ios-body);
  line-height: var(--ios-lh-body);
  outline: none;
}
.select-lux:focus {
  border-color: var(--lux-gold);
  box-shadow: 0 0 0 3px rgba(249, 180, 0, 0.15);
}
.select-lux.is-invalid {
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.select-lux:disabled {
  opacity: 0.45;
}

.f4-field-split,
.f4-field-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.f4-field-split .f4-split-col,
.f4-field-stack .f4-split-col {
  width: 100%;
  min-width: 0;
}

.f4-period-range,
.f4-period-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.f4-period-point,
.f4-period-row {
  width: 100%;
}
.f4-period-label {
  display: block;
  font-size: var(--ios-footnote);
  opacity: 0.6;
  margin-bottom: 4px;
}
.f4-ym-pair {
  display: flex;
  gap: 8px;
}
.f4-ym-pair .select-lux {
  flex: 1;
  min-width: 0;
  padding-left: 10px;
  padding-right: 28px;
  font-size: var(--ios-footnote);
}
.f4-period-sep {
  display: none;
}

.f4-entry-card {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
}
.f4-entry-card + .f4-entry-card {
  margin-top: 12px;
}
.f4-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.f4-entry-index {
  font-size: var(--ios-footnote);
  font-weight: 600;
  color: var(--lux-gold);
}
.f4-entry-remove {
  font-size: var(--ios-footnote);
  color: rgba(248, 113, 113, 0.9);
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
}
.f4-entry-remove:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.f4-add-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(249, 180, 0, 0.35);
  background: rgba(249, 180, 0, 0.06);
  color: var(--lux-gold);
  font-size: var(--ios-footnote);
  cursor: pointer;
}
.f4-add-entry:hover {
  background: rgba(249, 180, 0, 0.1);
}
.f4-form-gap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.f4-till-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--ios-footnote);
  opacity: 0.75;
  cursor: pointer;
  user-select: none;
}
.f4-other-empty {
  text-align: center;
  padding: 28px 20px;
}
.f4-other-empty-icon {
  font-size: 2rem;
  color: var(--lux-gold);
  opacity: 0.75;
}
.f4-other-empty p {
  margin: 0;
}
.input-inline-error {
  color: #f87171;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 8px;
}

/* 落地登录 · 默认态：中间滚动 + 贴底 CTA（P-landing） */
.landing-panel--flex {
  display: flex;
  flex-direction: column;
  min-height: calc(100% - 54px);
  padding-bottom: 0;
}
.landing-panel--flex .landing-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 8px;
}
.landing-panel--flex .landing-scroll::-webkit-scrollbar {
  width: 0;
}
.landing-panel--flex .fixed-bottom-bar {
  flex-shrink: 0;
  position: relative;
  bottom: auto;
  margin: 0;
  padding-top: 12px;
}

.screen-content { padding: 0 20px 20px; }

/* TabBar：首页 / 简历 / 助手 / 我的（应用壳，非 PRD 五能力 Tab） */
.tab-bar {
  flex-shrink: 0;
  position: relative;
  z-index: 60;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 6px calc(14px + var(--safe-bottom));
  background: rgba(0, 0, 38, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(249, 180, 0, 0.12);
}
/* Home 指示条绝对定位在 Tab 底，避免 flex 同行错位与底部大空隙 */
.tab-bar::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(6px + var(--safe-bottom) * 0.5);
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  pointer-events: none;
}
.tab-bar.tab-bar-4 .tab-item {
  padding: 4px 6px;
  font-size: var(--ios-caption2);
}
.tab-bar.tab-bar-4 .tab-item i { font-size: 18px; }
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: var(--ios-caption2);
  line-height: 13px;
  font-weight: 500;
  color: var(--lux-muted);
  text-decoration: none;
  padding: 4px 14px;
  border-radius: 12px;
  transition: color 0.15s;
}
.tab-item i { font-size: 20px; }
.tab-item.active {
  color: var(--lux-gold);
  background: rgba(249, 180, 0, 0.08);
}

.grid-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: var(--lux-card);
  border: 1px solid var(--lux-card-border);
  text-decoration: none;
  color: var(--lux-text);
  transition: border-color 0.15s;
}
.grid-tile:active { border-color: var(--lux-gold); }
.grid-tile.locked { opacity: 1; pointer-events: none; }
.grid-tile .tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.grid-tile .tile-title {
  font-size: var(--ios-footnote);
  line-height: 18px;
  font-weight: 600;
}
.grid-tile .tile-desc {
  font-size: var(--ios-caption1);
  line-height: 16px;
  color: var(--lux-muted);
}
.grid-tile.locked .tile-title,
.grid-tile.locked .tile-desc,
.grid-tile.locked .lock-tag {
  color: var(--lux-muted-tertiary);
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--lux-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: var(--ios-body);
  line-height: var(--ios-lh-body);
}
.menu-row:last-child { border-bottom: none; }
.menu-row span:not(.menu-icon) {
  font-weight: 400;
}
.menu-row i.chevron { margin-left: auto; font-size: var(--ios-caption1); color: var(--lux-muted); }
.menu-row .menu-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.list-row {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--lux-card);
  border: 1px solid var(--lux-card-border);
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  font-size: var(--ios-body);
  line-height: var(--ios-lh-body);
}
.list-row .font-semibold {
  font-size: var(--ios-subhead) !important;
  font-weight: 600 !important;
}
.list-row .text-\[10px\] {
  font-size: var(--ios-caption1) !important;
  line-height: 16px !important;
  color: var(--lux-muted) !important;
}
.list-row-trailing {
  flex-shrink: 0;
  align-self: center;
  font-size: 15px;
  line-height: 1;
}
.lock-tag {
  font-size: var(--ios-caption1);
  line-height: 16px;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--lux-muted);
}
.badge-v11 {
  font-size: var(--ios-caption2);
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 46, 159, 0.5);
  color: #9ec5ff;
  border: 1px solid rgba(0, 46, 159, 0.6);
}
.badge-p1 {
  font-size: var(--ios-caption2);
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(249, 180, 0, 0.12);
  color: var(--lux-gold);
}
.nav-bar h1 {
  font-size: var(--ios-headline);
  font-weight: 600;
  line-height: var(--ios-lh-tight);
}
.nav-bar .text-\[10px\],
.nav-bar p {
  font-size: var(--ios-caption1) !important;
  line-height: 16px !important;
  color: var(--lux-muted) !important;
  font-weight: 500;
}

.channel-tag {
  font-size: var(--ios-caption1);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 119, 15, 0.15);
  color: var(--lux-orange);
  border: 1px solid rgba(255, 119, 15, 0.3);
}

.badge-growth {
  font-size: var(--ios-caption2);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 46, 159, 0.35);
  color: #9ec5ff;
  border: 1px solid rgba(0, 46, 159, 0.45);
}

/* G6 邀请 · 海报规格选择（参考电商 SKU 主图切换） */
.invite-poster-block {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}
.poster-preview-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a18;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.poster-spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.poster-spec-chip {
  font-size: var(--ios-caption1);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--lux-muted);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.poster-spec-chip.is-active {
  border-color: var(--lux-orange);
  color: var(--lux-orange);
  background: rgba(255, 119, 15, 0.12);
}

/* 分享海报卡片 · 竖版营销图结构 */
.invite-poster-card {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.invite-poster-card--preview {
  min-height: 280px;
}
.invite-poster-card--large {
  min-height: 420px;
  border-radius: 16px;
}
.invite-poster-card-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.invite-poster-card-deco::before,
.invite-poster-card-deco::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}
.invite-poster-card--warm {
  background: linear-gradient(165deg, #1a0f08 0%, #4a2510 38%, #c44f0a 100%);
}
.invite-poster-card--warm .invite-poster-card-deco::before {
  width: 180px;
  height: 180px;
  top: -48px;
  right: -40px;
  background: #ff9a3c;
}
.invite-poster-card--warm .invite-poster-card-deco::after {
  width: 140px;
  height: 140px;
  bottom: 20%;
  left: -50px;
  background: #f9b400;
}
.invite-poster-card--cool {
  background: linear-gradient(165deg, #020818 0%, #0c2840 42%, #123d8f 100%);
}
.invite-poster-card--cool .invite-poster-card-deco::before {
  width: 200px;
  height: 200px;
  top: -60px;
  left: -50px;
  background: #3b82f6;
}
.invite-poster-card--cool .invite-poster-card-deco::after {
  width: 160px;
  height: 160px;
  bottom: 10%;
  right: -60px;
  background: #06b6d4;
}
.invite-poster-card--campus {
  background: linear-gradient(165deg, #071a10 0%, #14532d 45%, #22c55e 100%);
}
.invite-poster-card--campus .invite-poster-card-deco::before {
  width: 170px;
  height: 170px;
  top: -30px;
  right: -30px;
  background: #4ade80;
}
.invite-poster-card--campus .invite-poster-card-deco::after {
  width: 130px;
  height: 130px;
  bottom: 25%;
  left: -40px;
  background: #fbbf24;
}
.invite-poster-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 16px 16px;
}
.invite-poster-card--large .invite-poster-card-body {
  padding: 24px 20px 20px;
}
.invite-poster-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}
.invite-poster-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lux-gold), var(--lux-orange));
  font-size: 9px;
  color: #1a1008;
}
.invite-poster-brand-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}
.invite-poster-copy {
  width: 100%;
  margin-top: 14px;
}
.invite-poster-card--large .invite-poster-copy {
  margin-top: 18px;
}
.invite-poster-kicker {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.invite-poster-card--large .invite-poster-kicker {
  font-size: 11px;
}
.invite-poster-headline {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.invite-poster-card--large .invite-poster-headline {
  font-size: 22px;
}
.invite-poster-subline {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}
.invite-poster-card--large .invite-poster-subline {
  font-size: 13px;
}
.invite-poster-qr-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
  width: 100%;
}
.invite-poster-card--large .invite-poster-qr-zone {
  margin-top: 20px;
}
.invite-poster-qr-canvas {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}
.invite-poster-card--large .invite-poster-qr-canvas {
  width: 112px;
  height: 112px;
  border-radius: 12px;
}
.invite-poster-qr-caption {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
  letter-spacing: 0.02em;
}
.invite-poster-card--large .invite-poster-qr-caption {
  font-size: 11px;
}
.invite-poster-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 12px;
  width: 100%;
}
.invite-poster-card--large .invite-poster-foot {
  margin-top: 14px;
}
.invite-poster-foot-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
}
.invite-poster-foot-code {
  font-size: 13px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.88);
}
.invite-poster-card--large .invite-poster-foot-code {
  font-size: 15px;
}
.modal-poster-result {
  position: absolute;
  inset: 0;
  z-index: 280;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}
.modal-poster-result.is-open {
  display: flex;
}
.modal-poster-result-panel {
  width: 100%;
  max-height: 92%;
  padding: 16px 16px 24px;
  border-radius: 20px 20px 0 0;
  background: var(--lux-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
}
.modal-poster-result-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.invite-poster-page-scroll {
  padding: 12px 16px 8px;
}
.invite-poster-block--page {
  border-top: none;
  padding-top: 0;
}
.poster-preview-wrap--page {
  max-width: 100%;
}
.poster-spec-row--page {
  justify-content: center;
  margin-top: 12px;
}

/* G6 邀请海报页 · 模版缩略图选择（大图下方） */
.poster-template-picker {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
  padding: 0 2px;
}
.poster-template-tile {
  flex: 1;
  max-width: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.poster-template-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.poster-template-tile.is-active .poster-template-thumb {
  border-color: var(--lux-orange);
  box-shadow: 0 0 0 1px rgba(255, 119, 15, 0.35), 0 6px 16px rgba(255, 119, 15, 0.2);
}
.poster-template-tile:active .poster-template-thumb {
  transform: scale(0.97);
}
.poster-template-thumb-brand {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}
.poster-template-thumb-line {
  position: absolute;
  top: 28%;
  left: 14%;
  right: 14%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 0 rgba(255, 255, 255, 0.2), 0 12px 0 rgba(255, 255, 255, 0.12);
}
.poster-template-thumb-qr {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.poster-template-thumb.invite-poster-card--warm {
  background: linear-gradient(165deg, #1a0f08 0%, #4a2510 38%, #c44f0a 100%);
}
.poster-template-thumb.invite-poster-card--cool {
  background: linear-gradient(165deg, #020818 0%, #0c2840 42%, #123d8f 100%);
}
.poster-template-thumb.invite-poster-card--campus {
  background: linear-gradient(165deg, #071a10 0%, #14532d 45%, #22c55e 100%);
}
.poster-template-name {
  font-size: 11px;
  line-height: 1.2;
  color: var(--lux-muted);
  text-align: center;
  transition: color 0.15s;
}
.poster-template-tile.is-active .poster-template-name {
  color: var(--lux-orange);
  font-weight: 600;
}

.invite-poster-page-hint,
.invite-poster-modal-hint {
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
.invite-poster-page-hint.is-saved,
.invite-poster-modal-hint.is-saved {
  color: rgba(134, 239, 172, 0.85);
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
}
.modal-poster-result-actions .btn-primary,
.modal-poster-result-actions .btn-ghost {
  flex: 1;
  margin-top: 0;
}

.modal-dismissed,
.is-dismissed {
  display: none !important;
}

.proto-hud-layer {
  position: absolute;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
body:not(:has(.iphone-screen)) .proto-hud-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.proto-hud {
  min-width: 136px;
  max-width: 240px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(28, 28, 30, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  opacity: 0;
  transform: scale(0.86);
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.proto-hud.is-visible {
  opacity: 1;
  transform: scale(1);
}
.proto-hud-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.proto-hud-text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
  letter-spacing: -0.01em;
}

/* 课程播放 · TCPlayer 容器（38-course-play） */
.course-player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.course-player-native {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}
.course-player-shell .video-js,
.course-player-shell .tcplayer {
  width: 100% !important;
  height: 100% !important;
}
.list-row[data-chapter-id]:not([data-locked="true"]) {
  cursor: pointer;
}

.list-row.is-chapter-selected {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.28);
}

/* 兼容旧引用 */
.proto-toast { display: none !important; }
