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

/* 用户信息卡片 */
.profile-header-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--card,#1a1a2e), #162447);
  border: 1px solid var(--border,#2a2a4a);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
}

.profile-info h2 {
  margin: 0;
  color: var(--text,#e0e0e0);
  font-size: 1.3rem;
}

.profile-info p {
  margin: 4px 0 0;
  color: var(--text-dim,#888);
  font-size: 0.85rem;
}

.profile-meta {
  font-size: 0.8rem !important;
  color: #666 !important;
}

/* 标签页 */
.profile-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--card,#1a1a2e);
  border: 1px solid var(--border,#2a2a4a);
  border-radius: 12px;
  padding: 4px;
  overflow-x: auto;
}

.profile-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-dim,#888);
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 10px;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: inherit;
}

.profile-tab:hover {
  color: var(--text,#e0e0e0);
  background: rgba(255,255,255,0.05);
}

.profile-tab.active {
  background: linear-gradient(135deg, #667eea22, #764ba222);
  color: var(--primary,#667eea);
  font-weight: 500;
}

.tab-count {
  display: inline-block;
  background: var(--border,#2a2a4a);
  color: var(--text-dim,#888);
  font-size: 0.7rem;
  padding: 1px 8px;
  border-radius: 10px;
  margin-left: 4px;
}

.profile-tab.active .tab-count {
  background: var(--primary,#667eea);
  color: white;
}

/* 标签页内容 */
.profile-tab-content {
  display: none;
}

.profile-tab-content.active-content {
  display: block;
}

.profile-section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border,#2a2a4a);
}

.profile-section-header h3 {
  margin: 0;
  color: var(--text,#e0e0e0);
  font-size: 1.1rem;
}

.section-desc {
  font-size: 0.8rem;
  color: var(--text-dim,#888);
}

/* 排盘记录列表 */
.reading-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card,#1a1a2e);
  border: 1px solid var(--border,#2a2a4a);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.reading-item:hover {
  border-color: #667eea44;
  background: #1e1e36;
}

.reading-info {
  flex: 1;
  min-width: 0;
}

.reading-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text,#e0e0e0);
  margin-bottom: 4px;
}

.reading-meta {
  font-size: 0.8rem;
  color: var(--text-dim,#888);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.reading-time {
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
}

.reading-arrow {
  font-size: 1.5rem;
  color: var(--text-dim,#555);
}

/* 评论记录列表 */
.comment-history-item {
  background: var(--card,#1a1a2e);
  border: 1px solid var(--border,#2a2a4a);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.comment-history-item:hover {
  border-color: #667eea44;
  background: #1e1e36;
}

.comment-history-type {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.comment-history-ref {
  font-size: 0.8rem;
  color: var(--text-dim,#888);
  margin-bottom: 6px;
}

.comment-history-content {
  font-size: 0.9rem;
  color: var(--text,#ccc);
  line-height: 1.5;
}

.comment-history-time {
  font-size: 0.75rem;
  color: #666;
  margin-top: 6px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

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

.empty-hint {
  font-size: 0.85rem;
  color: #666;
  margin-top: 8px;
}

/* 排盘详情弹窗 */
.reading-detail-modal {
  max-width: 600px !important;
  width: 95% !important;
}

.reading-detail-header {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border,#2a2a4a);
  margin-bottom: 16px;
}

.reading-detail-header h3 {
  margin: 0 0 8px;
  color: var(--text,#e0e0e0);
}

.reading-detail-meta {
  margin: 2px 0;
  color: var(--text-dim,#888);
  font-size: 0.85rem;
}

/* 设置表单 */
.settings-form {
  max-width: 400px;
}

.settings-form .form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--text,#ccc);
  font-size: 0.85rem;
}

.settings-form input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border,#2a2a4a);
  border-radius: 10px;
  background: #12121f;
  color: var(--text,#e0e0e0);
  font-size: 0.9rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

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

/* 响应式 */
@media (max-width: 640px) {
  .profile-header-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .profile-tabs {
    flex-wrap: wrap;
  }
  .profile-tab {
    flex: none;
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}
