/* ========== new-modules.css 新增模块样式 ========== */

/* ===== 首页新模块 ===== */
.section-block { margin: 18px 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.section-title { font-size: 15px; font-weight: 700; }
.section-more { font-size: 12px; color: var(--text-soft); cursor: pointer; }
.section-more:active { color: var(--rose); }

/* 本周热门测评 横滑 */
.hot-test-scroll {
  display: flex; gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  margin: 0 -16px;
  padding-left: 16px; padding-right: 16px;
}
.hot-test-scroll::-webkit-scrollbar { display: none; }
.hot-test-card {
  flex: 0 0 140px;
  background: #fff;
  border-radius: 16px;
  padding: 14px 12px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .15s;
}
.hot-test-card:active { transform: scale(0.95); }
.htc-icon { font-size: 28px; margin-bottom: 6px; }
.htc-title { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.htc-meta { font-size: 11px; color: var(--text-soft); }

/* 每日一句 */
.love-quote-card {
  background: linear-gradient(135deg, #FFF5EE 0%, #FFE8F0 100%);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  margin: 18px 0;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.lqc-quote-mark {
  font-size: 36px; color: var(--rose); opacity: 0.3;
  line-height: 1; margin-bottom: 4px; font-family: Georgia, serif;
}
.lqc-text {
  font-size: 14px; line-height: 1.7; color: var(--text);
  font-style: italic;
}
.lqc-next {
  margin-top: 10px;
  font-size: 12px; color: var(--rose);
  cursor: pointer; text-align: right;
}

/* 推荐话题 chips */
.topic-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.topic-chip {
  padding: 8px 14px;
  background: #fff;
  border-radius: 16px;
  font-size: 13px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: all .2s;
}
.topic-chip:active { background: #FFE4EC; }

/* 首页成就预览 */
.home-achieve-row {
  display: flex; gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.home-achieve-row::-webkit-scrollbar { display: none; }
.ha-item {
  flex: 0 0 64px;
  text-align: center;
}
.ha-badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFE4EC, #FFE8D4);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin: 0 auto 4px;
  box-shadow: 0 4px 12px rgba(255,107,157,0.2);
}
.ha-item.locked .ha-badge {
  background: #F0ECE8;
  filter: grayscale(1); opacity: 0.5;
}
.ha-name { font-size: 10px; color: var(--text-soft); }

/* ===== 爱情之旅页 ===== */
.journey-hero {
  background: linear-gradient(135deg, #FF6B9D 0%, #FF8E53 100%);
  border-radius: var(--radius-card);
  padding: 28px 20px;
  text-align: center;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(255,107,157,0.35);
}
.jh-label { font-size: 13px; opacity: 0.9; }
.jh-days {
  font-size: 56px; font-weight: 800;
  margin: 6px 0;
  line-height: 1;
  text-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.jh-unit { font-size: 20px; font-weight: 600; margin-left: 4px; }
.jh-next { font-size: 13px; opacity: 0.92; margin-top: 8px; }
.jh-progress {
  margin-top: 12px;
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  overflow: hidden;
}
.jh-progress-bar {
  height: 100%;
  background: #fff;
  border-radius: 3px;
  width: 0%;
  transition: width 1s ease;
}
.journey-toolbar { margin-bottom: 16px; }
.btn-sm { padding: 10px; font-size: 14px; }

/* 时间轴 */
.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 4px; bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, #FF6B9D, #FF8E53);
  border-radius: 1px;
}
.tl-item {
  position: relative;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -22px; top: 16px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--rose);
  box-shadow: 0 0 0 3px rgba(255,107,157,0.15);
}
.tl-item.auto::before { border-color: var(--orange); }
.tl-date { font-size: 11px; color: var(--text-soft); }
.tl-title { font-size: 15px; font-weight: 600; margin: 2px 0; }
.tl-note { font-size: 12px; color: var(--text-soft); line-height: 1.5; }
.tl-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 8px;
  background: #FFE4EC;
  color: var(--rose);
  margin-left: 6px;
}

/* ===== 愿望清单页 ===== */
.wish-progress-wrap {
  position: relative;
  width: 160px; height: 160px;
  margin: 10px auto 18px;
}
.wish-ring { transform: rotate(0deg); }
.wish-ring-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.wrt-num { font-size: 28px; font-weight: 800; color: var(--rose); }
.wrt-label { font-size: 12px; color: var(--text-soft); }

.wish-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.wish-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.wish-card:active { transform: scale(0.96); }
.wish-card.done {
  background: linear-gradient(135deg, #FFE4EC, #FFF0E0);
}
.wish-card.done .wc-title {
  text-decoration: line-through;
  color: var(--text-soft);
}
.wc-emoji { font-size: 28px; margin-bottom: 6px; }
.wc-title { font-size: 13px; font-weight: 600; line-height: 1.4; }
.wc-check {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #F0ECE8;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: transparent;
  transition: all .2s;
}
.wish-card.done .wc-check {
  background: var(--gradient-rose);
  color: #fff;
}
.wish-burst {
  position: absolute;
  pointer-events: none;
  font-size: 18px;
  animation: heartBurst .6s ease-out forwards;
}
@keyframes heartBurst {
  0% { transform: translate(0,0) scale(0.5); opacity: 1; }
  100% { transform: translate(var(--bx,0), var(--by,-40px)) scale(1.2); opacity: 0; }
}

.wish-add-bar {
  display: flex; gap: 8px;
  position: sticky; bottom: 80px;
  background: #fff;
  border-radius: 24px;
  padding: 6px 6px 6px 16px;
  box-shadow: 0 8px 24px rgba(255,107,157,0.18);
}
.wish-add-bar input {
  flex: 1; background: transparent; font-size: 14px;
}
.wish-add-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient-rose);
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

/* ===== 私密留言板 ===== */
.msg-board {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 16px;
  min-height: 400px;
  max-height: 60vh;
  overflow-y: auto;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
}
.mb-empty {
  text-align: center;
  color: var(--text-soft);
  padding: 60px 20px;
  font-size: 14px;
}
.mb-empty-emoji { font-size: 48px; margin-bottom: 10px; }

.mb-item {
  display: flex; gap: 8px;
  margin-bottom: 14px;
  animation: fadeIn .25s;
}
.mb-item.me { flex-direction: row-reverse; }
.mb-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #F5F0EC;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.mb-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px; line-height: 1.5;
}
.mb-item.me .mb-bubble {
  background: var(--gradient-rose);
  color: #fff;
  border-top-right-radius: 4px;
}
.mb-item.other .mb-bubble {
  background: #F7F3EF;
  border-top-left-radius: 4px;
}
.mb-time { font-size: 10px; color: var(--text-soft); margin-top: 3px; }
.mb-item.me .mb-time { text-align: right; }

.msg-input-bar {
  display: flex; gap: 8px;
  position: sticky; bottom: 80px;
  background: #fff;
  border-radius: 24px;
  padding: 6px 6px 6px 16px;
  box-shadow: 0 8px 24px rgba(255,107,157,0.18);
}
.msg-input-bar input { flex: 1; background: transparent; font-size: 14px; }
.msg-send-btn {
  padding: 0 18px;
  height: 40px;
  border-radius: 20px;
  background: var(--gradient-rose);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* ===== 每周报告页 ===== */
.report-score-wrap {
  position: relative;
  width: 180px; height: 180px;
  margin: 10px auto 18px;
}
.report-score-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.rst-num { font-size: 42px; font-weight: 800; color: var(--rose); line-height: 1; }
.rst-unit { font-size: 14px; font-weight: 600; color: var(--text-soft); margin-left: 2px; }
.rst-label { font-size: 12px; color: var(--text-soft); margin-top: 4px; }

.report-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.rs-stat {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.rss-num { font-size: 22px; font-weight: 700; color: var(--rose); }
.rss-label { font-size: 12px; color: var(--text-soft); margin-top: 2px; }

.report-ai-block {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
}
.rab-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.rab-text { font-size: 13px; line-height: 1.7; color: var(--text); }

.report-suggest {
  background: linear-gradient(135deg, #FFF5EE, #FFE8F0);
  border-radius: var(--radius-card);
  padding: 16px;
}
.rs-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.rs-list { display: flex; flex-direction: column; gap: 8px; }
.rs-item {
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  display: flex; gap: 8px; align-items: flex-start;
}

/* ===== 成就墙 ===== */
.achieve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ach-item {
  background: #fff;
  border-radius: 16px;
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .15s;
}
.ach-item:active { transform: scale(0.95); }
.ach-item.locked { opacity: 0.5; filter: grayscale(1); }
.ach-badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFE4EC, #FFE8D4);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 8px;
  box-shadow: 0 4px 12px rgba(255,107,157,0.25);
}
.ach-item.locked .ach-badge { background: #F0ECE8; box-shadow: none; }
.ach-name { font-size: 12px; font-weight: 600; }
.ach-desc { font-size: 10px; color: var(--text-soft); margin-top: 2px; }

/* ===== 我的页面 网格菜单 ===== */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.pg-item {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .15s;
}
.pg-item:active { transform: scale(0.96); }
.pg-emoji { font-size: 24px; margin-bottom: 6px; }
.pg-title { font-size: 13px; font-weight: 600; }
.pg-sub { font-size: 11px; color: var(--text-soft); margin-top: 2px; }

/* Premium卡片改粉橙渐变 */
.premium-card {
  background: linear-gradient(135deg, #FF8E53 0%, #FF6B9D 100%) !important;
  color: #fff !important;
}
.premium-card::before {
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 70%) !important;
}
.pc-sub { color: rgba(255,255,255,0.85) !important; }
.pc-benefits-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.pcb {
  text-align: center;
  font-size: 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 8px 4px;
}
.pcb span { display: block; font-size: 16px; margin-bottom: 2px; }

/* ===== 第三方登录禁用样式 ===== */
.at-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  position: relative;
}
.at-btn.disabled em {
  font-style: normal;
  font-size: 10px;
  margin-left: 4px;
  color: var(--text-soft);
}

/* ===== 弹窗动画优化（回弹） ===== */
.modal {
  animation: slideUpBounce .38s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (min-width: 768px) {
  .modal {
    animation: zoomInBounce .32s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}
@keyframes slideUpBounce {
  0% { transform: translateY(100%); }
  60% { transform: translateY(-2%); }
  100% { transform: translateY(0); }
}
@keyframes zoomInBounce {
  0% { transform: scale(0.85); opacity: 0; }
  60% { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); }
}

/* ===== 冷静期弹窗 ===== */
.cooling-modal { text-align: center; }
.cm-emoji { font-size: 48px; margin-bottom: 10px; }
.cm-text { font-size: 14px; line-height: 1.7; color: var(--text); margin: 10px 0 18px; }
.cm-text.center { text-align: center; }
.cm-countdown {
  font-size: 56px; font-weight: 800;
  font-family: "SF Mono", Menlo, monospace;
  color: var(--rose);
  margin: 10px 0;
  letter-spacing: 2px;
}
.cm-review-text {
  background: #F7F3EF;
  border-radius: 14px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
  margin: 12px 0;
}

/* ===== 邀请弹窗 ===== */
.invite-code-box {
  background: linear-gradient(135deg, #FFE4EC, #FFE8D4);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  margin: 14px 0;
}
.icb-label { font-size: 12px; color: var(--text-soft); }
.icb-code {
  font-size: 30px; font-weight: 800;
  letter-spacing: 6px;
  color: var(--rose);
  margin: 6px 0 10px;
  font-family: "SF Mono", Menlo, monospace;
}
.invite-redeem { margin-top: 14px; }
.ir-label { font-size: 12px; color: var(--text-soft); margin-bottom: 8px; text-align: left; }

/* ===== 分享卡片 ===== */
.share-card-preview {
  display: flex; justify-content: center;
  margin: 12px 0;
}
#shareCanvas {
  width: 240px; height: 360px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(255,107,157,0.3);
}

/* ===== 支付成功全屏动画 ===== */
.pay-success-overlay {
  position: fixed; inset: 0;
  background: rgba(255,248,243,0.97);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ps-check {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34D399, #6EE7B7);
  color: #fff;
  font-size: 40px;
  display: flex; align-items: center; justify-content: center;
  animation: popIn .4s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 16px;
}
@keyframes popIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
.ps-title { font-size: 24px; font-weight: 800; color: var(--text); }
.ps-sub { font-size: 14px; color: var(--text-soft); margin-top: 6px; }
.ps-heart-burst {
  position: absolute; inset: 0;
  pointer-events: none;
}
.ps-heart {
  position: absolute;
  top: 50%; left: 50%;
  font-size: 24px;
  animation: heartFly 1.2s ease-out forwards;
}
@keyframes heartFly {
  0% { transform: translate(-50%,-50%) scale(0.5); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2); opacity: 0; }
}

/* 吵架冷静期hero按钮（AI教练页顶部） */
.cooling-hero {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #FFE4EC, #FFE8D4);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: transform .15s;
  box-shadow: var(--shadow-soft);
}
.cooling-hero:active { transform: scale(0.98); }
.ch-emoji { font-size: 36px; }
.ch-body { flex: 1; }
.ch-title { font-size: 16px; font-weight: 700; color: var(--text); }
.ch-desc { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.ch-arrow { font-size: 24px; color: var(--text-soft); }

/* 结果页双按钮 */
.result-actions {
  margin-top: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.result-actions .btn-ghost { margin-top: 0; }
