:root {
  --bg: #0b0a14;
  --bg-card: #15131f;
  --bg-pill: #1d1a2b;
  --border: #2a2740;
  --text: #ece9f5;
  --text-dim: #9a92b8;
  --purple: #a855f7;
  --purple-bright: #c084fc;
  --pink: #ec4899;
  --gold: #f5c542;
  --red: #ff3b3b;
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* 背景光晕 */
.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.25), transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 20px 60px;
  text-align: center;
}

/* 顶部徽章 */
.badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--bg-pill);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--purple-bright);
  font-weight: 600;
}

/* 主标题 */
.title {
  margin-top: 28px;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(120deg, #d8b4fe, #a855f7 45%, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
}

.subtitle {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 1px;
}

/* ★ 外链按钮 ★ */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 16px 38px;
  background: rgba(255, 59, 59, 0.06);
  border: 2px solid var(--red);
  border-radius: 12px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(255, 59, 59, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  animation: pulse 2s infinite;
}
.cta-link:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255, 59, 59, 0.14);
  box-shadow: 0 0 36px rgba(255, 59, 59, 0.45);
}
.cta-label { color: var(--text-dim); font-weight: 600; font-size: 18px; }
.cta-text {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 24px rgba(255, 59, 59, 0.25); }
  50% { box-shadow: 0 0 40px rgba(255, 59, 59, 0.5); }
}

/* 信息标签行 */
.meta-row {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--bg-pill);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
}
.meta-pill i { font-style: normal; }

/* 工具栏 */
.toolbar {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 22px;
  background: linear-gradient(90deg, rgba(168,85,247,0.08), rgba(236,72,153,0.06));
  border: 1px solid var(--border);
  border-radius: 16px;
}
.vote-pool {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-dim);
}
.vote-pool strong {
  font-size: 22px;
  color: var(--text);
  font-weight: 800;
}
.sort-tabs { display: flex; gap: 8px; }
.sort-btn {
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sort-btn.active {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

/* 模特卡片网格 */
.cards-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--purple); }
.card-photo {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;        /* 任意尺寸图片自动裁剪铺满，不变形 */
  object-position: center;
  display: block;
}
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
}
.rank-badge.gold   { background: linear-gradient(135deg, #ffd86b, #f5a623); color:#3a2a00; }
.rank-badge.silver { background: linear-gradient(135deg, #e8e8ef, #aeb4c2); color:#2a2a35; }
.rank-badge.bronze { background: linear-gradient(135deg, #f0a878, #c97b3f); color:#3a1f00; }
.card-body { padding: 14px 16px 18px; }
.card-name { font-size: 17px; font-weight: 700; }
.card-country { margin-top: 4px; font-size: 12px; color: var(--text-dim); }
.card-votes {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gold);
  font-weight: 700;
}
.vote-btn {
  margin-top: 12px;
  width: 100%;
  padding: 8px 0;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.vote-btn:hover { opacity: 0.88; }

/* 排行榜表格 */
.rank-section {
  margin-top: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  text-align: left;
}
.rank-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.rank-head h2 { font-size: 18px; font-weight: 700; }
.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4ade80;
}
.live-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: blink 1.4s infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th, .rank-table td {
  padding: 13px 12px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.rank-table th { color: var(--text-dim); font-weight: 600; font-size: 12px; }
.rank-table td:last-child { color: var(--gold); font-weight: 700; }
.rank-table tr:last-child td { border-bottom: none; }
.rank-num {
  display: inline-block;
  width: 24px; height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 6px;
  background: var(--bg-pill);
  font-weight: 700;
  font-size: 12px;
}
.rank-num.top { background: linear-gradient(135deg, var(--purple), var(--pink)); color:#fff; }

/* 页脚 */
.footer {
  margin-top: 46px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 2;
}
.footer .copy { opacity: 0.7; }

/* 响应式 */
@media (max-width: 880px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .title { font-size: 40px; }
}
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .title { font-size: 32px; }
  .cta-link { font-size: 18px; padding: 14px 26px; }
  .toolbar { flex-direction: column; align-items: stretch; }
}
