/* Profile页面专用样式 - 与DoIt主题风格统一 */

/* ========== 全局变量 ========== */
:root {
  --profile-avatar-size: 6.5rem;
  --profile-transition: all 0.3s ease;
  --profile-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ========== 主容器 ========== */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  color: var(--global-font-color);
  font-family: var(--global-font-family);
  line-height: 1.6;
}

/* ========== 头部首屏 ========== */
.profile-hero {
  background: linear-gradient(135deg, var(--global-link-hover-color) 0%, color-mix(in srgb, var(--global-link-hover-color) 60%, var(--single-link-color, var(--global-link-hover-color))) 100%);
  border-radius: 16px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.profile-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem 2.5rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.profile-avatar-wrapper {
  margin-bottom: 1.25rem;
}

.profile-avatar {
  width: var(--profile-avatar-size);
  height: var(--profile-avatar-size);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: var(--profile-transition);
}

.profile-avatar:hover {
  transform: scale(1.05);
}

.profile-name {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
}

.profile-tagline {
  font-size: 1rem;
  margin: 0;
  opacity: 0.9;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* ========== Section组件 ========== */
.profile-section {
  margin-bottom: 1.5rem;
  background-color: var(--global-background-color);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--global-border-color);
  transition: var(--profile-transition);
}

.profile-section:hover {
  box-shadow: var(--profile-shadow);
}

.profile-section-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--global-border-color);
}

.profile-section-icon {
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

.profile-section-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--global-font-color);
  margin: 0;
}

.profile-section-content {
  color: var(--global-font-color);
}

/* ========== 价值主张 ========== */
.profile-value {
  line-height: 1.9;
  font-size: 1.05rem;
}

.profile-value p {
  margin: 0 0 0.75rem;
  opacity: 0.88;
}

.profile-value p:last-child {
  margin-bottom: 0;
}

/* ========== 核心行动点 ========== */
.profile-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.profile-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--profile-transition);
  border: none;
  cursor: pointer;
}

.profile-cta-primary {
  background-color: var(--global-link-hover-color);
  color: #fff;
}

.profile-cta-primary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--global-link-hover-color) 40%, transparent);
  color: #fff;
}

.profile-cta-secondary {
  background-color: var(--global-background-color);
  color: var(--global-font-color);
  border: 1px solid var(--global-border-color);
}

.profile-cta-secondary:hover {
  border-color: var(--global-link-hover-color);
  color: var(--global-link-hover-color);
  transform: translateY(-2px);
  box-shadow: var(--profile-shadow);
}

/* ========== 信任背书 ========== */
.profile-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--global-border-color);
}

.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.profile-stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--global-link-hover-color);
  line-height: 1;
}

.profile-stat-label {
  font-size: 0.85rem;
  opacity: 0.7;
}

.profile-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-highlight {
  padding-left: 0.75rem;
  border-left: 3px solid var(--global-link-hover-color);
}

.profile-highlight-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--global-link-hover-color);
  background: color-mix(in srgb, var(--global-link-hover-color) 10%, var(--global-background-color));
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.profile-highlight p {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.85;
}

/* ========== 联系方式 ========== */
.profile-contact {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--global-border-color);
  border-radius: 8px;
  color: var(--global-font-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--profile-transition);
}

.profile-contact-item:hover {
  border-color: var(--global-link-hover-color);
  color: var(--global-link-hover-color);
  box-shadow: var(--profile-shadow);
  transform: translateY(-1px);
}

.profile-contact-icon {
  font-size: 1.15rem;
}

/* ========== 响应式 ========== */
@media (max-width: 767px) {
  :root {
    --profile-avatar-size: 5rem;
  }

  .profile-hero-inner {
    padding: 2rem 1rem 1.75rem;
  }

  .profile-name {
    font-size: 1.75rem;
  }

  .profile-cta {
    flex-direction: column;
    align-items: center;
  }

  .profile-cta-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .profile-stats {
    gap: 1rem;
  }

  .profile-stat-number {
    font-size: 1.5rem;
  }
}
