/* ============================================================
 * 前台通用样式 app.css
 * 参考 OElove 婚恋网风格：浪漫、干净、专业
 * ============================================================ */

:root {
  --color-brand: #c62828;
  --color-brand-light: #e53935;
  --color-brand-dark: #8e0000;
  --color-pink: #ff80ab;
  --color-pink-soft: #fce4ec;
  --color-gold: #ffb300;
  --color-bg: #f9f9fb;
  --color-card: #ffffff;
  --color-text: #333333;
  --color-muted: #888888;
  --color-border: #eee;
  --font-body: 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: #f9f9fb;
  color: #333333;
  -webkit-font-smoothing: antialiased;
}

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

/* 顶部导航 */
.top-bar {
  background: #2c2c2c;
  color: #ccc;
  font-size: .78rem;
  padding: 4px 0;
}
.top-bar a { color: #ccc; transition: color .2s; }
.top-bar a:hover { color: #fff; }

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.navbar-brand i {
  color: #e53935;
}

/* 主导航 */
.main-nav {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 4px rgba(0,0,0,.03);
}
.main-nav .nav-link {
  font-weight: 500;
  color: #444;
  padding: .9rem 1rem;
  border-bottom: 3px solid transparent;
  transition: all .2s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: #c62828;
  border-bottom-color: #c62828;
}

/* 首页 Hero Banner */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, #8e0000 0%, #c62828 50%, #e53935 100%);
  color: #fff;
  overflow: hidden;
}
.hero-banner::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.06'%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");
  opacity: .3;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.hero-subtitle {
  font-size: 1.1rem;
  opacity: .9;
}

/* 注册框 */
.register-box {
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.15);
  padding: 1.5rem;
}
.register-box .form-label {
  font-weight: 500;
  font-size: .85rem;
  color: #555;
  margin-bottom: .25rem;
}
.register-box .btn-register {
  background: linear-gradient(135deg, #c62828, #e53935);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: .7rem;
  border-radius: .5rem;
  transition: transform .2s, box-shadow .2s;
}
.register-box .btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(198,40,40,.3);
}

/* 搜索栏 "我要找" */
.search-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: .75rem 0;
}
.search-bar label {
  font-size: .8rem;
  color: #888;
  margin-bottom: .15rem;
}
.search-bar .form-select,
.search-bar .form-control {
  border-color: #ddd;
  font-size: .9rem;
}
.search-bar .btn-search {
  background: #c62828;
  color: #fff;
  border: none;
  font-weight: 500;
  border-radius: .4rem;
}
.search-bar .btn-search:hover {
  background: #8e0000;
}

/* 卡片通用 */
.card {
  border: none;
  border-radius: .6rem;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

/* 会员卡片 */
.member-card {
  border-radius: .6rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.member-card .card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .4s ease;
}
.member-card:hover .card-img-top {
  transform: scale(1.03);
}
.member-card .card-body {
  padding: .9rem;
}
.member-card .nickname {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
}
.member-card .meta {
  font-size: .82rem;
  color: #888888;
  margin-top: .25rem;
}
.member-card .tag-list {
  margin-top: .4rem;
}
.member-card .tag-list .badge {
  font-size: .7rem;
  font-weight: 400;
  padding: .25rem .5rem;
  border-radius: 20px;
  background: #f0f0f0;
  color: #666;
  border: none;
}

/* VIP 标识 */
.badge-vip {
  background: linear-gradient(135deg, #ffb300, #ffca28);
  color: #5c3d00;
  font-weight: 600;
  font-size: .65rem;
  padding: .2rem .4rem;
  border-radius: 4px;
}

/* 性别图标颜色 */
.gender-male { color: #2196f3; }
.gender-female { color: #e91e63; }

/* 详情页 */
.profile-avatar-lg {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,.1);
}

/* 相册 */
.album-cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: .5rem;
}
.album-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: .4rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.album-thumb:hover,
.album-thumb.active {
  border-color: #c62828;
}

/* 聊天 */
.bubble-me {
  background: #c62828;
  color: #fff;
  border-bottom-right-radius: .2rem;
}
.bubble-other {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: .2rem;
}

/* 统计数字 */
.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #c62828;
}
.stat-label {
  font-size: .78rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* 页脚 */
.site-footer {
  background: #2c2c2c;
  color: #aaa;
  font-size: .85rem;
  padding: 2.5rem 0 1.5rem;
}
.site-footer a { color: #ccc; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: .9rem;
}
.site-footer .footer-bottom {
  border-top: 1px solid #444;
  margin-top: 1.5rem;
  padding-top: 1rem;
  text-align: center;
  color: #777;
  font-size: .8rem;
}

/* 按钮样式扩展 */
.btn-brand {
  background: #c62828;
  color: #fff;
  border: none;
}
.btn-brand:hover {
  background: #8e0000;
  color: #fff;
}
.btn-outline-brand {
  border-color: #c62828;
  color: #c62828;
}
.btn-outline-brand:hover {
  background: #c62828;
  color: #fff;
}

/* 表单聚焦 */
.form-control:focus,
.form-select:focus {
  border-color: #e53935;
  box-shadow: 0 0 0 .2rem rgba(198,40,40,.15);
}

/* 列表组美化 */
.list-group-item {
  border-color: #f0f0f0;
  padding: .9rem 1.1rem;
}

/* 分页 */
.page-link {
  color: #c62828;
  border-color: #eee;
}
.page-link:hover {
  color: #8e0000;
  background: #fafafa;
  border-color: #eee;
}
.page-item.active .page-link {
  background: #c62828;
  border-color: #c62828;
}

/* 全站页面标题 h4 统一加 mt-4（24px 顶部间距） */
main > h4:first-child {
  margin-top: 1.5rem;
}

/* 动画 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp .6s ease both;
}

/* 响应式微调 */
@media (max-width: 767.98px) {
  .hero-title { font-size: 1.6rem; }
  .member-card .card-img-top { height: 180px; }
  .register-box { margin-top: 1rem; }
  .search-bar .col-form-label { font-size: .75rem; }
}
