/* ==================== 全局样式 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #409EFF;
  --gradient-pink: linear-gradient(135deg, #F8C8DC, #E8B4B8);
  --gradient-blue: linear-gradient(135deg, #B3D8FF, #87B9F5);
  --gradient-main: linear-gradient(135deg, #A8E6CF, #88D8C0);
  --bg-color: #F8F9FA;
  --card-bg: #FFFFFF;
  --text-primary: #000000;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border-color: #EEEEEE;
  --shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.05);
}

html {
  font-size: 16px;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 750px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding-bottom: 80px;
}

/* ==================== 页面切换 ==================== */
.page {
  padding: 0 24px;
  padding-bottom: 100px;
}

.hidden {
  display: none !important;
}

/* ==================== 头部标题 ==================== */
.header {
  padding: 30px 0 20px;
}

.header-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.header-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ==================== 轮播 Banner ==================== */
.banner {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}

.banner-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.swiper-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.swiper-slide.active {
  opacity: 1;
}

.swiper-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(168, 230, 207, 0.8), rgba(136, 216, 192, 0.8));
}

.banner-content {
  position: relative;
  z-index: 1;
}

.banner-content h2 {
  font-size: 22px;
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.banner-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.banner-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
}

.banner-dots span.active {
  background: #FFFFFF;
  width: 20px;
  border-radius: 4px;
}

/* ==================== 分类标签 ==================== */
.category-section {
  margin-bottom: 24px;
}

.category-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-btn {
  flex-shrink: 0;
  padding: 8px 20px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: var(--card-bg);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.category-btn.active {
  background: var(--gradient-main);
  border-color: transparent;
  color: #FFFFFF;
}

.category-btn:active {
  opacity: 0.7;
}

/* ==================== 列表区域 ==================== */
.section {
  margin-bottom: 20px;
}

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

.section-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-primary);
}

.refresh-btn {
  font-size: 14px;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
}

.refresh-btn:active {
  opacity: 0.7;
}

/* ==================== 测试卡片 ==================== */
.test-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.test-card {
  display: flex;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.2s;
}

.test-card:active {
  opacity: 0.7;
}

.test-cover {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  background: var(--gradient-pink);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.test-info {
  flex: 1;
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.test-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.test-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.test-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #999;
}

.test-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==================== 底部导航 ==================== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  max-width: 750px;
  margin: 0 auto;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  cursor: pointer;
  flex: 1;
}

.tabbar-icon {
  font-size: 24px;
}

.tabbar-text {
  font-size: 12px;
  color: var(--text-muted);
}

.tabbar-item.active .tabbar-text {
  color: var(--primary-color);
}

/* 页面底部留出tabbar空间 */
.page {
  padding-bottom: 70px;
}

/* ==================== 答题页 ==================== */
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 16px;
}

.back-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--primary-color);
  cursor: pointer;
}

.quiz-progress-info {
  font-size: 14px;
  color: var(--text-secondary);
}

.test-page-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 16px;
  padding: 0 12px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #A8E6CF, #88D8C0);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

.test-content {
  padding-bottom: 100px;
}

.question-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.question-number {
  font-size: 14px;
  color: #F675A7;
  margin-bottom: 12px;
}

.question-text {
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.option-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.option-item:active {
  transform: scale(0.98);
}

.option-item.selected {
  border-color: #F675A7;
  background: rgba(246, 117, 167, 0.08);
}

.option-key {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: var(--text-secondary);
  margin-right: 16px;
  flex-shrink: 0;
}

.option-item.selected .option-key {
  background: linear-gradient(135deg, #F8C8DC, #F675A7);
  color: #FFFFFF;
}

.option-text {
  flex: 1;
  font-size: 15px;
  color: var(--text-primary);
}

.btn-group {
  display: flex;
  gap: 12px;
}

.btn-group .btn {
  flex: 1;
  width: auto;
}

/* ==================== 按钮 ==================== */
.btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--gradient-main);
  color: #FFFFFF;
}

.btn-primary:disabled {
  background: var(--border-color);
  color: var(--text-muted);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-secondary:active {
  background: var(--border-color);
}

/* ==================== 结果页 ==================== */
.result-content {
  padding-bottom: 30px;
}

.result-header {
  text-align: center;
  padding: 20px 0 24px;
}

.avatar-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F8C8DC, #FFE8D6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  overflow: hidden;
}

img.avatar-circle {
  object-fit: cover;
}
  font-size: 60px;
}

.result-title {
  font-size: 26px;
  font-weight: bold;
  background: linear-gradient(135deg, #F675A7, #F8C8DC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.traits-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.trait-tag {
  padding: 6px 14px;
  background: linear-gradient(135deg, #F8C8DC, #F675A7);
  border-radius: 16px;
  font-size: 12px;
  color: #FFFFFF;
}

.result-content-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.result-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 12px;
}

.resonance-quote {
  padding: 16px;
  background: rgba(246, 117, 167, 0.08);
  border-left: 3px solid #F675A7;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: #F675A7;
  font-weight: 500;
}

/* ==================== 场景解读 ==================== */
.scenes-section {
  margin-bottom: 20px;
}

.scene-card {
  background: #FAFAFA;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.scene-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.scene-icon {
  font-size: 18px;
  margin-right: 8px;
}

.scene-title {
  font-size: 15px;
  font-weight: bold;
  color: var(--text-primary);
}

.scene-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}

.scene-content {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== 治愈寄语 ==================== */
.wisdom-card {
  background: linear-gradient(135deg, #FFE8D6, #F8C8DC);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.wisdom-text {
  font-size: 16px;
  color: #F675A7;
  font-style: italic;
}

/* ==================== 操作按钮 ==================== */
.action-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.action-buttons .btn {
  flex: 1;
}

/* ==================== 小程序引流区域 ==================== */
.mini-program-section {
  margin: 24px 0;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  text-align: center;
}

.mini-program-tip {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

.mini-program-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.mini-program-qrcode {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mini-program-desc {
  text-align: left;
}

.mini-program-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.mini-program-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* ==================== 推荐测试 ==================== */
.recommend-section {
  margin-bottom: 20px;
}

.recommend-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.recommend-list::-webkit-scrollbar {
  display: none;
}

.recommend-item {
  flex-shrink: 0;
  width: 140px;
  cursor: pointer;
}

.recommend-cover {
  width: 100%;
  height: 100px;
  border-radius: 10px;
  background: var(--gradient-pink);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.recommend-title {
  font-size: 13px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==================== 历史记录 ==================== */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  display: flex;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.history-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.history-info {
  flex: 1;
  margin-left: 12px;
}

.history-title {
  font-size: 15px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.history-time {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== 加载状态 ==================== */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==================== Toast 提示 ==================== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.toast.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ==================== 确认弹窗 ==================== */
.confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.confirm-modal.hidden {
  display: none;
}

.confirm-dialog {
  background: #fff;
  border-radius: 12px;
  width: 280px;
  padding: 20px;
  text-align: center;
}

.confirm-content {
  font-size: 15px;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.5;
}

.confirm-buttons {
  display: flex;
  gap: 12px;
}

.confirm-buttons button {
  flex: 1;
  height: 40px;
  border-radius: 8px;
  font-size: 15px;
  border: none;
  cursor: pointer;
}

.btn-cancel {
  background: #f5f5f5;
  color: #666;
}

.btn-confirm {
  background: linear-gradient(135deg, #FFE8D6, #F8C8DC);
  color: #333;
}

/* ==================== 弹窗 ==================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--card-bg);
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 750px;
  max-height: 400px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: bold;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  text-align: center;
}

.modal-body p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.share-link {
  background: var(--bg-color);
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  word-break: break-all;
  margin-bottom: 16px;
}

.copy-btn {
  width: auto;
  display: inline-block;
}

/* ==================== 资料编辑弹窗 ==================== */
.profile-modal-content {
  max-height: 85vh;
  max-width: 500px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
}

.profile-modal-body {
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

/* 头像区域 */
.profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0 20px;
  background: linear-gradient(135deg, #FFE8D6, #F8C8DC);
}

.profile-avatar-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 12px;
  cursor: pointer;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.profile-avatar-edit-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: #F675A7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.profile-avatar-hint {
  font-size: 12px;
  color: #888;
}

/* 表单区域 */
.profile-form-section {
  padding: 0 20px;
}

.profile-form-item {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #F5F5F5;
}

.profile-form-item:last-child {
  border-bottom: none;
}

.profile-form-label {
  width: 80px;
  font-size: 14px;
  color: #333;
  flex-shrink: 0;
}

.profile-form-input {
  flex: 1;
  font-size: 14px;
  color: #333;
  text-align: right;
  border: none;
  outline: none;
  background: transparent;
}

.profile-form-input[readonly] {
  color: #999;
  cursor: not-allowed;
}

.profile-form-select {
  flex: 1;
  font-size: 14px;
  color: #333;
  text-align: right;
  border: none;
  outline: none;
  background: transparent;
  direction: rtl;
}

.profile-form-item-bio {
  flex-direction: column;
  align-items: flex-start;
}

.profile-form-item-bio .profile-form-label {
  margin-bottom: 8px;
}

.profile-form-textarea {
  width: 100%;
  font-size: 14px;
  color: #333;
  border: none;
  outline: none;
  background: transparent;
  resize: none;
  min-height: 80px;
  line-height: 1.5;
}

.profile-textarea-count {
  font-size: 12px;
  color: #999;
  align-self: flex-end;
  margin-top: 4px;
}

/* 保存按钮 */
.profile-save-section {
  padding: 20px;
}

.profile-save-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #F8C8DC, #F675A7);
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  border: none;
  cursor: pointer;
}

.profile-save-btn:active {
  opacity: 0.9;
}

/* ==================== 空状态和错误 ==================== */
.empty, .error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.error {
  color: #F56C6C;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* ==================== 响应式适配 ==================== */
@media screen and (max-width: 375px) {
  html {
    font-size: 14px;
  }
}

@media screen and (min-width: 750px) {
  .test-card {
    padding: 20px;
  }

  .test-cover {
    width: 120px;
    height: 120px;
  }
}

/* ==================== 诊断书结构样式（新版） ==================== */

/* 顶部英雄区 */
.diagnosis-hero {
  padding: 40px 20px 30px;
  text-align: center;
  border-radius: 0 0 30px 30px;
  margin-bottom: 20px;
  position: relative;
}

.hero-icon {
  font-size: 64px;
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
}

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

.hero-level {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(255,255,255,0.5);
}

.hero-stars {
  font-size: 24px;
  color: #FFD700;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* 配图区 */
.diagnosis-illustration {
  padding: 0 20px;
  margin-bottom: 16px;
}

.illustration-card {
  border: 2px solid;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.illustration-emoji {
  font-size: 72px;
  margin-bottom: 12px;
}

.illustration-label {
  font-size: 16px;
  color: #666;
  font-weight: 500;
}

/* 统计区 */
.diagnosis-stats {
  padding: 12px 20px;
  text-align: center;
}

.stats-item {
  font-size: 13px;
  color: #888;
  background: #f5f5f5;
  padding: 8px 16px;
  border-radius: 20px;
}

.stats-item strong {
  color: #F675A7;
  font-weight: bold;
}

/* 完整诊断书内容 */
.diagnosis-content {
  margin: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.diagnosis-content p {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 12px;
}

.diagnosis-content p strong {
  color: #333;
  font-weight: bold;
}

.diagnosis-content .diagnosis-text {
  font-style: italic;
  color: #555;
  padding: 12px;
  background: #fafafa;
  border-radius: 8px;
  margin: 12px 0;
}

.diagnosis-ul {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.diagnosis-ul li {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  padding: 6px 0 6px 20px;
  position: relative;
}

.diagnosis-ul li::before {
  content: '•';
  position: absolute;
  left: 6px;
  color: #F675A7;
}

.notice-text {
  font-size: 14px !important;
  color: #8B6914 !important;
  padding: 12px !important;
  background: #FFF9E6 !important;
  border-radius: 8px !important;
  border: 1px dashed #FFB800 !important;
}

/* 疯疯标签 */
.diagnosis-tags {
  margin: 20px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.tags-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  font-weight: bold;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
}

/* 底部操作按钮 */
.diagnosis-actions {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.action-btn {
  width: 100%;
  padding: 16px 24px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.action-btn:active {
  transform: scale(0.98);
}

.share-btn {
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.home-btn {
  background: #fff;
  color: #666;
  border: 2px solid #eee;
}

.home-btn:active {
  background: #f5f5f5;
}

/* 底部提示 */
.diagnosis-footer {
  text-align: center;
  padding: 0 20px 30px;
  font-size: 12px;
  color: #aaa;
}

/* ==================== MBTI类型样式 ==================== */

/* 顶部MBTI展示区 */
.mbti-hero {
  padding: 40px 20px 30px;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 0 0 30px 30px;
  margin-bottom: 20px;
}

.mbti-type-badge {
  display: inline-block;
  font-size: 48px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

.mbti-title-name {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.mbti-summary {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  line-height: 1.6;
}

/* 一句话概括卡片 */
.mbti-summary-card {
  margin: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  text-align: center;
}

/* MBTI区域 */
.mbti-section {
  margin: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.mbti-section .section-title {
  font-size: 16px;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}

/* 闪光点列表 */
.highlights-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.highlight-item {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
  border-radius: 8px;
  border-left: 3px solid #667eea;
}

/* 相处方式 */
.interaction-tips {
  font-size: 14px;
  color: #555;
  line-height: 1.9;
  padding: 14px;
  background: #fafafa;
  border-radius: 10px;
}

/* MBTI标签 */
.mbti-tags {
  margin: 20px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.mbti-tags .tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.mbti-tags .tag-item {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

/* MBTI治愈寄语 */
.mbti-healing {
  margin: 20px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(246, 117, 167, 0.1), rgba(102, 126, 234, 0.1));
  border-radius: 16px;
  text-align: center;
  font-size: 15px;
  color: #667eea;
  font-weight: 500;
  line-height: 1.7;
  font-style: italic;
}

/* MBTI底部按钮 */
.mbti-actions {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.mbti-actions .share-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.mbti-actions .home-btn {
  background: #fff;
  color: #667eea;
  border: 2px solid #667eea;
}

/* ==================== 个人中心页面 ==================== */

/* 用户信息卡片 */
.user-card {
  background: linear-gradient(135deg, #FFE8D6, #F8C8DC);
  border-radius: 20px;
  padding: 24px 20px;
  margin: 16px;
  box-shadow: 0 4px 16px rgba(246, 117, 167, 0.15);
}

.user-info {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.user-card .avatar-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  overflow: hidden;
}

.user-card img.avatar-circle {
  object-fit: cover;
}

.info-text .nickname {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 4px;
}

.info-text .desc {
  font-size: 13px;
  color: #888;
}

/* 用户统计 */
.user-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 14px 0;
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-item .stat-num {
  font-size: 22px;
  font-weight: bold;
  color: #F675A7;
  display: block;
  margin-bottom: 4px;
}

.stat-item .stat-label {
  font-size: 12px;
  color: #888;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: #eee;
}

/* 菜单列表 */
.menu-section {
  margin: 0 16px 20px;
}

.menu-group {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 12px;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f5f5f5;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:active {
  background: #f9f9f9;
}

.menu-left {
  display: flex;
  align-items: center;
}

.menu-icon {
  font-size: 20px;
  margin-right: 12px;
}

.menu-text {
  font-size: 15px;
  color: #333;
}

.menu-right {
  font-size: 20px;
  color: #ccc;
}

/* 底部文案 */
.footer-text {
  text-align: center;
  padding: 20px;
  color: #aaa;
  font-size: 12px;
}

.footer-text p {
  margin: 4px 0;
}

/* 列表弹窗样式 */
.modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.modal-list-item {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modal-list-item:active {
  transform: scale(0.98);
  background: #f9f9f9;
}

.modal-list-delete {
  font-size: 12px;
  color: #FF6B6B;
  padding: 6px 12px;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 6px;
  margin-left: 12px;
  flex-shrink: 0;
}

.modal-list-delete:active {
  opacity: 0.7;
}

.modal-list-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFE8D6, #F8C8DC);
  color: #F675A7;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.modal-list-info {
  flex: 1;
}

.modal-list-title {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  margin-bottom: 4px;
}

.modal-list-sub {
  font-size: 12px;
  color: #aaa;
}

/* ==================== 我的页面（新设计） ==================== */
.my-user-card {
  background: linear-gradient(135deg, #FFE8D6, #F8C8DC);
  border-radius: 20px;
  padding: 24px 20px;
  margin: 16px;
  box-shadow: 0 4px 16px rgba(246, 117, 167, 0.15);
}

.my-user-info {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.my-avatar-wrapper {
  margin-right: 14px;
}

.my-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.my-avatar-emoji {
  font-size: 32px;
}

.my-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.my-user-text {
  flex: 1;
}

.my-nickname {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.my-signature {
  font-size: 13px;
  color: #888;
}

.my-edit-btn {
  font-size: 13px;
  color: #F675A7;
  cursor: pointer;
  padding: 6px 12px;
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
}

.my-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 14px 0;
}

.my-stat-item {
  flex: 1;
  text-align: center;
  cursor: pointer;
}

.my-stat-num {
  font-size: 22px;
  font-weight: bold;
  color: #F675A7;
  margin-bottom: 4px;
}

.my-stat-label {
  font-size: 12px;
  color: #888;
}

.my-stat-divider {
  width: 1px;
  height: 30px;
  background: #eee;
}

/* 功能菜单 */
.my-menu-section {
  margin: 0 16px 20px;
}

.my-menu-group {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 12px;
}

.my-menu-item {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f5f5f5;
}

.my-menu-item:last-child {
  border-bottom: none;
}

.my-menu-item:active {
  background: #f9f9f9;
}

.my-menu-icon {
  font-size: 20px;
  margin-right: 12px;
}

.my-menu-text {
  flex: 1;
  font-size: 15px;
  color: #333;
}

.my-menu-arrow {
  font-size: 18px;
  color: #ccc;
}

/* 退出按钮 */
.my-logout-btn {
  text-align: center;
  padding: 16px;
  font-size: 15px;
  color: #F56C6C;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  margin: 0 16px;
}

.my-logout-btn:active {
  background: #fef0f0;
}

/* 底部文案 */
.my-footer-text {
  text-align: center;
  padding: 30px 0;
  font-size: 12px;
  color: #ccc;
}

.my-footer-text p {
  margin: 4px 0;
}

/* ==================== 治愈文案轮播样式 ==================== */

.swiper-slide {
  cursor: pointer;
}

.article-category {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
}

.article-title {
  font-size: 26px;
  color: #fff;
  font-weight: bold;
  margin: 0 0 12px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  line-height: 1.3;
}

.article-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.article-cta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-block;
}

/* ==================== 文案详情页样式 ==================== */

.article-container {
  padding-bottom: 40px;
}

.article-header {
  padding: 40px 24px 30px;
  border-radius: 0 0 30px 30px;
  position: relative;
}

.article-category-tag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
}

.article-main-title {
  font-size: 28px;
  color: #fff;
  font-weight: bold;
  margin: 0 0 12px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  line-height: 1.3;
}

.article-main-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.5;
}

.article-body {
  padding: 24px 20px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.article-tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  background: linear-gradient(135deg, #FFE8D6, #F8C8DC);
  color: #F675A7;
  font-weight: 500;
}

.article-text {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.article-text p {
  font-size: 15px;
  color: #555;
  line-height: 2;
  margin: 0 0 16px 0;
  text-align: justify;
}

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

.article-text br {
  display: block;
  content: "";
  margin: 12px 0;
}

.article-author {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFE8D6, #F8C8DC);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-right: 14px;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.author-date {
  font-size: 12px;
  color: #aaa;
}

.article-share-section {
  background: linear-gradient(135deg, rgba(246, 117, 167, 0.08), rgba(102, 126, 234, 0.08));
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
}

.share-title {
  font-size: 15px;
  color: #666;
  margin-bottom: 16px;
  font-weight: 500;
}

.share-buttons {
  display: flex;
  gap: 12px;
}

.share-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.share-btn:active {
  transform: scale(0.98);
}

.copy-btn {
  background: #fff;
  color: #F675A7;
  border: 2px solid #F675A7;
}

.wx-btn {
  background: linear-gradient(135deg, #07c160, #06ad56);
  color: #fff;
  box-shadow: 0 4px 12px rgba(6, 173, 86, 0.3);
}

/* ==================== 登录注册页面 ==================== */

.login-container {
  padding: 40px 30px;
  min-height: 100vh;
  background: linear-gradient(180deg, #FFF5F7 0%, #fff 100%);
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-header h1 {
  font-size: 28px;
  color: #333;
  margin: 0 0 12px 0;
  font-weight: bold;
}

.login-header p {
  font-size: 14px;
  color: #999;
  margin: 0;
}

.login-form {
  background: #fff;
  border-radius: 20px;
  padding: 30px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-item {
  margin-bottom: 20px;
}

.form-item input {
  width: 100%;
  height: 50px;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 15px;
  box-sizing: border-box;
  transition: all 0.3s;
  outline: none;
}

.form-item input:focus {
  border-color: #F675A7;
  box-shadow: 0 0 0 3px rgba(246, 117, 167, 0.1);
}

.form-item input::placeholder {
  color: #bbb;
}

.captcha-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.captcha-item input {
  flex: 1;
}

.captcha-img {
  width: 100px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: #F675A7;
  cursor: pointer;
  text-align: center;
  line-height: 50px;
  letter-spacing: 4px;
}

.btn-primary {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #FFE8D6, #F8C8DC);
  color: #F675A7;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.btn-primary:active {
  transform: scale(0.98);
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #999;
}

.login-footer .link {
  color: #F675A7;
  cursor: pointer;
  margin-left: 4px;
  font-weight: 500;
}

.login-footer .link:hover {
  text-decoration: underline;
}

/* 退出登录样式 */
.logout-item {
  color: #999 !important;
}

.logout-item .menu-icon,
.logout-item .menu-text {
  color: #999 !important;
}

/* 未登录提示卡片 */
.login-tip-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.login-tip-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.login-tip-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 16px;
}

.login-tip-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.btn-login {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #FFE8D6, #F8C8DC);
  color: #F675A7;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 20px;
}

.btn-login:active {
  transform: scale(0.98);
}

/* ==================== 评论区样式 ==================== */
.comment-section {
  margin-top: 24px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
}

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

.comment-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.comment-btn {
  padding: 6px 16px;
  background: linear-gradient(135deg, #f675a7 0%, #F8C8DC 100%);
  border-radius: 20px;
  border: none;
  cursor: pointer;
}

.comment-btn span {
  font-size: 13px;
  color: #fff;
}

/* 发布的测试结果卡片 */
.published-result {
  background: linear-gradient(135deg, #fff9f0 0%, #fff5f9 100%);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #F8C8DC;
}

.published-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.published-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f675a7 0%, #F8C8DC 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.published-avatar text {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

.published-info {
  flex: 1;
}

.published-user {
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.published-time {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.published-content {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.published-test-title {
  font-size: 14px;
  color: #F675A7;
  font-weight: bold;
  margin-bottom: 4px;
}

.published-result-text {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.published-comment {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.comment-input-area {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.comment-textarea {
  width: 100%;
  height: 80px;
  background: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  box-sizing: border-box;
  resize: none;
}

.comment-input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.anonymous-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.anonymous-toggle input {
  cursor: pointer;
}

.anonymous-label {
  font-size: 13px;
  color: #999;
}

.comment-char-count {
  font-size: 12px;
  color: #999;
}

.comment-submit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
}

.comment-published-tip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.tip-text {
  font-size: 13px;
  color: #666;
}

.tip-link {
  font-size: 13px;
  color: #F675A7;
  font-weight: 500;
  cursor: pointer;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-list-title {
  font-size: 14px;
  font-weight: bold;
  color: #666;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.comment-item-card {
  background: linear-gradient(135deg, #fff9f0 0%, #fff5f9 100%);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #F8C8DC;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment-avatar text {
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.comment-avatar.anonymous {
  background: linear-gradient(135deg, #ccc 0%, #999 100%);
}

.comment-empty {
  text-align: center;
  padding: 32px 0;
}

.comment-empty text {
  font-size: 14px;
  color: #999;
}

.loading {
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: #999;
}

/* 点赞和回复按钮 */
.comment-actions {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 14px;
}

.action-item span:first-child {
  font-size: 16px;
}

.action-count {
  font-size: 12px;
  color: #999;
}

.action-item .liked {
  color: #F675A7;
}

/* 回复输入框 */
.reply-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
}

.reply-input {
  flex: 1;
  height: 36px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 0 14px;
  font-size: 13px;
  outline: none;
}

.reply-input:focus {
  border-color: #F675A7;
}

.reply-submit-btn {
  padding: 0 14px;
  height: 36px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 13px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
}

/* 回复列表 */
.reply-list {
  margin-top: 12px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
}

.reply-item {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.reply-item:last-child {
  margin-bottom: 0;
}

.reply-nickname {
  color: #F675A7;
  font-weight: 500;
}

.reply-arrow {
  color: #999;
}

.reply-content {
  color: #666;
}

/* ==================== 每日心情页面 ==================== */
.mood-container {
  min-height: 100vh;
  background: linear-gradient(to bottom, #FFF9F7, #FFF);
  padding: 32px 28px 100px;
  max-width: 750px;
  margin: 0 auto;
}

/* 通用卡片 */
.mood-card {
  background: #FFF;
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(180, 150, 130, 0.08);
  border: 1px solid #F0E6E0;
  animation: fadeInUp 0.5s ease;
}

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

/* 卡片头部 */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.header-left {
  display: flex;
  align-items: center;
}

.card-icon {
  font-size: 20px;
  margin-right: 12px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #5A4A4A;
}

.card-tag {
  font-size: 14px;
  color: #E8A87C;
  background: linear-gradient(135deg, #FFF5EE, #FFE8D6);
  padding: 8px 18px;
  border-radius: 16px;
}

.card-date {
  font-size: 14px;
  color: #B8A8A0;
}

/* 运势卡片 */
.fortune-card {
  background: linear-gradient(160deg, #FFF9F7 0%, #FFF6F2 100%);
  cursor: pointer;
}

.fortune-card .card-header {
  margin-bottom: 24px;
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 12px;
}

.fortune-icon {
  font-size: 60px;
  margin-bottom: 16px;
  animation: breathe 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 220, 150, 0.4));
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.fortune-tip {
  font-size: 16px;
  color: #B8A8A0;
  letter-spacing: 1px;
}

.result-emoji {
  font-size: 50px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.result-luck {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.luck-label {
  font-size: 16px;
  color: #8A7A7A;
}

.luck-tag {
  font-size: 20px;
  font-weight: 600;
}

.luck-tag.lucky {
  color: #E8A87C;
}

.luck-tag.medium {
  color: #D4A574;
}

.luck-tag.small {
  color: #C4956A;
}

.luck-tag.normal {
  color: #B8A8A0;
}

.result-desc {
  font-size: 14px;
  color: #8A7A7A;
  line-height: 1.8;
  text-align: center;
  padding: 0 16px;
}

/* 打卡卡片 */
.checkin-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 32px;
  cursor: pointer;
}

.checkin-card.checked {
  background: linear-gradient(160deg, #FFF9F7 0%, #FFF6F2 100%);
}

.checkin-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.checkin-title-icon {
  font-size: 22px;
}

.checkin-title-text {
  font-size: 20px;
  font-weight: 500;
  color: #5A4A4A;
  letter-spacing: 1px;
}

.checkin-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.checkin-meta-time {
  font-size: 14px;
  color: #B8A8A0;
}

.checkin-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: #8A7A7A;
  padding-top: 20px;
  border-top: 1px solid #F8F4F0;
}

.summary-divider {
  color: #C8B8B0;
}

/* 一言卡片 */
.quote-card .card-header {
  margin-bottom: 20px;
}

.quote-body {
  position: relative;
  padding: 16px 0 20px;
}

.quote-mark {
  font-size: 48px;
  color: #E8A87C;
  opacity: 0.3;
  font-family: serif;
  line-height: 1;
  position: absolute;
  top: -10px;
  left: -8px;
}

.quote-text {
  font-size: 18px;
  color: #5A4A4A;
  line-height: 2;
  letter-spacing: 1px;
  display: block;
  padding: 0 16px;
}

.quote-source {
  font-size: 14px;
  color: #B8A8A0;
  font-style: italic;
  display: block;
  text-align: right;
  margin-top: 16px;
  padding-right: 8px;
}

.quote-footer {
  display: flex;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid #F8F4F0;
}

.action-btn {
  flex: 1;
  font-size: 14px;
  color: #8A7A7A;
  padding: 12px 20px;
  background: #FBF8F5;
  border-radius: 20px;
  text-align: center;
  border: 1px solid #F0EBE5;
  cursor: pointer;
}

.action-btn.primary {
  background: linear-gradient(135deg, #FFE8D6, #F5C8B8);
  color: #C4956A;
  border: none;
}

/* PC端适配 */
@media (min-width: 768px) {
  .mood-container {
    padding: 40px 32px 120px;
  }

  .mood-card {
    padding: 36px;
    border-radius: 28px;
  }
}

/* ==================== 九种人格结果页 ==================== */
.enneagram-hero {
  background: linear-gradient(180deg, #FFF5F7 0%, #FFF9FA 100%);
  padding: 48px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: -20px -20px 0 -20px;
  border-radius: 24px 24px 0 0;
}

.hero-icon-wrap {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(246, 117, 167, 0.2);
  margin-bottom: 20px;
}

.hero-icon {
  font-size: 60px;
}

.enneagram-main-title {
  font-size: 26px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  text-align: center;
}

.enneagram-sub-title {
  font-size: 16px;
  color: #999;
}

.enneagram-main-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin: 16px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #F675A7;
}

.enneagram-summary-text {
  font-size: 15px;
  line-height: 1.8;
  color: #5A4A4A;
}

.enneagram-section-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  padding: 16px 20px 12px;
}

.enneagram-traits-row {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 16px;
}

.enneagram-trait-card {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.trait-card-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.trait-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #5A4A4A;
  margin-bottom: 6px;
}

.trait-card-content {
  font-size: 12px;
  color: #8A7A7A;
  line-height: 1.5;
}

.enneagram-scenes-section {
  padding: 0 4px;
  margin-bottom: 16px;
}

.enneagram-scene-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin: 0 16px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.scene-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.scene-card-icon {
  font-size: 20px;
}

.scene-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #5A4A4A;
}

.scene-card-content {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
}

.enneagram-healing {
  background: linear-gradient(135deg, #FFF5F7, #FFE8F0);
  padding: 24px 20px;
  margin: 16px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.healing-icon {
  font-size: 32px;
}

.healing-text {
  font-size: 14px;
  color: #5A4A4A;
  line-height: 1.6;
}

.enneagram-actions {
  display: flex;
  gap: 12px;
  padding: 16px 20px 32px;
}

.enneagram-actions .action-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-align: center;
}

.enneagram-actions .share-btn {
  background: linear-gradient(135deg, #F8C8DC, #F675A7);
  color: #fff;
  box-shadow: 0 4px 12px rgba(246, 117, 167, 0.3);
}

.enneagram-actions .home-btn {
  background: #fff;
  color: #999;
  border: 1px solid #eee;
}

/* ==================== 五子棋浮动入口按钮 ==================== */
/* ==================== 五子棋游戏页面 ==================== */
#gomoku-page {
  padding: 0 0 70px;
  min-height: 100vh;
  background: linear-gradient(180deg, #F5E6C8 0%, #FFF9F0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gomoku-header {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 230, 200, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.gomoku-back-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: #8B7355;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
}

.gomoku-back-btn:active {
  background: rgba(139, 115, 85, 0.1);
}

.gomoku-title {
  font-size: 18px;
  font-weight: bold;
  color: #5A4A3A;
  letter-spacing: 2px;
}

.gomoku-reset-btn {
  background: linear-gradient(135deg, #A8E6CF, #88D8C0);
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}

.gomoku-reset-btn:active {
  opacity: 0.8;
}

.gomoku-game-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  width: 100%;
  max-width: 750px;
}

#gomoku-game {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 玩家信息栏 */
.player-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 460px;
  padding: 8px 20px 12px;
  box-sizing: border-box;
}

.player-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(200,176,152,0.15);
  border: 1px solid rgba(200,176,152,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.player-name {
  font-size: 14px;
  color: #8B7355;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-vs {
  font-size: 16px;
  color: #C8B098;
}

/* 当前回合头像光晕 */
.player-avatar.glow {
  box-shadow: 0 0 12px 4px rgba(255, 215, 0, 0.4);
  border-color: rgba(255, 215, 0, 0.5);
  animation: pulseGlow 1.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 12px 4px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 18px 8px rgba(255, 215, 0, 0.5); }
}

.gomoku-status {
  font-size: 18px;
  color: #5A4A3A;
  margin-bottom: 16px;
  font-weight: 500;
  text-align: center;
  min-height: 32px;
}

.gomoku-canvas-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

#gomoku-canvas {
  display: block;
  cursor: pointer;
  touch-action: none;
}

.gomoku-info {
  margin-top: 16px;
  font-size: 13px;
  color: #8B7355;
  text-align: center;
  line-height: 1.6;
}

/* 模式选择 */
.gomoku-mode-select {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 20px;
  width: 100%;
  max-width: 360px;
}

.mode-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.2s;
  border: 2px solid transparent;
}

.mode-card:active {
  transform: scale(0.97);
  border-color: #667eea;
}

.mode-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.mode-name {
  font-size: 18px;
  font-weight: bold;
  color: #5A4A3A;
  margin-bottom: 8px;
}

.mode-desc {
  font-size: 14px;
  color: #8B7355;
  line-height: 1.5;
}

/* 联机菜单 */
.gomoku-online-menu {
  position: relative;
  width: 100%;
  max-width: 500px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.online-menu-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('https://tendermind.52youran.top/images/wzqbackground.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  pointer-events: none;
}

.online-zone {
  position: absolute;
  height: 22%;
  cursor: pointer;
  z-index: 2;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
}

.online-zone:active {
  transform: scale(0.96);
}

.zone-left {
  top: 37%;
  left: 5.33%;
  width: 42%;
}

.zone-right {
  top: 37%;
  right: 5.33%;
  width: 42%;
}

.room-list-section {
  position: relative;
  z-index: 2;
  margin-top: 65%;
  width: 100%;
  padding: 10px 0;
}
  font-weight: 600;
  color: #5A4A3A;
}

/* 等待房间 */
.gomoku-waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 30px;
  text-align: center;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  background-image: linear-gradient(rgba(255,255,255,0.15), rgba(255,255,255,0.15)), url('https://tendermind.52youran.top/images/battle.png');
  background-size: cover;
  background-position: center;
}

.waiting-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e8e0d8;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
}

.waiting-title {
  font-size: 18px;
  font-weight: 600;
  color: #5A4A3A;
  margin-bottom: 20px;
}

.waiting-room-id {
  font-size: 15px;
  color: #8B7355;
  margin-bottom: 12px;
  background: #fff;
  padding: 16px 32px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.room-id-value {
  font-size: 28px;
  font-weight: bold;
  color: #667eea;
  letter-spacing: 4px;
  margin-left: 8px;
}

.waiting-tip {
  font-size: 14px;
  color: #B8A8A0;
  margin-bottom: 24px;
}

.waiting-cancel-btn {
  background: #fff;
  border: 1px solid #ddd;
  color: #999;
  padding: 10px 32px;
  border-radius: 20px;
  font-size: 15px;
  cursor: pointer;
}

.waiting-cancel-btn:active {
  background: #f5f5f5;
}

/* 加入房间 */
.gomoku-join-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
  width: 100%;
  max-width: 360px;
}

.join-title {
  font-size: 18px;
  font-weight: 600;
  color: #5A4A3A;
  margin-bottom: 8px;
}

.join-input {
  width: 100%;
  max-width: 240px;
  height: 50px;
  border: 2px solid #e8e0d8;
  border-radius: 12px;
  text-align: center;
  font-size: 28px;
  letter-spacing: 8px;
  color: #5A4A3A;
  outline: none;
  transition: border-color 0.2s;
}

.join-input:focus {
  border-color: #667eea;
}

.join-btn {
  width: 100%;
  max-width: 240px;
  height: 48px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.join-btn:active {
  opacity: 0.9;
}

.join-back-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
}

/* 联机对战信息 */
.gomoku-online-info {
  text-align: center;
  font-size: 14px;
  color: #667eea;
  margin-bottom: 8px;
  padding: 6px 16px;
  background: rgba(102,126,234,0.08);
  border-radius: 20px;
}

/* 房间列表 */
.room-list-section {
  margin-top: 12px;
  width: 100%;
}

.room-list-title {
  font-size: 13px;
  color: #8B7355;
  margin-bottom: 8px;
  text-align: center;
}

.room-list-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
}

.room-list-empty {
  text-align: center;
  font-size: 13px;
  color: #B8A8A0;
  padding: 16px 0;
  grid-column: 1 / -1;
}

.room-item {
  background: rgba(200,176,152,0.12);
  border-radius: 10px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  border: 1px solid rgba(200,176,152,0.15);
  transition: all 0.15s;
  aspect-ratio: 1;
}

.room-item:active {
  background: rgba(200,176,152,0.2);
  transform: scale(0.95);
}

.room-item-id {
  font-size: 16px;
  font-weight: 700;
  color: #5A4A3A;
  letter-spacing: 1px;
}

.room-item-wait {
  font-size: 11px;
  color: #B8A8A0;
}
