/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #0f0f14;
  color: #e0e0e8;
  line-height: 1.7;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== 导航 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,15,20,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 60px;
}
.nav-logo { font-size: 1.25rem; font-weight: 700; letter-spacing: 1px; }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 18px; border-radius: 8px; font-size: 0.95rem;
  color: #888; transition: all 0.25s;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,0.08); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ===== 页面切换 ===== */
.page { display: none; padding-top: 60px; min-height: 100vh; }
.page.active { display: block; }

/* ===== Hero 区域 ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #1a1a2e 100%);
  overflow: hidden;
}
#page-moments .hero, #page-album .hero, #page-about .hero {
  min-height: auto;
  height: 200px;
  padding: 0;
}
#page-moments .hero-content, #page-album .hero-content, #page-about .hero-content {
  padding: 16px 24px;
}
#page-moments .hero-title, #page-album .hero-title, #page-about .hero-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 6px;
}
#page-moments .hero-subtitle, #page-album .hero-subtitle, #page-about .hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem); margin-bottom: 6px;
}
#page-moments .hero-desc, #page-album .hero-desc, #page-about .hero-desc {
  font-size: 0.85rem; margin-bottom: 12px;
}
#page-moments .hero-actions, #page-album .hero-actions, #page-about .hero-actions {
  gap: 10px;
}
#page-moments .btn, #page-album .btn, #page-about .btn {
  padding: 8px 20px; font-size: 0.85rem;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(100,180,255,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(180,100,255,0.06) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 40px 24px; }
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ffd700, #ff6b6b, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  animation: fadeUp 0.8s ease-out;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: #a0aec0;
  margin-bottom: 16px;
  animation: fadeUp 0.8s 0.15s both;
}
.hero-desc {
  font-size: 1.05rem; color: #718096; max-width: 520px; margin: 0 auto 32px;
  animation: fadeUp 0.8s 0.3s both;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; animation: fadeUp 0.8s 0.45s both; }

.btn {
  display: inline-block; padding: 12px 32px; border-radius: 12px;
  font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff; box-shadow: 0 4px 20px rgba(168,85,247,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(168,85,247,0.45); }
.btn-outline {
  background: transparent; color: #a0aec0;
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-outline:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 通用 Section ===== */
.section { max-width: 1000px; margin: 0 auto; padding: 60px 24px; }
.section-title {
  text-align: center; font-size: 1.8rem; font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffd700, #ff6b6b, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-desc { text-align: center; color: #718096; margin-bottom: 40px; font-size: 1rem; }
.page-header { padding-top: 80px; }

/* ===== 首页 - 功能卡片 ===== */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; margin-top: 40px;
}
.feature-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 28px 24px; transition: all 0.3s;
  text-align: center;
}
.feature-card:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-4px);
}
.feature-icon { font-size: 2.2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: #e0e0e8; }
.feature-card p { font-size: 0.9rem; color: #718096; line-height: 1.6; }

  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 瞬间 - 时间线 ===== */
.timeline {
  max-width: 700px; margin: 0 auto; padding: 0 24px 60px;
  position: relative;
}
.timeline::before {
  content: ''; position: absolute; left: 24px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, #a855f7, #6366f1, transparent);
}
.timeline-item {
  position: relative; padding-left: 60px; margin-bottom: 40px;
  animation: fadeUp 0.5s ease-out both;
}
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

.timeline-dot {
  position: absolute; left: 16px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  border: 3px solid #0f0f14;
}
.timeline-date {
  font-size: 0.8rem; color: #6366f1; margin-bottom: 4px;
  font-weight: 600;
}
.timeline-content {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 16px 20px;
}
.timeline-content p { color: #c0c0cc; font-size: 0.95rem; line-height: 1.6; }
.timeline-content img {
  margin-top: 12px; border-radius: 8px; max-height: 300px;
  border: 1px solid rgba(255,255,255,0.06);
}


/* ===== 语音消息按钮 ===== */
.voice-msg {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 8px 16px;
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(99,102,241,0.15));
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: 20px; cursor: pointer;
  transition: all 0.3s; user-select: none;
  font-size: 0.9rem; color: #c0c0cc;
}
.voice-msg:hover { background: linear-gradient(135deg, rgba(168,85,247,0.25), rgba(99,102,241,0.25)); border-color: rgba(168,85,247,0.4); }
.voice-msg.playing { background: linear-gradient(135deg, rgba(168,85,247,0.3), rgba(99,102,241,0.3)); animation: voicePulse 0.8s ease-in-out infinite alternate; }
.voice-icon { font-size: 1.2rem; }
.voice-label { font-weight: 500; }
@keyframes voicePulse {
  from { box-shadow: 0 0 0 0 rgba(168,85,247,0.3); }
  to { box-shadow: 0 0 12px 4px rgba(168,85,247,0.15); }
}
/* ===== 相册 ===== */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; padding: 0 24px 60px; max-width: 1000px; margin: 0 auto;
}
.album-item {
  position: relative; border-radius: 14px; overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}
.album-item:hover { transform: scale(1.02); border-color: #6366f1; }
.album-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.album-item:hover img { transform: scale(1.08); }
.album-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 16px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff; font-size: 0.85rem; font-weight: 500;
}

/* ===== 灯箱 ===== */
.lightbox {
  display: none; position: fixed; z-index: 2000;
  inset: 0; background: rgba(0,0,0,0.92);
  justify-content: center; align-items: center; padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox-img {
  max-width: 90vw; max-height: 85vh; object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute; top: 20px; right: 30px;
  font-size: 2.5rem; color: #fff; cursor: pointer;
  opacity: 0.6; transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* ===== 关于页 ===== */
.about-intro {
  display: flex; gap: 40px; align-items: flex-start;
  max-width: 800px; margin: 0 auto 60px; padding: 0 24px;
}
.about-avatar {
  flex-shrink: 0; width: 160px; height: 160px; border-radius: 50%;
  overflow: hidden; border: 3px solid rgba(168,85,247,0.3);
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-text h3 { font-size: 1.4rem; margin-bottom: 12px; }
.about-text p { color: #a0aec0; margin-bottom: 10px; font-size: 0.95rem; }

.traits-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-top: 24px;
}
.trait-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 24px; text-align: center;
}
.trait-icon { font-size: 2rem; margin-bottom: 12px; }
.trait-card h4 { font-size: 1.1rem; margin-bottom: 8px; color: #e0e0e8; }
.trait-card p { font-size: 0.88rem; color: #718096; }

.section-subtitle {
  text-align: center; font-size: 1.3rem; font-weight: 600;
  margin-bottom: 8px; color: #c0c0cc;
}

.expertise-list { max-width: 600px; margin: 24px auto 0; }
.expertise-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 12px;
}
.expertise-tag { font-size: 1.6rem; }
.expertise-name { font-weight: 600; color: #e0e0e8; min-width: 100px; }
.expertise-desc { color: #718096; font-size: 0.9rem; }

.quote {
  text-align: center; font-size: 1.1rem; font-style: italic;
  color: #a0aec0; line-height: 1.8;
  padding: 40px; border-left: 3px solid #6366f1;
  background: rgba(99,102,241,0.04);
  border-radius: 12px;
}

.mail-field input:focus, .mail-field textarea:focus { border-color: #6366f1; }
.mail-field textarea { resize: vertical; min-height: 100px; }
.mail-submit { width: 100%; margin-top: 8px; }
.mail-hint { text-align: center; color: #555; font-size: 0.85rem; margin-top: 16px; }
.mail-hint strong { color: #888; }
.mail-status { text-align: center; font-size: 0.9rem; margin-top: 12px; min-height: 24px; }
.mail-status.success { color: #48bb78; }
.mail-status.error { color: #f56565; }
.mail-status.loading { color: #a0aec0; }

/* ===== 对话页 - 仿微信 ===== */
.chat-container {
  display: flex; flex-direction: column;
  height: calc(100vh - 60px); max-width: 600px; margin: 0 auto;
  background: #ededed;
}
/* 聊天头部 */
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: #ededed;
  border-bottom: 1px solid #d9d9d9; flex-shrink: 0;
}
.chat-back { font-size: 1.8rem; color: #181818; cursor: pointer; line-height: 1; }
.chat-contact { display: flex; align-items: center; gap: 10px; flex: 1; justify-content: center; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 6px; background: #07c160;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.chat-info { display: flex; flex-direction: column; }
.chat-name { font-size: 1rem; font-weight: 600; color: #181818; }
.chat-status { font-size: 0.7rem; color: #888; margin-top: -1px; }
.chat-menu { font-size: 1.4rem; color: #181818; cursor: pointer; line-height: 1; letter-spacing: 2px; }
/* 消息区域 */
.chat-messages {
  flex: 1; overflow-y: auto; padding: 12px 16px;
  background: #ededed; display: flex; flex-direction: column;
  scroll-behavior: smooth;
}
.chat-date-label {
  text-align: center; color: #a0a0a0; font-size: 0.75rem;
  margin: 8px auto; background: #d6d6d6; padding: 2px 10px;
  border-radius: 4px; max-width: fit-content;
}
/* 消息气泡 */
.msg { display: flex; gap: 8px; margin-bottom: 16px; align-items: flex-end; }
.msg-right { flex-direction: row-reverse; }
.msg-avatar {
  width: 36px; height: 36px; border-radius: 6px; background: #07c160;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.msg-right .msg-avatar { background: #95ec69; }
.msg-bubble {
  max-width: 70%; padding: 10px 14px; border-radius: 8px;
  position: relative; line-height: 1.6;
}
.msg-left .msg-bubble {
  background: #fff; color: #181818;
  border-top-left-radius: 2px;
}
.msg-right .msg-bubble {
  background: #95ec69; color: #181818;
  border-top-right-radius: 2px;
}
.msg-bubble p { margin: 0 0 4px; font-size: 0.95rem; }
.msg-bubble p:last-child { margin-bottom: 0; }
.msg-time { font-size: 0.65rem; color: #b0b0b0; display: block; text-align: right; margin-top: 2px; }
.msg-right .msg-time { color: #6a8a5a; }
/* 输入栏 */
.chat-input-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; background: #f7f7f7; flex-shrink: 0;
  border-top: 1px solid #d9d9d9;
}
.ci-btn {
  background: none; border: none; font-size: 1.3rem;
  cursor: pointer; padding: 4px; line-height: 1;
}
.ci-field { flex: 1; }
.ci-field input {
  width: 100%; padding: 8px 12px; border-radius: 6px; border: 1px solid #d9d9d9;
  background: #fff; font-size: 0.95rem; outline: none; box-sizing: border-box;
  font-family: inherit; color: #181818;
}
.ci-field input:focus { border-color: #07c160; }
.ci-send {
  background: #07c160; color: #fff; border: none; border-radius: 6px;
  padding: 8px 16px; font-size: 0.9rem; cursor: pointer; font-weight: 500;
}
.ci-send:disabled { opacity: 0.5; cursor: not-allowed; }
.typing .msg-bubble::after {
  content: '…'; animation: typingDot 1.2s infinite;
}
@keyframes typingDot {
  0% { content: '·'; } 33% { content: '··'; } 66% { content: '…'; }
}
/* 暗色模式适配 */
.page#page-chat .page#page-chat .chat-container,
.page#page-chat .chat-messages,
.page#page-chat .chat-header {
  background: #ededed;
}
.page#page-chat .chat-input-bar { background: #f7f7f7; }
.page#page-chat .chat-name { color: #181818; }
/* 微信消息滚动条 */
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

/* ===== 页脚 ===== */
.footer {
  text-align: center; padding: 40px 24px;
  color: #555; font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}




/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(15,15,20,0.98); flex-direction: column; padding: 12px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 16px; }
  .nav-toggle { display: block; }
  .about-intro { flex-direction: column; align-items: center; text-align: center; }
  .about-avatar { width: 120px; height: 120px; }
  .hero { min-height: 60vh; }
  .album-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}

/* ===== 点赞与评论 ===== */
.moment-actions {
  display: flex; gap: 12px; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.ma-btn {
  font-size: 0.85rem; color: #888; cursor: pointer;
  padding: 4px 10px; border-radius: 12px;
  transition: all 0.2s; user-select: none;
}
.ma-btn:hover { color: #e0e0e8; background: rgba(255,255,255,0.05); }
.comment-box {
  margin-top: 8px; display: flex; gap: 8px;
}
.comment-input {
  flex: 1; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 8px 12px;
  color: #e0e0e8; font-size: 0.85rem;
  resize: none; min-height: 36px; outline: none;
  font-family: inherit;
}
.comment-input:focus { border-color: #6366f1; }
.comment-submit {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  border: none; border-radius: 8px; padding: 0 16px;
  color: #fff; font-size: 0.85rem; cursor: pointer;
  transition: opacity 0.2s;
}
.comment-submit:hover { opacity: 0.85; }
.moment-comments { margin-top: 10px; }
.moment-comment {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px; padding: 8px 12px; margin-bottom: 6px;
}
.mc-text { font-size: 0.85rem; color: #c0c0cc; line-height: 1.5; }
.mc-reply { font-size: 0.85rem; color: #a78bfa; margin-top: 4px; padding-left: 8px; border-left: 2px solid #6366f1; }
.mc-time { font-size: 0.7rem; color: #555; margin-top: 4px; }
/* ===== 功能卡片等高 ===== */
.feature-card {
  display: flex; flex-direction: column; align-items: center;
}
.feature-card p {
  flex: 1;
  display: flex; align-items: center;
}
/* ===== 瞬间时间线 - 缩略图点击放大 ===== */
.timeline-img-wrap {
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: border-color 0.3s;
  max-width: 600px;
}
.timeline-img-wrap:hover { border-color: #6366f1; }
.timeline-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  max-height: 300px;
  object-fit: cover;
}

/* ===== 功能卡片等高 ===== */
