/* ============================================================
 * AI 短剧专家智能体 — 聊天界面样式
 * ============================================================ */

.drama-expert-section {
  padding: 100px 5% 80px;
  position: relative;
  overflow: hidden;
}

.drama-expert-aura {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(0, 212, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(124, 58, 237, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.drama-expert-wrap {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

.drama-expert-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  max-height: 72vh;
}

.drama-expert-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.0) 100%);
}

.drama-expert-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary, #00d4ff), var(--secondary, #7c3aed));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.35);
  flex-shrink: 0;
}

.drama-expert-title {
  flex: 1;
  min-width: 0;
}

.drama-expert-title h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text, #f8fafc);
  font-weight: 600;
}

.drama-expert-title p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.55);
}

.drama-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 6px;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* 思考中动画 */
.drama-status-dot.thinking {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: think-pulse 0.8s ease-in-out infinite;
}

@keyframes think-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.drama-status-dot.error {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: none;
}

.drama-clear-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(248,250,252,0.7);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.drama-clear-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* 消息区域 */
.drama-chat {
  flex: 1;
  padding: 22px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  -webkit-user-select: text;
  user-select: text;
}

.drama-chat::-webkit-scrollbar {
  width: 6px;
}
.drama-chat::-webkit-scrollbar-track {
  background: transparent;
}
.drama-chat::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}
.drama-chat::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.16);
}

/* 单条消息 */
.drama-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.drama-msg-user {
  flex-direction: row-reverse;
}

.drama-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.drama-msg-user .drama-msg-avatar {
  background: linear-gradient(135deg, rgba(0,212,255,0.18), rgba(124,58,237,0.18));
  border-color: rgba(0,212,255,0.3);
}

.drama-msg-body {
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 60px);
}

.drama-msg-user .drama-msg-body {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.drama-msg-meta {
  font-size: 0.72rem;
  color: rgba(248,250,252,0.45);
  margin-bottom: 4px;
}

.drama-msg-content {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text, #f8fafc);
  font-size: 0.92rem;
  line-height: 1.65;
  white-space: normal;
  word-wrap: break-word;
  text-align: left;
}

.drama-msg-user .drama-msg-content {
  background: linear-gradient(135deg, rgba(0,212,255,0.18), rgba(124,58,237,0.18));
  border-color: rgba(0,212,255,0.28);
}

.drama-msg-content strong {
  color: var(--primary, #00d4ff);
  font-weight: 600;
}

.drama-pre {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 8px 0;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #c5f8ff;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.drama-images {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.drama-images a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s, border-color 0.3s;
}

.drama-images a:hover {
  transform: translateY(-2px);
  border-color: rgba(0,212,255,0.5);
}

.drama-images img {
  width: 100%;
  height: auto;
  display: block;
}

/* 工具栏 */
.drama-toolbar {
  padding: 14px 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.drama-mode-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.mode-btn {
  background: transparent;
  border: none;
  color: rgba(248,250,252,0.6);
  padding: 7px 14px;
  font-size: 0.82rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.25s;
}

.mode-btn:hover {
  color: #fff;
}

.mode-btn.active {
  background: linear-gradient(135deg, rgba(0,212,255,0.25), rgba(124,58,237,0.25));
  color: #fff;
  box-shadow: 0 0 12px rgba(0,212,255,0.2);
}

.drama-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.quick-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(248,250,252,0.75);
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.quick-btn:hover {
  background: rgba(0,212,255,0.1);
  border-color: rgba(0,212,255,0.35);
  color: #fff;
}

/* 输入区 */
.drama-input-wrap {
  padding: 16px 22px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

#dramaInput {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.92rem;
  color: var(--text, #f8fafc);
  font-family: inherit;
  resize: none;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  min-height: 44px;
  max-height: 180px;
  line-height: 1.5;
}

#dramaInput::placeholder {
  color: rgba(248,250,252,0.4);
}

#dramaInput:focus {
  border-color: rgba(0,212,255,0.45);
  background: rgba(0,212,255,0.04);
}

#dramaSend {
  flex-shrink: 0;
  height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#dramaSend:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.drama-input-footer {
  padding: 0 22px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: rgba(248,250,252,0.45);
  border-top: 1px dashed rgba(255,255,255,0.05);
}

.drama-input-footer .drama-tip {
  color: rgba(248,250,252,0.35);
}

/* 响应式 */
@media (max-width: 720px) {
  .drama-expert-section {
    padding: 70px 4% 60px;
  }
  .drama-expert-card {
    max-height: 80vh;
  }
  .drama-expert-head {
    padding: 14px 16px;
  }
  .drama-chat {
    padding: 16px;
  }
  .drama-toolbar,
  .drama-input-wrap,
  .drama-input-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .drama-quick-actions {
    width: 100%;
  }
  .drama-msg-body {
    max-width: calc(100% - 50px);
  }
}

/* 加载光标动画 */
.drama-msg-assistant .drama-msg-content.streaming::after {
  content: "▌";
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
  color: var(--primary, #00d4ff);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
/* 历史记录面板 */
.drama-history-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.drama-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
  color: rgba(248,250,252,0.7);
  flex-shrink: 0;
}
.drama-history-head > div { display: flex; gap: 8px; }
.drama-history-head button {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(248,250,252,0.7);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.drama-history-head button:hover { background: rgba(255,255,255,0.1); color: #fff; }
.drama-history-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.drama-history-item {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(248,250,252,0.88);
  user-select: text;
}
.drama-history-item.user { background: rgba(0,212,255,0.06); border-color: rgba(0,212,255,0.15); }
.drama-history-item.assistant { background: rgba(124,58,237,0.05); border-color: rgba(124,58,237,0.12); }
.drama-history-meta {
  font-size: 0.72rem;
  color: rgba(248,250,252,0.38);
  margin-bottom: 4px;
  display: flex;
  gap: 10px;
}
.drama-history-empty { color: rgba(248,250,252,0.4); font-size: 0.85rem; text-align: center; margin-top: 60px; }
@media (max-width: 720px) {
  .drama-history-panel { height: 100%; }
  .drama-history-head { padding: 10px 14px; }
  .drama-history-list { padding: 12px 14px; }
}

/* 接口配置面板 */
.drama-settings-panel {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.06);
  max-height: 400px;
  overflow-y: auto;
}
.drama-settings-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
  color: rgba(248,250,252,0.7);
  flex-shrink: 0;
}
.drama-settings-head button {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(248,250,252,0.7);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.drama-settings-body {
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drama-setting-group label {
  display: block;
  font-size: 0.78rem;
  color: rgba(248,250,252,0.55);
  margin-bottom: 5px;
}
.drama-setting-group input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(248,250,252,0.9);
  font-size: 0.85rem;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.drama-setting-group input:focus {
  border-color: rgba(0,212,255,0.4);
}
.drama-settings-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.drama-settings-note {
  font-size: 0.72rem;
  color: rgba(248,250,252,0.35);
  margin: 0;
}
@media (max-width: 720px) {
  .drama-settings-head { padding: 10px 14px; }
  .drama-settings-body { padding: 12px 14px; }
}

/* ============================================================
 * AI 剧本生成模块 — 样式
 * ============================================================ */
.script-gen-section {
  padding: 100px 5% 80px;
  position: relative;
  overflow: hidden;
}

.script-gen-aura {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 18% 8%, rgba(124, 58, 237, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 82% 95%, rgba(0, 212, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.script-gen-wrap {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.script-gen-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  padding: 44px 40px 38px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.script-gen-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 40px 100px rgba(124, 58, 237, 0.22);
}

.script-gen-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 160px;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.35) 0%, transparent 70%);
  filter: blur(28px);
  opacity: 0.7;
  pointer-events: none;
}

.script-gen-icon {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(0, 212, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.25);
}

.script-gen-title {
  position: relative;
  font-size: 1.45rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.95);
  margin: 0 0 12px;
  letter-spacing: 0.3px;
}

.script-gen-desc {
  position: relative;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(248, 250, 252, 0.62);
  max-width: 540px;
  margin: 0 auto 24px;
}

.script-gen-feats {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0 auto 28px;
  max-width: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
}
.script-gen-feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.78);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 11px 14px;
  transition: background 0.25s ease;
}
.script-gen-feats li:hover {
  background: rgba(124, 58, 237, 0.1);
}
.feat-ico {
  font-size: 1.05rem;
  flex-shrink: 0;
}

.script-gen-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 14px;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #00d4ff 100%);
  box-shadow: 0 14px 36px rgba(124, 58, 237, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.script-gen-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 20px 48px rgba(0, 212, 255, 0.45);
}
.script-gen-btn:active {
  transform: translateY(0);
}
.btn-ico {
  font-size: 1.15rem;
}

.script-gen-hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.55);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
}
.hint-ico {
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .script-gen-card { padding: 34px 22px 28px; border-radius: 20px; }
  .script-gen-feats { grid-template-columns: 1fr; gap: 10px; }
  .script-gen-title { font-size: 1.25rem; }
  .script-gen-btn { padding: 13px 26px; font-size: 0.95rem; }
}

/* ============================================================

/* ============================================================
 * 联动模块 — 喵咛导演台（独立模块 · 视频为主 · 大厂级展示）
 * ============================================================ */
.miorning-section {
  position: relative;
  padding: 96px 0 60px;
  overflow: hidden;
}
.miorning-aura {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  background:
    radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.16), transparent 55%),
    radial-gradient(circle at 70% 40%, rgba(0, 212, 255, 0.14), transparent 55%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

.miorning-showcase {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 56px auto 0;
  animation: miorningIn 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes miorningIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 品牌条：logo + 名称（也用作标题区 logo chip） */
.miorning-logo-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  background: rgba(250, 250, 252, 0.95);
  border-radius: 16px;
  padding: 13px 22px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
  margin: 14px auto 10px;
}
.miorning-tag {
  font-size: 0.66rem;
  font-weight: 700;
  color: rgba(124, 58, 237, 0.9);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.miorning-logo-plate img {
  height: 36px;
  width: auto;
  display: block;
}
/* 视频舞台：大尺寸、渐变描边、悬浮按钮内嵌 */
.miorning-stage {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #08080f;
  aspect-ratio: 16 / 9;
  box-shadow:
    0 40px 110px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.miorning-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  padding: 1.5px;
  background: linear-gradient(140deg, rgba(124, 58, 237, 0.7), rgba(0, 212, 255, 0.4), transparent 55%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}
.miorning-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
/* 上/下方+左侧暗化渐变，保证居中偏左按钮可读 */
.miorning-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 6, 12, 0.6) 0%, transparent 45%),
    linear-gradient(to bottom, rgba(6, 6, 12, 0.5) 0%, transparent 34%),
    linear-gradient(to right, rgba(6, 6, 12, 0.42) 0%, transparent 40%);
  pointer-events: none;
  z-index: 2;
}

/* 悬浮在主视频上的入口按钮，点击直达 B 站导演台 */
.miorning-video-btn {
  position: absolute;
  z-index: 4;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 38px;
  border-radius: 999px;
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(120deg, #7c3aed 0%, #00d4ff 45%, #7c3aed 100%);
  background-size: 220% 220%;
  box-shadow: 0 16px 44px rgba(124, 58, 237, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
/* 按钮背后的呼吸光晕，吸引点击 */
.miorning-video-btn::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #00d4ff);
  filter: blur(15px);
  opacity: 0.5;
  z-index: -1;
  animation: miorningBtnGlow 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes miorningBtnGlow {
  0%, 100% { opacity: 0.38; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}
/* hover：传送门开启 —— 修正垂直居中（calc 保留 -50%）+ 上浮放大 + 极光流动 */
.miorning-video-btn:hover {
  transform: translateY(calc(-50% - 4px)) scale(1.045);
  filter: brightness(1.1) saturate(1.15);
  box-shadow: 0 26px 64px rgba(0, 212, 255, 0.55), 0 0 42px rgba(124, 58, 237, 0.45);
  animation: miorningAuroraFlow 2.2s linear infinite;
}
@keyframes miorningAuroraFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
/* 传送门能量环：hover 时向外扩散（进入异世界） */
.vb-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(0, 212, 255, 0.85);
  opacity: 0;
  pointer-events: none;
}
.vb-ring-2 {
  border-color: rgba(124, 58, 237, 0.85);
}
.miorning-video-btn:hover .vb-ring {
  animation: miorningRingOut 1.5s ease-out infinite;
}
.miorning-video-btn:hover .vb-ring-2 {
  animation: miorningRingOut 1.5s ease-out infinite 0.55s;
}
@keyframes miorningRingOut {
  0% { opacity: 0.9; transform: scale(1); }
  75% { opacity: 0; transform: scale(1.32); }
  100% { opacity: 0; transform: scale(1.32); }
}
/* 点击「进入异世界」：全屏传送冲击波 */
.warp-burst {
  position: fixed;
  z-index: 99998;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(0, 212, 255, 0.5) 26%, rgba(124, 58, 237, 0.32) 52%, transparent 72%);
  transform: translate(-50%, -50%) scale(0);
  animation: warpBurst 0.9s cubic-bezier(0.16, 0.7, 0.3, 1) forwards;
}
@keyframes warpBurst {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
/* 点击瞬间按钮爆亮 */
.miorning-video-btn.is-warping {
  filter: brightness(1.8) saturate(1.4);
  transition: filter 0.1s ease;
}
.vb-ico {
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.vb-text {
  letter-spacing: 0.5px;
}

.screen-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  animation: screenShine 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes screenShine {
  0%, 100% { transform: translateX(-120%) skewX(-18deg); }
  50% { transform: translateX(120%) skewX(-18deg); }
}

/* 能力标签 */
.miorning-specs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.miorning-spec {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
/* hover 时顶部浮现渐变高光线 */
.miorning-spec::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #7c3aed);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  opacity: 0.85;
}
.miorning-spec:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.28);
  transform: translateY(-2px);
}
.miorning-spec:hover::before {
  transform: scaleX(1);
}
.spec-no {
  font-size: 0.74rem;
  font-weight: 800;
  color: #00d4ff;
  opacity: 0.9;
}
.spec-txt {
  font-size: 0.86rem;
  color: rgba(248, 250, 252, 0.82);
  font-weight: 500;
}

@media (max-width: 900px) {
  .miorning-section { padding: 72px 0 48px; }
  .miorning-logo-plate { margin: 10px auto 8px; }
  .miorning-video-btn { left: 5%; top: 50%; transform: translateY(-50%); padding: 14px 28px; font-size: 1rem; }
  .miorning-specs {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* 喵咛灵感箱：互动玩具直接内嵌，无需跳转即可使用 */
.miorning-toy {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 56px 0 0;
  animation: miorningIn 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.miorning-toy-head {
  text-align: center;
  margin-bottom: 18px;
}
.miorning-toy-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 10px;
}
.miorning-toy-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.96);
  margin: 0 0 6px;
  letter-spacing: 0.4px;
}
.miorning-toy-sub {
  font-size: 0.92rem;
  color: rgba(248, 250, 252, 0.55);
  margin: 0;
  line-height: 1.7;
}
.miorning-toy-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #08080f;
  aspect-ratio: 16 / 9;
  max-height: 88vh;
  margin: 0 auto;
  box-shadow:
    0 40px 110px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.miorning-toy-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1.5px;
  background: linear-gradient(140deg, rgba(124, 58, 237, 0.7), rgba(0, 212, 255, 0.4), transparent 55%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}
.miorning-toy-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.miorning-toy-hint {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.45);
  margin: 14px 0 0;
}
@media (max-width: 900px) {
  .miorning-toy { margin-top: 40px; }
  .miorning-toy-title { font-size: 1.3rem; }
}
@media (max-width: 700px) {
  .miorning-toy-frame { aspect-ratio: 3 / 4; }
}

/* ============================================================
 * 公告弹窗：「炉子」AI 能力网络平台
 * ============================================================ */
.luzi-notice-mask {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 6, 14, 0.62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.luzi-notice-mask.is-open {
  opacity: 1;
  visibility: visible;
}
.luzi-notice {
  position: relative;
  width: min(580px, 100%);
  max-height: min(80vh, 660px);
  overflow-y: auto;
  background: linear-gradient(165deg, rgba(24, 24, 44, 0.97), rgba(13, 13, 25, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 30px 30px 26px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.luzi-notice-mask.is-open .luzi-notice {
  transform: translateY(0) scale(1);
}
/* 渐变描边 */
.luzi-notice::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1.5px;
  background: linear-gradient(140deg, rgba(0, 212, 255, 0.55), rgba(124, 58, 237, 0.55), transparent 62%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.luzi-notice-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 250, 252, 0.72);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}
.luzi-notice-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: rotate(90deg);
}
.luzi-notice-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.09);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 14px;
}
.luzi-notice-title {
  font-size: 1.34rem;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.97);
  margin: 0 0 12px;
  letter-spacing: 0.4px;
  line-height: 1.45;
}
.luzi-notice-title .luzi-hl {
  background: linear-gradient(90deg, #00d4ff, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.luzi-notice-text {
  font-size: 0.94rem;
  line-height: 1.9;
  color: rgba(248, 250, 252, 0.66);
  margin: 0 0 22px;
}
.luzi-notice-text b {
  color: rgba(248, 250, 252, 0.92);
  font-weight: 700;
}
.luzi-notice-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.luzi-notice-btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.luzi-notice-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #00d4ff 100%);
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.4);
}
.luzi-notice-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 44px rgba(0, 212, 255, 0.4);
}
.luzi-notice-btn-ghost {
  color: rgba(248, 250, 252, 0.82);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}
.luzi-notice-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}
@media (max-width: 640px) {
  .luzi-notice-mask { padding: 16px; }
  .luzi-notice { padding: 24px 20px 20px; border-radius: 18px; }
  .luzi-notice-title { font-size: 1.14rem; }
  .luzi-notice-text { font-size: 0.9rem; }
  .luzi-notice-actions { flex-direction: column; }
  .luzi-notice-btn { width: 100%; }
}
