/* ============================================
   恒美婚恋 - 官方网站样式
   设计风格：年轻、现代、活泼（清新鲜玫瑰珊瑚调）
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #F43F5E;
  --primary-light: #FB7185;
  --primary-dark: #E11D48;
  --accent: #F59E0B;
  --accent-light: #FBBF24;
  --gradient: linear-gradient(135deg, #F43F5E 0%, #FB7185 100%);
  --gradient-gold: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
  --bg-white: #FFFFFF;
  --bg-light: #FFF7F8;
  --bg-gray: #FFF1F2;
  --text-dark: #1F2430;
  --text-gray: #5B6472;
  --text-light: #9AA3B2;
  --border: #FBE0E5;
  --shadow: 0 2px 15px rgba(244, 63, 94, 0.08);
  --shadow-hover: 0 8px 30px rgba(244, 63, 94, 0.16);
  --shadow-card: 0 1px 8px rgba(244, 63, 94, 0.06);
  --radius: 4px;
  --radius-lg: 8px;
  --transition: all 0.3s ease;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
input, button, textarea, select { font-family: inherit; font-size: inherit; outline: none; border: none; }

/* --- Layout --- */
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-light);
}

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

.section-title h2 {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-title p {
  font-size: 1.05rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

.section-title .title-line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 20px auto 0;
  border-radius: 2px;
}

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  transition: background 0.35s ease, box-shadow 0.3s ease, backdrop-filter 0.35s ease;
}

.navbar.nav-visible {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* On non-home pages, navbar is always solid */
.navbar.nav-solid {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-logo .logo-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1px;
  transition: color 0.35s ease;
}

/* Transparent navbar (homepage first screen) */
.navbar:not(.nav-visible):not(.nav-solid) .nav-logo .logo-text {
  color: white;
}

.navbar:not(.nav-visible):not(.nav-solid) .nav-menu a {
  color: rgba(255, 255, 255, 0.9);
}

.navbar:not(.nav-visible):not(.nav-solid) .nav-menu a:hover,
.navbar:not(.nav-visible):not(.nav-solid) .nav-menu a.active {
  color: white;
}

.navbar:not(.nav-visible):not(.nav-solid) .nav-toggle span {
  background: white;
}

.navbar:not(.nav-visible):not(.nav-solid) .btn-primary {
  background: white;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu a {
  font-size: 0.9rem;
  color: var(--text-gray);
  font-weight: 400;
  letter-spacing: 0.3px;
  position: relative;
  padding: 4px 0;
}

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

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 3px;
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
  border-color: white;
}

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

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

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: url('../images/hero-bg.jpg') center center / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  /* 不用全幅暗蒙板：仅在文字侧做轻薄渐变压暗，保持背景图透亮 */
  background: linear-gradient(90deg, rgba(15, 12, 25, 0.42) 0%, rgba(15, 12, 25, 0.18) 42%, rgba(15, 12, 25, 0) 68%);
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-text {
  color: white;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: 2px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.hero-text h1 strong {
  font-weight: 700;
}

.hero-text .hero-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  opacity: 0.95;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-text .hero-desc {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Hero Form Card --- */
.hero-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  border-top: 3px solid var(--accent);
}

.hero-form-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.hero-form-card .form-desc {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 24px;
}

.hero-form-card .form-group {
  margin-bottom: 16px;
}

.hero-form-card .form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.hero-form-card .form-control {
  padding: 10px 14px;
  font-size: 0.9rem;
}

.hero-form-card .btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.hero-form-card .btn-submit:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.3);
}

.hero-form-card .skip-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-light);
  text-decoration: underline;
  cursor: pointer;
}

/* --- Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 40px 24px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.7;
}

/* --- Process Section --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--border);
}

.process-item {
  text-align: center;
  position: relative;
}

.process-num {
  width: 48px;
  height: 48px;
  background: white;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.process-item:hover .process-num {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.process-item .process-emoji {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.process-item h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.process-item p {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* --- About / Split Section --- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.split-content h2 {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.split-content h2 strong {
  font-weight: 700;
}

.split-content p {
  color: var(--text-gray);
  line-height: 1.9;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.split-content ul {
  margin: 24px 0;
}

.split-content ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--text-gray);
}

.split-content ul li .check-icon {
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* --- Stats Section --- */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #7A1025 100%);
  padding: 70px 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  color: white;
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 300;
}

/* --- Cards --- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

/* --- Page Header --- */
.page-header {
  background: var(--primary);
  padding: 140px 0 70px;
  color: white;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1rem;
  opacity: 0.85;
  font-weight: 300;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group label .required {
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  transition: var(--transition);
  background: white;
  color: var(--text-dark);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

.form-control::placeholder {
  color: var(--text-light);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.form-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-section h3 .section-icon {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
}

/* --- Footer --- */
.footer {
  background: #1A0808;
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .footer-logo img {
  height: 36px;
}

.footer-brand .footer-logo span {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  opacity: 0.7;
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  opacity: 0.6;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.5;
}

/* --- Dashboard Layout --- */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 72px;
}

.dashboard-sidebar {
  width: 240px;
  background: white;
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: fixed;
  top: 72px;
  bottom: 0;
  overflow-y: auto;
}

.sidebar-menu { padding: 0 12px; }

.sidebar-menu .menu-group { margin-bottom: 28px; }

.sidebar-menu .menu-group-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0 16px;
  margin-bottom: 10px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-gray);
  transition: var(--transition);
}

.sidebar-menu a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.sidebar-menu a.active {
  background: rgba(244, 63, 94, 0.08);
  color: var(--primary);
  font-weight: 500;
}

.sidebar-menu a .menu-icon {
  width: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.dashboard-main {
  flex: 1;
  margin-left: 240px;
  padding: 32px;
  background: var(--bg-light);
}

.dashboard-header { margin-bottom: 32px; }

.dashboard-header h1 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-dark);
}

.dashboard-header p {
  color: var(--text-gray);
  font-size: 0.88rem;
  margin-top: 4px;
}

/* --- Dashboard Stats Cards --- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-card .stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-card .stat-card-info h4 {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 400;
}

.stat-card .stat-card-info .stat-card-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 4px;
}

/* --- Data Table --- */
.data-table {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

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

.data-table-header h3 {
  font-size: 1rem;
  font-weight: 500;
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
}

.data-table table th {
  background: var(--bg-light);
  padding: 12px 20px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table table td {
  padding: 14px 20px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--bg-light);
}

.data-table table tr:hover {
  background: var(--bg-light);
}

/* --- Status Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-success { background: #FFF8E1; color: #8B6914; }
.badge-warning { background: #FFF3E0; color: #E65100; }
.badge-info { background: #FFF0F0; color: var(--primary); }
.badge-danger { background: #FFEBEE; color: #C62828; }
.badge-default { background: var(--bg-gray); color: var(--text-gray); }

/* --- User Status Steps --- */
.status-steps {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
  position: relative;
}

.status-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--border);
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.status-step .step-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
  transition: var(--transition);
  border: 2px solid var(--border);
}

.status-step.completed .step-dot {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.status-step.active .step-dot {
  background: white;
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.status-step .step-label {
  font-size: 0.82rem;
  color: var(--text-light);
}

.status-step.completed .step-label,
.status-step.active .step-label {
  color: var(--primary);
  font-weight: 500;
}

/* --- Story Carousel（成功故事轮播：一排 3 个卡片翻页） --- */
.story-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 4px;
}

.story-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-page {
  min-width: 100%;
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.story-page .story-card {
  flex: 0 0 calc((100% - 48px) / 3);
}

.story-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.story-nav:hover {
  background: var(--primary);
  color: #fff;
}

.story-prev { left: -14px; }
.story-next { right: -14px; }

.story-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.story-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #E5D3D8;
  cursor: pointer;
  transition: var(--transition);
}

.story-dots span.active {
  width: 22px;
  background: var(--primary);
}

/* --- Story Cards --- */
.story-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.story-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.story-avatars {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  overflow: hidden;
  flex-shrink: 0;
}

.story-avatar.male {
  background: var(--primary);
}

.story-avatar.female {
  background: var(--accent);
}

.story-heart {
  color: var(--primary);
  font-size: 1rem;
}

.story-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.story-date {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.2; /* 显式行高：有无日期高度一致，卡片跨行等高 */
  min-height: 1.2em; /* 日期为空时也占位，保证卡片头部高度一致 */
}

.story-tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  background: #FFF0F0;
  color: var(--primary);
  border-radius: 12px;
  font-weight: 500;
}

.story-content {
  margin-bottom: 16px;
  flex: none;
  height: calc(0.88rem * 1.7 * 3); /* 固定三行文字高度：卡片尺寸不受文字多少影响（跨行也一致） */
  min-width: 0;
}

/* 固定三行文字高度：卡片尺寸不受文字多少影响（跨行也一致） */
.story-content p {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.7;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  height: calc(0.88rem * 1.7 * 3);
  margin: 0;
}

.story-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-light);
  min-width: 0;
}
.story-footer span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Story cover photo（固定高度：有无图片/图片比例均不影响卡片尺寸） */
.story-cover {
  margin: -28px -24px 16px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  height: 180px;
  flex-shrink: 0;
}
.story-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-cover-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFF0F0, #FFE4E9);
  font-size: 2.6rem;
}

/* Story avatar with image */
.story-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.story-avatar span {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Story status tags */
.story-tag.tag-1 { background: #FFF8E1; color: #8B6914; }
.story-tag.tag-2 { background: #FFF0F0; color: var(--primary); }
.story-tag.tag-3 { background: #FFF0E0; color: #B8450B; }

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.tab {
  padding: 12px 24px;
  font-size: 0.88rem;
  color: var(--text-gray);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab:hover {
  color: var(--primary);
}

.tab.active {
  color: var(--primary);
  font-weight: 500;
  border-bottom-color: var(--primary);
}

/* --- Login Page --- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.login-card .login-header {
  text-align: center;
  margin-bottom: 36px;
}

.login-card .login-header .login-logo {
  margin-bottom: 16px;
}

.login-card .login-header .login-logo img {
  height: 50px;
  margin: 0 auto;
}

.login-card .login-header h2 {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-dark);
}

.login-card .login-header p {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-top: 6px;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid::before { display: none; }
  .split-section { grid-template-columns: 1fr; gap: 40px; }
  .hero .container { grid-template-columns: 1fr 360px; gap: 40px; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    gap: 16px;
  }
  .hero .container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 60px;
  }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-text { text-align: center; }
  .hero-text .hero-desc { margin: 0 auto 30px; }
  .hero-buttons { justify-content: center; }
  .hero-form-card { max-width: 420px; margin: 0 auto; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .story-page { flex-direction: column; }
  .story-page .story-card { flex: 0 0 auto; }
  .story-prev { left: 4px; }
  .story-next { right: 4px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: none; }
  .dashboard-main { margin-left: 0; }
  .section { padding: 60px 0; }
  .section-title { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.8rem; }
  .login-card { padding: 32px 24px; }
  .form-section { padding: 24px; }
  .hero-form-card { padding: 28px 22px; }
}
