/* 结果页增强样式 */

/* 顶部导航 */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: .85rem;
  cursor: pointer;
  min-width: 60px;
}
.nav-right { justify-content: flex-end; }
.nav-icon { font-size: 1.1rem; }
.nav-title { font-weight: 600; font-size: 1rem; color: var(--text); }

/* 分享按钮组 */
.share-actions {
  display: none;
  gap: 12px;
  padding: 16px;
  max-width: 600px;
  margin: -20px auto 0;
  position: relative;
  z-index: 10;
}
.share-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .2s;
  box-shadow: 0 4px 15px rgba(0,0,0,.15);
}
.share-btn:active { transform: scale(.96); }
.share-btn.primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; }
.share-btn.secondary { background: white; color: var(--primary); border: 2px solid var(--primary); }

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.modal-content {
  background: white;
  border-radius: 20px;
  padding: 24px;
  max-width: 360px;
  width: 100%;
  position: relative;
  animation: modalIn .3s ease;
}
@keyframes modalIn {
  from { transform: scale(.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* 分享卡片 */
.share-card { padding: 0; overflow: hidden; max-width: 320px; }
.card-header {
  padding: 28px 20px;
  text-align: center;
  color: white;
}
.card-emoji { font-size: 3rem; margin-bottom: 8px; }
.card-type { font-size: 2.5rem; font-weight: 900; letter-spacing: 4px; margin-bottom: 4px; }
.card-name { font-size: 1.1rem; opacity: .9; }
.card-body { padding: 16px 20px; }
.card-traits { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
.card-trait {
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 20px;
  font-size: .75rem;
  color: var(--text-muted);
}
.card-quote {
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  line-height: 1.5;
}
.card-footer { padding: 16px 20px 20px; text-align: center; border-top: 1px solid var(--border); }
.card-qr { width: 120px; height: 120px; border-radius: 8px; margin-bottom: 8px; }
.card-tip { font-size: .75rem; color: var(--text-muted); }
.card-save { margin-top: 12px; }

/* 好友配对 */
.match-content h3 { font-size: 1.2rem; text-align: center; margin-bottom: 8px; }
.match-desc { font-size: .85rem; color: var(--text-muted); text-align: center; margin-bottom: 16px; line-height: 1.5; }
.match-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: .9rem;
  margin-bottom: 10px;
  outline: none;
  transition: border-color .2s;
}
.match-input:focus { border-color: var(--primary); }
.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
}
.match-link-label { font-size: .8rem; color: var(--text-muted); margin-bottom: 6px; }
.match-link-box { display: flex; gap: 8px; margin-bottom: 12px; }
.match-link-box .match-input { margin-bottom: 0; flex: 1; background: var(--bg); }
.btn-copy {
  padding: 12px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: .85rem;
  cursor: pointer;
  white-space: nowrap;
}
.match-qr { width: 140px; height: 140px; border-radius: 8px; display: block; margin: 0 auto; }

/* 分析文字 */
.analysis-text { font-size: .88rem; color: var(--text); line-height: 1.7; }

/* 能力卡片 */
.ability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ability-card {
  padding: 14px;
  border-radius: 12px;
  background: var(--bg);
}
.ability-card.strength { background: linear-gradient(135deg, rgba(39,174,96,.1), rgba(46,204,113,.1)); border: 1px solid rgba(46,204,113,.2); }
.ability-card.weakness { background: linear-gradient(135deg, rgba(241,196,15,.1), rgba(243,156,18,.1)); border: 1px solid rgba(243,156,18,.2); }
.ability-label { font-size: .75rem; font-weight: 600; margin-bottom: 6px; }
.ability-card.strength .ability-label { color: #27ae60; }
.ability-card.weakness .ability-label { color: #f39c12; }
.ability-text { font-size: .8rem; color: var(--text); line-height: 1.5; }

/* 成长建议 */
.growth-text { font-size: .88rem; color: var(--text); line-height: 1.7; padding: 14px; background: linear-gradient(135deg, rgba(102,126,234,.08), rgba(118,75,162,.08)); border-radius: 12px; border-left: 3px solid var(--primary); }

/* 每日洞察 */
.daily-page { display: none; }
.daily-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.daily-question { font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; line-height: 1.6; }
.daily-options { display: flex; flex-direction: column; gap: 10px; }
.daily-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
}
.daily-option:active { transform: scale(.98); }
.daily-option:hover { border-color: var(--primary); }
.daily-opt-label {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
  color: var(--text-muted);
}
.daily-opt-text { font-size: .9rem; line-height: 1.5; }
.daily-hint {
  background: linear-gradient(135deg, rgba(102,126,234,.1), rgba(118,75,162,.1));
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.hint-icon { font-size: 2.5rem; margin-bottom: 10px; }
.daily-hint p { font-size: .9rem; color: var(--text); line-height: 1.6; }
.hint-next { color: var(--text-muted) !important; font-size: .8rem !important; margin-top: 10px; }
