/* ============ 快乐岛社区网站 - 前台公共样式 ============ */
:root {
  --primary: #27ae60;
  --primary-dark: #1e8449;
  --primary-light: #2ecc71;
  --secondary: #16a085;
  --secondary-dark: #0e6b47;
  --accent: #3498db;
  --warning: #f1c40f;
  --danger: #e74c3c;
  --success: #2ecc71;
  --bg: #fdf8f3;
  --bg-card: #ffffff;
  --bg-soft: #fef3e6;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --text-muted: #95a5a6;
  --border: #ecf0f1;
  --shadow-sm: 0 2px 8px rgba(230, 126, 34, 0.08);
  --shadow: 0 4px 20px rgba(230, 126, 34, 0.12);
  --shadow-lg: 0 8px 40px rgba(230, 126, 34, 0.18);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.main { flex: 1; padding: 40px 0; }

/* ============ 顶部导航 ============ */
.navbar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}
.logo-icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.nav-menu {
  display: flex;
  gap: 8px;
}
.nav-menu a {
  color: rgba(255,255,255,0.92);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.25s;
  position: relative;
}
.nav-menu a:hover, .nav-menu a.active {
  background: rgba(255,255,255,0.22);
  color: #fff;
  transform: translateY(-1px);
}
.nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
}

/* ============ 轮播图 ============ */
.carousel {
  position: relative;
  width: 100%;
  height: 440px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
}
.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
}
.carousel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.carousel-content {
  position: relative;
  z-index: 2;
  padding: 40px 60px;
  color: #fff;
  max-width: 700px;
}
.carousel-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.carousel-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}
.carousel-desc {
  font-size: 16px;
  opacity: 0.9;
}
.carousel-dots {
  position: absolute;
  bottom: 24px;
  right: 40px;
  display: flex;
  gap: 10px;
  z-index: 3;
}
.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all 0.3s;
}
.carousel-dot.active {
  background: #fff;
  width: 32px;
  border-radius: 5px;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.3s;
}
.carousel-arrow:hover { background: rgba(255,255,255,0.35); }
.carousel-arrow.prev { left: 24px; }
.carousel-arrow.next { right: 24px; }

/* ============ 快捷入口 ============ */
.quick-entry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.quick-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}
.quick-card::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, var(--bg-soft) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.quick-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.quick-card:hover::before { opacity: 1; }
.quick-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  position: relative;
  z-index: 1;
}
.quick-icon.i1 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.quick-icon.i2 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.quick-icon.i3 { background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%); }
.quick-icon.i4 { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); }
.quick-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  z-index: 1;
}
.quick-sub {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

/* ============ 板块标题 ============ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}
.section-title::before {
  content: "";
  width: 5px;
  height: 28px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 3px;
}
.section-more {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.section-more:hover { gap: 8px; }

/* ============ 投票提醒横幅 ============ */
.vote-banner {
  background: linear-gradient(135deg, #fff5eb 0%, #ffe8d1 100%);
  border: 1px solid #ffd5a8;
  border-radius: var(--radius);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  animation: pulseBanner 2.5s ease-in-out infinite;
}
@keyframes pulseBanner {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.2); }
  50% { box-shadow: 0 0 0 10px rgba(230, 126, 34, 0); }
}
.vote-banner-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.vote-banner-icon {
  width: 52px; height: 52px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  animation: ring 2s ease-in-out infinite;
}
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(-15deg); }
  20%, 40% { transform: rotate(15deg); }
}
.vote-banner-title { font-size: 18px; font-weight: 600; color: var(--primary-dark); }
.vote-banner-desc { font-size: 14px; color: #b36b24; margin-top: 2px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
  gap: 6px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(230, 126, 34, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230, 126, 34, 0.45); }
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary-light);
}
.btn-secondary:hover { background: var(--bg-soft); }
.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, var(--secondary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(46, 204, 113, 0.35);
}
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ============ 双列布局 ============ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.section-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.news-list, .notice-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news-item, .notice-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  transition: all 0.25s;
  cursor: pointer;
}
.news-item:hover, .notice-item:hover {
  background: var(--bg-soft);
  transform: translateX(4px);
}
.news-thumb {
  width: 120px; height: 90px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.news-body { flex: 1; min-width: 0; }
.news-title, .notice-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-summary {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.news-meta, .notice-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.notice-body { flex: 1; min-width: 0; }
.notice-cat {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}
.notice-cat.wy { background: #ffeaa7; color: #d68910; }
.notice-cat.jwh { background: #d6eaf8; color: #2471a3; }
.notice-cat.bm { background: #d5f5e3; color: #1e8449; }
.notice-tag-top {
  display: inline-block;
  padding: 2px 8px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ============ 分类筛选 ============ */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 8px 22px;
  border-radius: 30px;
  background: #fff;
  border: 1.5px solid var(--border);
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
  transition: all 0.25s;
}
.filter-chip:hover { border-color: var(--primary-light); color: var(--primary); }
.filter-chip.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

/* ============ 列表页 ============ */
.page-header {
  padding: 60px 0 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}
.page-header p {
  font-size: 15px;
  opacity: 0.88;
  position: relative;
}

/* 新闻图文列表 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.news-card-cover {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.news-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-summary {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.read-more {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.read-more:hover { gap: 8px; }

/* 通知列表 */
.notice-page-list {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.notice-page-item {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  transition: all 0.25s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
}
.notice-page-item:last-child { border-bottom: none; }
.notice-page-item:hover {
  background: var(--bg-soft);
  padding-left: 40px;
}
.notice-page-date {
  text-align: center;
  min-width: 72px;
  padding: 12px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.notice-page-day {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.notice-page-month {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}
.notice-page-body { flex: 1; min-width: 0; }
.notice-page-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.notice-page-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* 活动卡片 */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.activity-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s;
  cursor: pointer;
}
.activity-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg);
}
.activity-cover {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.activity-time-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
.activity-body { padding: 24px; }
.activity-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.activity-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}
.activity-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.activity-count {
  font-size: 13px;
  color: var(--text-muted);
}
.activity-count strong { color: var(--primary); font-size: 18px; margin: 0 2px; }

/* 招领启事标签页 */
.tabs {
  display: flex;
  gap: 4px;
  background: #fff;
  padding: 6px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  width: fit-content;
}
.tab {
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.25s;
}
.tab:hover { color: var(--primary); }
.tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(230, 126, 34, 0.3);
}
.found-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.found-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
}
.found-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
}
.found-card.solved { opacity: 0.65; }
.found-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.found-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  padding-right: 12px;
}
.found-status {
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.found-status.active { background: #d5f5e3; color: #1e8449; }
.found-status.solved { background: #f2f3f4; color: #7f8c8d; }
.found-cat {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 10px;
}
.found-cat.found { background: #fdebd0; color: #af601a; }
.found-cat.lost { background: #fadbd8; color: #a93226; }
.found-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.found-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

/* 投票 */
.vote-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.vote-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  transition: all 0.25s;
  cursor: pointer;
}
.vote-card:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
}
.vote-card.ended { border-left-color: var(--text-muted); opacity: 0.85; }
.vote-row1 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.vote-topic {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}
.vote-deadline {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 14px;
  white-space: nowrap;
  font-weight: 500;
}
.vote-deadline.active { background: #fdebd0; color: #af601a; }
.vote-deadline.ended { background: #f2f3f4; color: #7f8c8d; }
.vote-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 18px;
  line-height: 1.7;
}
.vote-info {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.vote-info span { display: flex; align-items: center; gap: 4px; }

/* ============ 详情页 ============ */
.detail-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  box-shadow: var(--shadow-sm);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 24px;
  font-weight: 500;
}
.back-link:hover { gap: 10px; }
.detail-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 20px;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
}
.detail-meta .author {
  color: var(--primary);
  font-weight: 600;
}
.detail-gallery {
  margin-bottom: 32px;
  border-radius: var(--radius);
  overflow: hidden;
}
.detail-gallery-main {
  height: 420px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.detail-gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
}
.detail-gallery-thumbs div {
  width: 100px; height: 72px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.detail-gallery-thumbs div:hover,
.detail-gallery-thumbs div.active {
  border-color: var(--primary);
  transform: scale(1.05);
}
.detail-content {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
}
.detail-content p { margin-bottom: 18px; }
.detail-content img {
  border-radius: var(--radius);
  margin: 20px 0;
}
.detail-info-box {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.detail-info-item strong {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
  font-weight: 500;
}
.detail-info-item span {
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}

/* 报名表单 */
.signup-form {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 40px;
}
.signup-form h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group label .req { color: var(--danger); margin-left: 2px; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.2s;
  background: #fff;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.12);
}
.form-textarea { resize: vertical; min-height: 120px; }
.phone-mask {
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
}

/* 投票详情 */
.vote-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 32px 0;
}
.vote-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: #fafafa;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.vote-option:hover {
  border-color: var(--primary-light);
  background: var(--bg-soft);
}
.vote-option.selected {
  border-color: var(--primary);
  background: var(--bg-soft);
}
.vote-option-radio {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2.5px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.vote-option.selected .vote-option-radio {
  border-color: var(--primary);
}
.vote-option.selected .vote-option-radio::after {
  content: "";
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 50%;
}
.vote-option-checkbox {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2.5px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.vote-option.selected .vote-option-checkbox {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.vote-option.selected .vote-option-checkbox::after { content: "✓"; }
.vote-option-text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}
.vote-result-bar {
  height: 10px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 10px;
  position: relative;
}
.vote-result-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 5px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.vote-result-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-light);
}
.vote-result-stats strong { color: var(--primary); font-size: 15px; }

/* 联系电话脱敏 */
.contact-card {
  background: linear-gradient(135deg, #d5f5e3 0%, #abebc6 100%);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.contact-card.solved {
  background: linear-gradient(135deg, #f2f3f4 0%, #d5dbdb 100%);
}
.contact-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.contact-name { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.contact-phone { font-size: 18px; font-weight: 700; color: var(--secondary-dark); letter-spacing: 1px; }

/* ============ 分页 ============ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}
.pagination button {
  min-width: 40px; height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.pagination button:hover:not(:disabled) {
  border-color: var(--primary-light);
  color: var(--primary);
}
.pagination button.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border-color: transparent;
}
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============ Toast 提示 ============ */
.toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  background: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--accent); }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-mask.show { display: flex; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modalIn {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-body {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}
.modal-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.modal-stat {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.modal-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.modal-stat-label {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
}
.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ============ 页脚 ============ */
.footer {
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 24px;
  margin-top: auto;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.footer-contact span { display: flex; align-items: center; gap: 8px; }
.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  padding: 5px 0;
  transition: all 0.2s;
}
.footer-col a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ============ 空状态 ============ */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-icon {
  font-size: 72px;
  margin-bottom: 20px;
  opacity: 0.5;
}
.empty-title {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.empty-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .quick-entry { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .carousel { height: 360px; }
  .carousel-title { font-size: 28px; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav-menu { display: none; }
  .carousel { height: 280px; border-radius: var(--radius); }
  .carousel-content { padding: 24px; }
  .carousel-title { font-size: 22px; }
  .carousel-desc { font-size: 13px; }
  .quick-entry { gap: 16px; }
  .quick-card { padding: 24px 16px; }
  .quick-icon { width: 56px; height: 56px; font-size: 24px; border-radius: 18px; }
  .quick-title { font-size: 15px; }
  .news-grid, .found-grid { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
  .detail-wrap { padding: 28px 20px; }
  .detail-title { font-size: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .detail-info-box { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .vote-banner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .two-col { gap: 24px; }
  .section-card { padding: 24px; }
  .page-header h1 { font-size: 28px; }
}
