/* ============================================================
   问卦 · 设计系统 v3
   赛博玄学 × 00 后审美
   色板：暗夜紫 / 霓虹青 / 电光粉
   ============================================================ */

/* ---------- 字体 ---------- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@300;400;500;600;700;800;900&display=swap");

/* ---------- 设计令牌 ---------- */
:root {
  /* 基础色 */
  --ink: #f0f0f5;
  --muted: #8b8a9e;
  --subtle: #6b6a7e;
  --paper: #0a0a14;
  --surface: rgba(14, 14, 26, 0.9);

  /* 边框 */
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.1);

  /* 主题色 - 霓虹系统 */
  --cyan: #00d4ff;
  --cyan-soft: #66e5ff;
  --cyan-dark: #009dbf;
  --cyan-glow: rgba(0, 212, 255, 0.12);

  --magenta: #ff2d95;
  --magenta-soft: #ff70b8;
  --magenta-glow: rgba(255, 45, 149, 0.1);

  --purple: #7c3aed;
  --purple-soft: #a78bfa;
  --purple-glow: rgba(124, 58, 237, 0.08);

  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --gradient-accent: linear-gradient(135deg, #ff2d95 0%, #7c3aed 100%);
  --gradient-text: linear-gradient(135deg, #00d4ff 0%, #a78bfa 50%, #ff2d95 100%);

  /* 阴影 */
  --shadow-sm: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-cyan: 0 0 40px rgba(0, 212, 255, 0.06);

  /* 模糊 */
  --blur: blur(16px);
  --blur-sm: blur(8px);

  /* 圆角 */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* 字体 */
  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", -apple-system, sans-serif;
}

/* ---------- 重置 ---------- */
* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(10, 10, 20, 1) 0%, #06060e 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 75%);
}

button, input, select, textarea {
  font: inherit;
}
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

/* ---------- 外壳 ---------- */
.app-shell {
  min-height: 100vh;
  padding: 28px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 420px);
  gap: 28px;
  align-items: start;
  max-width: 1480px;
  margin: 0 auto;
}

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background-color: var(--surface);
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
  box-shadow: var(--shadow-md);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: inherit;
}

/* ---------- 结果区 ---------- */
.results {
  display: grid;
  gap: 24px;
  min-width: 0;
}

/* ---------- 标题头 ---------- */
.hero-head {
  display: flex;
  align-items: center;
  min-height: 80px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: rgba(14, 14, 26, 0.7);
  backdrop-filter: var(--blur-sm);
  padding: 16px 28px;
}

.hero-title {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.hero-head h1 {
  margin: 0;
  font-size: clamp(36px, 3.8vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 900;
  font-family: var(--font-sans);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(14, 14, 26, 0.9);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.06);
  object-fit: cover;
}

/* ---------- 天空 / 八卦 ---------- */
.sky-panel {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
    linear-gradient(160deg, #0c0c1e, #080810 50%, #0a0a18);
  box-shadow: var(--shadow-lg), var(--shadow-cyan);
}

.sky-panel::before {
  content: "✦ 天机推演";
  position: absolute;
  left: 24px;
  top: 18px;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sky-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(260px, 48vmin, 360px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

#skyCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- 八卦环 ---------- */
.bagua-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(260px, 48vmin, 360px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: rgba(240, 240, 245, 0.5);
  pointer-events: none;
}

.bagua-ring::before,
.bagua-ring::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.bagua-ring::before {
  animation: ringBreath 6s ease-in-out infinite;
}

.bagua-ring::after {
  inset: 28%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.04), rgba(0, 212, 255, 0.02));
  animation: innerBreath 5s ease-in-out infinite;
}

.bagua-item {
  position: absolute;
  display: grid;
  place-items: center;
  gap: 3px;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-sm);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(10, 10, 20, 0.85));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 2;
  animation: trigramFloat 5s ease-in-out infinite;
}

.bagua-item b {
  color: var(--cyan-soft);
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
}

.bagua-item em {
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0;
  font-style: normal;
  font-weight: 600;
}

.qian { left: 50%; top: 5%; }
.dui { left: 83%; top: 19%; animation-delay: -0.6s; }
.li { left: 95%; top: 50%; animation-delay: -1.2s; }
.zhen { left: 83%; top: 81%; animation-delay: -1.8s; }
.kun { left: 50%; top: 95%; animation-delay: -2.4s; }
.gen { left: 17%; top: 81%; animation-delay: -3s; }
.kan { left: 5%; top: 50%; animation-delay: -3.6s; }
.xun { left: 17%; top: 19%; animation-delay: -4.2s; }

/* ---------- 太极 ---------- */
.taiji {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.04);
  z-index: 3;
}

.taiji svg {
  width: 78px;
  height: 78px;
  display: block;
  animation: taijiSpin 40s linear infinite;
}

.taiji-base { fill: #f0f0f5; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1; }
.taiji-white { fill: #f0f0f5; }
.taiji-black { fill: #0a0a14; }

/* ---------- 骨架屏 ---------- */
.skeleton-loader {
  display: none;
  gap: 24px;
}

.skeleton-loader:not([hidden]) {
  display: grid;
}

.skeleton-loader:not([hidden]) ~ .chart-panel,
.skeleton-loader:not([hidden]) ~ .tongshu-panel,
.skeleton-loader:not([hidden]) ~ .reading-panel {
  display: none;
}

.skeleton-panel { padding: 28px; }
.skeleton-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.skeleton-tabs { display: flex; gap: 10px; margin-bottom: 24px; }
.skeleton-grid { display: grid; gap: 14px; }
.skeleton-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.skeleton-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.skeleton-line {
  height: 14px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(124, 58, 237, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 2s ease-in-out infinite;
}

.skeleton-line.w-16 { width: 80px; }
.skeleton-line.w-24 { width: 140px; }
.skeleton-line.w-32 { width: 180px; }
.skeleton-line.w-40 { width: 220px; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-70 { width: 70%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-full { width: 100%; }

.skeleton-card {
  height: 120px; border-radius: var(--r-md);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(124, 58, 237, 0.06) 50%, rgba(255, 255, 255, 0.02) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 2s ease-in-out infinite;
}

/* ---------- 动画 ---------- */
@keyframes trigramFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes ringBreath { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.025); } }
@keyframes innerBreath { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.6; } }
@keyframes taijiSpin { to { transform: rotate(360deg); } }
@keyframes skeletonShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(0, 212, 255, 0); }
}

/* ---------- 输入面板 ---------- */
.input-panel {
  position: sticky;
  top: 28px;
  align-self: start;
  padding: 24px 24px 28px;
}

.brand-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.brand-row > div { min-width: 0; }

.seal {
  width: 48px; height: 48px;
  flex: 0 0 48px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(14, 14, 26, 0.95);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.04);
  object-fit: cover;
}

.brand-row h2 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-row p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* ---------- UX 标签 ---------- */
.ux-promise {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 16px;
}

.ux-promise span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
}

/* ---------- 认证盒子 ---------- */
.auth-box {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
}

.auth-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.auth-head strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  margin-top: 3px;
}

#balanceTag {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan-soft);
  background: rgba(0, 212, 255, 0.06);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.trial-box { display: grid; gap: 10px; }
.guest-copy { color: var(--muted); font-size: 13px; line-height: 1.55; }

.auth-forms { display: grid; gap: 10px; }
.auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.auth-actions button, #sendCodeBtn, #wechatPayBtn {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  min-height: 42px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.auth-actions button:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--line-strong); }

.auth-actions-secondary button, #sendCodeBtn {
  color: var(--cyan-soft);
  border-color: rgba(0, 212, 255, 0.15);
  background: rgba(0, 212, 255, 0.04);
}

#wechatPayBtn {
  color: #fff;
  background: var(--gradient-primary);
  border-color: transparent;
  font-weight: 700;
}
#wechatPayBtn:hover { filter: brightness(1.1); }
#wechatPayBtn:disabled { cursor: not-allowed; opacity: 0.4; filter: grayscale(0.5); }

.qr-box { display: none; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; padding: 14px; text-align: center; }
.qr-box img { width: 180px; height: 180px; }
.qr-box p { color: var(--paper); font-size: 13px; line-height: 1.5; }

.account-message { min-height: 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }

/* ---------- 快速话题 ---------- */
.quick-start { display: grid; gap: 12px; margin-bottom: 20px; }

.quick-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.quick-head strong { color: var(--ink); font-size: 14px; line-height: 1.35; font-weight: 700; }
.quick-head span { color: var(--muted); font-size: 12px; line-height: 1.35; }

.quick-topic-track {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.quick-topic-track::after {
  content: "";
  position: sticky;
  right: 0; top: 0; bottom: 0;
  width: 32px;
  margin-left: -32px;
  background: linear-gradient(90deg, transparent, rgba(10, 10, 20, 0.7));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}
.quick-topic-track.can-scroll-right::after { opacity: 1; }

.quick-topic {
  display: grid;
  flex: 0 0 108px;
  gap: 3px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition: all 0.25s ease;
}

.quick-topic:hover {
  border-color: rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.04);
}

.quick-topic strong { font-size: 15px; line-height: 1.15; font-weight: 700; }
.quick-topic span { color: var(--muted); font-size: 11px; line-height: 1.25; }

.quick-topic.active {
  border-color: rgba(0, 212, 255, 0.35);
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.04));
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.04);
}
.quick-topic.active span { color: var(--cyan-soft); }

/* ---------- 表单 ---------- */
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 14px;
}

label { display: grid; min-width: 0; gap: 8px; }
label span { color: var(--muted); font-size: 13px; line-height: 1.35; font-weight: 600; }
.wide { grid-column: 1 / -1; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  padding: 11px 14px;
  outline: none;
  font-size: 15px;
  line-height: 1.45;
  transition: all 0.25s ease;
}

input:hover, select:hover, textarea:hover {
  border-color: rgba(0, 212, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.08);
}

input, select { min-height: 46px; }
textarea { min-height: 116px; resize: vertical; }

select {
  color-scheme: dark;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

option { color: var(--ink); background: #14141e; }
option:checked, option:hover { color: var(--paper); background: var(--cyan-soft); }

.native-topic { display: none; opacity: 0; pointer-events: none; }
.topic-picker { position: relative; z-index: 30; }

.topic-trigger {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 44px 10px 14px;
  text-align: left;
  cursor: pointer;
  z-index: 1;
  transition: border-color 0.25s ease;
}
.topic-trigger:hover { border-color: rgba(0, 212, 255, 0.2); }

.topic-trigger::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.25s ease;
}
.topic-trigger[aria-expanded="true"]::after { transform: translateY(-35%) rotate(-135deg); }

.topic-trigger strong { color: var(--ink); font-size: 15px; line-height: 1.25; }
.topic-trigger small { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.2; }

.topic-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  width: min(360px, calc(100vw - 48px));
  max-height: 420px;
  overflow: auto;
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--r-md);
  background: #12121c;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  animation: fadeInUp 0.2s ease;
}

.topic-group + .topic-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.topic-group-title {
  display: flex;
  align-items: center;
  min-height: 28px;
  color: var(--cyan-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding: 4px 10px;
  letter-spacing: 0.04em;
}

.topic-options { display: grid; gap: 4px; }

.topic-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: var(--ink);
  background: transparent;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topic-option:hover, .topic-option.active {
  border-color: rgba(0, 212, 255, 0.25);
  background: rgba(0, 212, 255, 0.06);
}

.topic-option span { color: inherit; font-size: 15px; font-weight: 600; line-height: 1.25; }
.topic-option small { color: rgba(240, 240, 245, 0.3); font-size: 12px; line-height: 1; }
.topic-option:hover small, .topic-option.active small { color: rgba(240, 240, 245, 0.5); }

/* ---------- 日期控件 ---------- */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) hue-rotate(180deg) saturate(1.5);
  opacity: 0.6;
  cursor: pointer;
}

/* ---------- 错误 ---------- */
.field-error {
  display: block;
  min-height: 0;
  color: var(--magenta-soft);
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  transition: min-height 0.2s ease;
}
.field-error:not(:empty) { min-height: 1.35em; margin-top: 2px; }

input:user-invalid, select:user-invalid, textarea:user-invalid {
  border-color: var(--magenta);
  box-shadow: 0 0 0 4px rgba(255, 45, 149, 0.08);
}

.textarea-foot { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.char-count { flex: 0 0 auto; color: var(--subtle); font-size: 11px; line-height: 1.35; }

/* ---------- 提交按钮 ---------- */
button[type="submit"] {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--r-sm);
  color: #fff;
  background: var(--gradient-primary);
  min-height: 50px;
  padding: 14px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
  transition: all 0.25s ease;
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.25);
  filter: brightness(1.05);
}

button[type="submit"]:active { transform: translateY(0); }
button[type="submit"]:disabled { cursor: wait; opacity: 0.6; filter: grayscale(0.3); }

.btn-text, .btn-spinner { display: inline-flex; align-items: center; gap: 8px; }
button[type="submit"].is-loading .btn-text { display: none; }
button[type="submit"].is-loading .btn-spinner { display: inline-flex; }
.spinner-icon { width: 18px; height: 18px; animation: spin 0.8s linear infinite; }

/* ---------- 幽灵按钮 ---------- */
.ghost-button {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  background: transparent;
  min-height: 44px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  transition: all 0.25s ease;
}
.ghost-button:hover { color: var(--ink); border-color: rgba(0, 212, 255, 0.3); background: rgba(0, 212, 255, 0.04); }

/* ---------- 额外字段 ---------- */
.extra-fields {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
}
.extra-fields[hidden] { display: none; }
.extra-head { display: grid; gap: 3px; }
.extra-head strong { color: var(--ink); font-size: 15px; }
.extra-head p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.extra-grid .wide { grid-column: 1 / -1; }

/* ---------- 免责 ---------- */
.source-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}

.source-box h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.source-box ul {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
  padding-left: 18px;
  margin: 0;
}

.source-box li { padding-left: 2px; color: var(--subtle); }
.source-box li::marker { color: rgba(0, 212, 255, 0.3); }

/* ---------- 章节头 ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}

.section-head h2 {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.32;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--cyan-soft);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.06em;
}

#confidenceTag, .soft-tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- 面板内边距 ---------- */
.chart-panel, .reading-panel, .tongshu-panel { padding: 28px; }
.reading-panel { border-color: rgba(0, 212, 255, 0.08); }

/* ---------- 四柱 ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 14px;
}

.pillar {
  min-height: 126px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-md);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), #f0f0f5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-sm);
  padding: 18px;
}

.pillar h3 {
  margin: 0 0 10px;
  color: #6b6a7e;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pillar .chars { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; }
.pillar .stem, .pillar .branch { font-size: 34px; line-height: 1; font-weight: 700; }
.pillar .stem { color: #0a0a14; }
.pillar .branch { color: #5a5a7a; }
.pillar p { color: #6b6a7e; font-size: 13px; line-height: 1.55; }

/* ---------- 五行条 ---------- */
.element-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 22px; }
.element { min-width: 0; }
.element .bar-track {
  height: 8px; overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.element .bar-fill { height: 100%; border-radius: inherit; transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.element strong { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 8px; color: var(--muted); font-size: 13px; line-height: 1.35; font-weight: 600; }

/* ---------- 通书 ---------- */
.tongshu-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) repeat(2, minmax(190px, 0.85fr));
  gap: 14px;
}

.tongshu-card {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  padding: 18px;
}

.tongshu-card h3 { color: var(--ink); font-size: 16px; line-height: 1.35; font-weight: 700; }
.tongshu-card p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-top: 6px; }

.tongshu-brief {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.03), rgba(124, 58, 237, 0.02));
}
.tongshu-brief h3 { margin: 8px 0 10px; font-size: 19px; }

.action-card { display: grid; align-content: start; gap: 12px; }
.action-card.good { border-color: rgba(0, 212, 255, 0.1); }
.action-card.wait { background: rgba(255, 255, 255, 0.02); }
.action-head { display: flex; align-items: center; gap: 10px; }
.action-head span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px;
  background: rgba(0, 212, 255, 0.06);
  color: var(--cyan-soft); font-size: 14px; font-weight: 700;
}

.action-list { display: flex; flex-wrap: wrap; gap: 8px; }
.action-list span {
  display: inline-flex; align-items: center;
  min-height: 30px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted); padding: 5px 10px; font-size: 14px; line-height: 1.25;
}

.hour-note { margin-top: 2px; border-top: 1px solid var(--line); padding-top: 10px; }

.day-token {
  display: inline-flex; align-items: center;
  min-height: 34px; border-radius: 999px;
  background: var(--paper); color: var(--cyan-soft);
  padding: 7px 12px; font-size: 13px; font-weight: 700; line-height: 1;
}

/* ---------- 标签页 ---------- */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  min-height: 36px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: all 0.25s ease;
}

.tab:hover {
  color: var(--ink);
  border-color: rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.04);
}

.tab.active {
  color: #fff;
  background: var(--gradient-primary);
  border-color: transparent;
  font-weight: 700;
}

/* ---------- 解读内容 ---------- */
.reading {
  color: var(--muted);
  line-height: 1.86;
  font-size: 16px;
  max-width: 980px;
  animation: fadeInUp 0.4s ease;
}

.reading strong { color: var(--cyan-soft); font-weight: 700; }
.reading h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 800;
}
.reading p { margin: 0 0 18px; max-width: 72em; }

.reading pre {
  overflow: auto;
  max-height: 420px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.5);
  color: var(--ink);
  padding: 18px;
  font-size: 13px;
  line-height: 1.65;
}

/* ---------- 降级 ---------- */
@supports not (backdrop-filter: blur(1px)) {
  .panel { background: rgba(14, 14, 26, 0.98); }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .bagua-ring::before, .bagua-ring::after, .bagua-item, .taiji svg { animation: none; }
  .skeleton-line, .skeleton-card { animation: none; background: rgba(255, 255, 255, 0.04); }
  .spinner-icon { animation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1024px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .input-panel { order: 1; position: static; }
  .results { order: 2; }
}

@media (max-width: 980px) {
  .app-shell { padding: 12px; }
  .workspace { display: flex; flex-direction: column; gap: 16px; }
  .input-panel { padding: 18px; }
  .results { gap: 16px; }
  .skeleton-loader { gap: 16px; }
  .brand-row { gap: 12px; margin-bottom: 14px; }
  .ux-promise { margin-bottom: 14px; }
  .seal { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; }
  .brand-row h2 { font-size: 19px; }
  .brand-row p { max-width: 28em; font-size: 13px; }
  .auth-box { gap: 10px; margin-bottom: 16px; padding: 14px; }
  .auth-head strong { font-size: 14px; }
  .guest-copy, .account-message { font-size: 12px; }
  .form-grid { gap: 14px 12px; }
  .workspace, .pillar-grid, .tongshu-grid { grid-template-columns: 1fr; }
  .hero-head { min-height: 72px; padding: 14px 18px; }
  .hero-head h1 { font-size: 32px; }
  .hero-logo { width: 38px; height: 38px; border-radius: 10px; }
  .sky-panel { min-height: 320px; }
  .bagua-ring, .sky-panel::after { width: clamp(240px, 72vw, 310px); }
  .bagua-item { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
  .bagua-item b { font-size: 20px; }
  .bagua-item em { font-size: 15px; }
  .taiji { width: 86px; height: 86px; }
  .taiji svg { width: 66px; height: 66px; }
  .chart-panel, .reading-panel, .tongshu-panel { padding: 20px; }
  .element-bars { grid-template-columns: 1fr; }
  .source-box { margin-top: 16px; padding-top: 16px; }
  .source-box ul { max-height: 120px; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .app-shell { padding: 8px; }
  .panel { border-radius: var(--r-md); }
  .input-panel { padding: 14px; }
  .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wide, .extra-fields, button[type="submit"], .ghost-button { grid-column: 1 / -1; }
  .extra-grid { grid-template-columns: 1fr; }
  .section-head, .tabs { flex-wrap: wrap; }
  label { gap: 6px; }
  label span { font-size: 12px; }
  input, select, textarea { min-height: 42px; border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; }
  textarea { min-height: 88px; }
  .quick-start { margin-bottom: 16px; }
  .quick-head span { display: none; }
  .quick-topic { min-height: 52px; flex-basis: 96px; }
  .ux-promise span { font-size: 11px; padding-inline: 8px; }
  .topic-trigger { min-height: 48px; padding: 10px 14px; }
  .extra-fields { padding: 14px; }
  button[type="submit"] { position: sticky; bottom: 8px; z-index: 20; min-height: 48px; }
  .ghost-button { min-height: 40px; }
  .hero-head { display: none; }
  .sky-panel { min-height: 280px; }
  .bagua-ring, .sky-panel::after { width: min(76vw, 276px); }
  .bagua-item { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .bagua-item b { font-size: 18px; }
  .bagua-item em { font-size: 14px; }
  .taiji { width: 74px; height: 74px; }
  .taiji svg { width: 56px; height: 56px; }
  .skeleton-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .skeleton-grid.cols-3 { grid-template-columns: 1fr; }
  .skeleton-panel { padding: 16px; }
  .skeleton-card { height: 100px; }
}

/* ============================================================
   UI/UX Pro Max · Fresh Luxury Redesign
   高级清新：克制黑白、青柠点睛、雾面玻璃、移动端先使用
   ============================================================ */

:root {
  --ink: #f7f8f3;
  --muted: #a8b0a8;
  --subtle: #737b72;
  --paper: #070807;
  --surface: rgba(14, 16, 13, 0.82);
  --surface-soft: rgba(255, 255, 255, 0.045);
  --surface-paper: #f5f7f0;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(223, 255, 95, 0.28);
  --cyan: #dfff5f;
  --cyan-soft: #e6ff7a;
  --cyan-dark: #9ab83a;
  --cyan-glow: rgba(223, 255, 95, 0.16);
  --magenta: #ff7a7a;
  --magenta-soft: #ff9b9b;
  --purple: #c8b8ff;
  --purple-soft: #ded6ff;
  --gradient-primary: linear-gradient(135deg, #f8ffcf 0%, #dfff5f 52%, #b6d83e 100%);
  --gradient-accent: linear-gradient(135deg, rgba(223, 255, 95, 0.18), rgba(255, 255, 255, 0.08));
  --gradient-text: linear-gradient(135deg, #ffffff 0%, #efffd2 46%, #dfff5f 100%);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.26);
  --shadow-md: 0 18px 54px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 28px 92px rgba(0, 0, 0, 0.46);
  --shadow-cyan: 0 0 44px rgba(223, 255, 95, 0.08);
  --blur: blur(22px);
  --blur-sm: blur(14px);
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --font-sans: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  color: var(--ink);
  font-family: var(--font-sans);
  letter-spacing: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(223, 255, 95, 0.14), transparent 25%),
    radial-gradient(circle at 84% 2%, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #11140f 0%, #060706 45%, #080a08 100%);
}

body::before {
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.72;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 78%);
}

.app-shell {
  padding: clamp(14px, 2.1vw, 30px);
}

.workspace {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  gap: clamp(18px, 2vw, 30px);
  max-width: 1560px;
}

.panel {
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(10, 11, 9, 0.86);
  box-shadow: var(--shadow-md);
}

.panel::before {
  border-color: rgba(255, 255, 255, 0.045);
}

.results {
  gap: clamp(16px, 1.8vw, 24px);
}

.hero-head {
  min-height: 106px;
  padding: 18px 26px;
  border-color: rgba(223, 255, 95, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(8, 9, 8, 0.7);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.26);
}

.hero-title {
  gap: 18px;
}

.hero-head h1 {
  color: #fff;
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-logo {
  width: 66px;
  height: 66px;
  flex-basis: 66px;
  border-radius: 18px;
  border-color: rgba(223, 255, 95, 0.32);
  background: #070807;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 18px 44px rgba(223, 255, 95, 0.08);
}

.sky-panel {
  min-height: clamp(420px, 46vw, 620px);
  border-color: rgba(223, 255, 95, 0.16);
  background:
    radial-gradient(circle at 50% 50%, rgba(223, 255, 95, 0.1), transparent 36%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    #050605;
  box-shadow: var(--shadow-lg), var(--shadow-cyan);
}

.sky-panel::before {
  content: "问卦星盘";
  color: rgba(247, 248, 243, 0.56);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sky-panel::after {
  width: clamp(310px, 50vmin, 500px);
  border-color: rgba(247, 248, 243, 0.12);
}

.bagua-ring {
  width: clamp(310px, 50vmin, 500px);
}

.bagua-ring::before,
.bagua-ring::after {
  border-color: rgba(247, 248, 243, 0.12);
}

.bagua-ring::after {
  background: radial-gradient(circle, rgba(223, 255, 95, 0.11), transparent 68%);
}

.bagua-item {
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  border-color: rgba(223, 255, 95, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(12, 13, 11, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 34px rgba(0, 0, 0, 0.28);
}

.bagua-item b {
  color: var(--cyan-soft);
  font-size: 30px;
}

.bagua-item em {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.taiji {
  width: 130px;
  height: 130px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 0 0 18px rgba(223, 255, 95, 0.035), 0 26px 58px rgba(0, 0, 0, 0.36);
}

.taiji svg {
  width: 96px;
  height: 96px;
}

.taiji-base {
  fill: #f8fafc;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1.2;
}

.taiji-white { fill: #f8fafc; }
.taiji-black { fill: #050505; }

.input-panel {
  top: 22px;
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(223, 255, 95, 0.35) transparent;
}

.input-panel::-webkit-scrollbar { width: 7px; }
.input-panel::-webkit-scrollbar-thumb { background: rgba(223, 255, 95, 0.28); border-radius: 999px; }

.brand-row {
  gap: 14px;
  margin-bottom: 14px;
}

.seal {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
  border-radius: 16px;
  border-color: rgba(223, 255, 95, 0.34);
}

.brand-row h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.brand-row p {
  max-width: 26em;
  color: rgba(247, 248, 243, 0.62);
  font-size: 13px;
}

.ux-promise {
  gap: 7px;
  margin: 0 0 13px;
}

.ux-promise span,
#confidenceTag,
.soft-tag,
#balanceTag,
.day-token {
  border-color: rgba(223, 255, 95, 0.25);
  background: rgba(223, 255, 95, 0.08);
  color: var(--cyan-soft);
}

.auth-box {
  gap: 8px;
  margin-bottom: 14px;
  padding: 13px;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.guest-copy {
  color: rgba(247, 248, 243, 0.64);
  font-size: 12px;
  line-height: 1.45;
}

.account-message {
  min-height: 16px;
}

.quick-start {
  gap: 9px;
  margin-bottom: 14px;
}

.quick-head strong {
  font-size: 15px;
}

.quick-topic-track {
  gap: 9px;
}

.quick-topic-track::after {
  background: linear-gradient(90deg, transparent, rgba(8, 9, 8, 0.92));
}

.quick-topic {
  flex-basis: 104px;
  min-height: 54px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
  padding: 9px 11px;
}

.quick-topic:hover,
.quick-topic.active {
  border-color: rgba(223, 255, 95, 0.46);
  background: rgba(223, 255, 95, 0.1);
  box-shadow: 0 14px 34px rgba(223, 255, 95, 0.06);
}

.quick-topic span,
.quick-head span,
label span,
.topic-trigger small,
.extra-head p,
.tongshu-card p,
.reading,
.source-box li {
  color: rgba(247, 248, 243, 0.62);
}

.quick-topic.active span,
.eyebrow,
.topic-group-title,
.reading strong {
  color: var(--cyan-soft);
}

.form-grid {
  gap: 13px 12px;
}

label {
  gap: 7px;
}

input,
select,
textarea,
.topic-trigger {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

input,
select {
  min-height: 48px;
}

textarea {
  min-height: 92px;
}

input:hover,
select:hover,
textarea:hover,
.topic-trigger:hover {
  border-color: rgba(223, 255, 95, 0.34);
  background: rgba(255, 255, 255, 0.07);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(223, 255, 95, 0.12);
}

.topic-trigger {
  min-height: 52px;
}

.topic-menu {
  border-color: rgba(223, 255, 95, 0.28);
  background: rgba(12, 13, 11, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
}

.topic-option:hover,
.topic-option.active {
  border-color: rgba(223, 255, 95, 0.35);
  background: rgba(223, 255, 95, 0.1);
}

.question-tip {
  margin-top: -2px;
  color: rgba(247, 248, 243, 0.48);
  font-size: 12px;
  line-height: 1.5;
}

button[type="submit"] {
  position: static;
  min-height: 52px;
  border-radius: 16px;
  color: #050505;
  background: var(--gradient-primary);
  box-shadow: 0 16px 44px rgba(223, 255, 95, 0.17);
}

button[type="submit"]:hover {
  box-shadow: 0 22px 54px rgba(223, 255, 95, 0.25);
}

.ghost-button {
  border-color: rgba(223, 255, 95, 0.22);
  color: var(--cyan-soft);
  background: rgba(223, 255, 95, 0.055);
}

.ghost-button:hover {
  border-color: rgba(223, 255, 95, 0.42);
  background: rgba(223, 255, 95, 0.11);
  color: #fff;
}

.extra-fields {
  gap: 12px;
  padding: 14px;
  border-color: rgba(223, 255, 95, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

.source-box {
  margin-top: 18px;
  padding-top: 16px;
}

.source-box ul {
  max-height: 132px;
}

.source-box li::marker {
  color: rgba(223, 255, 95, 0.46);
}

.chart-panel,
.reading-panel,
.tongshu-panel {
  padding: clamp(20px, 2.1vw, 30px);
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(20px, 1.7vw, 26px);
}

.pillar {
  border-color: rgba(255, 255, 255, 0.13);
  background: linear-gradient(145deg, #fbfcf5, #edf2e8);
}

.element .bar-track {
  border-color: rgba(255, 255, 255, 0.12);
}

.tongshu-grid {
  grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(190px, 0.9fr));
}

.tongshu-card {
  min-height: 148px;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.02);
}

.tongshu-brief {
  background:
    linear-gradient(145deg, rgba(247, 248, 243, 0.96), rgba(229, 238, 220, 0.96));
}

.tongshu-brief h3,
.tongshu-brief p {
  color: #10130e;
}

.action-head span,
.action-list span {
  border-color: rgba(223, 255, 95, 0.22);
  background: rgba(223, 255, 95, 0.08);
}

.tabs {
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 12px;
}

.tab {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.tab:hover,
.tab.active {
  color: #050505;
  background: var(--gradient-primary);
  border-color: transparent;
}

.reading {
  font-size: 16px;
  line-height: 1.88;
}

.reading h3 {
  font-size: 22px;
}

@media (max-width: 1024px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .input-panel {
    max-height: none;
    overflow: visible;
  }
}

@media (min-width: 561px) {
  .input-panel button[type="submit"] {
    position: sticky;
    bottom: 10px;
    z-index: 20;
  }
}

@media (max-width: 980px) {
  .app-shell {
    padding: 12px;
  }

  .workspace {
    gap: 14px;
  }

  .input-panel {
    padding: 16px;
  }

  .brand-row {
    margin-bottom: 10px;
  }

  .seal {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .brand-row h2 {
    font-size: 24px;
  }

  .brand-row p {
    font-size: 12px;
    line-height: 1.45;
  }

  .auth-box,
  .quick-start {
    margin-bottom: 12px;
  }

  .sky-panel {
    min-height: 340px;
  }

  .bagua-ring,
  .sky-panel::after {
    width: clamp(286px, 72vw, 380px);
  }

  .bagua-item {
    width: 70px;
    height: 70px;
    margin: -35px 0 0 -35px;
  }

  .bagua-item b {
    font-size: 24px;
  }

  .bagua-item em {
    font-size: 19px;
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding: 8px;
  }

  .input-panel {
    width: 100%;
    max-width: 100%;
    padding: 14px;
  }

  .brand-row {
    align-items: center;
  }

  .brand-row h2 {
    font-size: 26px;
  }

  .brand-row p {
    max-width: 24em;
  }

  .ux-promise {
    margin-bottom: 10px;
  }

  .auth-box {
    padding: 12px;
  }

  .quick-head span {
    display: none;
    font-size: 11px;
  }

  .quick-topic {
    flex-basis: 96px;
    min-height: 50px;
    padding: 8px 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px 10px;
  }

  .workspace,
  .panel,
  .topic-picker,
  .topic-trigger,
  .quick-topic-track {
    min-width: 0;
    max-width: 100%;
  }

  .topic-menu {
    left: 0;
    right: auto;
    width: min(100%, calc(100vw - 44px));
  }

  input,
  select,
  textarea {
    min-height: 44px;
  }

  textarea {
    min-height: 86px;
  }

  .topic-trigger {
    min-height: 48px;
  }

  button[type="submit"] {
    min-height: 50px;
    bottom: 10px;
    box-shadow: 0 18px 46px rgba(223, 255, 95, 0.24);
  }

  .sky-panel {
    min-height: 306px;
  }

  .sky-panel::before {
    left: 16px;
    top: 14px;
  }

  .bagua-ring,
  .sky-panel::after {
    width: min(82vw, 300px);
  }

  .bagua-item {
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    border-radius: 14px;
  }

  .bagua-item b {
    font-size: 19px;
  }

  .bagua-item em {
    font-size: 16px;
  }

  .taiji {
    width: 78px;
    height: 78px;
    box-shadow: 0 0 0 10px rgba(223, 255, 95, 0.035), 0 18px 40px rgba(0, 0, 0, 0.32);
  }

  .taiji svg {
    width: 58px;
    height: 58px;
  }
}

/* ============================================================
   Fresh Energy UI · 2026-05-20
   参考方向：清新能量饮料风，浅色、青柠、粗标题、胶囊按钮
   ============================================================ */

:root {
  --ink: #202020;
  --muted: #74786f;
  --subtle: #9aa092;
  --paper: #fbfff4;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-soft: #f4f8ed;
  --line: rgba(32, 32, 32, 0.13);
  --line-strong: rgba(32, 32, 32, 0.28);
  --cyan: #b8d879;
  --cyan-soft: #7fa65a;
  --cyan-dark: #4f7a35;
  --cyan-glow: rgba(128, 166, 91, 0.18);
  --magenta: #ff5f5f;
  --magenta-soft: #d34545;
  --purple: #202020;
  --purple-soft: #202020;
  --gradient-primary: linear-gradient(135deg, #f4f8dc 0%, #d8eaa1 52%, #9fca72 100%);
  --gradient-accent: linear-gradient(135deg, rgba(184, 216, 121, 0.24), rgba(255, 255, 255, 0.9));
  --gradient-text: linear-gradient(180deg, #202020 0%, #202020 48%, #b8d879 48%, #b8d879 100%);
  --shadow-sm: 0 10px 28px rgba(32, 32, 32, 0.08);
  --shadow-md: 0 18px 50px rgba(32, 32, 32, 0.1);
  --shadow-lg: 0 30px 90px rgba(32, 32, 32, 0.14);
  --shadow-cyan: 0 20px 70px rgba(128, 166, 91, 0.14);
  --blur: blur(18px);
  --blur-sm: blur(10px);
  --r-sm: 18px;
  --r-md: 24px;
  --r-lg: 32px;
  --r-xl: 40px;
  --font-sans: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 16%, rgba(184, 216, 121, 0.16), transparent 30%),
    radial-gradient(circle at 12% 72%, rgba(128, 166, 91, 0.1), transparent 26%),
    linear-gradient(180deg, #fffffb 0%, #f8faef 46%, #f0f5e4 100%);
}

body::before {
  opacity: 0.44;
  background-image:
    linear-gradient(90deg, rgba(32, 32, 32, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(32, 32, 32, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 76%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 50% 104%, rgba(184, 216, 121, 0.12), transparent 30%);
}

* {
  letter-spacing: 0 !important;
}

.app-shell {
  padding: 24px;
}

.workspace {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 450px);
  gap: 24px;
  max-width: 1600px;
}

.panel {
  border: 1px solid rgba(32, 32, 32, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(247, 250, 239, 0.76));
  box-shadow: var(--shadow-md);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.panel::before {
  border-color: rgba(255, 255, 255, 0.74);
}

.results {
  gap: 22px;
}

.hero-head {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.62fr);
  align-items: center;
  gap: 28px;
  padding: 48px;
  border-color: rgba(32, 32, 32, 0.14);
  border-radius: 46px;
  background:
    radial-gradient(circle at 82% 20%, rgba(184, 216, 121, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 239, 0.76));
  box-shadow: var(--shadow-lg);
}

.hero-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 22px;
  min-width: 0;
}

.fresh-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 999px;
  background: #202020;
  color: #f8f8ef;
  padding: 10px 18px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.fresh-badge span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(184, 216, 121, 0.12);
}

.hero-title {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.hero-logo {
  width: 86px;
  height: 86px;
  flex-basis: 86px;
  border: 4px solid #202020;
  border-radius: 24px;
  background: #fbfff4;
  box-shadow: 0 18px 40px rgba(32, 32, 32, 0.12);
}

.hero-head h1 {
  display: grid;
  gap: 4px;
  color: #202020;
  font-size: 92px;
  line-height: 0.9;
  font-weight: 900;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-head h1 span {
  color: #202020;
  font-size: 96px;
  line-height: 0.92;
}

.hero-head h1 strong {
  color: var(--cyan);
  font-size: 76px;
  line-height: 0.98;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(32, 32, 32, 0.08);
}

.hero-subtitle {
  max-width: 560px;
  color: #74786f;
  font-size: 28px;
  line-height: 1.38;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 999px;
  padding: 14px 30px;
  color: #202020;
  text-decoration: none;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-link {
  background: var(--gradient-primary);
  box-shadow: 0 16px 36px rgba(88, 124, 55, 0.14);
}

.primary-link::after {
  content: "→";
  margin-left: 12px;
  font-size: 21px;
}

.secondary-link {
  border: 3px solid #202020;
  background: rgba(255, 255, 255, 0.58);
}

.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-2px);
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #74786f;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.hero-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-benefits span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
}

.hero-float {
  justify-self: end;
  display: grid;
  align-content: center;
  gap: 12px;
  width: min(100%, 320px);
  min-height: 240px;
  border: 2px solid rgba(32, 32, 32, 0.12);
  border-radius: 42px;
  background:
    radial-gradient(circle at 56% 42%, rgba(184, 216, 121, 0.24), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(242, 248, 232, 0.92));
  padding: 28px;
  box-shadow: 0 30px 80px rgba(88, 124, 55, 0.12);
  transform: rotate(2deg);
}

.hero-float span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #202020;
  color: var(--cyan);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 900;
}

.hero-float strong {
  max-width: 240px;
  color: #202020;
  font-size: 34px;
  line-height: 1.06;
  font-weight: 900;
}

.sky-panel {
  min-height: 520px;
  border: 1px solid rgba(32, 32, 32, 0.14);
  border-radius: 46px;
  background:
    radial-gradient(circle at 52% 48%, rgba(184, 216, 121, 0.16), transparent 34%),
    linear-gradient(135deg, #fbfff4, #f0f5e4);
  box-shadow: var(--shadow-lg);
}

.sky-panel::before {
  content: "问卦星盘";
  color: #74786f;
  font-size: 15px;
  font-weight: 900;
  text-transform: none;
}

.sky-panel::after {
  width: 520px;
  border-color: rgba(32, 32, 32, 0.12);
}

.bagua-ring {
  width: 520px;
  color: #202020;
}

.bagua-ring::before,
.bagua-ring::after {
  border-color: rgba(32, 32, 32, 0.13);
}

.bagua-ring::after {
  background: radial-gradient(circle, rgba(184, 216, 121, 0.16), transparent 64%);
}

.bagua-item {
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border: 2px solid rgba(32, 32, 32, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 44px rgba(32, 32, 32, 0.11);
}

.bagua-item b {
  color: var(--cyan-dark);
  font-size: 34px;
  font-weight: 900;
}

.bagua-item em {
  color: #202020;
  font-size: 24px;
  font-weight: 900;
}

.taiji {
  width: 142px;
  height: 142px;
  border: 3px solid rgba(32, 32, 32, 0.2);
  background: #fbfff4;
  box-shadow: 0 0 0 22px rgba(184, 216, 121, 0.12), 0 30px 72px rgba(32, 32, 32, 0.14);
}

.taiji svg {
  width: 102px;
  height: 102px;
}

.taiji-base {
  fill: #f8fafc;
  stroke: rgba(32, 32, 32, 0.68);
  stroke-width: 1.3;
}

.taiji-black {
  fill: #101010;
}

.taiji-white {
  fill: #f8fafc;
}

.input-panel {
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 239, 0.86));
}

.brand-row {
  gap: 16px;
  margin-bottom: 16px;
}

.seal {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  border: 3px solid #202020;
  border-radius: 20px;
  background: #fbfff4;
}

.brand-row h2 {
  color: #202020;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.brand-row p {
  color: #74786f;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.ux-promise {
  gap: 8px;
  margin: 0 0 16px;
}

.ux-promise span,
#confidenceTag,
.soft-tag,
#balanceTag {
  border: 1px solid rgba(32, 32, 32, 0.16);
  background: #202020;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.auth-box,
.quick-start,
.extra-fields {
  border: 1px solid rgba(32, 32, 32, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.auth-box {
  padding: 18px;
  margin-bottom: 16px;
}

.auth-head strong,
.quick-head strong,
.extra-head strong,
.source-box h2,
.section-head h2,
.tongshu-card h3,
.reading h3 {
  color: #202020;
  font-weight: 900;
}

.eyebrow {
  color: var(--cyan-dark);
  font-weight: 900;
}

.guest-copy,
.account-message,
.quick-head span,
label span,
.topic-trigger small,
.question-tip,
.extra-head p,
.source-box li,
.reading,
.tongshu-card p,
.element strong {
  color: #74786f;
}

.quick-start {
  padding: 14px;
}

.quick-topic-track::after {
  background: linear-gradient(90deg, transparent, rgba(251, 255, 244, 0.92));
}

.quick-topic {
  flex-basis: 112px;
  min-height: 62px;
  border: 1px solid rgba(32, 32, 32, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  color: #202020;
}

.quick-topic strong {
  color: #202020;
  font-size: 17px;
  font-weight: 900;
}

.quick-topic span {
  color: #74786f;
}

.quick-topic:hover,
.quick-topic.active {
  border-color: rgba(32, 32, 32, 0.32);
  background: var(--gradient-primary);
  box-shadow: 0 14px 30px rgba(88, 124, 55, 0.14);
}

.quick-topic.active span {
  color: var(--cyan-dark);
}

input,
select,
textarea,
.topic-trigger {
  border: 1px solid rgba(32, 32, 32, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  color: #202020;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

input,
select {
  min-height: 56px;
}

textarea {
  min-height: 116px;
}

input:hover,
select:hover,
textarea:hover,
.topic-trigger:hover {
  border-color: rgba(32, 32, 32, 0.34);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #8cad65;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(184, 216, 121, 0.22);
}

select {
  color-scheme: light;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23202020' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-position: calc(100% - 16px) 50% !important;
  background-size: 20px 20px !important;
  background-repeat: no-repeat !important;
  padding-right: 46px;
}

option {
  color: #202020;
  background: #fbfff4;
}

option:checked,
option:hover {
  color: #202020;
  background: var(--cyan);
}

.topic-trigger {
  min-height: 60px;
}

.topic-trigger strong {
  color: #202020;
  font-weight: 900;
}

.topic-trigger::after {
  border-color: #202020;
}

.topic-menu {
  border: 2px solid rgba(32, 32, 32, 0.18);
  border-radius: 26px;
  background: #fbfff4;
  box-shadow: 0 28px 70px rgba(32, 32, 32, 0.18);
}

.topic-group + .topic-group {
  border-top-color: rgba(32, 32, 32, 0.12);
}

.topic-group-title {
  color: var(--cyan-dark);
}

.topic-option {
  color: #202020;
}

.topic-option span {
  color: #202020;
  font-weight: 900;
}

.topic-option small {
  color: #9aa092;
}

.topic-option:hover,
.topic-option.active {
  border-color: rgba(32, 32, 32, 0.18);
  background: var(--gradient-primary);
}

.field-error {
  color: #c83232;
}

.char-count {
  color: #9aa092;
}

button[type="submit"] {
  min-height: 62px;
  border-radius: 999px;
  color: #202020;
  background: var(--gradient-primary);
  box-shadow: 0 18px 42px rgba(88, 124, 55, 0.18);
  font-size: 18px;
  font-weight: 900;
}

button[type="submit"]:hover {
  box-shadow: 0 24px 52px rgba(88, 124, 55, 0.24);
}

.ghost-button {
  min-height: 54px;
  border: 3px solid #202020;
  border-radius: 999px;
  color: #202020;
  background: rgba(255, 255, 255, 0.6);
  font-weight: 900;
}

.ghost-button:hover {
  color: #202020;
  border-color: #202020;
  background: var(--cyan);
}

.source-box {
  border-top-color: rgba(32, 32, 32, 0.13);
}

.source-box ul {
  max-height: 150px;
}

.source-box li::marker {
  color: var(--cyan-dark);
}

.chart-panel,
.tongshu-panel,
.reading-panel {
  padding: 30px;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.78);
}

.pillar-grid {
  gap: 16px;
}

.pillar {
  min-height: 132px;
  border: 1px solid rgba(32, 32, 32, 0.12);
  border-radius: 28px;
  background: #fbfff4;
  box-shadow: 0 14px 36px rgba(32, 32, 32, 0.08);
}

.pillar h3,
.pillar p {
  color: #74786f;
}

.pillar .stem,
.pillar .branch {
  color: #202020;
  font-weight: 900;
}

.element .bar-track {
  border-color: rgba(32, 32, 32, 0.12);
  background: rgba(32, 32, 32, 0.06);
}

.tongshu-grid {
  grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(190px, 0.88fr));
}

.tongshu-card {
  border: 1px solid rgba(32, 32, 32, 0.12);
  border-radius: 30px;
  background: #fbfff4;
  box-shadow: 0 16px 36px rgba(32, 32, 32, 0.08);
}

.tongshu-brief {
  background: var(--gradient-primary);
}

.day-token {
  background: #202020;
  color: var(--cyan);
}

.action-head span,
.action-list span {
  border-color: rgba(32, 32, 32, 0.12);
  background: rgba(184, 216, 121, 0.18);
  color: var(--cyan-dark);
  font-weight: 800;
}

.hour-note {
  border-top-color: rgba(32, 32, 32, 0.12);
}

.tabs {
  border-bottom-color: rgba(32, 32, 32, 0.12);
}

.tab {
  border: 1px solid rgba(32, 32, 32, 0.13);
  background: rgba(255, 255, 255, 0.64);
  color: #74786f;
  font-weight: 900;
}

.tab:hover,
.tab.active {
  color: #202020;
  background: var(--gradient-primary);
  border-color: rgba(32, 32, 32, 0.18);
}

.reading {
  color: #4d5149;
  font-size: 17px;
  line-height: 1.9;
}

.reading strong {
  color: #3f8500;
  font-weight: 900;
}

.reading pre {
  border-color: rgba(32, 32, 32, 0.12);
  background: #fbfff4;
  color: #202020;
}

.skeleton-line,
.skeleton-card {
  background: linear-gradient(90deg, rgba(32, 32, 32, 0.05) 25%, rgba(184, 216, 121, 0.18) 50%, rgba(32, 32, 32, 0.05) 75%);
  background-size: 200% 100%;
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .input-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 980px) {
  .app-shell {
    padding: 12px;
  }

  .workspace {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .input-panel {
    order: 1;
    width: 100%;
    padding: 16px;
  }

  .results {
    order: 2;
  }

  .hero-head {
    order: -1;
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .hero-float {
    display: none;
  }

  .hero-title {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }

  .hero-logo {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border-radius: 18px;
  }

  .hero-head h1 {
    font-size: 56px;
  }

  .hero-head h1 span {
    font-size: 60px;
  }

  .hero-head h1 strong {
    font-size: 44px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .primary-link,
  .secondary-link {
    min-height: 50px;
    padding: 12px 20px;
    font-size: 15px;
  }

  .sky-panel {
    min-height: 360px;
  }

  .bagua-ring,
  .sky-panel::after {
    width: min(76vw, 360px);
  }

  .bagua-item {
    width: 68px;
    height: 68px;
    margin: -34px 0 0 -34px;
    border-radius: 20px;
  }

  .bagua-item b {
    font-size: 24px;
  }

  .bagua-item em {
    font-size: 18px;
  }

  .taiji {
    width: 92px;
    height: 92px;
    box-shadow: 0 0 0 12px rgba(184, 216, 121, 0.12), 0 20px 44px rgba(32, 32, 32, 0.12);
  }

  .taiji svg {
    width: 66px;
    height: 66px;
  }

  .tongshu-grid,
  .pillar-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding: 8px;
  }

  .hero-head {
    border-radius: 30px;
    padding: 22px;
  }

  .fresh-badge {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero-title {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .hero-logo {
    width: 54px;
    height: 54px;
    border-width: 3px;
  }

  .hero-head h1 {
    font-size: 44px;
  }

  .hero-head h1 span {
    font-size: 48px;
  }

  .hero-head h1 strong {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
  }

  .secondary-link {
    display: none;
  }

  .hero-benefits {
    gap: 10px;
    font-size: 12px;
  }

  .brand-row {
    margin-bottom: 12px;
  }

  .seal {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 16px;
  }

  .brand-row h2 {
    font-size: 28px;
  }

  .brand-row p {
    font-size: 12px;
  }

  .ux-promise span {
    padding: 6px 10px;
    font-size: 11px;
  }

  .auth-box,
  .quick-start,
  .extra-fields,
  .chart-panel,
  .tongshu-panel,
  .reading-panel {
    border-radius: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  input,
  select,
  textarea,
  .topic-trigger {
    min-height: 50px;
    border-radius: 18px;
  }

  textarea {
    min-height: 98px;
  }

  button[type="submit"] {
    position: sticky;
    bottom: 10px;
    z-index: 20;
    min-height: 56px;
  }

  .sky-panel {
    min-height: 310px;
    border-radius: 30px;
  }

  .sky-panel::before {
    left: 18px;
    top: 16px;
    font-size: 13px;
  }

  .bagua-ring,
  .sky-panel::after {
    width: min(78vw, 288px);
  }

  .bagua-item {
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    border-radius: 16px;
  }

  .bagua-item b {
    font-size: 19px;
  }

  .bagua-item em {
    font-size: 15px;
  }

  .taiji {
    width: 76px;
    height: 76px;
  }

  .taiji svg {
    width: 54px;
    height: 54px;
  }
}

/* 青柠 Logo 与手机体验补强 */
.hero-logo,
.seal {
  object-fit: contain;
  padding: 6px;
  background: #fbfff4;
}

@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at 78% 4%, rgba(184, 216, 121, 0.13), transparent 24%),
      radial-gradient(circle at 8% 34%, rgba(128, 166, 91, 0.08), transparent 22%),
      linear-gradient(180deg, #fffffb 0%, #f8faef 52%, #f0f5e4 100%);
  }

  .app-shell {
    padding: 0;
  }

  .workspace {
    width: 100%;
    max-width: none;
    margin: 0;
    gap: 0;
  }

  .input-panel {
    border: 0;
    border-bottom: 1px solid rgba(32, 32, 32, 0.1);
    border-radius: 0 0 30px 30px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 42px rgba(32, 32, 32, 0.08);
  }

  .brand-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .seal {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-width: 3px;
    border-radius: 18px;
    padding: 5px;
  }

  .brand-row h2 {
    font-size: 32px;
    line-height: 0.95;
  }

  .brand-row p {
    margin-top: 6px;
    max-width: 18em;
    color: #62675f;
    font-size: 13px;
  }

  .input-panel .ux-promise {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
  }

  .input-panel .ux-promise span {
    justify-content: center;
    min-width: 0;
    width: 100%;
    min-height: 32px;
    padding-inline: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .auth-box {
    padding: 14px;
    margin-bottom: 14px;
  }

  .auth-head {
    align-items: start;
  }

  #balanceTag {
    padding: 7px 10px;
  }

  .quick-start {
    padding: 14px;
    margin-bottom: 14px;
  }

  .quick-head {
    margin-bottom: 2px;
  }

  .quick-topic-track {
    gap: 10px;
    margin-inline: -2px;
    padding: 2px 2px 8px;
  }

  .quick-topic {
    flex: 0 0 112px;
    min-height: 60px;
  }

  label {
    gap: 7px;
  }

  label span {
    font-size: 13px;
    font-weight: 800;
  }

  input,
  select,
  textarea,
  .topic-trigger {
    font-size: 16px;
  }

  .question-tip {
    font-size: 12px;
  }

  .source-box {
    margin-top: 16px;
    padding-bottom: 72px;
  }

  .results {
    width: 100%;
    padding: 12px 8px 18px;
  }

  .results .hero-head {
    display: none;
  }

  .sky-panel {
    min-height: 250px;
    border-radius: 28px;
  }

  .sky-panel::before {
    content: "青柠罗盘";
  }

  .chart-panel,
  .tongshu-panel,
  .reading-panel {
    padding: 18px;
  }

  .section-head {
    gap: 10px;
    margin-bottom: 14px;
  }

  .section-head h2 {
    font-size: 20px;
  }

  .tabs {
    position: sticky;
    top: 0;
    z-index: 12;
    margin: -18px -18px 16px;
    padding: 12px 18px;
    background: rgba(251, 255, 244, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .tab {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    padding-inline: 10px;
  }

  .reading {
    font-size: 15px;
    line-height: 1.82;
  }
}

@media (max-width: 390px) {
  .input-panel {
    padding: 13px;
  }

  .brand-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .seal {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .brand-row h2 {
    font-size: 29px;
  }

  .ux-promise span {
    font-size: 10px;
  }

  .quick-topic {
    flex-basis: 104px;
  }
}

body .input-panel .ux-promise {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

body .input-panel .ux-promise span {
  justify-content: center !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 30px !important;
  padding: 6px 4px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  html,
  body,
  .app-shell,
  .workspace {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .workspace {
    display: flex !important;
    flex-direction: column !important;
  }

  .panel,
  .input-panel,
  .results {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .input-panel {
    width: 100% !important;
    max-width: 100vw !important;
    padding-inline: 16px !important;
  }

  body .input-panel .ux-promise {
    display: flex !important;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    flex-wrap: nowrap !important;
  }

  body .input-panel .ux-promise span {
    flex: 1 1 0 !important;
    width: auto !important;
  }
}

/* Fresh Air UI · 减少黑块与荧光感，提升清新度 */
:root {
  --ink: #17211b;
  --muted: #66766b;
  --subtle: #8a978d;
  --paper: #fbfdf7;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-soft: #f5f9f0;
  --line: rgba(23, 33, 27, 0.1);
  --line-strong: rgba(23, 33, 27, 0.2);
  --cyan: #b7d98b;
  --cyan-soft: #6fa66f;
  --cyan-dark: #2f6f4b;
  --cyan-glow: rgba(111, 166, 111, 0.12);
  --gradient-primary: linear-gradient(135deg, #f4f8d9 0%, #d7edb3 52%, #a7d48a 100%);
  --gradient-accent: linear-gradient(135deg, rgba(183, 217, 139, 0.18), rgba(255, 255, 255, 0.94));
  --shadow-sm: 0 8px 22px rgba(23, 33, 27, 0.055);
  --shadow-md: 0 14px 38px rgba(23, 33, 27, 0.07);
  --shadow-lg: 0 22px 62px rgba(23, 33, 27, 0.09);
}

body {
  background:
    radial-gradient(circle at 76% 8%, rgba(183, 217, 139, 0.11), transparent 28%),
    radial-gradient(circle at 7% 74%, rgba(159, 210, 196, 0.13), transparent 30%),
    linear-gradient(180deg, #fffffc 0%, #fbfcf4 48%, #f3f8ed 100%);
}

body::before {
  opacity: 0.22;
  background-size: 84px 84px;
}

body::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), transparent 20%, transparent 80%, rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at 50% 106%, rgba(159, 210, 196, 0.1), transparent 32%);
}

.panel,
.hero-head,
.input-panel {
  border-color: rgba(23, 33, 27, 0.09);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(249, 252, 244, 0.84));
  box-shadow: var(--shadow-md);
}

.hero-head {
  background:
    radial-gradient(circle at 80% 18%, rgba(183, 217, 139, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 253, 246, 0.86));
}

.fresh-badge,
.hero-float span,
.ux-promise span,
#confidenceTag,
.soft-tag,
#balanceTag,
.day-token {
  border: 1px solid rgba(47, 111, 75, 0.18);
  background: rgba(255, 255, 255, 0.74);
  color: var(--cyan-dark);
  box-shadow: none;
}

.fresh-badge {
  color: #2f6f4b;
}

.fresh-badge span,
.hero-benefits span::before {
  background: #8fcf96;
  box-shadow: 0 0 0 6px rgba(143, 207, 150, 0.12);
}

.hero-head h1 strong {
  color: #8fbc5e;
  text-shadow: none;
}

.hero-subtitle {
  color: #68786c;
}

.primary-link,
button[type="submit"] {
  color: #17211b;
  background:
    linear-gradient(135deg, #f8fbdc 0%, #dff1b9 48%, #b6dc91 100%);
  box-shadow: 0 14px 32px rgba(92, 132, 71, 0.13);
}

.primary-link:hover,
button[type="submit"]:hover {
  box-shadow: 0 18px 40px rgba(92, 132, 71, 0.18);
}

.secondary-link,
.ghost-button {
  border-color: rgba(23, 33, 27, 0.74);
  background: rgba(255, 255, 255, 0.72);
}

.hero-float {
  border-color: rgba(23, 33, 27, 0.08);
  background:
    radial-gradient(circle at 58% 40%, rgba(183, 217, 139, 0.14), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(247, 251, 241, 0.82));
  box-shadow: 0 18px 48px rgba(23, 33, 27, 0.07);
  transform: rotate(1deg);
}

.auth-box,
.quick-start,
.extra-fields,
.topic-menu,
.reading-panel,
.chart-panel,
.tongshu-panel {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 26px rgba(23, 33, 27, 0.055);
}

.quick-topic {
  background: rgba(255, 255, 255, 0.7);
}

.quick-topic:hover,
.quick-topic.active,
.topic-option:hover,
.topic-option.active {
  background: linear-gradient(135deg, #f4f8d9 0%, #dff1b9 100%);
  box-shadow: 0 12px 28px rgba(92, 132, 71, 0.11);
}

input,
select,
textarea,
.topic-trigger {
  border-color: rgba(23, 33, 27, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #95bf83;
  box-shadow: 0 0 0 5px rgba(149, 191, 131, 0.18);
}

.sky-panel {
  background:
    radial-gradient(circle at 52% 48%, rgba(183, 217, 139, 0.11), transparent 34%),
    linear-gradient(135deg, #fdfff9, #f5f9f0);
}

.taiji {
  box-shadow: 0 0 0 18px rgba(183, 217, 139, 0.08), 0 22px 52px rgba(23, 33, 27, 0.1);
}

@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at 82% 0%, rgba(183, 217, 139, 0.1), transparent 24%),
      radial-gradient(circle at 4% 38%, rgba(159, 210, 196, 0.11), transparent 24%),
      linear-gradient(180deg, #fffffc 0%, #fbfcf4 52%, #f3f8ed 100%);
  }

  .input-panel {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 32px rgba(23, 33, 27, 0.055);
  }
}

/* Typography Refresh · 清新可读字体系统 */
:root {
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC",
    "Microsoft YaHei", sans-serif;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  font-weight: 400;
  color: #17211b;
}

.hero-head h1,
.brand-row h2,
.section-head h2,
.auth-head strong,
.quick-head strong,
.extra-head strong,
.tongshu-card h3,
.reading h3 {
  font-family: var(--font-display);
  font-weight: 760;
}

.hero-head h1 {
  gap: 8px;
  font-size: 82px;
  line-height: 1.02;
  font-weight: 760;
}

.hero-head h1 span {
  font-size: 84px;
  line-height: 1.02;
  font-weight: 760;
}

.hero-head h1 strong {
  font-size: 64px;
  line-height: 1.08;
  font-weight: 720;
}

.hero-subtitle {
  max-width: 540px;
  font-size: 24px;
  line-height: 1.52;
  font-weight: 500;
}

.fresh-badge,
.hero-benefits,
.hero-float span,
.ux-promise span,
.soft-tag,
#confidenceTag,
#balanceTag {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.hero-float strong {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 760;
}

.brand-row h2 {
  font-size: 32px;
  line-height: 1.08;
  font-weight: 760;
}

.brand-row p,
.guest-copy,
.account-message,
.quick-head span,
label span,
.topic-trigger small,
.question-tip,
.source-box li,
.char-count {
  line-height: 1.62;
  font-weight: 500;
}

.quick-head strong {
  font-size: 17px;
  line-height: 1.45;
}

.quick-topic strong,
.topic-trigger strong,
.topic-option span {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.quick-topic span,
.topic-option small {
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}

.disclaimer-inline {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  border: 1px solid rgba(47, 111, 75, 0.14);
  border-radius: 18px;
  background: rgba(253, 255, 249, 0.74);
  padding: 12px 14px;
}

.disclaimer-inline strong {
  color: var(--cyan-dark);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 760;
}

.disclaimer-inline p {
  margin: 0;
  color: #66766b;
  font-size: 12px;
  line-height: 1.62;
  font-weight: 500;
}

label span {
  font-size: 14px;
}

input,
select,
textarea,
.topic-trigger {
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
}

button[type="submit"],
.primary-link,
.secondary-link,
.ghost-button {
  font-size: 17px;
  line-height: 1.28;
  font-weight: 760;
}

.section-head h2 {
  font-size: 23px;
  line-height: 1.36;
}

.reading {
  font-size: 16px;
  line-height: 1.96;
  font-weight: 400;
}

.reading h3 {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 760;
}

.reading p {
  max-width: 68em;
}

.reading strong {
  font-weight: 700;
}

.instant-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.instant-steps span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(47, 111, 75, 0.14);
  border-radius: 999px;
  background: rgba(253, 255, 249, 0.76);
  color: var(--cyan-dark);
  padding: 6px 11px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.instant-steps span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #8fcf96;
  box-shadow: 0 0 0 5px rgba(143, 207, 150, 0.12);
}

@media (max-width: 980px) {
  .hero-head h1 {
    font-size: 52px;
  }

  .hero-head h1 span {
    font-size: 56px;
  }

  .hero-head h1 strong {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 17px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
    line-height: 1.68;
  }

  .brand-row h2 {
    font-size: 31px;
    line-height: 1.02;
  }

  .brand-row p {
    font-size: 13px;
    line-height: 1.55;
  }

  .ux-promise span {
    font-size: 12px !important;
    font-weight: 700;
  }

  .quick-head strong {
    font-size: 18px;
  }

  .quick-topic strong {
    font-size: 17px;
  }

  .disclaimer-inline {
    margin-top: 10px;
    padding: 10px 12px;
  }

  label span {
    font-size: 13px;
  }

  input,
  select,
  textarea,
  .topic-trigger {
    font-size: 16px;
  }

  button[type="submit"] {
    font-size: 17px;
  }

  .reading {
    font-size: 15px;
    line-height: 1.88;
  }
}

@media (max-width: 390px) {
  .brand-row h2 {
    font-size: 29px;
  }

  .ux-promise span {
    font-size: 11px !important;
  }
}
