/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0e1a;
  color: #e8e8e8;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* ===== PHONE FRAME ===== */
.phone-frame {
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  background: #0d1220;
  min-height: 100vh;
}

/* ===== TOP NAV ===== */
.top-nav {
  display: flex; align-items: center;
  padding: 4px 16px 12px;
  position: sticky; top: 0; z-index: 99;
  background: rgba(13,18,32,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-back {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}
.nav-tabs { display: flex; gap: 20px; flex: 1; justify-content: center; margin-right: 32px; }
.nav-tab {
  font-size: 15px; color: rgba(255,255,255,0.5);
  padding: 4px 0; position: relative; transition: color 0.3s;
}
.nav-tab.active { color: #fff; font-weight: 700; }
.nav-tab.active::after {
  content: ''; position: absolute; bottom: -2px;
  left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px; background: #fff; border-radius: 2px;
}

/* ===== TAB CONTENT ===== */
.tab-content { display: none; animation: tabFadeIn 0.4s ease; }
.tab-content.active { display: block; }
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HERO BANNER ===== */
.hero-banner { position: relative; height: 180px; overflow: hidden; }
.hero-collage {
  display: grid; grid-template-columns: 1fr 1.6fr 1fr;
  grid-template-rows: 1fr 1fr; gap: 4px; height: 100%; padding: 0 4px;
}
.hero-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; filter: brightness(0.35); }
.hero-collage .row-span-2 { grid-row: span 2; }
.hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(180deg, rgba(13,18,32,0.3) 0%, rgba(13,18,32,0.8) 50%, #0d1220 100%);
}
.hero-mascot {
  position: absolute; right: 16px; bottom: -16px;
  width: 110px; height: 110px;
  animation: mascotFloat 3s ease-in-out infinite; z-index: 5;
}
.hero-mascot .mascot-spirit {
  width: 100%; height: 100%; position: relative;
  filter: drop-shadow(0 8px 20px rgba(180,80,220,0.5));
}
.mascot-spirit .spirit-body {
  width: 80px; height: 72px;
  background: radial-gradient(ellipse at 45% 30%, #f5b8f0 0%, #d87ed4 30%, #b85cb8 60%, #9040a0 100%);
  border-radius: 48% 48% 44% 44% / 55% 55% 40% 40%;
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -55%);
  box-shadow: inset 0 -8px 16px rgba(100,20,100,0.3), inset 0 4px 10px rgba(255,200,255,0.3);
}
.mascot-spirit .spirit-ear-l, .mascot-spirit .spirit-ear-r {
  width: 18px; height: 22px;
  background: radial-gradient(ellipse at 50% 60%, #e098dc, #b860b4);
  border-radius: 50% 50% 40% 40%; position: absolute;
}
.mascot-spirit .spirit-ear-l { left: calc(50% - 32px); top: calc(50% - 76px); transform: rotate(-15deg); }
.mascot-spirit .spirit-ear-r { left: calc(50% + 14px); top: calc(50% - 76px); transform: rotate(15deg); }
.mascot-spirit .spirit-face {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -65%);
  font-size: 22px; font-weight: 900; color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 3px rgba(100,20,100,0.3); line-height: 1;
}
.mascot-spirit .spirit-shine {
  width: 12px; height: 12px; background: rgba(255,255,255,0.6); border-radius: 50%;
  position: absolute; left: calc(50% - 18px); top: calc(50% - 58px); filter: blur(2px);
}
@keyframes mascotFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ===== SOUL SECTION ===== */
.soul-section { padding: 0 20px 10px; position: relative; margin-top: -20px; }
.soul-label { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.soul-title { font-size: 22px; font-weight: 900; margin-bottom: 8px; letter-spacing: 1px; }
.soul-subtitle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08); padding: 4px 12px; border-radius: 20px;
  cursor: pointer; transition: background 0.3s;
}
.soul-subtitle:hover { background: rgba(255,255,255,0.15); }

/* ===== SECTION COMMON ===== */
.section { padding: 20px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.section-title .icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.section-more { font-size: 12px; color: rgba(255,255,255,0.4); display: flex; align-items: center; gap: 4px; }
.section-more svg { width: 12px; height: 12px; fill: rgba(255,255,255,0.4); }

/* ===== ACHIEVEMENT ===== */
.achievement-section { padding: 10px 20px; }
.achievement-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.achievement-label .spark { color: #ffd700; }
.achievement-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.achievement-scroll::-webkit-scrollbar { display: none; }
.achievement-card {
  background: rgba(255,255,255,0.06); border-radius: 12px; padding: 10px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,0.06); transition: transform 0.3s, background 0.3s;
  flex-shrink: 0; min-width: 260px; max-width: 85vw;
}
.achievement-card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.1); }
.achievement-icon {
  width: 60px; height: 60px; background: linear-gradient(135deg, #2a5298, #1e3c72);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; overflow: hidden;
}
.achievement-icon img { width: 100%; height: 100%; object-fit: cover; }
.achievement-info { flex: 1; }
.achievement-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.achievement-desc { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.achievement-stat { display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgba(255,255,255,0.4); }
.achievement-stat .avatars { display: flex; }
.achievement-stat .avatar {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #0d1220;
  margin-left: -6px; overflow: hidden; flex-shrink: 0;
}
.achievement-stat .avatar:first-child { margin-left: 0; }
.achievement-stat .avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ===== GENRE ===== */
.genre-section { padding: 6px 20px 10px 44px; }
.genre-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.genre-dot { width: 8px; height: 8px; background: rgba(255,255,255,0.5); border-radius: 50%; flex-shrink: 0; }
.genre-label { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.7); white-space: nowrap; flex-shrink: 0; }
.genre-games { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.genre-games::-webkit-scrollbar { display: none; }
.genre-game-thumb { width: 34px; height: 34px; border-radius: 7px; overflow: hidden; flex-shrink: 0; transition: transform 0.3s; }
.genre-game-thumb:hover { transform: scale(1.1); }
.genre-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.genre-expand { display: flex; justify-content: center; padding: 4px 0 0; }
.genre-expand-btn {
  width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); font-size: 14px; cursor: pointer; transition: background 0.3s;
}
.genre-expand-btn:hover { background: rgba(255,255,255,0.12); }

/* ===== MEMORY ===== */
.memory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.memory-card { border-radius: 16px; overflow: hidden; position: relative; height: 160px; cursor: pointer; transition: transform 0.3s; }
.memory-card:hover { transform: scale(1.03); }
.memory-card img { width: 100%; height: 100%; object-fit: cover; }
.memory-card .overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 14px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); }
.memory-card .overlay-title { font-size: 14px; font-weight: 700; }
.memory-card.medal-card { background: linear-gradient(135deg, #2a1f10 0%, #3d2a12 50%, #2a1f10 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.memory-card.medal-card img { display: none; }
.medal-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #d4a24e 0%, #c4922e 40%, #b8842a 100%);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
  position: relative; box-shadow: 0 4px 16px rgba(180,130,40,0.3);
}
.medal-icon::before {
  content: ''; position: absolute; top: 3px; left: 3px; right: 3px; bottom: 3px;
  border-radius: 50%; border: 2px solid rgba(255,220,150,0.5);
}
.medal-label { font-size: 11px; color: rgba(200,170,100,0.8); background: rgba(180,140,60,0.2); padding: 2px 10px; border-radius: 10px; margin-top: 2px; }

/* ===== HIGHLIGHT ===== */
.highlight-card { border-radius: 20px; overflow: hidden; position: relative; margin-bottom: 10px; cursor: pointer; transition: transform 0.3s; }
.highlight-card:hover { transform: scale(1.02); }
.highlight-main {
  background: linear-gradient(135deg, #ff6b35, #f7931e); border-radius: 20px;
  padding: 24px 20px; position: relative; overflow: hidden; min-height: 180px;
}
.highlight-main .game-logo { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 16px; position: relative; z-index: 2; }
.highlight-main .game-logo .logo-circle { width: 24px; height: 24px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.highlight-main .big-number { font-size: 72px; font-weight: 900; line-height: 1; position: relative; z-index: 2; color: #ffe100; text-shadow: 0 2px 20px rgba(255,225,0,0.3); }
.highlight-main .big-number span { font-size: 36px; font-weight: 700; vertical-align: top; margin-left: 2px; }
.highlight-main .big-desc { font-size: 16px; font-weight: 600; margin-top: 4px; position: relative; z-index: 2; }
.highlight-main .hero-img { position: absolute; right: -10px; bottom: -10px; width: 180px; height: 200px; object-fit: contain; opacity: 0.9; }
.highlight-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.highlight-sub { border-radius: 16px; overflow: hidden; position: relative; height: 110px; cursor: pointer; transition: transform 0.3s; }
.highlight-sub:hover { transform: scale(1.03); }
.highlight-sub img { width: 100%; height: 100%; object-fit: cover; }
.highlight-sub .sub-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 10px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); font-size: 11px; }
.highlight-sub .sub-badge { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.5); border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.highlight-sub .sub-badge svg { width: 18px; height: 18px; fill: #ffd700; }

/* ===== FEELING ===== */
.feeling-card {
  background: linear-gradient(135deg, rgba(40,60,120,0.4), rgba(20,30,60,0.6));
  border-radius: 20px; padding: 24px 20px; border: 1px solid rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
.feeling-date { display: flex; align-items: baseline; gap: 4px; margin-bottom: 12px; }
.feeling-day { font-size: 42px; font-weight: 900; color: #6c8cff; }
.feeling-month { font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.5); }
.feeling-quote {
  font-family: 'Ma Shan Zheng', cursive; font-size: 22px; line-height: 1.6;
  color: #dce6ff; position: relative; padding-left: 20px;
}
.feeling-quote::before { content: '\201C'; position: absolute; left: -4px; top: -8px; font-size: 40px; color: rgba(108,140,255,0.4); font-family: Georgia, serif; }

/* ===== ALBUM ===== */
.album-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.album-scroll::-webkit-scrollbar { display: none; }
.album-item { flex-shrink: 0; width: 120px; cursor: pointer; transition: transform 0.3s; }
.album-item:hover { transform: translateY(-4px); }
.album-thumb { width: 120px; height: 155px; border-radius: 12px; overflow: hidden; margin-bottom: 8px; position: relative; box-shadow: 4px 4px 0 rgba(255,255,255,0.08); }
.album-thumb img { width: 100%; height: 100%; object-fit: cover; }
.album-thumb .stack { position: absolute; top: -3px; right: -3px; width: 100%; height: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); z-index: -1; transform: rotate(3deg); background: #1a2030; }
.album-name { font-size: 11px; color: rgba(255,255,255,0.5); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== DIVIDER & TIMELINE ===== */
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent); margin: 0 20px; }
.timeline-wrapper { position: relative; padding-left: 0; }
.timeline-wrapper::before {
  content: ''; position: absolute; left: 28px; top: 0; bottom: 0; width: 2px;
  background: repeating-linear-gradient(to bottom, rgba(0,210,210,0.5) 0px, rgba(0,210,210,0.5) 6px, transparent 6px, transparent 12px); z-index: 1;
}
.timeline-wrapper .soul-section, .timeline-wrapper .achievement-section, .timeline-wrapper .genre-section { position: relative; z-index: 2; }
.timeline-dot-big { width: 14px; height: 14px; background: #fff; border-radius: 50%; position: absolute; left: 22px; top: 0; z-index: 3; }
.section-deco-line {
  position: absolute; left: 28px; top: 0; width: 2px; height: 100%;
  background: repeating-linear-gradient(to bottom, rgba(0,210,210,0.5) 0px, rgba(0,210,210,0.5) 6px, transparent 6px, transparent 12px);
}

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
::-webkit-scrollbar { width: 0; height: 0; }

/* ========================================
   ===== 我的记录 TAB =====
   ======================================== */
.platform-filter {
  display: flex; gap: 8px; padding: 12px 20px; overflow-x: auto; scrollbar-width: none;
  position: sticky; top: 44px; z-index: 50;
  background: rgba(13,18,32,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.platform-filter::-webkit-scrollbar { display: none; }
.platform-chip {
  flex-shrink: 0; padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06); transition: all 0.3s; white-space: nowrap;
}
.platform-chip:hover { background: rgba(255,255,255,0.1); }
.platform-chip.active { color: #fff; background: rgba(0,210,210,0.15); border-color: rgba(0,210,210,0.4); box-shadow: 0 0 12px rgba(0,210,210,0.15); }

.record-timeline { padding: 0 20px 20px; }

/* 今日拾光 */
.today-pickup {
  margin-bottom: 20px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, rgba(0,210,210,0.08), rgba(80,60,200,0.08));
  border: 1px solid rgba(0,210,210,0.15); transition: transform 0.3s; position: relative;
}
.today-pickup:hover { transform: translateY(-2px); }
.today-pickup::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse at 80% 20%, rgba(0,210,210,0.06), transparent 60%); pointer-events: none; }
.pickup-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 0; position: relative; z-index: 2; }
.pickup-title-area { display: flex; align-items: center; gap: 8px; }
.pickup-crystal {
  width: 32px; height: 32px; background: linear-gradient(135deg, #00d2d2, #7b68ee);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; box-shadow: 0 2px 12px rgba(0,210,210,0.3); animation: crystalPulse 2s ease-in-out infinite;
}
@keyframes crystalPulse { 0%, 100% { box-shadow: 0 2px 12px rgba(0,210,210,0.3); } 50% { box-shadow: 0 2px 20px rgba(0,210,210,0.5); } }
.pickup-title { font-size: 15px; font-weight: 700; color: #fff; }
.pickup-date { font-size: 11px; color: rgba(255,255,255,0.4); }
.pickup-toggle { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.pickup-toggle:hover { background: rgba(255,255,255,0.12); }
.pickup-toggle svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.5); transition: transform 0.3s; }
.pickup-toggle.expanded svg { transform: rotate(180deg); }
.pickup-ai-quote { padding: 10px 16px 12px; font-size: 13px; font-style: italic; color: rgba(0,210,210,0.7); position: relative; z-index: 2; }
.pickup-preview { padding: 0 16px 14px; display: flex; gap: 8px; align-items: center; position: relative; z-index: 2; }
.pickup-preview-video { width: 140px; height: 80px; border-radius: 10px; overflow: hidden; position: relative; flex-shrink: 0; cursor: pointer; }
.pickup-preview-video img { width: 100%; height: 100%; object-fit: cover; }
.pickup-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 32px; height: 32px; background: rgba(0,0,0,0.6); border-radius: 50%; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.pickup-play-btn svg { width: 14px; height: 14px; fill: #fff; margin-left: 2px; }
.pickup-summary-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pickup-tag { font-size: 10px; padding: 3px 8px; border-radius: 10px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); }
.pickup-tag.video { background: rgba(255,80,80,0.12); color: #ff7070; }
.pickup-tag.image { background: rgba(80,200,80,0.12); color: #60c060; }
.pickup-tag.achievement { background: rgba(255,200,0,0.12); color: #ffc800; }
.pickup-tag.event { background: rgba(100,140,255,0.12); color: #7090ff; }
.pickup-expand-area { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; }
.pickup-expand-area.open { max-height: 2000px; }
.pickup-items { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.pickup-light-btn {
  display: flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 14px;
  font-size: 11px; color: rgba(255,200,50,0.7); background: rgba(255,200,50,0.08);
  border: 1px solid rgba(255,200,50,0.15); transition: all 0.3s;
  margin-left: auto; margin-right: 16px; margin-bottom: 12px;
}
.pickup-light-btn:hover { background: rgba(255,200,50,0.15); color: #ffd700; }
.pickup-light-btn.lit { color: #ffd700; background: rgba(255,200,50,0.2); border-color: rgba(255,200,50,0.4); box-shadow: 0 0 10px rgba(255,200,50,0.15); }

/* Record items */
.record-date-group { margin-bottom: 20px; }
.record-date-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-left: 2px; }
.record-date-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(0,210,210,0.6); box-shadow: 0 0 8px rgba(0,210,210,0.3); flex-shrink: 0; }
.record-date-text { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); }
.record-date-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(0,210,210,0.2), transparent); }
.record-item {
  background: rgba(255,255,255,0.04); border-radius: 16px; padding: 14px; margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,0.04); transition: all 0.3s; position: relative;
}
.record-item:hover { background: rgba(255,255,255,0.07); transform: translateY(-1px); }
.record-item.is-lit {
  background: linear-gradient(135deg, rgba(255,200,50,0.06), rgba(255,150,30,0.04));
  border-color: rgba(255,200,50,0.12);
}
.record-item.is-lit::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 16px;
  background: repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(255,200,50,0.02) 8px, rgba(255,200,50,0.02) 16px);
  pointer-events: none;
}
.record-game-tag { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.record-game-icon { width: 20px; height: 20px; border-radius: 5px; overflow: hidden; flex-shrink: 0; }
.record-game-icon img { width: 100%; height: 100%; object-fit: cover; }
.record-game-name { font-size: 11px; color: rgba(255,255,255,0.5); font-weight: 500; }
.record-image { border-radius: 12px; overflow: hidden; margin-bottom: 8px; max-height: 200px; position: relative; }
.record-image img { width: 100%; height: 100%; object-fit: cover; }
.record-image .img-label { position: absolute; bottom: 8px; left: 8px; font-size: 11px; padding: 2px 8px; border-radius: 8px; background: rgba(0,0,0,0.6); color: #fff; backdrop-filter: blur(4px); }
.record-video { border-radius: 12px; overflow: hidden; margin-bottom: 8px; height: 180px; position: relative; cursor: pointer; }
.record-video img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); }
.record-video .video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; background: rgba(255,255,255,0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); transition: transform 0.3s, background 0.3s;
}
.record-video:hover .video-play { transform: translate(-50%, -50%) scale(1.1); background: rgba(255,255,255,0.3); }
.record-video .video-play svg { width: 20px; height: 20px; fill: #fff; margin-left: 2px; }
.record-video .video-duration { position: absolute; bottom: 8px; right: 8px; font-size: 11px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,0.6); color: #fff; }
.record-achievement {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  background: rgba(255,200,0,0.05); border-radius: 12px; border: 1px solid rgba(255,200,0,0.08); margin-bottom: 8px;
}
.record-ach-icon {
  width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, #3a2a08, #5a4018);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(180,130,40,0.2);
}
.record-ach-info { flex: 1; }
.record-ach-name { font-size: 13px; font-weight: 700; color: #ffd700; margin-bottom: 2px; }
.record-ach-desc { font-size: 11px; color: rgba(255,255,255,0.5); }
.record-event-text { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.8); margin-bottom: 8px; }
.record-friends { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.record-friend-avatar { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; border: 1.5px solid rgba(255,255,255,0.1); margin-left: -4px; }
.record-friend-avatar:first-child { margin-left: 0; }
.record-friend-avatar img { width: 100%; height: 100%; object-fit: cover; }
.record-friend-label { font-size: 10px; color: rgba(255,255,255,0.35); margin-left: 4px; }
.record-light-btn { display: flex; align-items: center; gap: 4px; font-size: 11px; color: rgba(255,255,255,0.4); padding: 4px 0; transition: color 0.3s; }
.record-light-btn:hover { color: rgba(255,200,50,0.8); }
.record-light-btn svg { width: 16px; height: 16px; fill: currentColor; transition: fill 0.3s, filter 0.3s; }
.record-light-btn.lit { color: #ffd700; }
.record-light-btn.lit svg { filter: drop-shadow(0 0 4px rgba(255,200,50,0.5)); }
.record-feeling { font-size: 12px; color: rgba(255,200,50,0.6); font-style: italic; padding: 4px 0 0 20px; border-left: 2px solid rgba(255,200,50,0.15); margin-top: 4px; }

/* ========================================
   ===== 朋友 TAB =====
   ======================================== */
.friends-feed { padding: 16px 20px; }
.friend-card { margin-bottom: 20px; border-radius: 20px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.04); overflow: hidden; transition: all 0.3s; }
.friend-card:hover { background: rgba(255,255,255,0.06); transform: translateY(-1px); }
.friend-card.is-self { border-color: rgba(0,210,210,0.12); background: rgba(0,210,210,0.03); }
.friend-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; }
.friend-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.1); position: relative; }
.friend-avatar img { width: 100%; height: 100%; object-fit: cover; }
.friend-avatar .online-dot { width: 8px; height: 8px; background: #43e97b; border-radius: 50%; border: 1.5px solid #0d1220; position: absolute; bottom: 0; right: 0; }
.friend-name-area { flex: 1; }
.friend-name { font-size: 14px; font-weight: 700; margin-bottom: 1px; }
.friend-time { font-size: 11px; color: rgba(255,255,255,0.35); }
.friend-content { padding: 10px 16px; }
.friend-content .record-event-text, .friend-content .record-image, .friend-content .record-video, .friend-content .record-achievement { margin-bottom: 8px; }
.friend-content .record-game-tag { margin-bottom: 6px; }
.friend-content .record-feeling { border-left-color: rgba(0,210,210,0.15); color: rgba(0,210,210,0.6); }
.friend-relation { padding: 0 16px; font-size: 11px; color: rgba(255,255,255,0.3); font-style: italic; margin-bottom: 8px; }
.friend-actions { display: flex; align-items: center; gap: 0; padding: 0 8px 10px; border-top: 1px solid rgba(255,255,255,0.04); margin-top: 4px; }
.friend-action-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 10px 0; font-size: 12px; color: rgba(255,255,255,0.4); transition: all 0.3s; border-radius: 10px;
}
.friend-action-btn:hover { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.7); }
.friend-action-btn.active { color: rgba(0,210,210,0.8); }
.friend-action-btn svg { width: 16px; height: 16px; fill: currentColor; }
.friend-action-count { font-size: 11px; min-width: 14px; }
.friend-comments { padding: 0 16px 12px; display: none; }
.friend-comments.open { display: block; }
.comment-input-row { display: flex; gap: 8px; margin-top: 8px; }
.comment-input {
  flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 8px 14px; font-size: 12px; color: #fff; outline: none;
  font-family: inherit; transition: border-color 0.3s;
}
.comment-input:focus { border-color: rgba(0,210,210,0.3); }
.comment-input::placeholder { color: rgba(255,255,255,0.25); }
.comment-send { width: 32px; height: 32px; border-radius: 50%; background: rgba(0,210,210,0.15); display: flex; align-items: center; justify-content: center; transition: background 0.3s; flex-shrink: 0; }
.comment-send:hover { background: rgba(0,210,210,0.25); }
.comment-send svg { width: 14px; height: 14px; fill: #00d2d2; }
.comment-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.comment-item { display: flex; gap: 8px; align-items: flex-start; }
.comment-item-avatar { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.comment-item-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-item-body { flex: 1; background: rgba(255,255,255,0.04); border-radius: 10px; padding: 6px 10px; }
.comment-item-name { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.6); margin-bottom: 2px; }
.comment-item-text { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.5; }

/* Light dialog */
.light-dialog-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.light-dialog-overlay.show { opacity: 1; pointer-events: auto; }
.light-dialog { background: #1a2035; border-radius: 20px; padding: 24px; width: 85%; max-width: 340px; border: 1px solid rgba(255,255,255,0.08); transform: translateY(20px); transition: transform 0.3s; }
.light-dialog-overlay.show .light-dialog { transform: translateY(0); }
.light-dialog-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; text-align: center; }
.light-dialog-sub { font-size: 12px; color: rgba(255,255,255,0.4); text-align: center; margin-bottom: 16px; }
.light-dialog-input {
  width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 12px 14px; font-size: 13px; color: #fff; outline: none;
  font-family: inherit; resize: none; height: 80px; margin-bottom: 16px; transition: border-color 0.3s;
}
.light-dialog-input:focus { border-color: rgba(255,200,50,0.3); }
.light-dialog-input::placeholder { color: rgba(255,255,255,0.25); }
.light-dialog-actions { display: flex; gap: 10px; }
.light-dialog-actions button { flex: 1; padding: 10px; border-radius: 12px; font-size: 13px; font-weight: 600; transition: all 0.3s; }
.light-cancel { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); }
.light-cancel:hover { background: rgba(255,255,255,0.1); }
.light-confirm { background: linear-gradient(135deg, #ffd700, #ff9f1c); color: #1a1200; }
.light-confirm:hover { filter: brightness(1.1); }

/* ===== RESPONSIVE ===== */
@media (min-width: 500px) {
  body { background: #060810; }
  .phone-frame {
    margin: 20px auto; border-radius: 40px; border: 3px solid rgba(255,255,255,0.08);
    box-shadow: 0 0 60px rgba(0,0,0,0.5); overflow: hidden; max-height: calc(100vh - 40px); overflow-y: auto;
  }
}
