/* ========================================
   XinYu Theme - 暖珊瑚色调社交着陆页
   ======================================== */

/* --- CSS Variables --- */
:root {
  --color-primary: #e8614d;
  --color-primary-light: rgba(232, 97, 77, 0.1);
  --color-primary-dark: #d4503e;
  --color-primary-fg: #fff;
  --color-bg: #fdf9f7;
  --color-fg: #3d2b24;
  --color-card: #ffffff;
  --color-card-fg: #3d2b24;
  --color-muted: #948580;
  --color-border: #ede5e2;
  --color-accent: #f5ece8;
  --color-accent-fg: #7a4a3c;
  --color-secondary: #faf3f0;
  --color-secondary-fg: #6b4a3f;
  --radius: 1rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 249, 247, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-logo .icon-heart {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  fill: var(--color-primary);
}

.header-logo .brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.header-nav .nav-link,
.header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.2s;
  position: relative;
}

.header-nav .nav-link:hover,
.header-nav a:hover {
  color: var(--color-primary);
}

.header-nav .nav-link.active {
  color: var(--color-primary);
}

.header-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(232, 97, 77, 0.4);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: background 0.2s, color 0.2s;
}

.btn-login:hover {
  background: var(--color-primary-light);
}

.btn-lang {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.2s;
}

.btn-lang:hover {
  color: var(--color-fg);
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(253,249,247,0.3), rgba(253,249,247,0.2), rgba(253,249,247,0.7));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 768px;
  margin: 0 auto;
  padding: 4rem 1.5rem 0;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-subtitle {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(61, 43, 36, 0.7);
}

.hero-stats {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  padding: 0 1.5rem;
  border-right: 1px solid var(--color-border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: rgba(61, 43, 36, 0.6);
}

.hero-cta {
  margin-top: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--color-primary);
  color: var(--color-primary-fg);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(232, 97, 77, 0.3);
  transition: transform 0.2s;
}

.btn-primary:hover {
  transform: scale(1.05);
}

.btn-primary svg {
  transition: transform 0.2s;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  color: rgba(61, 43, 36, 0.5);
}

.hero-scroll-hint p {
  font-size: 0.875rem;
}

.hero-scroll-hint .bounce {
  margin: 0.5rem auto 0;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --- Section Common --- */
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-header {
  text-align: center;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-subtitle {
  margin-top: 0.75rem;
  color: var(--color-muted);
}

.section-more {
  margin-top: 2rem;
  text-align: center;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(232, 97, 77, 0.4);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: background 0.2s;
}

.btn-outline:hover {
  background: var(--color-primary-light);
}

/* --- Discover Section --- */
.discover-section {
  padding: 5rem 0;
}

.filter-tabs {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--color-secondary);
  color: var(--color-secondary-fg);
  transition: background 0.2s, color 0.2s;
}

.filter-btn:hover {
  background: var(--color-accent);
}

.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-primary-fg);
}

/* --- Profile Cards Grid --- */
.profiles-grid {
  margin-top: 3rem;
  columns: 1;
  gap: 1.5rem;
}

.profile-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}

.profile-card:hover {
  box-shadow: var(--shadow-md);
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.profile-card:hover .card-image img {
  transform: scale(1.05);
}

.online-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: rgba(61, 43, 36, 0.7);
  color: var(--color-bg);
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}

.card-body {
  padding: 1rem;
}

.card-meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.card-name {
  font-size: 1rem;
  font-weight: 600;
}

.card-name a {
  color: inherit;
  transition: color 0.2s;
}

.card-name a:hover {
  color: var(--color-primary);
}

.card-age {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.card-distance {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
}

.card-bio {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(61, 43, 36, 0.8);
}

.card-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent-fg);
}

.tag a {
  color: inherit;
}

.card-footer {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-muted);
}

@media (min-width: 640px) {
  .profiles-grid {
    columns: 2;
  }
}

@media (min-width: 1024px) {
  .profiles-grid {
    columns: 3;
  }
}

@media (min-width: 1280px) {
  .profiles-grid {
    columns: 4;
  }
}

/* --- Features Section --- */
.features-section {
  padding: 5rem 0;
  background: var(--color-accent);
}

.features-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--color-primary-light);
}

.feature-icon svg {
  color: var(--color-primary);
  stroke: var(--color-primary);
}

.feature-title {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.feature-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-muted);
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Moments Section --- */
.moments-section {
  padding: 5rem 0;
}

.moments-scroll {
  margin-top: 3rem;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.moments-scroll::-webkit-scrollbar {
  display: none;
}

.moment-card {
  flex-shrink: 0;
  width: 288px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}

.moment-card:hover {
  box-shadow: var(--shadow-md);
}

.moment-image {
  width: 100%;
  height: 192px;
  object-fit: cover;
}

.moment-body {
  padding: 1rem;
}

.moment-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.moment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.moment-name {
  font-size: 0.875rem;
  font-weight: 600;
}

.moment-time {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.moment-text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(61, 43, 36, 0.8);
}

.moment-location {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* --- CTA Section --- */
.cta-section {
  padding: 6rem 0;
  background: var(--color-primary);
}

.cta-inner {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.cta-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-primary-fg);
  text-wrap: balance;
}

.cta-subtitle {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
}

.cta-action {
  margin-top: 2.5rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--color-bg);
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s;
}

.btn-cta:hover {
  transform: scale(1.05);
}

.btn-cta:hover svg {
  transform: translateX(4px);
}

.btn-cta svg {
  transition: transform 0.2s;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: 3rem 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo .icon-heart {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  fill: var(--color-primary);
}

.footer-logo .brand-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--color-muted);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--color-primary);
}

.footer-copyright,
.footer-powered,
.footer-copyright-zblog {
  font-size: 0.875rem;
  color: var(--color-muted);
  text-align: center;
}

.footer-powered a {
  color: var(--color-primary);
}

/* --- Page Layout (list / single) --- */
.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 1rem 3rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.sidebar-area {
  display: none;
}

@media (min-width: 1024px) {
  .page-container {
    grid-template-columns: 1fr 300px;
    padding: 6rem 1.5rem 3rem;
  }
  .sidebar-area {
    display: block;
  }
}

/* --- Sidebar --- */
.sidebar-area .module {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-card);
}

.sidebar-area .module h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-area .module ul {
  list-style: none;
}

.sidebar-area .module li {
  padding: 0.375rem 0;
}

.sidebar-area .module a {
  font-size: 0.875rem;
  color: var(--color-fg);
  transition: color 0.2s;
}

.sidebar-area .module a:hover {
  color: var(--color-primary);
}

/* --- Post Single --- */
.post-single {
  background: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 2rem;
}

.post-header {
  margin-bottom: 1.5rem;
}

.post-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}

.post-meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.post-tags {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-thumb {
  margin-bottom: 1.5rem;
  border-radius: calc(var(--radius) * 0.8);
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  object-fit: cover;
}

.post-content {
  font-size: 1rem;
  line-height: 1.8;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content img {
  border-radius: calc(var(--radius) * 0.6);
  margin: 1rem 0;
}

.post-content h2, .post-content h3 {
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
}

.post-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.post-content blockquote {
  margin: 1rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--color-primary);
  background: var(--color-accent);
  border-radius: 0 calc(var(--radius) * 0.5) calc(var(--radius) * 0.5) 0;
}

.post-nav {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.post-nav a {
  font-size: 0.875rem;
  color: var(--color-primary);
  transition: opacity 0.2s;
}

.post-nav a:hover {
  opacity: 0.7;
}

/* --- Comments --- */
.comments-section {
  margin-top: 2rem;
  background: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 2rem;
}

.comments-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.comment-form {
  margin-bottom: 2rem;
}

.form-row {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.form-input {
  flex: 1;
  min-width: 120px;
  padding: 0.625rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) * 0.6);
  font-size: 0.875rem;
  background: var(--color-bg);
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) * 0.6);
  font-size: 0.875rem;
  background: var(--color-bg);
  resize: vertical;
  transition: border-color 0.2s;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comment-item {
  display: flex;
  gap: 0.75rem;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.375rem;
}

.comment-author {
  font-size: 0.875rem;
  font-weight: 600;
}

.comment-date {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.comment-text {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* --- Pagebar --- */
.pagebar {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pagebar a,
.pagebar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.75rem;
  border-radius: calc(var(--radius) * 0.5);
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  transition: background 0.2s, color 0.2s;
}

.pagebar a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.pagebar .now,
.pagebar span.now {
  background: var(--color-primary);
  color: var(--color-primary-fg);
  border-color: var(--color-primary);
}

/* --- 404 Page --- */
.error-container {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.error-message {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.error-hint {
  margin-top: 0.5rem;
  color: var(--color-muted);
}

.error-container .btn-primary {
  margin-top: 2rem;
}

/* --- Search Header --- */
.search-header {
  margin-bottom: 2rem;
}

/* --- Navbar module override --- */
.header-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.header-nav ul li a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.2s;
}

.header-nav ul li a:hover {
  color: var(--color-primary);
}

@media (min-width: 640px) {
  .section-inner {
    padding: 0 1.5rem;
  }
}

/* --- Scroll Reveal Animations (增加停留时间) --- */
.feature-card,
.profile-card,
.moment-card,
.section-header,
.cta-inner {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.revealed,
.profile-card.revealed,
.moment-card.revealed,
.section-header.revealed,
.cta-inner.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 交错延迟 */
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }

.moment-card:nth-child(2) { transition-delay: 0.1s; }
.moment-card:nth-child(3) { transition-delay: 0.15s; }
.moment-card:nth-child(4) { transition-delay: 0.2s; }
.moment-card:nth-child(5) { transition-delay: 0.25s; }

/* Hero 渐入序列 */
.hero-title {
  opacity: 0;
  animation: heroFadeIn 0.8s ease forwards;
}

.hero-subtitle,
.hero-stats,
.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-subtitle.revealed,
.hero-stats.revealed,
.hero-cta.revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 动态区域 hover 互动效果 --- */
.moment-card {
  cursor: pointer;
}

.moment-card:hover .moment-image {
  transform: scale(1.03);
}

.moment-image {
  transition: transform 0.4s ease;
}

/* --- Profile Card 互动 --- */
.profile-card {
  cursor: pointer;
}

.profile-card:hover .card-name {
  color: var(--color-primary);
}

/* --- Modal 弹窗（点击卡片查看大图） --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  max-width: 480px;
  width: 100%;
  background: var(--color-card);
  border-radius: calc(var(--radius) * 1.2);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.modal-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.modal-info {
  padding: 1.5rem;
}

.modal-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-meta {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-primary);
}

.modal-bio {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(61, 43, 36, 0.8);
}

.modal-cta {
  margin-top: 1.25rem;
}

.modal-cta .btn-primary {
  width: 100%;
  justify-content: center;
}

/* --- 分批加载隐藏卡片 --- */
.profile-card.card-hidden {
  display: none;
}

#loadMoreBtn:disabled {
  cursor: default;
}
