/* style.css - 塔罗占卜 Web 工作台全局样式
   由 app.wxss + index.wxss + draw.wxss + result.wxss 合并转换
   rpx → px 转换比例约 1:0.5，适配桌面和移动端
*/

/* ====== 全局变量 ====== */
:root {
  --color-bg: #0f0f1a;
  --color-surface: #1a1a2e;
  --color-surface-light: #16213e;
  --color-primary: #e2c07b;
  --color-primary-dark: #c9a55c;
  --color-text: #e8e8e8;
  --color-text-secondary: #9999aa;
  --color-text-dim: #666677;
  --color-accent: #9b59b6;
  --color-danger: #e74c3c;
  --color-success: #2ecc71;
  --radius-card: 8px;
  --radius-button: 24px;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ====== Reset ====== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  /* 全站背景图：跟随滚动，叠加深色渐变遮罩保证文字清晰 */
  background-color: #0d0a1a;
  background-image:
    linear-gradient(rgba(13, 10, 26, 0.68), rgba(13, 10, 26, 0.78) 60%, rgba(13, 10, 26, 0.86)),
    url('../images/bg.jpg');
  background-size: cover, cover;
  background-position: center, center top;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

textarea {
  font-family: inherit;
  outline: none;
  resize: none;
}

/* ====== 主容器 ====== */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ====== 视图切换 ====== */
.view {
  display: none;
  padding: 20px 16px;
  min-height: 100vh;
  animation: viewFadeIn 0.4s ease;
}

.view.active {
  display: block;
}

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

/* ====== 通用按钮 ====== */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #1a1a2e;
  border-radius: var(--radius-button);
  padding: 12px 32px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  box-shadow: 0 4px 12px rgba(226, 192, 123, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:active {
  transform: scale(0.96);
  opacity: 0.9;
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-button);
  padding: 10px 30px;
  font-size: 15px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-secondary:active {
  background: rgba(226, 192, 123, 0.1);
}

/* ====== 星空背景 ====== */
.starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.1; transform: scale(0.5); }
  50% { opacity: 0.8; transform: scale(1); }
}

/* ====== 正逆位标签 ====== */
.badge-upright, .tag-upright {
  display: inline-block;
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: bold;
}

.badge-reversed, .tag-reversed {
  display: inline-block;
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.4);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: bold;
}

/* ====== 免责声明 ====== */
.disclaimer {
  background: rgba(231, 76, 60, 0.05);
  border: 1px solid rgba(231, 76, 60, 0.15);
  border-radius: 6px;
  padding: 12px;
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.disclaimer-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.disclaimer-text {
  font-size: 11px;
  color: var(--color-text-dim);
  line-height: 1.6;
  text-align: justify;
}

/* ====== 弹窗 ====== */
.modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  width: 300px;
  max-width: 85%;
  background: var(--color-surface-light);
  border-radius: 12px;
  border: 1px solid rgba(226, 192, 123, 0.2);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: slideUp 0.3s ease;
}

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

.modal-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.modal-text {
  font-size: 14px;
  color: var(--color-text);
  text-align: center;
  line-height: 1.8;
  margin-bottom: 20px;
}

.modal-btn-group {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.modal-btn-group button {
  flex: 1;
  max-width: 130px;
}

/* ====== Toast 提示 ====== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  max-width: 80%;
  text-align: center;
  animation: toastFadeIn 0.3s ease;
}

@keyframes toastFadeIn {
  from { opacity: 0; transform: translate(-50%, -40%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* ============================================ */
/* 首页样式                                       */
/* ============================================ */

.view-home .header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 30px;
}

.moon-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.title-main {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-primary);
  text-align: center;
  letter-spacing: 2px;
}

.subtitle {
  color: var(--color-text-secondary);
  font-size: 12px;
  text-align: center;
  margin-top: 8px;
  max-width: 280px;
  line-height: 1.6;
}

.subtitle-sub {
  margin-top: 2px;
  opacity: 0.75;
}

/* 输入区 */
.input-section {
  margin-top: 30px;
  position: relative;
}

.input-label {
  display: block;
  font-size: 14px;
  color: var(--color-primary);
  margin-bottom: 10px;
  font-weight: bold;
}

.question-input {
  width: 100%;
  min-height: 80px;
  background: var(--color-surface);
  border: 1px solid rgba(226, 192, 123, 0.2);
  border-radius: 8px;
  padding: 12px;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.6;
  transition: border-color 0.3s;
}

.question-input:focus {
  border-color: var(--color-primary);
}

.question-input::placeholder {
  color: var(--color-text-dim);
  font-size: 14px;
}

.char-count {
  text-align: right;
  font-size: 11px;
  color: var(--color-text-dim);
  margin-top: 4px;
}

/* 按钮区 */
.btn-area {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* 引导文字 */
.guide-text {
  margin-top: 30px;
  padding: 16px;
  text-align: center;
}

.guide-text p {
  display: block;
  font-size: 12px;
  color: var(--color-text-dim);
  line-height: 1.8;
  margin-bottom: 4px;
}

/* ============================================ */
/* 抽牌动画页样式                                   */
/* ============================================ */

/* ====== 全站品牌条（抽牌页/结果页顶部） ====== */
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 18px;
}

.brand-bar-icon {
  font-size: 22px;
}

.brand-bar-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #f5e6c8, #d4b483);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-bar-slogan {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-dim);
  margin-top: 6px;
  line-height: 1.7;
  padding: 0 20px;
}

.question-display {
  text-align: center;
  padding: 20px 0;
}

.q-label {
  font-size: 12px;
  color: var(--color-text-dim);
  margin-bottom: 6px;
}

.q-text {
  font-size: 16px;
  color: var(--color-primary);
  font-weight: bold;
  line-height: 1.6;
  padding: 0 20px;
}

.spread-name {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 8px;
}

/* 牌阵区域 */
.cards-area {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 10px;
  perspective: 600px;
}

/* 3张及以下牌阵：横排不换行 */
.cards-area.layout-row {
  flex-direction: row;
  flex-wrap: nowrap;
}

/* 超过3张：网格布局 */
.cards-area.layout-grid {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

/* 单张牌位 */
.card-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 600px;
}

.layout-row .card-slot {
  flex-shrink: 0;
}

.layout-grid .card-slot {
  width: 100px;
}

/* 当前翻牌高亮 */
.card-slot.flipping-now .card-3d-wrapper {
  box-shadow: 0 0 20px rgba(226, 192, 123, 0.6);
}

/* 3D翻转 */
.card-3d-wrapper {
  position: relative;
  width: 90px;
  height: 150px;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
  border-radius: 6px;
}

.card-3d-wrapper.flipping {
  transform: rotateY(90deg);
}

.card-3d-wrapper.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(226, 192, 123, 0.3);
}

.card-back {
  transform: rotateY(0deg);
  z-index: 2;
}

.card-front {
  transform: rotateY(180deg);
  z-index: 1;
}

.card-3d-wrapper.flipped .card-back { z-index: 1; }
.card-3d-wrapper.flipped .card-front { z-index: 2; }

.card-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.card-img.reversed {
  transform: rotate(180deg);
}

/* 牌名与正逆位 */
.card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
}

.card-name {
  font-size: 11px;
  color: #e8e8e8;
  font-weight: bold;
  text-align: center;
}

.orientation-badge {
  font-size: 9px;
  border-radius: 3px;
  padding: 1px 5px;
  font-weight: bold;
}

.orientation-badge.badge-upright {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.orientation-badge.badge-reversed {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.4);
}

/* 位置编号（牌背状态） */
.position-num {
  margin-top: 6px;
  font-size: 11px;
  color: var(--color-text-dim);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--color-text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 翻牌状态提示 */
.flip-status {
  text-align: center;
  padding: 16px;
  color: var(--color-text-secondary);
  font-size: 14px;
  animation: pulse 1.5s infinite;
}

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

/* 查看解读按钮 */
.result-btn-area {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  padding-bottom: 40px;
  animation: fadeInUp 0.6s ease;
}

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

/* ============================================ */
/* 结果展示页样式                                   */
/* ============================================ */

.header-section {
  text-align: center;
  padding: 20px 0 16px;
}

.spread-info {
  margin-top: 8px;
}

.spread-name-text {
  font-size: 13px;
  color: var(--color-text-secondary);
  background: rgba(226, 192, 123, 0.1);
  padding: 3px 12px;
  border-radius: 10px;
  border: 1px solid rgba(226, 192, 123, 0.2);
  display: inline-block;
}

/* 牌阵引导语 */
.spread-intro {
  padding: 16px;
  margin: 12px 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid var(--color-primary);
}

.spread-intro p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* 主题标签横幅 */
.topic-banner {
  text-align: center;
  margin: 0 0 16px;
}

.topic-tag {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(226, 192, 123, 0.15));
  border: 1px solid rgba(226, 192, 123, 0.3);
  border-radius: 20px;
  font-size: 13px;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

/* 分隔线 */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 16px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 192, 123, 0.3), transparent);
}

.divider-text {
  font-size: 13px;
  color: var(--color-primary);
  white-space: nowrap;
}

/* 牌阵解读 */
.cards-interpretation {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 单张牌详情 */
.card-detail {
  background: var(--color-surface);
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(226, 192, 123, 0.08);
}

/* 位置标签 */
.position-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.position-badge {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #1a1a2e;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.position-meaning-text {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* 牌面图片区 */
.card-visual {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin: 8px 0;
}

.card-image-wrapper {
  flex-shrink: 0;
  width: 80px;
  height: 134px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(226, 192, 123, 0.2);
}

.card-face-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.card-face-img.reversed {
  transform: rotate(180deg);
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-name-text {
  font-size: 16px;
  color: var(--color-primary);
  font-weight: bold;
}

.orientation-tag {
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
  padding: 2px 10px;
  display: inline-block;
  width: fit-content;
}

/* 牌义解读区 */
.meaning-section {
  margin-top: 12px;
}

.meaning-block {
  margin-bottom: 10px;
}

.meaning-block:last-child {
  margin-bottom: 0;
}

.meaning-label {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: bold;
  margin-bottom: 4px;
}

.meaning-text {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.8;
  display: block;
}

/* 高亮匹配主题的解读块 */
.meaning-highlight {
  background: linear-gradient(135deg, rgba(226, 192, 123, 0.12), rgba(155, 89, 182, 0.08));
  border-left: 3px solid var(--color-primary);
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.meaning-highlight .meaning-label {
  color: var(--color-primary);
}

.meaning-highlight .meaning-text {
  color: var(--color-text);
}

/* 问题关联分析 */
.contextual-analysis {
  margin-top: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.08), rgba(226, 192, 123, 0.06));
  border: 1px solid rgba(226, 192, 123, 0.15);
  border-radius: 6px;
}

.contextual-label {
  font-size: 12px;
  color: var(--color-accent);
  font-weight: bold;
  margin-bottom: 6px;
}

.contextual-text {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.9;
  text-align: justify;
}

/* 牌面直接回答区 */
.direct-answer {
  margin-bottom: 8px;
}

.direct-answer-block {
  margin-bottom: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(226, 192, 123, 0.10), rgba(155, 89, 182, 0.06));
  border: 1px solid rgba(226, 192, 123, 0.20);
  border-radius: 8px;
}

.direct-answer-block:last-child {
  margin-bottom: 0;
}

.direct-answer-label {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: bold;
  margin-bottom: 8px;
}

.direct-answer-text {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.9;
  text-align: justify;
}

.direct-answer-text p {
  margin: 0 0 8px 0;
}

.direct-answer-text p:last-child {
  margin-bottom: 0;
}

/* 行动建议 */
.action-advice {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(155, 89, 182, 0.08);
  border-left: 3px solid var(--color-accent);
  border-radius: 4px;
}

.action-advice-label {
  font-size: 12px;
  color: var(--color-accent);
  font-weight: bold;
  margin-bottom: 4px;
}

.action-advice-text {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.8;
}

/* 可折叠的牌义参考 */
.dimension-reference {
  margin-top: 12px;
  border-top: 1px dashed rgba(153, 153, 170, 0.15);
  padding-top: 10px;
}

.dimension-toggle {
  font-size: 12px;
  color: var(--color-text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  user-select: none;
  transition: color 0.2s;
}

.dimension-toggle:hover {
  color: var(--color-primary);
}

.dimension-toggle .toggle-arrow {
  display: inline-block;
  transition: transform 0.2s;
  font-size: 10px;
}

.dimension-toggle.expanded .toggle-arrow {
  transform: rotate(90deg);
}

.dimension-content {
  display: none;
  margin-top: 10px;
}

.dimension-content.show {
  display: block;
}

/* 牌阵综合分析 */
.spread-synthesis {
  margin-bottom: 8px;
}

.synthesis-paragraph {
  margin-bottom: 16px;
  padding: 12px 14px;
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid rgba(226, 192, 123, 0.12);
  border-radius: 6px;
}

.synthesis-label {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: bold;
  margin-bottom: 8px;
}

.synthesis-text {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.9;
  text-align: justify;
}

/* 来源标注 */
.source-section {
  margin: 16px 0;
  padding: 12px 14px;
  border-top: 1px dashed rgba(153, 153, 170, 0.15);
}

.source-item {
  font-size: 11px;
  color: var(--color-text-dim);
  line-height: 1.8;
}

/* 结语区 */
.closing-section {
  padding: 8px 0;
}

.closing-text {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
  text-align: justify;
}

.closing-text:first-child {
  font-size: 14px;
  color: var(--color-primary);
  font-weight: bold;
  text-align: center;
  margin-bottom: 12px;
}

/* 操作按钮 */
.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

.action-buttons button {
  flex: 1;
  max-width: 160px;
}

/* ====== 响应式适配 ====== */
@media (min-width: 481px) {
  .app-container {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  }

  .view {
    padding: 20px 24px;
  }
}

@media (max-width: 360px) {
  .card-3d-wrapper {
    width: 80px;
    height: 133px;
  }

  .layout-grid .card-slot {
    width: 90px;
  }

  .card-image-wrapper {
    width: 70px;
    height: 117px;
  }

  .card-visual {
    gap: 12px;
  }
}

/* ================================================
   v2 新增：直接回答区 + 分享弹窗
   ================================================ */

/* ====== 塔罗的直接回答 ====== */
.verdict-section {
  background: linear-gradient(160deg, rgba(226, 192, 123, 0.10) 0%, rgba(26, 26, 46, 0.65) 60%);
  border: 1px solid rgba(226, 192, 123, 0.25);
  border-radius: 12px;
  padding: 18px 16px;
  margin-bottom: 8px;
}

.verdict-headline {
  font-size: 17px;
  font-weight: bold;
  color: var(--color-primary);
  line-height: 1.6;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(226, 192, 123, 0.25);
}

.verdict-body p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.85;
  margin-bottom: 10px;
  text-align: justify;
}

.verdict-body p:last-child {
  margin-bottom: 0;
}

/* 解读师规则要求：每一次解读结尾的固定标注。
   样式比正文更轻更安静——它是收尾，不是又一段分析。 */
.verdict-body p.verdict-footnote {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed rgba(226, 192, 123, 0.18);
  font-size: 12.5px;
  line-height: 1.7;
  text-align: left;
  color: rgba(232, 226, 214, 0.5);
  letter-spacing: 0.2px;
}

/* ====== 逐张牌通俗解读文本 ====== */
.card-reading-text {
  margin-top: 12px;
}

.card-reading-text p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.85;
  margin-bottom: 10px;
  text-align: justify;
}

.card-reading-text p:last-child {
  margin-bottom: 0;
}

/* ====== 分享弹窗 ====== */
.share-modal-content {
  text-align: center;
}

.share-modal-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.share-modal-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.share-link-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(226, 192, 123, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  text-align: left;
}

.share-link-text {
  font-size: 11px;
  color: var(--color-text-secondary);
  word-break: break-all;
  line-height: 1.5;
  margin-bottom: 8px;
}

.share-link-input {
  width: 100%;
  background: transparent;
  border: none;
  color: transparent;
  font-size: 1px;
  height: 1px;
  padding: 0;
  outline: none;
}

.wechat-tip {
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #7dcea0;
  line-height: 1.6;
  margin-bottom: 14px;
  text-align: left;
}

.share-restart-link {
  margin-top: 14px;
  font-size: 13px;
  color: var(--color-primary);
  text-decoration: underline;
  letter-spacing: 1px;
}
