/* ============================================================
   玄鉴 · 东方命理心镜 — 新中式极简奢华设计系统 v5 (Neo-Chinese Luxury)
   ============================================================
   设计语言：黑曜深邃 + 细腻毛玻璃 + 鎏金微光 + 现代流线交互
   ============================================================ */

:root {
  /* 黑曜石底色与层级 */
  --ink: #06080a;
  --ink-surface: #0b0e12;
  --ink-panel: rgba(14, 18, 24, 0.76);
  --ink-elevated: #161c24;
  --ink-card: rgba(20, 26, 34, 0.65);

  /* 宣纸米白文字 */
  --paper: #F3EFE6;
  --paper-bright: #FFFFFF;
  --muted: #A39D8F;
  --faint: #6B6557;

  /* 鎏金奢华渐变色彩 */
  --gold-light: #F4E2BD;
  --gold: #D4AF7A;
  --gold-deep: #A8864C;
  --gold-glow: rgba(212, 175, 122, 0.22);
  --gold-line: rgba(212, 175, 122, 0.2);
  --gold-line-strong: rgba(212, 175, 122, 0.45);

  /* 传统五行灵气 */
  --jade: #79D29E;
  --fire: #E06C75;
  --earth: #D19A66;
  --metal: #E5C07B;
  --water: #61AFEF;
  --violet: #B292C8;

  /* 阴影与圆角 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-lux: 0 16px 48px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 24px var(--gold-glow);
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--ink);
  color-scheme: dark;
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select, textarea {
  font: inherit;
}
button, select {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}

/* 滚动条奢华美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--ink);
}
::-webkit-scrollbar-thumb {
  background: var(--ink-elevated);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-deep);
}

/* ============================================================
   1. HERO — 黑曜深空 · 灵动天象
   ============================================================ */
.cosmos-hero {
  min-height: 92vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: 
    radial-gradient(circle at 50% 15%, rgba(212, 175, 122, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(121, 210, 158, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #07090b 0%, #06080a 100%);
}

.cosmos-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/static/jade-cosmos-v3.webp") center/cover no-repeat;
  opacity: 0.12;
  mix-blend-mode: screen;
  pointer-events: none;
}

.sky-grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.25'/%3E%3C/svg%3E");
}

/* 顶栏 Header */
.topbar {
  width: min(1200px, calc(100% - 32px));
  height: 70px;
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(14, 18, 24, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-full);
  position: relative;
  z-index: 50;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand .seal {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(212,175,122,0.22), rgba(168,134,76,0.08));
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 0 14px rgba(212,175,122,0.2);
}
.brand strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--paper-bright);
}
.brand small {
  margin-top: 1px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.topbar nav {
  display: flex;
  gap: 24px;
}
.topbar nav a {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  padding: 6px 0;
  position: relative;
  transition: color 0.25s;
}
.topbar nav a:hover {
  color: var(--gold-light);
}
.topbar nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.3s;
}
.topbar nav a:hover::after {
  width: 80%;
}

.auth-status .auth-btn {
  background: rgba(212, 175, 122, 0.12);
  border: 1px solid var(--gold-line);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  transition: all 0.25s;
}
.auth-status .auth-btn:hover {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
}

/* 移动端汉堡菜单 */
.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s;
}

@media (max-width: 820px) {
  .hamburger { display: flex; }
  .topbar nav {
    position: fixed;
    top: 90px;
    left: 16px;
    right: 16px;
    background: rgba(14, 18, 24, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid var(--gold-line-strong);
    border-radius: var(--radius-lg);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }
  .topbar nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* Hero 文案 */
.hero-copy {
  position: relative;
  z-index: 10;
  width: min(720px, calc(100% - 32px));
  margin: 8vh auto 0;
  text-align: center;
}
.hero-copy .eyebrow {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 12px 0 16px;
  font-family: "KaiTi", "STKaiti", serif;
  font-size: clamp(56px, 12vw, 110px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.25em;
  text-indent: 0.25em;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4E2BD 45%, #D4AF7A 80%, #9C783C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 45px rgba(212, 175, 122, 0.3));
}
.hero-copy p:last-of-type {
  color: var(--muted);
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px auto 0;
}
.hero-divider::before, .hero-divider::after {
  content: "";
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-divider::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.hero-divider b {
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* 天象同心圆与太极 */
.celestial-stage {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 3vh auto 0;
  display: grid;
  place-items: center;
}
.orbit-outer {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(212, 175, 122, 0.25);
  border-radius: 50%;
  animation: spinSlow 60s linear infinite;
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.orbit-inner {
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(212, 175, 122, 0.15);
  border-radius: 50%;
}
.taiji {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,122,0.18) 0%, transparent 70%);
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-line-strong);
  box-shadow: 0 0 25px rgba(212, 175, 122, 0.2);
}
.taiji span {
  font-size: 36px;
  color: var(--gold-light);
  animation: pulseGlow 4s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); filter: drop-shadow(0 0 12px var(--gold)); }
}

.enter-observatory {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 3vh auto 4vh;
  padding: 10px 28px;
  background: rgba(212, 175, 122, 0.1);
  border: 1px solid var(--gold);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 0.16em;
  transition: all 0.3s;
  z-index: 10;
}
.enter-observatory:hover {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 0 20px rgba(212,175,122,0.4);
  transform: translateY(-2px);
}

/* ============================================================
   2. 工作台与现代胶囊导航 (Modern Segmented Tabs)
   ============================================================ */
.observatory {
  padding: 60px 0 80px;
  max-width: 1080px;
  margin: 0 auto;
  width: calc(100% - 32px);
}

.section-heading {
  text-align: center;
  margin-bottom: 36px;
}
.section-heading .eyebrow {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.section-heading h2 {
  font-family: "KaiTi", serif;
  font-size: clamp(28px, 4vw, 42px);
  margin: 6px 0 10px;
  color: var(--paper-bright);
}
.section-heading p {
  color: var(--muted);
  font-size: 14px;
}
.heading-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* 现代胶囊分段导航器 */
.tool-tabs {
  display: flex;
  gap: 8px;
  background: rgba(14, 18, 24, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--gold-line);
  padding: 6px;
  border-radius: var(--radius-full);
  margin-bottom: 36px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tool-tabs::-webkit-scrollbar { display: none; }

.tool-tab {
  flex: 1;
  min-width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--muted);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.tool-tab span {
  font-size: 16px;
}
.tool-tab strong {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.tool-tab small {
  display: none;
}
.tool-tab:hover {
  color: var(--paper-bright);
  background: rgba(255, 255, 255, 0.04);
}
.tool-tab.active {
  background: linear-gradient(135deg, rgba(212,175,122,0.25), rgba(168,134,76,0.18));
  border: 1px solid var(--gold);
  color: var(--gold-light);
  box-shadow: 0 4px 18px rgba(212,175,122,0.22);
}

/* ============================================================
   3. 表单与输入交互升级 (Glassmorphic Forms)
   ============================================================ */
.workspace {
  background: var(--ink-panel);
  backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-lux);
  position: relative;
}

.panel-intro {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 18px;
  position: relative;
}
.panel-intro span:first-child {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 40px;
  color: rgba(212,175,122,0.08);
  font-family: "KaiTi", serif;
}
.panel-intro h3 {
  margin: 4px 0 8px;
  font-size: 22px;
  color: var(--paper-bright);
}
.panel-intro p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.tool-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field span {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: 500;
}

.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(8, 11, 15, 0.85);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--paper-bright);
  font-size: 14px;
  transition: all 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 122, 0.18);
  background: rgba(12, 16, 22, 0.95);
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .two-fields { grid-template-columns: 1fr; }
}

/* 生辰排盘多字段网格 */
.birth-fields {
  display: grid;
  grid-template-columns: repeat(5, 1fr) 1.2fr;
  gap: 12px;
  align-items: end;
}
@media (max-width: 900px) {
  .birth-fields {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 540px) {
  .birth-fields {
    grid-template-columns: 1fr 1fr;
  }
  .birth-fields .gender-field {
    grid-column: span 2;
  }
}

.gender-field {
  border: none;
  padding: 0;
  margin: 0;
}
.gender-field legend {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 8px;
}
.segmented {
  display: flex;
  background: rgba(8, 11, 15, 0.85);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  padding: 3px;
  height: 48px;
}
.segmented label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s;
  color: var(--muted);
  font-size: 14px;
}
.segmented input {
  display: none;
}
.segmented input:checked + span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--ink);
  font-weight: bold;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(212,175,122,0.3);
}

/* 极具质感的鎏金操作大按钮 */
.ritual-button {
  margin-top: 14px;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #F4E2BD 0%, #D4AF7A 50%, #A8864C 100%);
  color: #0A0C0E;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 6px 24px rgba(212, 175, 122, 0.3);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.ritual-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-25deg);
  transition: all 0.75s;
}
.ritual-button:hover::after {
  left: 140%;
}
.ritual-button:hover {
  box-shadow: 0 8px 32px rgba(212, 175, 122, 0.5);
  transform: translateY(-2px);
}
.ritual-button:active {
  transform: translateY(0);
}

/* ============================================================
   4. 排盘结果舞台 (Result Stage Luxury Layout)
   ============================================================ */
.result-stage {
  padding: 40px 0 100px;
  max-width: 1100px;
  margin: 0 auto;
  width: calc(100% - 32px);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}
.result-header h2 {
  font-family: "KaiTi", serif;
  font-size: clamp(26px, 4vw, 36px);
  margin: 4px 0 0;
  color: var(--paper-bright);
}

.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.result-actions button, .outline-button {
  background: rgba(18, 24, 32, 0.7);
  border: 1px solid var(--gold-line);
  color: var(--paper);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  transition: all 0.25s;
}
.result-actions button:hover, .outline-button:hover {
  background: rgba(212, 175, 122, 0.15);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* 概览卡片 */
.public-reading {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .public-reading { grid-template-columns: 1fr; }
}

.profile-overview, .element-oracle {
  background: var(--ink-panel);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-lux);
}
.profile-overview h3 {
  font-size: 24px;
  margin: 10px 0 12px;
  color: var(--gold-light);
}
.profile-overview p {
  color: var(--muted);
  font-size: 14px;
}
#bazi-reading-button {
  margin-top: 18px;
  background: linear-gradient(135deg, rgba(212,175,122,0.22), rgba(168,134,76,0.15));
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-weight: 600;
  padding: 10px 24px;
  box-shadow: 0 4px 16px rgba(212,175,122,0.2);
}
#bazi-reading-button:hover {
  background: var(--gold);
  color: var(--ink);
}

/* 四柱八字卡片阵列 (Four Pillars Luxury Cards) */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 680px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pillar {
  background: var(--ink-panel);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.pillar:nth-child(3) {
  border: 1.8px solid var(--gold);
  background: linear-gradient(180deg, rgba(212,175,122,0.12) 0%, rgba(14,18,24,0.85) 100%);
  box-shadow: 0 0 24px rgba(212, 175, 122, 0.16);
}
.pillar:nth-child(3)::before {
  content: "日元";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--ink);
  font-size: 10px;
  font-weight: bold;
  padding: 2px 10px;
  border-radius: 10px;
  letter-spacing: 0.1em;
}

.pillar-name {
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 12px;
  display: block;
}
.pillar-characters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.pillar-characters span {
  font-size: 32px;
  font-family: "KaiTi", serif;
  font-weight: bold;
  color: var(--paper-bright);
}
.pillar-meta {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pillar-meta span:first-child {
  color: var(--gold-light);
}
.pillar-meta span:last-child {
  color: var(--muted);
}

/* ============================================================
   5. 移动端全屏 App 级悬浮操作底栏 (Mobile Floating Dock)
   ============================================================ */
.mobile-floating-dock {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, calc(100% - 32px));
  height: 60px;
  background: rgba(12, 16, 22, 0.88);
  backdrop-filter: blur(25px) saturate(200%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-full);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(212, 175, 122, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 10px;
  z-index: 1000;
  animation: slideUpDock 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes slideUpDock {
  from { opacity: 0; transform: translate(-50%, 30px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.dock-btn {
  background: none;
  border: none;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s;
}
.dock-btn .dock-icon {
  font-size: 16px;
  color: var(--gold-light);
}
.dock-btn span:last-child {
  font-size: 11px;
  letter-spacing: 0.04em;
}
.dock-btn:hover, .dock-btn:active {
  background: rgba(212, 175, 122, 0.15);
  transform: translateY(-2px);
}
.dock-highlight {
  background: linear-gradient(135deg, rgba(212,175,122,0.3), rgba(121,210,158,0.25)) !important;
  border: 1px solid var(--gold) !important;
  box-shadow: 0 0 12px rgba(212, 175, 122, 0.3);
}
.dock-highlight span {
  color: var(--gold-light) !important;
  font-weight: bold;
}

/* ============================================================
   6. 弹窗、推演条、流式输出与问答微调
   ============================================================ */
.stream-stage-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(212, 175, 122, 0.08);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  margin-bottom: 24px;
  animation: glowPulse 2s infinite ease-in-out;
}
.stage-spin {
  font-size: 30px;
  color: var(--gold);
  animation: spinTaiji 3s linear infinite;
}
@keyframes spinTaiji {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.streaming-output {
  background: var(--ink-panel);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  font-size: 15px;
  line-height: 1.9;
  box-shadow: var(--shadow-lux);
  margin-bottom: 30px;
}
.stream-h3 {
  margin: 28px 0 12px;
  font-size: 19px;
  color: var(--gold-light);
  border-left: 4px solid var(--gold);
  padding-left: 14px;
}
.type-cursor {
  display: inline-block;
  color: var(--gold);
  font-weight: bold;
  animation: blink 0.8s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 宗师问答对话 */
.consultation-section {
  background: var(--ink-panel);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lux);
  margin-top: 36px;
}
.quick-q-btn {
  background: rgba(212, 175, 122, 0.08);
  border: 1px solid var(--gold-line);
  color: var(--paper);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  transition: all 0.2s;
}
.quick-q-btn:hover {
  background: rgba(212, 175, 122, 0.22);
  border-color: var(--gold);
  color: var(--gold-light);
}
.consult-msg .msg-content {
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.75;
}
.consult-user .msg-content {
  background: rgba(212, 175, 122, 0.16);
  border: 1px solid var(--gold-line-strong);
  color: #FFFFFF;
}
.consult-master .msg-content {
  background: rgba(16, 22, 28, 0.9);
  border: 1px solid rgba(121, 210, 158, 0.35);
  color: var(--paper);
}

/* 分享海报遮罩与弹窗 */
.poster-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: min(600px, 92vw);
  max-height: 90vh;
  margin: auto;
}
.poster-dialog::backdrop {
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(12px);
}
.poster-modal {
  background: var(--ink-surface);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.95);
}
#poster-img {
  width: 100%;
  max-width: 440px;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.7);
}
