:root {
  --bg: #0b0b11;
  --card: #16161f;
  --card2: #1c1c27;
  --line: #2a2a3a;
  --txt: #e8e6df;
  --dim: #9a97a8;
  --gold: #d4af37;
  --gold2: #f0d78a;
  --green: #3fae6a;
  --yellow: #d8b84a;
  --blue: #4a8fd8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 20% -10%, #1a1626 0%, transparent 60%),
    var(--bg);
  color: var(--txt);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  min-height: 100vh;
}

/* ===== Hero ===== */
.hero {
  padding: 34px 16px 10px;
  text-align: center;
}

.hero-top h1 {
  margin: 0;
  font-size: 40px;
  letter-spacing: 2px;
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(212, 175, 55, .25);
}

.hero-top .sub {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 14px;
  letter-spacing: 3px;
}

.stats {
  margin: 16px auto 0;
  display: flex;
  justify-content: center;
  gap: 34px;
  color: var(--dim);
  font-size: 14px;
}

.stats b {
  font-size: 26px;
  color: var(--gold2);
  margin-right: 6px;
  font-weight: 700;
}

.controls {
  max-width: 920px;
  margin: 18px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#search {
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--txt);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

#search::placeholder { color: var(--dim); }
#search:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .18);
}

.toolbar {
  display: flex;
  justify-content: flex-end;
}

.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card2);
  color: var(--dim);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s;
}

.chip:hover { color: var(--txt); border-color: var(--gold); }

.chip.on {
  color: var(--gold2);
  border-color: var(--gold);
  background: rgba(212, 175, 55, .12);
}

/* ===== 顶部奖项导航（sticky）===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  background: rgba(11, 11, 17, .9);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(42, 42, 58, .6);
  border-bottom: 1px solid rgba(212, 175, 55, .35);
}

.nav .chip { flex: 0 0 auto; font-size: 12.5px; padding: 6px 11px; }

.nav .chip.active {
  color: #1a1405;
  font-weight: 700;
  border-color: transparent;
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  box-shadow: 0 2px 12px rgba(212, 175, 55, .4);
}

/* ===== 主区 ===== */
#list {
  max-width: 1080px;
  margin: 22px auto 60px;
  padding: 0 16px;
}

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--dim);
  font-size: 15px;
  border: 1px dashed var(--line);
  border-radius: 14px;
}

/* ===== 总览页：奖项卡片网格（每奖项专属色相渐变）===== */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.award-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-left: 4px solid var(--gold);
  background:
    radial-gradient(130% 100% at 15% 0%, rgba(255, 255, 255, .09), transparent 55%),
    linear-gradient(165deg, var(--p1), var(--p2) 75%, var(--card2));
  text-decoration: none;
  color: inherit;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}

.award-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(212, 175, 55, .18);
}

.ac-emoji { font-size: 32px; line-height: 1; }

.ac-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--gold2);
}

.ac-award { font-size: 12.5px; color: rgba(232, 230, 223, .7); }

.ac-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(232, 230, 223, .66);
}

.ac-intro {
  font-size: 12.5px;
  color: rgba(232, 230, 223, .66);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.ac-go {
  margin-top: auto;
  align-self: flex-end;
  font-size: 12.5px;
  color: var(--gold2);
  letter-spacing: 1px;
}

/* ===== 单项页：奖项分区 ===== */
.sec {
  border-radius: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  background: linear-gradient(180deg, var(--card), var(--card2));
  overflow: hidden;
  margin-bottom: 22px;
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 10px;
  flex-wrap: wrap;
}

.sec-emoji { font-size: 28px; }

.sec-title h2 {
  margin: 0;
  font-size: 22px;
  color: var(--gold2);
}

.sec-award {
  display: block;
  font-size: 12.5px;
  color: var(--dim);
  margin-top: 2px;
}

.sec-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--dim);
}

.sec-yrs { color: var(--gold); }

.sec-intro {
  margin: 0;
  padding: 0 18px 8px;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.7;
}

.scope-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid;
}

.scope-cn { color: #7fd9a0; border-color: rgba(63, 174, 106, .5); background: rgba(63, 174, 106, .12); }
.scope-hua { color: #f0d78a; border-color: rgba(216, 184, 74, .5); background: rgba(216, 184, 74, .12); }
.scope-intl { color: #8fc3f0; border-color: rgba(74, 143, 216, .5); background: rgba(74, 143, 216, .12); }

/* ===== 海报墙（自适应网格）===== */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 16px 18px 20px;
  border-top: 1px dashed var(--line);
}

.poster-card {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  transition: transform .22s ease, border-color .22s, box-shadow .22s;
}

.poster-card:hover,
.poster-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .55), 0 0 0 1px rgba(212, 175, 55, .3);
  z-index: 5;
}

/* --- 海报层（默认显示）--- */
.poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(255, 255, 255, .14), transparent 55%),
    linear-gradient(165deg, var(--p1), var(--p2) 70%, #0b0b11 130%);
  transition: opacity .24s ease, transform .24s ease;
}

.poster-card:hover .poster,
.poster-card:focus-within .poster {
  opacity: 0;
  transform: translateY(-12px) scale(1.06);
  pointer-events: none;
}

/* --- 海报图（真实海报，可选；同年多部获奖 → 卡片内轮播）--- */
.poster-img,
.poster-imgs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.poster-img {
  object-fit: cover;
}

.poster-imgs {
  overflow: hidden;
}

.carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}

.carousel-img.active {
  opacity: 1;
}

.poster-top,
.poster-info {
  position: relative;
  z-index: 1;
}

.poster-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.poster-year {
  font-size: 30px;
  font-weight: 800;
  color: rgba(255, 255, 255, .95);
  letter-spacing: 2px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.poster-ed {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .8);
  background: rgba(0, 0, 0, .32);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.poster-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.poster-title {
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 800;
  color: #fff;
  line-height: 1.28;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

.poster-title .cn-badge { margin-left: 5px; vertical-align: 2px; }

/* --- 详情层（悬浮/聚焦滑入）--- */
.card-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: linear-gradient(180deg, var(--card), #12121a);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .24s ease .05s, transform .24s ease .05s;
  overflow-y: auto;
}

.poster-card:hover .card-body,
.poster-card:focus-within .card-body {
  opacity: 1;
  transform: translateY(0);
}

.cb-name {
  margin: 0;
  font-size: 16px;
  color: var(--gold2);
}

.cb-award {
  font-size: 11.5px;
  color: var(--dim);
}

.cb-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--gold);
}

.cb-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
  flex: 1;
}

.d-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #1f1f2b;
  border: 1px solid #34344a;
}

.d-row.cn-gold {
  background: linear-gradient(180deg, rgba(212, 175, 55, .18), rgba(212, 175, 55, .08));
  border-color: rgba(212, 175, 55, .5);
}

.d-title { font-weight: 600; flex: 1; }
.d-row .cntry { margin-left: auto; }

.d-note {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--dim);
  line-height: 1.5;
}

.fav {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--gold);
  padding: 0 2px;
  line-height: 1;
}

.fav:hover { color: var(--gold2); transform: scale(1.2); }

.cn-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  color: #1a1405;
  background: linear-gradient(180deg, var(--gold2), var(--gold));
  letter-spacing: 1px;
  white-space: nowrap;
}

.cntry {
  font-style: normal;
  font-size: 12px;
  color: var(--dim);
}

.status-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px dashed var(--line);
  color: var(--dim);
}

/* --- 状态卡（空缺/未举办/未颁奖）--- */
.poster-card.off {
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #131319;
  border-style: dashed;
  opacity: .6;
}

.poster-card.off:hover,
.poster-card.off:focus-within {
  transform: none;
  border-color: var(--dim);
  box-shadow: none;
}

.off-inner {
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.off-year {
  font-size: 28px;
  font-weight: 800;
  color: var(--dim);
  text-decoration: line-through;
}

.off-ed { font-size: 12px; color: var(--dim); }

.off-note {
  margin: 0;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.5;
}

mark {
  background: var(--gold);
  color: #1a1405;
  border-radius: 3px;
  padding: 0 2px;
}

/* ===== 页脚 ===== */
.foot {
  padding: 18px 16px;
  text-align: center;
  color: var(--dim);
  font-size: 12.5px;
  border-top: 1px solid rgba(42, 42, 58, .6);
}

/* ===== 触屏：直接显示详情 ===== */
@media (hover: none) {
  .poster { display: none; }
  .poster-card { aspect-ratio: auto; min-height: 240px; }
  .card-body {
    position: static;
    opacity: 1;
    transform: none;
    background:
      radial-gradient(120% 90% at 80% -10%, rgba(255, 255, 255, .1), transparent 55%),
      linear-gradient(165deg, var(--p1), var(--p2) 70%, #0b0b11 130%);
  }
  .poster-card.off { aspect-ratio: auto; min-height: 130px; }
}

/* ===== 窄屏 ===== */
@media (max-width: 640px) {
  .poster-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .stats { gap: 18px; }
  .nav .chip { font-size: 12px; padding: 6px 10px; }
  .poster-year { font-size: 24px; }
}
