/*!
 * 提示对话框样式（对应原版 Ionic AlertController 的视觉）。
 * 复用全局变量保持与卡片 / 按钮一致的风格。
 */

.backdrop-f0aa366 {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 20, 32, 0.45);
  animation: fade 0.18s ease both;
}

.dialog-f0aa366 {
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
  animation: pop 0.22s ease both;
}

.header-f0aa366 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-0);
}

.message-f0aa366 {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-1);
  white-space: pre-wrap;
  word-break: break-word;
}

.btn-f0aa366 {
  min-width: 96px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 4px 14px rgba(184, 134, 11, 0.24);
  transition: transform 0.12s ease;
}

.btn-f0aa366:hover {
  transform: translateY(-1px);
}

.btn-f0aa366:active {
  transform: translateY(1px);
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


/*! 应用外壳：响应式布局与顶部应用栏。 */

.app-shell-baaf3e8 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.app-bar-baaf3e8 {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  padding-top: max(14px, env(safe-area-inset-top));
  /* 去掉 backdrop-filter: blur（缩放时极耗性能），改用实色半透明 */
  background: rgba(245, 246, 248, 0.9);
  border-bottom: 1px solid var(--line);
}

.app-bar-baaf3e8 .logo-baaf3e8 {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-2), var(--indigo) 70%);
  flex: 0 0 auto;
}

.app-bar-baaf3e8 h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.5px;
  color: var(--text-0);
}

.spacer-baaf3e8 {
  flex: 1;
}

/* 顶栏右侧用户入口：图标 + 用户名/「登录」 */
.user-entry-baaf3e8 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  color: var(--indigo);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.user-entry-baaf3e8 svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.user-entry-baaf3e8:hover {
  background: rgba(79, 91, 213, 0.08);
  border-color: rgba(79, 91, 213, 0.25);
}

.user-entry-baaf3e8:active {
  background: rgba(79, 91, 213, 0.14);
}

.app-main-baaf3e8 {
  flex: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 16px 28px;
}

@media (min-width: 760px) {
  .app-main-baaf3e8 {
    padding: 28px 24px 36px;
  }
}


/*!
 * 档案选择器样式：入口按钮 + 模态选择框。
 * 复用全局变量保持与卡片 / 按钮一致的风格。
 */

/* 入口按钮（标题行右端的紧凑次级操作） */
.entry-btn-e6b94f3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  color: var(--indigo);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.entry-btn-e6b94f3:hover {
  border-color: var(--indigo);
  background: rgba(79, 91, 213, 0.06);
}

.entry-btn-e6b94f3:active {
  transform: translateY(1px);
}

.entry-btn-e6b94f3 svg {
  width: 16px;
  height: 16px;
}

/* 遮罩 + 卡片 */
.backdrop-e6b94f3 {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 20, 32, 0.45);
  animation: fade 0.18s ease both;
}

.modal-e6b94f3 {
  display: flex;
  flex-direction: column;
  width: min(480px, 100%);
  max-height: min(70vh, 560px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: pop 0.22s ease both;
}

.modal-header-e6b94f3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.modal-title-e6b94f3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-0);
}

.close-btn-e6b94f3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--text-1);
  background: none;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.close-btn-e6b94f3 svg {
  width: 16px;
  height: 16px;
}

.close-btn-e6b94f3:hover {
  color: var(--text-0);
  background: rgba(20, 30, 50, 0.07);
}

/* 搜索栏 */
.search-wrap-e6b94f3 {
  padding: 0 18px 12px;
}

/* 图标以「只包输入框」的容器为参考，垂直居中才免受底部间距影响 */
.search-field-e6b94f3 {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon-e6b94f3 {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-1);
  pointer-events: none;
}

/* 底座样式 input[type="text"] 也会设 padding，需抬升优先级才能覆盖 */
input[type="text"].search-input-e6b94f3 {
  padding-left: 38px;
}

/* 接口错误提示 */
.error-e6b94f3 {
  margin: 0 18px 10px;
  color: var(--red);
  background: rgba(214, 59, 59, 0.08);
  border: 1px solid rgba(214, 59, 59, 0.28);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  word-break: break-word;
}

/* 记录列表 */
.list-e6b94f3 {
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  padding: 6px;
  transition: opacity 0.15s ease;
}

/* 搜索替换在途：旧列表半透明（点选已由 select 守卫拦下） */
.list-loading-e6b94f3 {
  opacity: 0.55;
}

.item-e6b94f3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.item-e6b94f3:hover {
  background: rgba(79, 91, 213, 0.07);
}

.item-main-e6b94f3 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* 卜卦盘 H 徽标 */
.badge-h-e6b94f3 {
  flex: none;
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #e8a33d, #c47f12);
  border-radius: 999px;
}

.name-e6b94f3 {
  font-size: 15px;
  color: var(--text-0);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 时间精准的记录姓名高亮 */
.name-precise-e6b94f3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--indigo);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-date-e6b94f3 {
  flex: none;
  font-size: 13px;
  color: var(--text-1);
}

/* 底部：加载中 / 空态 / 加载更多 */
.footer-e6b94f3 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px 14px;
}

.empty-e6b94f3 {
  color: var(--text-1);
  font-size: 14px;
}

.more-btn-e6b94f3 {
  padding: 9px 24px;
  font-size: 14px;
  font-family: inherit;
  color: var(--indigo);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.more-btn-e6b94f3:hover {
  border-color: var(--indigo);
  background: rgba(79, 91, 213, 0.06);
}

.more-btn-e6b94f3:active {
  transform: translateY(1px);
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


/*! 相位网格 SVG。 */

/* 关键：限制 SVG 的重绘区域，缩放时只重绘图表本身，不波及其它节点 */
.aspect-svg-aaba186 {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  margin: 0 auto;
  contain: layout paint;
}

/* 强制占星符号按文字字形渲染，避免被当成彩色 emoji（红底/放大） */
.aspect-svg-aaba186 text {
  font-variant-emoji: text;
}

@media (min-width: 760px) {
  .aspect-svg-aaba186 {
    max-width: 620px;
  }
}


/*!
 * 共享样式模块：卡片容器。
 * 被 input / chart / detail 等多个组件 import，属于「显式共享」，
 * 其余样式都在各自组件的 module.css 里独立作用域化。
 */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-76f2e5c {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  animation: rise 0.4s ease both;
}

.card-76f2e5c h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-0);
}


/*! 结果页：摘要、标签页切换。 */

.summary-61d7d6e {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14px;
  color: var(--text-1);
  margin-bottom: 14px;
}

.summary-61d7d6e b {
  color: var(--text-0);
  font-weight: 600;
}

.tabs-61d7d6e {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tabs-61d7d6e button {
  flex: 1;
  padding: 11px 0;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-1);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* 选中态：由 Rust 侧按条件拼接本类名（leptos 的 class:active 只能写死字面量） */
.tabs-61d7d6e button.active-61d7d6e {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  border-color: transparent;
}


/*! 星盘 SVG。 */

/* 关键：限制 SVG 的重绘区域，缩放时只重绘图表本身，不波及其它节点 */
.wheel-e1937c2 {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  margin: 0 auto;
  contain: layout paint;
}

/* 强制占星符号按文字字形渲染，避免被当成彩色 emoji（红底/放大） */
.wheel-e1937c2 text {
  font-variant-emoji: text;
}

@media (min-width: 760px) {
  .wheel-e1937c2 {
    max-width: 620px;
  }
}


/*! 日期 / 时间 / 时区 / 夏令时输入。 */

/* 时区输入框不需要占满整行 */
.tz-input-41b8f04 {
  max-width: 120px;
}

/* 「现在」按钮：一键填充当前日期时间（对应原版 nowDate 的时钟图标） */
.now-btn-41b8f04 {
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.now-btn-41b8f04:hover {
  border-color: var(--gold);
  background: rgba(184, 134, 11, 0.08);
}

.now-btn-41b8f04:active {
  background: rgba(184, 134, 11, 0.15);
}


/*! 详情页样式：行星力量 / 接纳 / 互融 / 气质 / 映点 / 反映点 / 视力点 / 恒星。 */

.detail-grid-5f0029f {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.section-title-5f0029f {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-5f0029f::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), var(--indigo));
}

/* 强制占星符号按文字字形渲染，避免被当成彩色 emoji（红底/放大） */
.glyph-5f0029f {
  font-variant-emoji: text;
}

/* ---------- 通用列表（接纳 / 互融 / 映点 / 反映点） ---------- */

.plain-list-5f0029f {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.empty-note-5f0029f {
  color: var(--text-1);
  font-size: 13px;
  margin: 4px 0;
}

/* ---------- 行星力量 ---------- */

.almuten-summary-5f0029f {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-0);
}

.power-list-5f0029f {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.power-list-5f0029f > li {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.power-list-5f0029f > li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.score-section-5f0029f {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 6px;
}

.section-label-5f0029f {
  color: var(--text-1);
  font-size: 12.5px;
  margin-right: 2px;
  white-space: nowrap;
}

.dignity-tag-5f0029f,
.accidental-tag-5f0029f,
.solar-tag-5f0029f {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
}

.dignity-tag-5f0029f {
  color: var(--gold);
  background: rgba(184, 134, 11, 0.1);
  border: 1px solid rgba(184, 134, 11, 0.35);
}

.accidental-tag-5f0029f {
  color: var(--indigo);
  background: rgba(79, 91, 213, 0.08);
  border: 1px solid rgba(79, 91, 213, 0.3);
}

.solar-tag-5f0029f {
  color: #b45309;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.35);
}

/* 负分标签统一红系 */
.detriment-tag-5f0029f {
  color: var(--red);
  background: rgba(214, 59, 59, 0.08);
  border: 1px solid rgba(214, 59, 59, 0.3);
}

/* ---------- 接纳 / 互融 ---------- */

.orb-5f0029f {
  color: var(--text-1);
  font-size: 13px;
  margin: 0 6px 0 2px;
}

.mutual-arrow-5f0029f {
  color: var(--text-1);
  margin: 0 6px;
}

/* ---------- 气质 ---------- */

.temperament-error-5f0029f {
  color: var(--red);
  font-size: 13px;
  margin: 0 0 8px;
}

.temperament-table-5f0029f {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.temperament-table-5f0029f th,
.temperament-table-5f0029f td {
  padding: 6px 6px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.temperament-table-5f0029f th {
  color: var(--text-1);
  font-weight: 500;
  font-size: 12.5px;
}

.name-cell-5f0029f {
  font-size: 17px;
  width: 34px;
}

.sources-cell-5f0029f {
  text-align: left;
  color: var(--text-1);
}

.quality-cell-5f0029f input {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.action-cell-5f0029f {
  width: 30px;
}

.remove-btn-5f0029f {
  border: none;
  background: none;
  color: var(--red);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.add-row-5f0029f {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.add-select-5f0029f {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-0);
  font-size: 13px;
}

.add-btn-5f0029f,
.reset-btn-5f0029f {
  padding: 4px 14px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: none;
  color: var(--gold);
  font-size: 13px;
  cursor: pointer;
}

.add-btn-5f0029f:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.add-btn-5f0029f:not(:disabled):hover,
.reset-btn-5f0029f:hover {
  background: rgba(184, 134, 11, 0.08);
}

.reset-btn-5f0029f {
  margin-top: 4px;
}

.humor-summary-5f0029f {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 14px;
}

.humor-row-5f0029f {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.humor-label-5f0029f {
  font-weight: 600;
  color: var(--text-0);
  white-space: nowrap;
}

.humor-bar-track-5f0029f {
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.humor-bar-fill-5f0029f {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.humor-score-5f0029f {
  color: var(--text-1);
  white-space: nowrap;
}

.humor-desc-5f0029f {
  grid-column: 1 / -1;
  color: var(--text-1);
  font-size: 12px;
  margin-top: -6px;
}

/* 四体液配色 */
.humor-sanguine-5f0029f {
  background: linear-gradient(90deg, #e0603c, #f0a060);
}

.humor-phlegmatic-5f0029f {
  background: linear-gradient(90deg, #3c78c8, #6fb0e8);
}

.humor-choleric-5f0029f {
  background: linear-gradient(90deg, #c8442c, #e8804c);
}

.humor-melancholic-5f0029f {
  background: linear-gradient(90deg, #5a6b52, #8aa078);
}

/* ---------- 视力点 ---------- */

.vision-line-5f0029f {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.8;
}

.vision-position-5f0029f {
  font-variant-emoji: text;
}

.vision-error-5f0029f {
  color: #ff6b6b;
}

.formula-5f0029f {
  display: block;
  color: var(--text-1);
  font-size: 12px;
}

/* ---------- 恒星 ---------- */

/* 单卡承载全部恒星：宽屏下独占整行，内部两列 */
.star-section-5f0029f {
  grid-column: 1 / -1;
}

.star-grid-5f0029f {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.star-name-5f0029f {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-0);
  font-variant-emoji: text;
}

.star-item-5f0029f p {
  margin: 3px 0;
  font-size: 13px;
  color: var(--text-1);
  font-variant-emoji: text;
}

/* 星座符号比正文略大，视觉上更醒目 */
.star-item-5f0029f .star-glyph-5f0029f {
  font-size: 15px;
}

.nearby-5f0029f {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

@media (min-width: 760px) {
  .detail-grid-5f0029f {
    grid-template-columns: 1fr 1fr;
  }

  .star-grid-5f0029f {
    grid-template-columns: 1fr 1fr;
  }
}


/*!
 * 共享样式模块：反馈类文本（错误 / 提示 / 加载中）。
 * 多处页面复用，统一在这里定义以避免散落重复的全局类。
 */

.error-4316235 {
  color: var(--red);
  background: rgba(214, 59, 59, 0.08);
  border: 1px solid rgba(214, 59, 59, 0.28);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.loading-4316235 {
  text-align: center;
  color: var(--text-1);
  padding: 40px 0;
  font-size: 15px;
}


/*!
 * 共享样式模块：表单字段布局与控件。
 * 由 input 页面及其子组件（datetime_input / geo_input / house_select）共同引用。
 */

.field-48821d4 {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 12px;
}

.field-48821d4 > label {
  font-size: 14px;
  color: var(--text-1);
  text-align: right;
}

.control-48821d4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.row-3-48821d4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.toggle-48821d4 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.toggle-48821d4 input {
  appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(20, 30, 50, 0.18);
  position: relative;
  transition: background 0.15s ease;
  cursor: pointer;
}

.toggle-48821d4 input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.toggle-48821d4 input:checked {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
}

.toggle-48821d4 input:checked::after {
  transform: translateX(20px);
}

.radio-group-48821d4 {
  display: inline-flex;
  gap: 8px;
}

.radio-group-48821d4 label {
  padding: 9px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.radio-group-48821d4 input {
  display: none;
}

.radio-group-48821d4 input:checked + span {
  color: var(--gold);
  font-weight: 600;
}

.radio-group-48821d4 label:has(input:checked) {
  border-color: var(--gold);
  background: rgba(184, 134, 11, 0.1);
}

/* 主操作按钮：由 input / user 等表单页共同引用 */
.btn-primary-48821d4 {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 6px 18px rgba(184, 134, 11, 0.28);
  transition: transform 0.12s ease;
}

.btn-primary-48821d4:hover {
  transform: translateY(-1px);
}

.btn-primary-48821d4:active {
  transform: translateY(1px);
}

.btn-primary-48821d4:disabled {
  cursor: default;
  opacity: 0.6;
  transform: none;
}

@media (min-width: 760px) {
  .field-48821d4 {
    grid-template-columns: 120px 1fr;
  }
}


/*! 地名搜索与经纬度输入。 */

/* 地名输入框：与搜索按钮同行，占满剩余宽度 */
.name-input-22e0da1 {
  flex: 1;
  min-width: 0;
}

/* 「搜索」按钮：与「现在」按钮同级的次级操作，金色描边弱化呈现 */
.search-btn-22e0da1 {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.search-btn-22e0da1:hover {
  border-color: var(--gold);
  background: rgba(184, 134, 11, 0.08);
}

.search-btn-22e0da1:active {
  background: rgba(184, 134, 11, 0.15);
}

.search-btn-22e0da1:disabled {
  cursor: default;
  opacity: 0.6;
}

/* 搜索结果列表：地名字段的控件列（第 2 列）下方，与输入框左对齐 */
.results-22e0da1 {
  grid-column: 2;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
}

/* 单条结果：仅展示地名，点击回填 */
.result-22e0da1 {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-0);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease;
}

.result-22e0da1 + .result-22e0da1 {
  border-top: 1px solid var(--line);
}

.result-22e0da1:hover {
  background: rgba(184, 134, 11, 0.08);
}


/*! 入口页：选择进入本命星盘或天象盘。 */

.home-35ecbdf {
  text-align: center;
  padding: 24px 4px 8px;
}

.home-grid-35ecbdf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.home-card-35ecbdf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 14px;
  font-family: inherit;
  color: var(--text-0);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.home-card-35ecbdf:hover {
  transform: translateY(-2px);
  border-color: var(--indigo);
  box-shadow: 0 12px 28px rgba(79, 91, 213, 0.18);
}

.home-card-35ecbdf:active {
  transform: translateY(0);
}

.home-icon-35ecbdf {
  color: var(--gold);
}

.home-icon-35ecbdf svg {
  display: block;
  width: 40px;
  height: 40px;
}

.home-name-35ecbdf {
  font-size: 17px;
  font-weight: 600;
}

.home-desc-35ecbdf {
  font-size: 12.5px;
  color: var(--text-1);
}


/* 标题行：标题 + 次级入口（从档案库选择） */
.header-205fd89 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.form-grid-205fd89 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}



/*! 用户页：登录表单与已登录信息。 */

.form-887aa9b {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.logged-in-887aa9b {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 15px;
}

.logged-in-label-887aa9b {
  color: var(--text-1);
}

.logged-in-name-887aa9b {
  color: var(--text-0);
  font-weight: 600;
}
