/* ================================================
   缘遇 · 三不婚恋 — 青春版主题 (Indigo 主色 + Rose 点睛)
   ================================================ */

/* 字体导入（国内可能超时，已配置系统字体兜底） */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

/* CSS变量 - 青春版 */
:root {
  /* 主色系 - 玫红 Rose（主操作/CTA） */
  --primary: #FF4D8D;
  --primary-light: #FF8AB6;
  --primary-dark: #D81B6B;
  --secondary: #FF7EB3;   /* 浅粉 · 强调/促销 */
  --accent: #FFC93C;      /* 阳光黄 · 点缀 */

  /* 辅助色 */
  --rose: #FF4D8D;        /* 与 primary 一致的玫红 */
  --coral: #FF7EB3;       /* 浅粉 */
  --peach: #FFE1EE;       /* 浅粉底 */
  --warm-cream: #FFF5F8;  /* 粉白底 */

  /* 元气点缀（保留备用） */
  --mint: #2DD4BF;
  --sun: #FFC93C;
  --sky: #3B82F6;

  /* 中性色（冷调） */
  --text-primary: #1E2233;
  --text-secondary: #4A5168;
  --text-tertiary: #7A8198;
  --text-light: #A8AEC2;

  /* 背景色（暖色底） */
  --bg-white: #FFFFFF;
  --bg-cream: #FFF5F8;
  --bg-peach: #FFE1EE;
  --bg-gradient: linear-gradient(180deg, #FFF5F8 0%, #FFE1EE 100%);

  /* 边框色 */
  --border-light: #ECEEF5;
  --border-medium: #FFC2DB;

  /* 阴影（玫红着色） */
  --shadow-sm: 0 2px 8px rgba(255, 77, 141, 0.08);
  --shadow-md: 0 8px 24px rgba(255, 77, 141, 0.12);
  --shadow-lg: 0 16px 48px rgba(255, 77, 141, 0.18);
  --shadow-glow: 0 0 32px rgba(255, 77, 141, 0.25);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* 字体 */
  --font-serif: 'Noto Serif SC', 'Georgia', serif;
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;

  /* 动画 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-cream);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  width: 100%;
  max-width: 100%;
}

/* 防止任何固定宽元素在手机端横向溢出 */
img, table, pre, code, .container, .section, .card, .wrap, .box {
  max-width: 100% !important;
  box-sizing: border-box;
}
img { height: auto; display: block; }
table { table-layout: fixed; width: 100%; }
pre, code { white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere; }

/* 滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-peach);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

/* ================================================
   通用布局
   ================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title .kicker {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--primary);
  letter-spacing: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
  position: relative;
  padding: 0 24px;
}
.section-title .kicker::before,
.section-title .kicker::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--primary);
  opacity: 0.5;
}
.section-title .kicker::before { left: 0; }
.section-title .kicker::after { right: 0; }

.section-title h2 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-title p {
  font-size: 16px;
  color: var(--text-tertiary);
  max-width: 560px;
  margin: 0 auto;
}

/* ================================================
   按钮系统
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  min-height: 48px;
  word-break: keep-all;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left var(--duration-slow) var(--ease-out);
}
.btn:hover::before { left: 100%; }

.btn-primary {
  background: var(--primary-dark);
  color: white;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  color: var(--primary);
  background: var(--bg-peach);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 600;
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 18px 44px;
  font-size: 17px;
}

.btn-icon {
  padding: 12px;
  border-radius: var(--radius-full);
  min-width: 48px;
  min-height: 48px;
}

/* ================================================
   导航栏（全站统一 · 与 discover.php 同款观感）
   纯白底 + 玫红纯色 logo + 禁止折行/挤压；
   桌面端 single-line，手机端整条隐藏（见底部媒体查询）
   ================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(255, 77, 141, 0.08);
  box-shadow: 0 2px 8px rgba(255, 77, 141, 0.08);
  transition: all var(--duration-normal) var(--ease-out);
}
.navbar.scrolled {
  background: #fff;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;   /* 三块强制同一行，禁止折行 */
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;      /* logo 不被挤压变窄 */
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 22px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.logo-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 60%);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--primary);
  background: none;                 /* 弃用渐变裁剪文字，防部分内核渲染异常 */
  -webkit-background-clip: initial;
  -webkit-text-fill-color: var(--primary);
  background-clip: initial;
  white-space: nowrap;              /* 禁止「三不婚恋」竖排/拆字 */
  display: inline-block;
  line-height: 1;
  padding: 6px 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;   /* 菜单整体单行 */
}

.nav-links a {
  display: block;
  padding: 10px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  white-space: nowrap; /* 单个菜单不折行 */
}
.nav-links a:hover {
  color: var(--primary);
  background: var(--bg-peach);
}
.nav-links a.active {
  color: var(--primary);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;      /* 登录区不被挤压 */
}
/* navbar 内按钮：紧凑胶囊，垂直居中（与 index.php/discover.php 内嵌强制一致） */
.nav-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  min-height: 46px;
  line-height: 46px;
  padding: 0 22px;
  margin: 0;
  width: auto;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}
.nav-actions .btn::before {
  display: none;        /* 关掉全局扫光，与 discover.php 一致 */
}
.nav-actions .btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 77, 141, 0.22);
}
.nav-actions .btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  box-shadow: none;
}
.nav-actions .btn-ghost:hover {
  color: var(--primary);
  background: var(--bg-peach);
}

/* ================================================
   Hero 区域
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 100px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-gradient);
}

/* 装饰背景 */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,77,141,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 77, 141, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* 浮动爱心装饰 */
.floating-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.floating-hearts span {
  position: absolute;
  font-size: 24px;
  opacity: 0.4;
  animation: heartFloat 15s linear infinite;
}
.floating-hearts span:nth-child(1) { left: 10%; animation-delay: 0s; font-size: 18px; }
.floating-hearts span:nth-child(2) { left: 30%; animation-delay: 3s; font-size: 28px; }
.floating-hearts span:nth-child(3) { left: 55%; animation-delay: 6s; font-size: 20px; }
.floating-hearts span:nth-child(4) { left: 75%; animation-delay: 9s; font-size: 32px; }
.floating-hearts span:nth-child(5) { left: 90%; animation-delay: 12s; font-size: 22px; }

@keyframes heartFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.hero-text .badge .dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-primary);
}
.hero-text h1 .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

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

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}
.hero-stats .stat h3 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stats .stat p {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* Hero 右侧 - 用户卡片组 */
.hero-visual {
  position: relative;
  height: 560px;
}

.user-card-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.user-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--duration-normal) var(--ease-out);
}
.user-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-glow);
}

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

.user-card-1 {
  width: 260px;
  height: 340px;
  top: 0;
  right: 60px;
  z-index: 3;
  animation: cardFloat1 6s ease-in-out infinite;
}
.user-card-2 {
  width: 220px;
  height: 300px;
  top: 120px;
  left: 20px;
  z-index: 2;
  animation: cardFloat2 7s ease-in-out infinite;
}
.user-card-3 {
  width: 200px;
  height: 260px;
  bottom: 0;
  right: 0;
  z-index: 1;
  animation: cardFloat3 8s ease-in-out infinite;
}

@keyframes cardFloat1 {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-16px) rotate(-1deg); }
}
@keyframes cardFloat2 {
  0%, 100% { transform: translateY(0) rotate(4deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes cardFloat3 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.user-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(45, 27, 20, 0.9));
  color: white;
}
.user-card-info .name {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.user-card-info .verify {
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}
.user-card-info .meta {
  font-size: 12px;
  opacity: 0.85;
  display: flex;
  gap: 12px;
}

/* 匹配度徽章 */
.match-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-md);
  z-index: 10;
}

/* ================================================
   核心优势
   ================================================ */
.features {
  background: var(--bg-white);
}

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

.feature-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ================================================
   推荐用户
   ================================================ */
.recommend {
  background: var(--bg-gradient);
  position: relative;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 10px 24px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.filter-chip:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}
.filter-chip.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.profile-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}
.profile-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.profile-card-header {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.profile-card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.profile-card:hover .profile-card-header img {
  transform: scale(1.08);
}

.profile-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(45, 27, 20, 0.95));
}

.profile-card-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.95);
  color: white;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.online-badge .dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.favorite-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--duration-fast) var(--ease-out);
  backdrop-filter: blur(10px);
}
.favorite-btn:hover {
  transform: scale(1.1);
  background: white;
}
.favorite-btn.active {
  color: var(--primary);
  animation: heartBeat 0.4s var(--ease-spring);
}
@keyframes heartBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.profile-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px;
  color: white;
}

.profile-card-info .name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.profile-card-info .name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
}
.profile-card-info .age {
  font-size: 18px;
  opacity: 0.9;
}
.profile-card-info .verify-icon {
  width: 20px;
  height: 20px;
  background: #3B82F6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: white;
}

.profile-card-info .location {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.profile-tag {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.match-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.match-score .score-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-right: 12px;
}
.match-score .score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: var(--radius-full);
  transition: width 1s var(--ease-out);
}
.match-score .score-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.profile-card-body {
  padding: 20px;
  border-top: 1px solid var(--border-light);
}

.profile-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

/* ================================================
   成功故事
   ================================================ */
.stories {
  background: var(--bg-white);
}

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

.story-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-cream);
  transition: all var(--duration-normal) var(--ease-out);
}
.story-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* 成功故事空态 */
.stories-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-medium);
}
.stories-empty-icon {
  font-size: 44px;
  margin-bottom: 14px;
}
.stories-empty-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.stories-empty-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.stories-empty-btn {
  display: inline-block;
  padding: 10px 26px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-out);
}
.stories-empty-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.story-images {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.story-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-couple {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: -8px;
  z-index: 2;
}

.story-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid white;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: white;
}
.story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-avatar + .story-avatar {
  margin-left: -16px;
}

.story-heart {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: var(--shadow-md);
}

.story-content {
  padding: 56px 24px 24px;
  text-align: center;
}

.story-couple-names {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.story-date {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.story-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.story-stat {
  text-align: center;
}
.story-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.story-stat span {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ================================================
   数据统计
   ================================================ */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
}
.stat-item .number {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.stat-item .number .unit {
  font-size: 24px;
  font-weight: 700;
  opacity: 0.8;
}
.stat-item .label {
  font-size: 16px;
  opacity: 0.9;
  font-weight: 500;
}
.stat-item .icon {
  font-size: 32px;
  margin-bottom: 16px;
  opacity: 0.9;
}

/* ================================================
   匹配测试创新模块
   ================================================ */
.match-test {
  background: var(--bg-gradient);
  position: relative;
}

.test-card {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.test-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--peach) 0%, transparent 70%);
  border-radius: 50%;
}

.test-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}
.test-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--border-light);
}
.test-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.test-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-cream);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-tertiary);
  transition: all var(--duration-normal) var(--ease-out);
}
.test-step.active .test-step-num {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: scale(1.1);
}
.test-step.done .test-step-num {
  background: #10B981;
  color: white;
  border-color: transparent;
}
.test-step-label {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
}
.test-step.active .test-step-label {
  color: var(--primary);
}

.test-question h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
  position: relative;
}

.test-options {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}
.test-option {
  padding: 18px 24px;
  background: var(--bg-cream);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  display: flex;
  align-items: center;
  gap: 16px;
}
.test-option:hover {
  border-color: var(--primary-light);
  background: var(--bg-peach);
}
.test-option.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--bg-peach) 0%, var(--peach) 100%);
}
.test-option .option-label {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease-out);
}
.test-option.selected .option-label {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.test-option .option-text {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}
.test-option.selected .option-text {
  color: var(--primary);
}

.test-progress {
  height: 8px;
  background: var(--bg-cream);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 24px;
}
.test-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transition: width var(--duration-normal) var(--ease-out);
}

.test-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 匹配结果 */
.test-result {
  text-align: center;
  padding: 20px 0;
}

.result-score {
  width: 200px;
  height: 200px;
  margin: 0 auto 32px;
  position: relative;
}
.result-score-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(var(--primary) var(--score-deg, 324deg), var(--bg-cream) 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.result-score-ring::before {
  content: '';
  position: absolute;
  inset: 12px;
  background: white;
  border-radius: 50%;
}
.result-score-value {
  position: relative;
  z-index: 1;
}
.result-score-value .num {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.result-score-value .pct {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-tertiary);
}

.result-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.result-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.result-traits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  text-align: left;
}
.trait-item {
  padding: 16px 20px;
  background: var(--bg-cream);
  border-radius: var(--radius-md);
}
.trait-item .trait-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.trait-item .trait-value {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

/* ================================================
   CTA 区域
   ================================================ */
.cta {
  background: var(--bg-white);
  padding: 80px 0;
}

.cta-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-card::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-card h2 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.cta-card p {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.cta-card .btn-primary {
  background: white;
  color: var(--primary);
}
.cta-card .btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}
.cta-card .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

/* ================================================
   页脚
   ================================================ */
.footer {
  background: #1E2233;
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}
.footer-brand .logo-text {
  color: white;
  -webkit-text-fill-color: white;
}
.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.7;
  margin-bottom: 14px;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}
.footer-socials a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 12px;
}
/* 页脚内联链接：能放一行的放一行 */
.footer-col ul.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}
.footer-col ul.inline-links li {
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.footer-col ul.inline-links li + li::before {
  content: "·";
  margin: 0 10px;
  opacity: 0.45;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--duration-fast) var(--ease-out);
}
.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: 0.6;
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  color: inherit;
  text-decoration: none;
}
.footer-bottom-links a:hover {
  opacity: 1;
}

/* ========== 页脚 · 手机端紧凑适配 ========== */
@media (max-width: 768px) {
  .footer {
    padding: 18px 0 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px 14px;
    margin-bottom: 12px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-brand-desc {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 8px;
    max-width: 100%;
  }
  .footer-brand .logo {
    margin-bottom: 6px;
  }
  .footer-socials {
    gap: 8px;
  }
  .footer-socials a {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .footer-col h4 {
    font-size: 12.5px;
    margin-bottom: 6px;
  }
  .footer-col li {
    margin-bottom: 3px;
  }
  .footer-col a,
  .footer-col li {
    font-size: 11.5px;
    line-height: 1.35;
  }
  .footer-col ul.inline-links li + li::before {
    margin: 0 6px;
  }
  .footer-bottom {
    padding-top: 10px;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    font-size: 11px;
    line-height: 1.4;
  }
  .footer-bottom-links {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  /* 进一步压缩页脚上方的 CTA 区域 */
  .cta {
    padding: 28px 0 !important;
  }
  .cta-card {
    padding: 22px 18px !important;
  }
  .cta-card h2 {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }
  .cta-card p {
    font-size: 12.5px !important;
    margin-bottom: 14px !important;
  }
  .cta-actions {
    gap: 8px !important;
  }
  .cta-actions .btn {
    padding: 10px 16px !important;
    font-size: 13px !important;
  }
}

/* ================================================
   弹窗
   ================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 27, 20, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(30px) scale(0.95);
  transition: transform var(--duration-normal) var(--ease-spring);
  position: relative;
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 32px 32px 20px;
  text-align: center;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-cream);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
}
.modal-close:hover {
  background: var(--bg-peach);
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-logo-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-md);
}
.modal-header h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.modal-header p {
  font-size: 14px;
  color: var(--text-tertiary);
}

.modal-body {
  padding: 0 32px 32px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-input,
.form-select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-cream);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-out);
  outline: none;
}
.form-input:focus,
.form-select:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(255,77,141,0.1);
}
.form-input::placeholder {
  color: var(--text-light);
}

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

.form-actions {
  margin-top: 24px;
}
.form-actions .btn {
  width: 100%;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}
.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}
.form-divider span {
  font-size: 13px;
  color: var(--text-tertiary);
}

.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-cream);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
  font-family: inherit;
}
.social-btn:hover {
  border-color: var(--primary-light);
  background: var(--bg-peach);
  color: var(--primary);
}
.social-btn .icon {
  font-size: 20px;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-tertiary);
}
.form-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.form-footer a:hover {
  text-decoration: underline;
}

.form-terms {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-top: 16px;
}
.form-terms a {
  color: var(--primary);
  text-decoration: none;
}

/* ================================================
   发现页 - 高级筛选
   ================================================ */
.page-header {
  background: var(--bg-gradient);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,77,141,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.page-header-content h1 {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.page-header-content p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.advanced-filter {
  max-width: 1000px;
  margin: -40px auto 0;
  background: white;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 5;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.filter-item label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.range-slider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  transition: all var(--duration-fast) var(--ease-out);
}
.range-slider:focus-within {
  border-color: var(--primary);
  background: white;
}
.range-slider input {
  width: 60px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
}
.range-slider span {
  color: var(--text-tertiary);
}

.filter-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 24px;
  padding: 0 4px;
}
.results-info .count {
  font-size: 15px;
  color: var(--text-secondary);
}
.results-info .count strong {
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: 20px;
  margin-right: 4px;
}

.sort-select {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sort-select label {
  font-size: 14px;
  color: var(--text-tertiary);
}
.sort-select select {
  padding: 10px 16px;
  background: white;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--text-secondary);
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: all var(--duration-fast) var(--ease-out);
}
.sort-select select:hover,
.sort-select select:focus {
  border-color: var(--primary-light);
}

/* ================================================
   个人中心页
   ================================================ */
.profile-page {
  padding: 120px 0 80px;
  background: var(--bg-cream);
}

.profile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

.profile-sidebar {
  position: sticky;
  top: 100px;
}

.profile-card-large {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.profile-cover {
  height: 160px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  position: relative;
}

.profile-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 6px solid white;
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: white;
}
.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info-section {
  padding: 80px 24px 24px;
  text-align: center;
}
.profile-info-section .name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.profile-info-section .meta {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.profile-info-section .bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.profile-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}
.profile-stat-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.profile-stat-item span {
  font-size: 12px;
  color: var(--text-tertiary);
}

.profile-nav {
  background: white;
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}
.profile-nav ul {
  list-style: none;
}
.profile-nav li {
  margin-bottom: 4px;
}
.profile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 14px;
  transition: all var(--duration-fast) var(--ease-out);
}
.profile-nav a:hover {
  background: var(--bg-peach);
  color: var(--primary);
}
.profile-nav a.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: var(--shadow-sm);
}
.profile-nav .icon {
  font-size: 18px;
}

.profile-main-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.content-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.content-card-header h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.tags-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-edit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--duration-fast) var(--ease-out);
}
.tag-edit:hover {
  border-color: var(--primary-light);
  background: var(--bg-peach);
}
.tag-edit.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-color: transparent;
}
.tag-add {
  padding: 10px 18px;
  background: transparent;
  border: 2px dashed var(--border-medium);
  color: var(--text-tertiary);
  cursor: pointer;
}
.tag-add:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-peach);
}

.match-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.match-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast) var(--ease-out);
}
.match-item:hover {
  background: var(--bg-peach);
  transform: translateX(4px);
}
.match-item-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: white;
}
.match-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.match-item-info {
  flex: 1;
  min-width: 0;
}
.match-item-info .name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.match-item-info .meta {
  font-size: 13px;
  color: var(--text-tertiary);
}
.match-item-score {
  text-align: right;
  flex-shrink: 0;
}
.match-item-score .score-num {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
}
.match-item-score .score-label {
  font-size: 11px;
  color: var(--text-tertiary);
}
.match-item-action {
  flex-shrink: 0;
}

/* ================================================
   响应式
   ================================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .hero-visual {
    height: 440px;
    max-width: 500px;
    margin: 0 auto;
  }
  .hero-text h1 {
    font-size: 48px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stories-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 48px 0;
  }
  .section-title h2 {
    font-size: 28px;
  }
  .container {
    padding: 0 16px;
  }
  .nav-links {
    display: none;
  }
  /* R31.8：mobile 整条 navbar 隐藏（首页登录/注册入口移除 —— 唯一登录入口 = 「加入三不婚恋」跳 pages/login.php）。
	     desktop navbar 不受影响（含右上角登录/注册） */
	  .navbar { display: none; }
	  /* 手机上不显示优质推荐模块 */
	  .recommend { display: none; }
  /* R31.7：背景板保持紧凑高度（内容驱动），按钮在板内竖直居中 —— 上下 padding 对称 */
  .hero {
    min-height: 0;
    padding: 26px 0 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  /* Hero 单列化：mobile 不显示桌面端的 user-card-stack 错位卡（视觉锤交给下方 recommend section） */
  .hero-content {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 20px;
    text-align: center;
  }
  .hero-visual { display: none; }
  /* R31.9：主次 CTA 并排一行（主略宽次略窄，主次紧凑不松散） —— 板内仍对称居中 */
  .hero-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 14px;          /* 间距适中：既看清两个按钮，又不分离太远 */
    margin: 0 auto;
    max-width: 400px;   /* R32.x：容器放宽到 400，两个按钮整体拉长（小屏自然撑满） */
    width: 100%;
  }
  .hero-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    min-height: 50px;
    padding: 12px 12px; /* 内边距略宽，避免 emoji+5 字拥挤 */
    font-size: 14.5px;
    white-space: nowrap;
    border-radius: 999px;
  }
  .hero-actions .btn-primary {
    flex-grow: 1.2; /* 主按钮「加入三不婚恋」略宽，权重稍大（紧凑的主次比例） */
  }
  .hero-actions .btn-secondary {
    flex-grow: 1;
  }
  .hero-text h1 {
    font-size: 36px;
  }
  .hero-text .subtitle {
    font-size: 16px;
  }
  /* 注：mobile 上 .hero-visual 已 display:none，下方桌面端卡片堆规则在 mobile 不生效，故省略 */
  /* R32.x：features 卡片两行分开点（4张卡片排成 2x2，让行间更呼吸）+ 同时把 features→stories 之间的空白从 96px 收紧到 60px */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;        /* 行间从 12→18，让两行卡片视觉分组更清晰 */
  }
  /* features→stories 这两个相邻 section 的过渡更紧凑 */
  .features.section {
    padding-bottom: 30px;
  }
  .stories.section {
    padding-top: 30px;
  }
  /* 手机端：图标与标题同行，2 列卡片更紧凑 */
  .feature-card{
    display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; gap:10px;
    padding:14px 12px;
  }
  .feature-icon{
    width:38px; height:38px; font-size:18px; margin:0; flex-shrink:0;
    box-shadow:none; border-radius:10px;
  }
  .feature-card h3{ margin:0; font-size:15px; line-height:1.3; }
  .feature-card p{
    flex-basis:100%; font-size:12px; line-height:1.6; margin-top:2px;
  }
  .users-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .profile-card-header {
    height: 240px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .stat-item .number {
    font-size: 36px;
  }
  .stat-item .icon {
    font-size: 24px;
    margin-bottom: 8px;
  }
  .stat-item .label {
    font-size: 13px;
  }
  .test-card {
    padding: 28px 20px;
  }
  .test-question h3 {
    font-size: 20px;
  }
  .result-traits {
    grid-template-columns: 1fr;
  }
  .cta-card {
    padding: 40px 24px;
  }
  .cta-card h2 {
    font-size: 28px;
  }
  .cta-actions {
    flex-direction: column;
  }
  .cta-actions .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .page-header {
    padding: 100px 0 60px;
  }
  .page-header-content h1 {
    font-size: 32px;
  }
  .advanced-filter {
    padding: 20px 16px;
    margin-top: -30px;
  }
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .filter-actions {
    flex-direction: column;
  }
  .filter-actions .btn {
    width: 100%;
  }
  .results-info {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .content-card {
    padding: 24px 20px;
  }
  .profile-page {
    padding: 100px 0 48px;
  }
}

@media (max-width: 480px) {
  .users-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
  .profile-card-header {
    height: 360px;
  }
  /* 手机端 navbar 顶栏：放开「三不婚恋」标题文字（用户要求左上角也显示）
     用纯色 --p（玫红）替代渐变裁剪，避免极窄屏 -webkit-text-fill-color 渲染异常；
     字号缩到 18px、恢复 gap，避免挤压变形 */
  .navbar .logo{ gap: 8px; }
  .navbar .logo-text{
    display: inline;
    font-size: 18px;
    letter-spacing: 0;
    background: none;
    -webkit-text-fill-color: var(--p);
    color: var(--p);
    width: auto;
    height: auto;
    white-space: nowrap;  /* 横排显示，禁止逐字竖排换行 */
  }
  .nav-container{ padding: 10px 12px; gap: 8px; }
  /* 注意：logo-text 本身就是 logo 的第一个 span，此规则曾把它限宽 32px 导致「三不婚恋」竖排，已放开 */
  .navbar .logo > span:first-child{ width:auto; height:auto; font-size:18px; white-space:nowrap; }
  .nav-actions .btn-nickname{ display:none !important; }  /* 极窄屏隐藏昵称按钮，避免顶栏被挤压 */
  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hero-stats .stat h3 {
    font-size: 28px;
  }
}

/* ================================================
   动画初始化
   【兜底策略】默认 .reveal 直接可见（避免 main.js 未加载/报错/Observer 未触发导致整页空白）
   JS 正常运行时，会在 DOMContentLoaded 后给元素加 .reveal--pending（回到隐藏起点），再在滚动时淡入
   ================================================ */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: all var(--duration-slow) var(--ease-out);
}
/* JS 主动设置的"动画初始态"（JS没执行就不会有这个类→直接可见） */
.reveal.reveal--pending {
  opacity: 0;
  transform: translateY(30px);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ================================================
   Flex 通用布局工具（pages/events.php / vip.php / album.php 导航栏依赖）
   ================================================ */
.row{display:flex;flex-direction:row}
.col{display:flex;flex-direction:column}
.wrap{max-width:1280px;margin:0 auto;width:100%}
.between{justify-content:space-between}
.center{align-items:center;justify-content:center}
.gap1{gap:8px}
.gap2{gap:16px}
.gap3{gap:24px}

/* ================================================
   顶部导航栏 pe-nav（pages/events.php / vip.php / album.php / stories.php 同款结构）
   ================================================ */
.pe-nav{
  position:sticky;top:0;left:0;right:0;z-index:9000;
  background:rgba(255,255,255,.96);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid #EEF0FF;padding:12px 40px;
  -webkit-tap-highlight-color:transparent;
}
.pe-nav .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.pe-nav .logo{text-decoration:none;color:#1F2937;font-size:17px;font-weight:900;display:inline-flex;align-items:center;gap:8px;letter-spacing:-.3px}
.pe-nav .logo .ic{width:32px;height:32px;border-radius:10px;background:#FF4D8D;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:16px;font-weight:900;box-shadow:0 4px 12px rgba(255,77,141,.22)}
.pe-nav .menu{list-style:none;margin:0;padding:0;display:flex;flex-direction:row;align-items:center;gap:4px}
.pe-nav .menu li{list-style:none;margin:0;padding:0}
.pe-nav .menu li a{display:inline-block;text-decoration:none;color:#6B7280;font-size:14px;font-weight:600;padding:9px 14px;border-radius:999px;transition:.18s}
.pe-nav .menu li a:hover{background:#FFE9F2;color:#5B6CFF}
.pe-nav .menu li a.on{background:#FF4D8D;color:#fff;box-shadow:0 4px 12px rgba(255,77,141,.25)}
.pe-nav .nav-actions{display:flex;flex-direction:row;align-items:center;gap:10px;flex-shrink:0}
.pe-nav .avatar-mini{display:inline-block;width:36px;height:36px;border-radius:50%;background-size:cover;background-position:center;background-repeat:no-repeat;border:2px solid #fff;box-shadow:0 3px 10px rgba(255,77,141,.18);cursor:pointer;text-decoration:none}
.pe-nav.on{box-shadow:0 4px 22px rgba(255,77,141,.08)}

/* 桌面端：导航菜单一字排开；登录/注册按钮正常显示 */
@media (min-width: 769px) {
  .pe-nav .menu{gap:2px}
  .pe-nav{padding:12px 40px}
}
/* 平板 & 手机：【核心修复】隐藏 ul.menu（显示圆点 + 蓝色链接 的根因），缩小 nav padding */
@media (max-width: 768px) {
  .pe-nav{padding:10px 16px}
  .pe-nav .menu{display:none !important}   /* <= 移动端导航菜单绝对不显示 */
  .pe-nav .nav-actions .btn{padding:9px 14px;font-size:13px;min-height:38px}
  .pe-nav .nav-actions .btn.secondary{padding:8px 12px}
}
