.profile-page {
  min-height: calc(100vh - var(--header-height));
  padding: calc(var(--header-height) + 10px) 0 30px;
  background: var(--bg-page);
}

.profile-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 10px;
  align-items: start;
}

.profile-sidebar {
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.profile-main {
  flex: 1;
  min-width: 0;
}

.profile-card {
  background: var(--bg-white);
  border-radius: 10px;
  padding: 24px;
 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-user-card {
  text-align: center;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.profile-avatar-placeholder {
  color: var(--bg-white);
  font-size: 36px;
  font-weight: 700;
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-phone {
  font-size: 14px;
  color: var(--text-tertiary);
}

.profile-sign-btn {
  width: 100%;
  margin-top: 16px;
  padding: 10px 0;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
  color: var(--bg-white);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.profile-sign-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
}

.profile-sign-btn.signed {
  background: var(--border-light);
  color: var(--text-tertiary);
  cursor: default;
}

.profile-menu {
  background: var(--bg-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.profile-menu-item:hover {
  background: var(--bg-white)af5;
  color: var(--primary-orange);
}

.profile-menu-item.active {
  background: var(--bg-white)af5;
  color: var(--primary-orange);
  border-left-color: var(--primary-orange);
  font-weight: 600;
}

.profile-menu-item img {
  width: 18px;
  height: 18px;
}

.profile-content-card {
  background: var(--bg-white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-content-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.profile-form {
  max-width: 500px;
}

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

.form-label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.3s;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-btn {
  padding: 12px 40px;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
  color: var(--bg-white);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
}

.profile-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.profile-stat-card {
  background: var(--bg-white);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: 4px;
}

.profile-stat-label {
  font-size: 14px;
  color: var(--text-tertiary);
}

.profile-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.profile-list-cover {
  width: 100px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-list-cover-placeholder {
  color: var(--bg-white);
  font-size: 14px;
  font-weight: 600;
}

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

.profile-list-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-list-title:hover {
  color: var(--primary-orange);
}

.profile-list-desc {
  font-size: 14px;
  color: var(--text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-list-action {
  flex-shrink: 0;
}

.profile-list-btn {
  padding: 6px 16px;
  background: var(--border-light);
  color: var(--text-secondary);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.profile-list-btn:hover {
  background: var(--primary-orange);
  color: var(--bg-white);
}

.message-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.message-item.read .message-title {
  color: var(--text-tertiary);
}

.message-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.message-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.message-time {
  font-size: 14px;
  color: var(--text-tertiary);
}

.empty-state {
  text-align: center;
  padding: 60px 0;
  color: var(--text-tertiary);
}

.empty-state img {
  width: 100px;
  height: 100px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-text {
  font-size: 14px;
}

@media (max-width: 900px) {
  .profile-layout {
    flex-direction: column;
  }
  
  .profile-sidebar {
    width: 100%;
  }
  
  .profile-stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================================
   Warm Earthy Organic — 通用页面美化（6 个独立业务页面共用）
   使用：<body class="warm-earthy"> + <link href="profile.css">
   注意：全部用 body.warm-earthy 提高优先级，覆盖内联 style + beautify.css
   ============================================================= */
body.warm-earthy {
  --weo-bg: #F3EBDD !important;
  --weo-card-bg: #FDF9F0 !important;
  --weo-border: #E0D3BE !important;
  --weo-terracotta: #C66B3D !important;
  --weo-olive: #6B6B3A !important;
  --weo-brown: #8B6914 !important;
  --weo-brown-deep: #3E2C1C !important;
  --weo-brown-text: #4A3A28 !important;
  --weo-brown-muted: #8A7659 !important;
  --weo-radius: 10px !important;
  --weo-gap: 10px !important;
  --weo-shadow-sm: 0 2px 8px rgba(139, 90, 43, 0.08) !important;
  --weo-shadow-md: 0 6px 20px rgba(139, 90, 43, 0.12) !important;
  --weo-shadow-lg: 0 12px 32px rgba(139, 90, 43, 0.18) !important;

  background:
    radial-gradient(ellipse 55% 55% at 8% 8%, rgba(198, 107, 61, 0.18) 0%, transparent 62%),
    radial-gradient(ellipse 50% 50% at 92% 6%, rgba(107, 107, 58, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 95% 92%, rgba(160, 120, 60, 0.18) 0%, transparent 62%),
    radial-gradient(ellipse 55% 55% at 6% 94%, rgba(168, 100, 60, 0.16) 0%, transparent 60%),
    #F3EBDD !important;
  background-attachment: fixed !important;
  min-height: 100vh !important;
  padding: 0 0 60px !important;
}

/* 页面容器 — 覆盖内联 style padding-top */
body.warm-earthy main .container,
body.warm-earthy main .wrap,
body.warm-earthy main .draw-wrap {
  max-width: var(--container-max, min(90vw, 1600px)) !important;
  margin: 0 auto !important;
  padding: calc(var(--header-height, 84px) + 10px) 24px 60px !important;
  gap: var(--weo-gap) !important;
}

/* 页面标题 banner — 深棕渐变 + 白字 */
body.warm-earthy main .page-header {
  margin-bottom: var(--weo-gap) !important;
  text-align: center !important;
  padding: 48px 32px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #5C3D20 0%, #8B5A2B 45%, #A0703A 100%) !important;
  box-shadow: 0 8px 24px rgba(92, 61, 32, 0.35) !important;
  position: relative !important;
  overflow: hidden !important;
}
body.warm-earthy main .page-header::before {
  content: '' !important;
  position: absolute !important;
  top: -60px !important; right: -60px !important;
  width: 220px !important; height: 220px !important;
  background: radial-gradient(circle, rgba(212, 160, 100, 0.35) 0%, transparent 70%) !important;
  border-radius: 50% !important; pointer-events: none !important;
}
body.warm-earthy main .page-header::after {
  content: '' !important;
  position: absolute !important;
  bottom: -50px !important; left: -40px !important;
  width: 180px !important; height: 180px !important;
  background: radial-gradient(circle, rgba(198, 107, 61, 0.3) 0%, transparent 70%) !important;
  border-radius: 50% !important; pointer-events: none !important;
}
body.warm-earthy main .page-title,
body.warm-earthy main h1,
body.warm-earthy main h2 {
  font-size: 32px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  margin-bottom: 8px !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif !important;
  position: relative !important; z-index: 1 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}
body.warm-earthy main .page-desc,
body.warm-earthy main .page-subtitle {
  font-size: 16px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  position: relative !important; z-index: 1 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
}

/* 通用卡片 */
body.warm-earthy main .card,
body.warm-earthy main .main-card,
body.warm-earthy main .content-card,
body.warm-earthy main .profile-card,
body.warm-earthy main .stats-card,
body.warm-earthy main .panel,
body.warm-earthy main .section,
body.warm-earthy main .result-card {
  background: var(--weo-card-bg) !important;
  border-radius: var(--weo-radius) !important;
  border: 1px solid var(--weo-border) !important;
  box-shadow: var(--weo-shadow-md) !important;
  padding: 24px !important;
  margin-bottom: var(--weo-gap) !important;
}

/* 按钮统一 */
body.warm-earthy main button,
body.warm-earthy main .btn,
body.warm-earthy main .btn-primary,
body.warm-earthy main .go-btn {
  border-radius: var(--weo-radius) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  transition: all 0.2s !important;
  cursor: pointer !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif !important;
}
body.warm-earthy main .btn-primary,
body.warm-earthy main button.btn-primary {
  background: var(--weo-terracotta) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(198, 107, 61, 0.35) !important;
}
body.warm-earthy main .btn-primary:hover {
  background: #B05A2D !important;
  box-shadow: 0 6px 16px rgba(198, 107, 61, 0.42) !important;
}
body.warm-earthy main .btn-secondary {
  background: #F0E4CE !important;
  color: var(--weo-terracotta) !important;
  border: 1px solid #E0C896 !important;
}
body.warm-earthy main .btn-secondary:hover {
  background: #E8DAB8 !important;
}

/* 表单 */
body.warm-earthy main input,
body.warm-earthy main textarea,
body.warm-earthy main select,
body.warm-earthy main .form-input {
  border-radius: var(--weo-radius) !important;
  font-size: 15px !important;
  padding: 10px 16px !important;
  border: 1px solid var(--weo-border) !important;
  background: #FFFDF5 !important;
  color: var(--weo-brown-text) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
body.warm-earthy main input:focus,
body.warm-earthy main textarea:focus,
body.warm-earthy main select:focus {
  outline: none !important;
  border-color: var(--weo-terracotta) !important;
  box-shadow: 0 0 0 3px rgba(198, 107, 61, 0.15) !important;
}

/* 文本色 */
body.warm-earthy main p,
body.warm-earthy main li,
body.warm-earthy main .text,
body.warm-earthy main .content {
  color: var(--weo-brown-text) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}
body.warm-earthy main .muted {
  color: var(--weo-brown-muted) !important;
}

/* 圆角强制覆盖 */
body.warm-earthy main [class*="card"],
body.warm-earthy main [class*="Card"],
body.warm-earthy main [class*="panel"],
body.warm-earthy main [class*="Panel"] {
  border-radius: var(--weo-radius) !important;
}

/* 标签/徽章 — 覆盖 .st-chip 等内联样式 */
body.warm-earthy main .st-chip,
body.warm-earthy main .tag,
body.warm-earthy main .badge,
body.warm-earthy main .chip {
  border-radius: var(--weo-radius) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  background: var(--weo-card-bg) !important;
  color: var(--weo-brown-text) !important;
  border: 1px solid var(--weo-border) !important;
  padding: 8px 20px !important;
  box-shadow: var(--weo-shadow-sm) !important;
}
body.warm-earthy main .st-chip b,
body.warm-earthy main .st-chip strong,
body.warm-earthy main .tag-primary {
  color: var(--weo-terracotta) !important;
  font-weight: 700 !important;
}

/* 链接 */
body.warm-earthy main a {
  color: var(--weo-terracotta) !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}
body.warm-earthy main a:hover {
  color: #B05A2D !important;
  text-decoration: underline !important;
}

/* 通用 h3/h4 覆盖 beautify.css */
body.warm-earthy main h3 {
  color: var(--weo-brown-deep) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
}
body.warm-earthy main h4 {
  color: var(--weo-brown-text) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
}
