/* 明镜台 - 禅意风格全局样式 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500&display=swap');

:root {
  --bg-deep: #0d0d0d;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --gold: #c9a96e;
  --gold-light: #e0c78a;
  --gold-dim: #8b7355;
  --text: #e8e0d5;
  --text-dim: #9a9080;
  --text-muted: #6b6358;
  --border: rgba(201, 169, 110, 0.15);
  --border-active: rgba(201, 169, 110, 0.35);
  --red: #c4554d;
  --red-light: #e0706a;
  --green: #6b9b6b;
  --radius: 12px;
  --radius-lg: 20px;
  --glass-bg: rgba(20, 18, 14, 0.85);
  --glass-border: rgba(201, 169, 110, 0.12);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans SC', -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景装饰 */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 169, 110, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(201, 169, 110, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(139, 115, 85, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* 顶部导航 */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nav-brand {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex: 1;
  overflow: hidden;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 5px 10px;
  border-radius: 20px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

.nav-actions .btn-sm {
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 14px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(201, 169, 110, 0.08);
}

/* 主容器 */
.main-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  position: relative;
  z-index: 1;
}

/* 卡片 */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

.card-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(201, 169, 110, 0.08);
  padding: 4px 12px;
  border-radius: 12px;
}

/* 用户信息区 */
.user-header {
  text-align: center;
  padding: 40px 20px 32px;
}

.user-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: rgba(201, 169, 110, 0.08);
  color: var(--gold);
}

.user-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.user-id {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.user-id .highlight {
  color: var(--gold);
  font-weight: 500;
}

.user-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* 功能网格 */
.func-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.func-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  background: var(--bg-card);
  cursor: pointer;
}

.func-item:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.func-icon {
  font-size: 2rem;
  line-height: 1;
}

.func-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.func-count {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 24px;
  border: 1px solid var(--gold);
  background: rgba(201, 169, 110, 0.08);
  color: var(--gold);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
}

.btn:hover {
  background: rgba(201, 169, 110, 0.18);
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.btn-primary {
  background: rgba(201, 169, 110, 0.2);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.8rem;
}

/* 输入框 */
.input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.input:focus {
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.05);
}

textarea.input {
  resize: vertical;
  min-height: 100px;
}

.select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c9a96e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.select:focus {
  border-color: var(--border-active);
  background: rgba(255, 255, 255, 0.05);
}

.select option {
  background: #1a1a1a;
  color: var(--text);
}

/* 结果展示区 */
.result-box {
  margin-top: 20px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(201, 169, 110, 0.03);
  line-height: 2;
  white-space: pre-wrap;
  font-size: 0.95rem;
  color: var(--text);
  display: none;
}

.result-box.show {
  display: block;
}

.result-box .title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 12px;
  text-align: center;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  background: rgba(201, 169, 110, 0.08);
  color: var(--gold-dim);
}

/* 分类标签 */
.cat-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 0.78rem;
  background: rgba(201, 169, 110, 0.06);
  color: var(--text-dim);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.cat-tag:hover {
  background: rgba(201, 169, 110, 0.14);
  color: var(--gold);
  border-color: var(--border-active);
}

.cat-tag.cat-active {
  background: rgba(201, 169, 110, 0.18);
  color: var(--gold-light);
  border-color: var(--gold);
}

/* 关键词标签 */
.kw-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.kw-tag:hover {
  background: rgba(201, 169, 110, 0.14);
  color: var(--gold-light);
  border-color: var(--border-active);
}

/* 功德值 */
.gongde-display {
  text-align: center;
  padding: 20px;
}

.gongde-value {
  font-family: 'Noto Serif SC', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.gongde-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* 分隔线 */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* 加载动画 */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
  color: var(--text-muted);
}

/* 祈福灯 */
.light-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: center;
  padding: 10px 0;
}

.light-item {
  cursor: pointer;
  padding: 12px 4px;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid transparent;
}

.light-item:hover {
  border-color: var(--border);
  background: var(--bg-card);
}

.light-icon {
  font-size: 2.2rem;
  transition: var(--transition);
}

.light-item.lit .light-icon {
  filter: drop-shadow(0 0 12px rgba(201, 169, 110, 0.5));
}

.light-name {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Toast */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 28, 22, 0.95);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 0.9rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}

/* 禅坐计时器 */
.timer-display {
  text-align: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 4rem;
  font-weight: 300;
  color: var(--gold-light);
  margin: 20px 0;
  letter-spacing: 0.1em;
}

.timer-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 响应式 */
@media (max-width: 640px) {
  .func-grid { grid-template-columns: repeat(2, 1fr); }
  .light-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-links a { font-size: 0.75rem; padding: 4px 8px; }
  .nav-inner { height: auto; padding: 8px 16px; flex-wrap: wrap; gap: 8px; }
  .nav-brand { font-size: 1.1rem; }
  .card { padding: 20px; }
}

/* 音乐条 */
.music-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.music-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-title {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.music-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(201, 169, 110, 0.1);
  color: var(--gold);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.music-toggle:hover {
  background: rgba(201, 169, 110, 0.2);
}

.music-toggle.playing {
  background: rgba(201, 169, 110, 0.25);
  animation: pulse 2s ease-in-out infinite;
}

/* 黄历 */
.huangli-date {
  text-align: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.huangli-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.huangli-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.huangli-item .label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.huangli-item .value {
  color: var(--text);
  font-size: 0.85rem;
}

.huangli-good { color: var(--green) !important; }
.huangli-bad { color: var(--red) !important; }

/* 手相上传区 */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin: 16px 0;
}

.upload-zone:hover {
  border-color: var(--border-active);
  background: rgba(201, 169, 110, 0.03);
}

.upload-zone .upload-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.upload-zone .upload-text {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* 淡入动画 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* ===== 付费弹窗 ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }

.modal {
  background: #1a1814;
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: inherit;
}
.modal-close:hover { color: var(--gold); background: rgba(255,255,255,0.05); }

.pay-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 20px 0;
}

.pay-tab {
  padding: 8px 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
}
.pay-tab.active {
  border-color: var(--gold);
  background: rgba(201,169,110,0.12);
  color: var(--gold);
}
.pay-tab:hover { border-color: var(--border-active); }

.pay-qr {
  width: 200px; height: 200px;
  margin: 0 auto 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}
.pay-qr img { width: 100%; height: 100%; object-fit: contain; }
.pay-qr .placeholder { color: #999; font-size: 0.8rem; text-align: center; line-height: 1.6; }

.price-tag {
  font-family: 'Noto Serif SC', serif;
  font-size: 2rem;
  color: var(--gold-light);
  text-align: center;
  margin: 8px 0;
}

.contact-info {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 2;
}
.contact-info strong { color: var(--gold); }

.premium-card {
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, rgba(201,169,110,0.06) 0%, rgba(201,169,110,0.02) 100%);
  padding: 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 16px;
}

.premium-badge {
  display: inline-block;
  background: linear-gradient(135deg, #c9a96e, #e0c78a);
  color: #0d0d0d;
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.free-tag {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.7rem;
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 10px;
}

/* ===== 金色光点飘浮动画 ===== */
.gold-particles {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.gold-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: glowRise var(--duration) ease-in-out var(--delay) infinite;
}
@keyframes glowRise {
  0% { opacity: 0; transform: translateY(100vh) scale(0.5); }
  20% { opacity: 0.6; }
  50% { opacity: 0.3; transform: translateY(50vh) scale(1); }
  80% { opacity: 0.1; }
  100% { opacity: 0; transform: translateY(-10vh) scale(0.3); }
}

/* ===== 底部固定分享按钮 ===== */
.float-share {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: rgba(201, 169, 110, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 10px 20px;
  border-radius: 28px;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.float-share:hover {
  background: rgba(201, 169, 110, 0.25);
  transform: translateY(-2px);
}

/* ===== 全局迷你音乐播放器 ===== */
#globalMusicPlayer {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 200;
  background: rgba(20, 18, 14, 0.92);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 6px 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: var(--transition);
  display: none;
}
#globalMusicPlayer.active {
  display: block;
}
.mini-player-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mini-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(201, 169, 110, 0.1);
  color: var(--gold);
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: var(--transition);
}
.mini-btn:hover {
  background: rgba(201, 169, 110, 0.2);
  color: var(--gold-light);
}
#miniStopBtn {
  border-color: rgba(196, 85, 77, 0.3);
  color: var(--red);
  background: rgba(196, 85, 77, 0.08);
}
#miniStopBtn:hover {
  background: rgba(196, 85, 77, 0.15);
}
.mini-info {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 140px;
  overflow: hidden;
}
.mini-icon { font-size: 0.9rem; }
.mini-title {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 选择按钮（师父选择/灯选择） */
.light-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 8px;
  transition: var(--transition);
}
.light-btn:hover, .light-btn.selected {
  border-color: var(--gold);
  background: rgba(201,169,110,0.06);
}
.light-btn .name { font-size: 1rem; color: var(--gold-light); }
.light-btn .desc { font-size: 0.8rem; color: var(--text-dim); margin-top: 2px; }

/* 师父选择按钮 */
.master-btn{display:block;width:100%;text-align:left;padding:10px 12px;border-radius:var(--radius);border:1px solid var(--border);background:transparent;color:var(--text);cursor:pointer;font-family:inherit;margin-bottom:6px;transition:var(--transition);}
.master-btn:hover,.master-btn.sel{border-color:var(--gold);background:rgba(201,169,110,0.06);}
.master-btn .mn{font-size:0.9rem;color:var(--gold-light);}
.master-btn .md{font-size:0.72rem;color:var(--text-dim);margin-top:2px;}

/* ===== 手相：左右手选择 ===== */
.hand-select-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.hand-select-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  text-align: center;
  transition: var(--transition);
}

.hand-select-btn:hover {
  border-color: var(--border-active);
  background: rgba(201, 169, 110, 0.04);
}

.hand-select-btn.active {
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.12);
  color: var(--gold-light);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(201, 169, 110, 0.10);
}

.hand-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 16px;
}

/* ===== 手相：拍摄要求 ===== */
.shoot-tips {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.shoot-tips li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
}

.shoot-tips li .tip-num {
  color: var(--gold-dim);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 18px;
}

/* ===== 手相：参考面板（折叠） ===== */
.ref-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.ref-panel:hover {
  border-color: var(--border-active);
}

.ref-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.ref-panel-header:hover {
  background: rgba(201, 169, 110, 0.03);
  color: var(--gold-light);
}

.ref-panel-header .arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.ref-panel.open .ref-panel-header .arrow {
  transform: rotate(180deg);
}

.ref-panel-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.ref-panel.open .ref-panel-body {
  max-height: 600px;
}

.ref-panel-body-inner {
  padding: 0 18px 18px;
  display: grid;
  gap: 8px;
}

.ref-line-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  font-size: 0.82rem;
}

.ref-line-item .line-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ref-line-item .line-name {
  color: var(--gold-light);
  font-weight: 500;
  min-width: 48px;
}

.ref-line-item .line-pos {
  color: var(--text-dim);
}

/* 黄历时辰吉凶表格 */
.shichen-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.shichen-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  gap: 8px;
}

.shichen-name {
  color: var(--text);
  font-weight: 500;
  min-width: 36px;
}

.shichen-time {
  color: var(--text-muted);
  font-size: 0.72rem;
  flex: 1;
  text-align: center;
}

.shichen-jx {
  font-weight: 600;
  min-width: 28px;
  text-align: right;
}

@media (max-width: 480px) {
  .shichen-table {
    grid-template-columns: 1fr;
  }
}
