/* ===== 全局样式变量 ===== */
:root {
  --primary: #ff764d;
  --primary-dark: #e55d2e;
  --primary-light: #fff0eb;
  --secondary: #6c5ce7;
  --accent: #ff764d;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #e84393;
  --info: #74b9ff;
  --bg: #f8f6f5;
  --bg-card: #ffffff;
  --bg-dark: #2d3436;
  --text: #2d3436;
  --text-light: #636e72;
  --text-muted: #b2bec3;
  --border: #eee8e5;
  --shadow: 0 4px 20px rgba(255, 118, 77, 0.08);
  --shadow-hover: 0 8px 40px rgba(255, 118, 77, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 重置 ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 17px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(255, 118, 77, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 118, 77, 0.45);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #6c5ce7);
  color: white;
  box-shadow: 0 4px 15px rgba(162, 155, 254, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(162, 155, 254, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #55efc4, #00b894);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 184, 148, 0.5);
}

.btn-danger {
  background: linear-gradient(135deg, #fd79a8, #e84393);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
}

.btn-ghost:hover {
  background: rgba(255, 118, 77, 0.1);
  color: var(--primary);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 让 nav-links 在空间足够时居中（仅当 nav-links 不是第一个子元素时） */
.nav-container > .logo + .nav-links,
.nav-container > .nav-links:not(:first-child):not(:only-child) {
  flex: 1;
  justify-content: center;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo i {
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.badge {
  position: absolute;
  top: 2px;
  right: 4px;
  background: var(--danger);
  color: white;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), #ffe0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  border: 2px solid transparent;
}

.user-avatar-nav:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

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

/* ===== 移动端底部 Tab Bar（桌面端默认隐藏）===== */
.mobile-tab-bar {
  display: none;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 10px 20px 20px;
  background: white;
  border-bottom: 1px solid var(--border);
}

.mobile-menu.show {
  display: flex;
}

.mobile-menu a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-light);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #fff7f0 0%, #fff0e6 30%, #f0f0ff 60%, #e8f4ff 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 20px 40px;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  bottom: -20px;
  background: var(--primary);
  border-radius: 50%;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-title {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
}

.title-line {
  display: block;
}

.title-line.accent {
  background: linear-gradient(135deg, var(--primary), var(--secondary), #00b894);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 20px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== Section 通用 ===== */
.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 50px;
}

.accent {
  color: var(--primary);
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  padding: 36px;
  border-radius: var(--radius);
  background: var(--bg);
  transition: var(--transition);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== Preview Users ===== */
.preview-section {
  padding: 100px 0;
  background: var(--bg);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.preview-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.preview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.preview-photo {
  height: 220px;
  overflow: hidden;
}

.preview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.preview-card:hover .preview-photo img {
  transform: scale(1.05);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), #ffe0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: var(--primary);
}

.preview-info {
  padding: 20px;
}

.preview-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.preview-meta i {
  margin-right: 4px;
  color: var(--primary);
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* ===== Steps ===== */
.steps-section {
  padding: 100px 0;
  background: white;
}

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.step-card {
  text-align: center;
  padding: 40px 30px;
  max-width: 260px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
}

.step-icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
}

.step-connector {
  color: var(--primary-light);
  font-size: 24px;
  margin-top: -40px;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-brand h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== Profile Page ===== */
.profile-page {
  padding: 84px 0 60px;
  min-height: 100vh;
}

.profile-header {
  background: linear-gradient(135deg, #fff7f0, #fff0e6, #f0f0ff);
  padding: 50px 0;
  text-align: center;
}

.profile-avatar-area {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 4px 20px rgba(255,118,77,0.25);
  overflow: hidden;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

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

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

.profile-avatar i {
  font-size: 48px;
  color: var(--primary-light);
}

.avatar-upload-hint {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.profile-name {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-id {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.profile-bio {
  color: var(--text-light);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto 20px;
}

/* ===== Form ===== */
.form-section {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 20px;
}

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

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

.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 118, 77, 0.1);
}

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

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ===== Tags Input ===== */
.tags-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  min-height: 48px;
  align-items: center;
  transition: var(--transition);
}

.tags-input-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 118, 77, 0.1);
}

.tags-input-container .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.tags-input-container .tag .remove-tag {
  cursor: pointer;
  font-size: 14px;
  color: var(--primary);
  opacity: 0.7;
}

.tags-input-container .tag .remove-tag:hover {
  opacity: 1;
}

.tag-input {
  border: none;
  outline: none;
  font-size: 14px;
  flex: 1;
  min-width: 80px;
  font-family: inherit;
}

.tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag-suggestion {
  padding: 4px 12px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.tag-suggestion:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ===== Photo Gallery ===== */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.photo-slot {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
  background: #fafafa;
}

.photo-slot:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.photo-slot.has-photo {
  border-style: solid;
  border-color: var(--primary-light);
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slot .remove-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
}

.photo-slot:hover .remove-photo {
  opacity: 1;
}

/* 照片配文 */
.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 6px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
  line-height: 1.4;
}
.photo-add-caption {
  background: linear-gradient(transparent, rgba(0,0,0,0.45));
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  text-align: center;
}
.photo-add-caption:hover {
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

.photo-slot .add-icon {
  font-size: 24px;
  color: var(--text-muted);
}

.photo-slot:hover .add-icon {
  color: var(--primary);
}

.photo-slot:first-child {
  border-style: solid;
  border-color: var(--primary);
}

.photo-slot:first-child::after {
  content: '主照片';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: white;
  background: var(--primary);
  padding: 1px 8px;
  border-radius: 10px;
}

.photo-slot.has-photo::after {
  display: none;
}

/* ===== Browse Page ===== */
.browse-page {
  padding: 84px 0 60px;
  min-height: 100vh;
}

.browse-header {
  background: white;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.browse-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: white;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  appearance: auto;
}

.filter-select:focus {
  border-color: var(--primary);
}

.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== User Card ===== */
.user-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: var(--transition);
}

.user-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.user-card-header {
  display: flex;
  gap: 20px;
  padding: 24px;
  cursor: pointer;
}

.user-card-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary-light);
}

.user-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-card-photo .fa-user {
  font-size: 40px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.user-card-info {
  flex: 1;
  min-width: 0;
}

.user-card-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.user-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.user-card-meta i {
  margin-right: 3px;
  color: var(--primary);
}

.user-card-bio {
  font-size: 13px;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.user-card-footer {
  padding: 0 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}

.user-card-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.action-btn.like {
  background: #fff0f0;
  color: var(--primary);
}

.action-btn.like:hover,
.action-btn.like.active {
  background: var(--primary);
  color: white;
}

.action-btn.msg {
  background: #f0f0ff;
  color: var(--secondary);
}

.action-btn.msg:hover {
  background: var(--secondary);
  color: white;
}

/* ===== Likes Page ===== */
.likes-page {
  padding: 100px 0 60px;
  min-height: 100vh;
}

.likes-header {
  margin-bottom: 30px;
}

.likes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  max-width: 750px;
  margin: 0 auto;
}

.like-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  gap: 16px;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  overflow: hidden;
}

.like-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.like-card-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}

.like-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.like-card-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.like-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 8px;
}

.like-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.unlike-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.unlike-btn:hover {
  color: var(--primary);
  background: #fff0f0;
}

.like-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.like-card-meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.like-card-meta i {
  margin-right: 2px;
  font-size: 10px;
  flex-shrink: 0;
}

.like-card-bio {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}

.like-card-tags {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.like-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .likes-page {
    padding: 80px 0 40px;
  }
  .likes-container {
    padding: 0 12px;
  }
  .likes-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
  }
  .like-card {
    padding: 14px;
    gap: 12px;
  }
  .like-card-photo {
    width: 64px;
    height: 64px;
  }
  .like-card-header h3 {
    font-size: 15px;
  }
  .like-card-meta {
    font-size: 11px;
    gap: 2px 8px;
    margin-bottom: 4px;
  }
  .like-card-bio {
    font-size: 12px;
    margin-bottom: 4px;
    -webkit-line-clamp: 1;
  }
  .like-card-tags {
    margin-bottom: 8px;
  }
  .like-card-actions {
    gap: 6px;
  }
  .like-card-actions .btn-sm {
    padding: 5px 12px;
    font-size: 12px;
  }
  .likes-header {
    margin-bottom: 20px;
  }
  .likes-header h2 {
    font-size: 20px !important;
  }
  .unlike-btn {
    font-size: 14px;
    padding: 4px 6px;
  }
}

@media (max-width: 480px) {
  .likes-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .like-card {
    padding: 12px;
    gap: 10px;
  }
  .like-card-photo {
    width: 56px;
    height: 56px;
  }
  .like-card-header h3 {
    font-size: 14px;
  }
  .like-card-meta {
    font-size: 11px;
  }
  .like-card-actions {
    gap: 6px;
  }
  .like-card-actions .btn-sm {
    padding: 4px 10px;
    font-size: 11px;
  }
}

/* ===== User Detail Page ===== */
.user-detail-page {
  padding: 84px 0 60px;
  min-height: 100vh;
}

.user-detail-card {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.user-detail-header {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.user-detail-hero {
  background: linear-gradient(135deg, #fff7f0, #fff0e6);
  padding: 40px;
  display: flex;
  gap: 30px;
  align-items: center;
}

.user-detail-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid white;
  box-shadow: 0 4px 20px rgba(255,118,77,0.15);
  background: white;
}

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

.user-detail-name {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 6px;
}

.user-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.user-detail-meta span i {
  margin-right: 5px;
  color: var(--primary);
}

.user-detail-bio {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

.user-detail-photos {
  padding: 30px 40px;
  border-top: 1px solid var(--border);
}

.section-title-sm {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.photo-grid-item {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
}

.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-detail-info {
  padding: 30px 40px;
  border-top: 1px solid var(--border);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

.info-item-content {
  min-width: 0;
}

.info-item-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.info-item-value {
  font-size: 15px;
  font-weight: 600;
}

.user-detail-interests {
  padding: 30px 40px;
  border-top: 1px solid var(--border);
}

.user-detail-actions {
  padding: 30px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Messages Page ===== */
.messages-page {
  padding: 84px 0 60px;
  min-height: 100vh;
}

.messages-container {
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 600px;
}

.message-list {
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.message-list-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
  font-weight: 700;
}

.message-item {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.message-item:hover,
.message-item.active {
  background: var(--bg);
}

.message-item-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary-light);
}

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

.message-item-content {
  flex: 1;
  min-width: 0;
}

.message-item-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.message-item-time {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.message-item-preview {
  font-size: 13px;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 6px;
}

.message-detail {
  display: flex;
  flex-direction: column;
}

.message-detail-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.message-detail-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.message-detail-user img,
.message-detail-user .avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.message-detail-user h4 {
  font-size: 16px;
  font-weight: 700;
}

.message-detail-user p {
  font-size: 12px;
  color: var(--text-muted);
}

.message-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.message-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 16px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.message-bubble.received {
  background: var(--bg);
  border-bottom-left-radius: 4px;
  margin-right: auto;
}

.message-bubble.sent {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}

.message-bubble .bubble-time {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 4px;
}

.message-bubble.sent .bubble-time {
  text-align: right;
}

.message-detail-input {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.message-input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  resize: none;
  max-height: 100px;
  transition: var(--transition);
}

.message-input:focus {
  border-color: var(--primary);
}

.wechat-exchange {
  text-align: center;
  padding: 20px;
}

.wechat-exchange .wechat-card {
  background: linear-gradient(135deg, #f0fff0, #e8ffe8);
  border: 2px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: inline-block;
  margin-bottom: 16px;
}

.wechat-exchange .wechat-card i {
  font-size: 40px;
  color: #07c160;
  margin-bottom: 8px;
}

.wechat-exchange .wechat-card p {
  font-size: 14px;
  color: var(--text);
}

.wechat-exchange .wechat-id {
  font-size: 24px;
  font-weight: 800;
  color: var(--success);
  margin: 10px 0;
}

.no-messages {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}

.no-messages i {
  font-size: 60px;
  margin-bottom: 16px;
  color: var(--primary-light);
}

.no-messages p {
  font-size: 15px;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
}

.modal-overlay.show .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-light);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  min-width: 280px;
  animation: slideIn 0.3s ease;
  border-left: 4px solid var(--primary);
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--danger);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 60px;
  margin-bottom: 16px;
  color: var(--primary-light);
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-light);
}

.empty-state p {
  font-size: 14px;
  margin-bottom: 24px;
}

/* ===== Image Lightbox ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.show {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: white;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.4);
}

/* ===== Video Upload Section ===== */
.video-upload-section {
  margin-bottom: 20px;
}

.video-upload-placeholder {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: #fafafa;
}

.video-upload-placeholder:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.video-upload-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), #ffe0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: var(--primary);
}

.video-upload-placeholder p {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.video-upload-placeholder span {
  font-size: 13px;
  color: var(--text-muted);
}

.video-preview-card {
  text-align: center;
}

.video-preview-wrapper {
  display: inline-block;
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.video-player {
  width: 100%;
  max-height: 500px;
  display: block;
  border-radius: 16px;
}

.video-detail-wrapper {
  display: inline-block;
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.video-detail-wrapper .video-player {
  max-height: 600px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* ===== 移动端底部 Tab 导航栏 ===== */
  .navbar {
    top: 0;
    border-bottom: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.98);
  }
  .nav-container {
    height: 48px;
  }
  .logo {
    font-size: 18px;
    gap: 6px;
  }
  .nav-links,
  .nav-right {
    display: none !important;
  }
  .mobile-menu-btn {
    display: block;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    padding: 6px 8px;
    color: var(--primary);
    background: rgba(255, 118, 77, 0.1);
    border-radius: 8px;
    z-index: 10;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
  }
  .mobile-menu-btn:active {
    background: rgba(255, 118, 77, 0.2);
  }
  .mobile-menu {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    z-index: 999;
    background: white;
    padding: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-radius: 0 0 16px 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
  }
  .mobile-menu.show {
    max-height: 400px;
    padding: 8px 16px 16px;
  }
  .mobile-menu a {
    padding: 14px 16px;
    border-radius: 12px;
    border-bottom: none;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
  }
  .mobile-menu a:active {
    background: var(--primary-light);
  }

  /* 底部固定导航 */
  .mobile-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
  }
  .mobile-tab-bar .tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 12px;
    font-size: 10px;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-tab-bar .tab-item i {
    font-size: 20px;
    transition: transform 0.2s, color 0.2s;
  }
  .mobile-tab-bar .tab-item.active {
    color: var(--primary);
  }
  .mobile-tab-bar .tab-item.active i {
    transform: scale(1.1);
  }
  .mobile-tab-bar .tab-badge {
    position: absolute;
    top: 0;
    right: 4px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-weight: 600;
  }

  /* 页面底部留出 tab bar 空间 */
  .browse-page,
  .likes-page,
  .messages-page,
  .profile-page,
  .user-detail-page {
    padding-bottom: 80px;
  }

  /* ===== Hero 优化 ===== */
  .hero {
    min-height: auto;
    padding: 70px 20px 30px;
  }
  .hero-title {
    font-size: 32px;
    margin-bottom: 16px;
  }
  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.7;
  }
  .hero-buttons {
    margin-bottom: 36px;
    flex-direction: column;
    align-items: center;
  }
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  .hero-stats {
    gap: 24px;
  }
  .stat-number {
    font-size: 26px;
  }
  .stat-label {
    font-size: 12px;
  }
  .hero-scroll-hint {
    display: none;
  }
  .section-title {
    font-size: 24px;
    margin-bottom: 8px;
  }
  .section-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }

  /* Features 卡片优化 */
  .features {
    padding: 50px 0;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-card {
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }
  .feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    font-size: 20px;
    margin-bottom: 0;
  }
  .feature-card h3 {
    font-size: 16px;
    margin-bottom: 4px;
  }
  .feature-card p {
    font-size: 13px;
    line-height: 1.6;
  }

  /* Preview 优化 */
  .preview-section {
    padding: 50px 0;
  }
  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .preview-photo {
    height: 160px;
  }
  .preview-info {
    padding: 12px;
  }
  .preview-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .preview-meta {
    gap: 8px;
    font-size: 11px;
    margin-bottom: 6px;
  }
  .tag {
    font-size: 11px;
    padding: 2px 8px;
  }

  /* Steps 优化 */
  .steps-section {
    padding: 50px 0;
  }
  .steps-grid {
    flex-direction: column;
  }
  .step-connector {
    transform: rotate(90deg);
    margin: -10px 0;
  }
  .step-card {
    padding: 24px 20px;
  }

  /* Footer 优化 */
  .footer {
    padding: 30px 0 100px;
    margin-bottom: 0;
  }

  /* ===== Browse 发现页 - 大图卡片 ===== */
  .browse-page {
    padding-top: 48px;
  }
  .browse-header {
    padding: 12px 0;
    position: sticky;
    top: 48px;
    z-index: 100;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .browse-header .container {
    padding: 0 12px;
  }
  .browse-header h2 {
    font-size: 20px !important;
    margin-bottom: 10px !important;
  }
  .browse-filters {
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .browse-filters::-webkit-scrollbar {
    display: none;
  }
  .filter-select {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 13px;
    border-width: 1.5px;
  }
  .browse-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 12px;
  }

  /* 手机端用户卡片 - 竖版大图 */
  .user-card {
    border-radius: 16px;
    overflow: hidden;
  }
  .user-card-header {
    flex-direction: column;
    padding: 0;
  }
  .user-card-photo {
    width: 100%;
    height: 280px;
    border-radius: 0;
  }
  .user-card-photo .fa-user {
    font-size: 60px;
    height: 280px;
  }
  .user-card-info {
    padding: 16px;
    width: 100%;
    text-align: left;
  }
  .user-card-name {
    font-size: 18px;
    justify-content: flex-start;
  }
  .user-card-meta {
    justify-content: flex-start;
    font-size: 12px;
    gap: 6px 12px;
  }
  .user-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }
  .user-card-bio {
    margin-top: 6px;
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
  .user-card-footer {
    padding: 0 16px 16px;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .user-card-tags {
    justify-content: flex-start;
  }
  .user-card-actions {
    justify-content: center;
    gap: 16px;
  }
  .action-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  /* ===== User Detail 用户详情页优化 ===== */
  .user-detail-page {
    padding-top: 0;
  }
  .user-detail-card {
    margin: 0;
    padding: 0;
  }
  .user-detail-header {
    border-radius: 0;
  }
  .user-detail-hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 24px 24px;
    position: relative;
  }
  .user-detail-avatar {
    width: 100px;
    height: 100px;
    border-width: 3px;
  }
  .user-detail-name {
    font-size: 24px;
    margin-bottom: 4px;
  }
  .user-detail-meta {
    justify-content: center;
    gap: 12px;
    font-size: 13px;
  }
  .user-detail-bio {
    font-size: 14px;
    margin-top: 8px;
  }
  .user-detail-photos,
  .user-detail-info,
  .user-detail-interests {
    padding: 20px 16px;
  }
  .section-title-sm {
    font-size: 16px;
  }
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .info-item {
    gap: 10px;
    padding: 12px;
    background: var(--bg);
    border-radius: 12px;
  }
  .info-item-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
    border-radius: 8px;
  }
  .info-item-value {
    font-size: 14px;
  }
  .user-detail-actions {
    padding: 20px 16px;
    gap: 10px;
    justify-content: center;
    flex-direction: column;
    position: sticky;
    bottom: 64px;
    background: white;
    border-top: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  }
  .user-detail-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .user-detail-actions .btn-ghost:not(.btn-pending),
  .user-detail-actions a.btn-ghost {
    display: none;
  }
  .user-detail-actions .btn-pending {
    display: flex;
    background: #f5f5f5;
    color: #999;
    border: 1px solid #e0e0e0;
    cursor: not-allowed;
  }
  [style*="border-top: 1px solid var(--border);"][style*="padding: 30px 40px"] {
    padding: 20px 16px !important;
  }

  /* ===== Messages 聊天页优化 ===== */
  .messages-page {
    padding-top: 48px;
  }
  .messages-container {
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: auto;
    height: calc(100vh - 48px);
    height: calc(100dvh - 48px);
  }
  .message-list {
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-y: auto;
    transition: max-height 0.3s ease;
  }
  /* 打开聊天后，会话列表完全隐藏 */
  .messages-container.chat-open .message-list {
    display: none;
  }
  .message-list-header {
    padding: 14px 16px;
    font-size: 18px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
  }
  .message-item {
    padding: 12px 16px;
  }
  .message-item-avatar {
    width: 44px;
    height: 44px;
  }
  .message-detail {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .message-detail-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: white;
    flex-shrink: 0;
  }
  .message-detail-header .btn-success {
    padding: 6px 10px;
    font-size: 12px;
  }
  .chat-back-btn {
    margin-right: 4px;
    padding: 6px 8px !important;
    font-size: 16px;
    color: var(--primary) !important;
  }
  .message-detail-user-name {
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
  }
  .message-detail-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
  }
  .message-bubble {
    max-width: 82%;
    font-size: 15px;
    padding: 10px 14px;
    margin-bottom: 8px;
  }
  .message-bubble .bubble-time {
    font-size: 10px;
  }
  .message-detail-input {
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    gap: 8px;
    flex-shrink: 0;
  }
  .message-input {
    padding: 10px 16px;
    font-size: 16px; /* 防止 iOS 自动缩放 */
  }
  .no-messages {
    padding: 20px;
    height: auto;
    min-height: 300px;
  }
  .no-messages i {
    font-size: 48px;
  }
  .no-messages h3 {
    font-size: 16px;
  }

  /* ===== Profile 个人资料页优化 ===== */
  .profile-page {
    padding-top: 0;
  }
  .profile-header {
    padding: 56px 20px 30px;
  }
  .profile-avatar {
    width: 90px;
    height: 90px;
  }
  .profile-avatar i {
    font-size: 36px;
  }
  .profile-name {
    font-size: 22px;
  }
  .profile-bio {
    font-size: 13px;
  }
  .form-section {
    padding: 0 16px;
    margin: 24px auto;
  }
  .form-section h2 {
    font-size: 18px !important;
  }
  .form-section p {
    font-size: 13px !important;
    margin-bottom: 20px !important;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .form-group {
    margin-bottom: 18px;
  }
  .form-label {
    font-size: 13px;
  }
  .form-input,
  .form-select,
  .form-textarea {
    padding: 12px 14px;
    font-size: 16px; /* 防止 iOS 自动缩放 */
    border-radius: 12px;
  }
  .photo-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .photo-slot .remove-photo {
    opacity: 1;
    width: 22px;
    height: 22px;
  }
  .tag-suggestions {
    gap: 6px;
  }
  .tag-suggestion {
    padding: 4px 10px;
    font-size: 12px;
  }

  /* ===== Toast 优化 ===== */
  .toast-container {
    top: auto;
    bottom: 80px;
    left: 12px;
    right: 12px;
    align-items: center;
  }
  .toast {
    min-width: auto;
    width: 100%;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideUpMobile 0.3s ease;
  }
  @keyframes slideUpMobile {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

  /* ===== Modal 优化 ===== */
  .modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }
  .modal {
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    max-width: none;
    transform: translateY(100%);
  }
  .modal-overlay.show .modal {
    transform: translateY(0);
  }
  .modal-header {
    padding: 16px 20px;
  }
  .modal-header h3 {
    font-size: 17px;
  }
  .modal-body {
    padding: 0 20px 20px;
  }
  .modal-footer {
    padding: 12px 20px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .modal-footer .btn {
    flex: 1;
    justify-content: center;
  }

  /* ===== Lightbox 优化 ===== */
  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  /* ===== Empty State 优化 ===== */
  .empty-state {
    padding: 40px 20px;
  }
  .empty-state i {
    font-size: 48px;
  }
  .empty-state h3 {
    font-size: 18px;
  }
  .empty-state p {
    font-size: 13px;
  }

  /* ===== Video 优化 ===== */
  .video-upload-placeholder {
    padding: 30px 20px;
  }
  .video-preview-wrapper {
    max-width: 100%;
    border-radius: 12px;
  }

  /* ===== Login 登录页优化 ===== */
  .auth-card {
    border-radius: 20px;
    padding: 32px 24px;
  }
  .auth-logo h1 {
    font-size: 24px;
  }
  .auth-input {
    padding: 14px 14px 14px 42px;
    font-size: 16px; /* 防止 iOS 自动缩放 */
  }
}

/* ===== 小屏手机 (< 380px) ===== */
@media (max-width: 380px) {
  .hero-title {
    font-size: 28px;
  }
  .preview-grid {
    grid-template-columns: 1fr;
  }
  .user-card-photo {
    height: 240px;
  }
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 定位按钮 ===== */
.locate-btn {
  position: absolute;
  right: 8px;
  top: 30px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}
.locate-btn:hover { background: var(--primary-dark); transform: scale(1.05); }
.locate-btn:active { transform: scale(0.95); }
.locate-btn.loading i {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== 游客登录引导弹窗 ===== */
.guest-login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}
.guest-login-overlay.show {
  opacity: 1;
  visibility: visible;
}
.guest-login-panel {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 360px;
  padding: 36px 28px 28px;
  position: relative;
  text-align: center;
  transform: translateY(30px);
  transition: transform 0.3s;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
}
.guest-login-overlay.show .guest-login-panel {
  transform: translateY(0);
}
.guest-login-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}
.guest-login-close:hover { color: var(--text); }
.guest-login-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #fff;
  font-size: 24px;
}
.guest-login-panel h3 {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 6px;
}
.guest-login-panel > p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}
.guest-login-features {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}
.gl-feature {
  font-size: 13px;
  color: var(--text);
}
.gl-feature i {
  color: var(--success);
  margin-right: 4px;
  font-size: 12px;
}
.guest-login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 12px;
}
.guest-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 118, 77, 0.4);
}
.guest-login-btn:active { transform: translateY(0); }
.guest-login-hint {
  font-size: 13px;
  color: var(--text-muted);
}
.guest-login-hint a {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

@media (max-width: 768px) {
  .guest-login-panel { padding: 28px 20px 24px; }
  .guest-login-panel h3 { font-size: 18px; }
}
