/* =====================================================
   缘遇 · 相亲活动信息平台 — 公共样式
   主题：粉紫色系 | PC 固定 1200px（非响应式）
   ===================================================== */
:root {
  --pink: #ec4899;
  --pink-light: #f9a8d4;
  --purple: #a855f7;
  --purple-deep: #7c3aed;
  --grad: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
  --grad-h: linear-gradient(90deg, #ec4899 0%, #a855f7 100%);
  --grad-text: linear-gradient(120deg, #ec4899 15%, #a855f7 85%);
  --bg-page: #faf5fc;
  --bg-card: #ffffff;
  --ink: #3b2544;
  --text: #6b5570;
  --muted: #a58fb0;
  --border: #f1e4f4;
  --green: #21b573;
  --orange: #ff9d2e;
  --shadow-soft: 0 6px 20px rgba(168, 85, 247, .10);
  --shadow-glow: 0 12px 32px rgba(236, 72, 153, .32);
  --radius: 14px;
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg-page);
  min-width: 1200px;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { display: block; border: none; }
input, select, button, textarea { font-family: inherit; outline: none; border: none; background: none; }
button { cursor: pointer; }

.container { width: 1200px; margin: 0 auto; }

/* ---------- 顶部欢迎条 ---------- */
.topbar { height: 38px; background: #3d1a56; color: #cbb3dd; font-size: 12px; }
.topbar-inner { height: 38px; display: flex; align-items: center; justify-content: space-between; }
.topbar-inner > p i { color: var(--pink-light); margin-right: 6px; }
.topbar-links { display: flex; align-items: center; }
.topbar-links a { margin-left: 22px; color: #cbb3dd; transition: color .25s; }
.topbar-links a i { margin-right: 5px; font-size: 12px; }
.topbar-links a:hover { color: #fff; }
.topbar-links a.hl { color: var(--pink-light); }

/* ---------- 头部导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 14px rgba(168, 85, 247, .10);
}
.header-inner { height: 86px; display: flex; align-items: center; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 50px; height: 50px; border-radius: 15px;
  background: var(--grad); color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(236, 72, 153, .35);
  transition: transform .3s, box-shadow .3s;
}
.logo:hover .logo-icon { transform: rotate(-8deg) scale(1.05); box-shadow: var(--shadow-glow); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text .cn {
  font-size: 27px; font-weight: 800; letter-spacing: 2px;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.logo-text .en { font-size: 10px; color: var(--muted); letter-spacing: 2.5px; }

.nav { display: flex; margin-left: 58px; gap: 42px; }
.nav a { position: relative; font-size: 16px; color: var(--text); padding: 10px 2px; transition: color .25s; }
.nav a i { margin-right: 5px; font-size: 14px; }
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 3px; border-radius: 2px;
  background: var(--grad-h); transform: translateX(-50%);
  transition: width .3s;
}
.nav a:hover, .nav a.active { color: var(--pink); font-weight: 700; }
.nav a:hover::after, .nav a.active::after { width: 30px; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-actions .btn-login { font-size: 15px; color: var(--purple-deep); }
.header-actions .btn-login i { margin-right: 6px; }
.header-actions .btn-login:hover { color: var(--pink); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 28px; border-radius: 24px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .3s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(236, 72, 153, .30); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-ghost { background: #fff; color: var(--purple-deep); border: 1px solid #e8d6f2; }
.btn-ghost:hover {
  color: var(--pink); border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, .12), 0 8px 18px rgba(236, 72, 153, .18);
  transform: translateY(-2px);
}
.btn-lg { height: 52px; padding: 0 40px; font-size: 16px; border-radius: 28px; }
.btn-block { width: 100%; }

/* ---------- 通用区块标题 ---------- */
.sec { padding: 60px 0; }
.sec-alt { background: #fff; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; }
.sec-title { display: flex; align-items: center; gap: 14px; }
.sec-title .icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--grad); color: #fff; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(236, 72, 153, .30);
}
.sec-title h2 { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: 1px; }
.sec-title .sub { display: block; margin-top: 4px; font-size: 12px; font-weight: normal; color: var(--muted); letter-spacing: 2px; }
.sec-more { font-size: 14px; color: var(--purple-deep); padding-bottom: 6px; }
.sec-more i { margin-left: 6px; transition: margin .25s; }
.sec-more:hover { color: var(--pink); }
.sec-more:hover i { margin-left: 10px; }

/* ---------- 活动卡片 ---------- */
.act-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.act-card {
  position: relative; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.act-card:hover {
  transform: translateY(-8px);
  border-color: rgba(236, 72, 153, .45);
  box-shadow: 0 0 0 1px rgba(236, 72, 153, .25), 0 18px 40px rgba(168, 85, 247, .22);
}
.act-cover { position: relative; height: 190px; overflow: hidden; }
.act-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.act-card:hover .act-cover img { transform: scale(1.08); }
.act-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: 14px;
  font-size: 12px; color: #fff; letter-spacing: 1px;
  background: rgba(124, 58, 237, .85); backdrop-filter: blur(4px);
}
.act-badge.full { background: rgba(90, 90, 105, .72); }
.act-badge.soon { background: rgba(255, 132, 32, .88); }
.act-flag {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 12px; border-radius: 14px;
  font-size: 12px; color: #fff;
  background: var(--grad); box-shadow: 0 4px 10px rgba(236, 72, 153, .4);
}
.act-body { padding: 16px 18px 18px; }
.act-type {
  display: inline-block; margin-bottom: 8px;
  padding: 2px 10px; border-radius: 4px;
  font-size: 12px; color: var(--purple-deep);
  background: #f6ecfd;
}
.act-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  height: 46px; overflow: hidden;
  font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--ink);
  transition: color .25s;
}
.act-title:hover { color: var(--pink); }
.act-meta { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted); }
.act-meta i { width: 18px; color: var(--purple); font-size: 13px; }
.act-foot {
  margin-top: 14px; padding-top: 13px;
  border-top: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.act-price { font-size: 21px; font-weight: 800; color: var(--pink); }
.act-price .free { font-size: 17px; color: var(--green); }
.act-price em { font-style: normal; font-size: 13px; font-weight: normal; }
.act-stat { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.act-stat i { margin-right: 4px; }

/* ---------- 面包屑 ---------- */
.crumb { padding: 20px 0; font-size: 13px; color: var(--muted); }
.crumb i { margin: 0 8px; font-size: 11px; }
.crumb a:hover { color: var(--pink); }
.crumb .cur { color: var(--pink); }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 30px; bottom: 60px; z-index: 300;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(236, 72, 153, .35);
  transition: transform .3s, box-shadow .3s;
}
.back-top:hover { transform: translateY(-5px); box-shadow: var(--shadow-glow); }

/* ---------- 页脚 ---------- */
.footer { margin-top: 70px; background: #3d1a56; color: #b9a0cd; }
.footer-top { display: flex; padding: 52px 0 44px; }
.footer-brand { width: 400px; padding-right: 50px; }
.footer-brand .f-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand .f-logo .logo-icon { width: 44px; height: 44px; font-size: 19px; }
.footer-brand .f-logo .cn { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: 2px; }
.footer-brand > p { font-size: 13px; line-height: 1.9; }
.f-contact { margin-top: 18px; }
.f-contact p { margin-top: 10px; font-size: 13px; }
.f-contact i { width: 22px; color: var(--pink-light); }
.footer-col { width: 220px; }
.footer-col h4 { margin-bottom: 20px; font-size: 16px; color: #fff; letter-spacing: 1px; }
.footer-col ul li { margin-bottom: 12px; font-size: 13px; }
.footer-col ul a { transition: color .25s, padding-left .25s; }
.footer-col ul a:hover { color: var(--pink-light); padding-left: 6px; }
.footer-follow { width: 200px; margin-left: auto; }
.f-social { display: flex; gap: 14px; margin-bottom: 16px; }
.f-social a {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: #d9c4ea; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.f-social a:hover {
  background: var(--grad); color: #fff; transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(236, 72, 153, .4);
}
.f-serv { font-size: 12px; line-height: 2; }
.f-serv strong { display: block; font-size: 20px; color: #fff; letter-spacing: 1px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; text-align: center; font-size: 12px; color: #8f6fa8; }
.footer-bottom a { color: #8f6fa8; }
.footer-bottom a:hover { color: var(--pink-light); }
