/* ============================================
   profile.css · 个人页(我的)统一 UI
   - 共享于 preview.html 和 index.html
   - 类名:.pp-* 系列(避免与主样式冲突)
   ============================================ */

.profile-page {
  position: fixed; inset: 0; z-index: 500;
  background: linear-gradient(180deg, #050E1F 0%, #0A1830 100%);
  overflow-y: auto;
  padding-bottom: 32px;
  -webkit-overflow-scrolling: touch;
}
.profile-page.hidden { display: none; }

/* 顶部 */
.pp-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: rgba(5,14,31,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,211,106,0.2);
}
.pp-back {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.pp-back:active { background: rgba(255,255,255,0.2); transform: scale(0.95); }
.pp-title { font-size: 17px; font-weight: 600; color: #fff; }
.pp-spacer { flex: 1; }

/* 嘉宾卡片(红橙渐变 + VIP 徽标 + 头像) */
.pp-card {
  margin: 20px;
  padding: 22px 20px;
  background: linear-gradient(135deg, #E33A2C 0%, #FF6A3A 100%);
  border-radius: 16px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 12px 32px rgba(227,58,44,0.3);
  position: relative;
  overflow: hidden;
}
.pp-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(255,211,106,0.3), transparent 70%);
  pointer-events: none;
}
.pp-avatar {
  flex-shrink: 0;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #FFD36A 0%, #FFFFFF 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
  color: #E33A2C;
  border: 2px solid rgba(255,255,255,0.6);
  position: relative; z-index: 1;
}
.pp-info { flex: 1; min-width: 0; color: #fff; position: relative; z-index: 1; }
.pp-name-row {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.pp-name {
  font-family: var(--font-yahei);
  font-size: 22px; font-weight: 700;
  letter-spacing: 0.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pp-vip {
  flex-shrink: 0;
  padding: 2px 8px;
  background: linear-gradient(135deg, #FFD36A 0%, #E0B348 100%);
  color: #0A1830; border-radius: 4px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.05em;
}
.pp-vip.hidden { display: none; }
.pp-org {
  font-size: 12px; opacity: 0.95;
  line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pp-title { font-size: 11px; opacity: 0.85; margin-top: 2px; }

/* 3 格统计(签到 / 参会 / 消息) */
.pp-stats {
  display: flex; gap: 10px;
  padding: 0 20px;
  margin-bottom: 20px;
}
.pp-stat {
  flex: 1;
  padding: 14px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  text-align: center;
}
.pp-stat__value {
  font-family: var(--font-yahei);
  font-size: 18px; font-weight: 700;
  color: #19D3FF;
  letter-spacing: 0.02em;
}
.pp-stat__label {
  font-size: 11px; color: rgba(255,255,255,0.5);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* 通用 section(金色标题 + 列表) */
.pp-section {
  margin: 0 20px 20px;
}
.pp-section__title {
  font-family: var(--font-yahei);
  font-size: 15px; font-weight: 700;
  color: #FFD36A;
  margin-bottom: 12px;
  padding-left: 4px;
  letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 6px;
}
.pp-section__title::before {
  content: '';
  width: 3px; height: 14px;
  background: linear-gradient(180deg, #FFD36A, #FF6A3A);
  border-radius: 2px;
}
.pp-list {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}
.pp-list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  font-size: 14px; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.pp-list-item:last-child { border-bottom: none; }
.pp-list-item:active { background: rgba(255,255,255,0.06); }
.pp-list-item.hidden { display: none; }
.pp-arrow { color: rgba(255,255,255,0.3); font-size: 20px; line-height: 1; }

/* 联系卡片 */
.pp-contact-name { font-size: 14px; font-weight: 500; color: #fff; }
.pp-contact-role { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* VIP 专区(金色边框) */
.pp-vip-section { margin: 0 20px 20px; }
.pp-vip-section.hidden { display: none; }
.pp-vip-card {
  padding: 16px;
  background: linear-gradient(135deg, rgba(255,211,106,0.1), rgba(255,106,58,0.05));
  border: 2px solid #FFD36A;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.pp-vip-card::before {
  content: '✦';
  position: absolute;
  top: 8px; right: 12px;
  font-family: var(--font-yahei);
  font-size: 24px;
  color: rgba(255,211,106,0.3);
  font-weight: 700;
}
.pp-vip-row {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 0;
  font-size: 13px;
}
.pp-vip-label { color: rgba(255,255,255,0.6); min-width: 48px; }
.pp-vip-value { color: #fff; font-weight: 500; }

/* 「我的参会函」入口容器(主按钮 + 快速下载按钮) */
.pp-letter-card-wrap {
  position: relative;
  margin: 0 20px 20px;
}
.pp-letter-card-wrap .pp-letter-quick {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,211,106,0.4);
  border-radius: 100px;
  font-family: var(--font-yahei);
  font-size: 11px; font-weight: 600;
  color: var(--gold, #FFD36A);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.pp-letter-card-wrap .pp-letter-quick:hover {
  background: rgba(255,211,106,0.18);
  transform: translateY(-1px);
}
.pp-letter-card-wrap .pp-letter-quick:active { transform: scale(0.95); }
.pp-letter-card-wrap .pp-letter-quick svg { color: var(--gold, #FFD36A); }

/* 「我的参会函」入口(参考 sponsor-card:居中 + 徽章 + 渐变标题 + 列表) */
.pp-letter-btn {
  position: relative;
  margin: 0;
  padding: 24px 22px 18px;
  width: 100%;
  text-align: center;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 211, 106, 0.15), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(227, 58, 44, 0.12), transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 2px solid var(--gold, #FFD36A);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 12px 40px rgba(255, 211, 106, 0.15),
    inset 0 1px 0 rgba(255, 211, 106, 0.3);
  cursor: pointer;
  overflow: hidden;
  font-family: inherit;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pp-letter-btn .pp-letter-btn__shine {
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg,
    transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: pp-letter-shine 3.6s ease-in-out infinite;
  z-index: 0;
}
@keyframes pp-letter-shine {
  0%   { left: -75%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}
.pp-letter-btn:active {
  transform: scale(0.99);
  box-shadow: 0 6px 20px rgba(255, 211, 106, 0.2);
}
.pp-letter-btn__badge {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 211, 106, 0.15);
  border: 1px solid rgba(255, 211, 106, 0.5);
  border-radius: 999px;
  font-family: var(--font-yahei);
  font-size: 11px; font-weight: 600;
  color: var(--gold, #FFD36A);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}
.pp-letter-btn__title {
  position: relative; z-index: 1;
  font-family: var(--font-yahei);
  font-size: 22px; font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #FFD36A 0%, #FFFFFF 50%, #FFD36A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.pp-letter-btn__desc {
  position: relative; z-index: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 14px;
  padding: 0 8px;
}
.pp-letter-btn__list {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 6px;
  margin: 0 0 14px;
  text-align: left;
}
.pp-letter-btn__row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  border-left: 2px solid var(--gold, #FFD36A);
  color: rgba(255, 255, 255, 0.85);
}
.pp-letter-btn__row-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 211, 106, 0.18);
  color: var(--gold, #FFD36A);
  font-size: 11px; font-weight: 700;
}
.pp-letter-btn__row-text {
  flex: 1; min-width: 0;
  font-family: var(--font-yahei);
  font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pp-letter-btn__cta {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #FFD36A 0%, #FF6A3A 100%);
  border-radius: 100px;
  font-family: var(--font-yahei);
  font-size: 13px; font-weight: 700;
  color: #0F172A;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 16px rgba(255, 211, 106, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pp-letter-btn:hover .pp-letter-btn__cta { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255, 211, 106, 0.5); }
.pp-letter-btn:active .pp-letter-btn__cta { transform: scale(0.96); }
.pp-letter-btn.vip {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 211, 106, 0.22), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(227, 58, 44, 0.18), transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 211, 106, 0.02) 100%);
  box-shadow:
    0 12px 40px rgba(255, 211, 106, 0.25),
    inset 0 1px 0 rgba(255, 211, 106, 0.45);
}
.pp-letter-btn.vip .pp-letter-btn__title {
  font-size: 24px;
  background: linear-gradient(135deg, #FFD36A 0%, #FFFFFF 50%, #FF6A3A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


.pp-logout-wrap { padding: 0 20px 20px; }
.pp-logout {
  width: 100%; height: 48px;
  background: transparent; color: #E33A2C;
  border: 1px solid rgba(227,58,44,0.4);
  border-radius: 24px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.pp-logout:active { background: rgba(227,58,44,0.1); }

.pp-footer {
  padding: 24px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
}

/* 移动端 */
@media (max-width: 380px) {
  .pp-letter-btn__title { font-size: 15px; }
  .pp-letter-btn__sub { font-size: 10px; }
  .pp-stats { gap: 6px; }
  .pp-stat { padding: 12px 6px; }
  .pp-stat__value { font-size: 16px; }
}