:root {
  --bg: #0f1320;
  --bg-soft: #171c2e;
  --bg-card: #1d2438;
  --line: #2a3252;
  --text: #e8ecf6;
  --muted: #9aa6c4;
  --accent: #ff7a59;
  --accent2: #4cc9f0;
  --cost: #ffce54;
  --star: #ffd166;
  --tag: #5eead4;
  --type: #c4a6ff;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #1b2340 0%, var(--bg) 60%);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent2); text-decoration: none; }

/* ===== 导航栏（全站统一） ===== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 19, 32, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.nav .logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.nav nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.nav nav a {
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.nav nav a:hover { color: var(--text); border-color: var(--accent); background: rgba(255,122,89,.07); }

/* 手机端导航居中 */
@media (max-width: 640px) {
  .nav { justify-content: center; padding: 0.7rem 1rem; }
  .nav nav a { padding: 0.35rem 0.85rem; font-size: 0.82rem; }
}

.site-header {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.4rem; border-bottom: 1px solid var(--line);
  background: rgba(15,19,32,.7); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .8rem; }
.site-header h1 { font-size: 1.25rem; margin: 0; }
.sub { margin: 0; color: var(--muted); font-size: .85rem; }
.topnav { display: flex; gap: .5rem; }
.topnav a {
  padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}
.topnav a.active, .topnav a:hover { color: var(--text); border-color: var(--accent); }

main { max-width: 1100px; margin: 0 auto; padding: 1.4rem; }
.tagline { color: var(--muted); margin: 0 0 1rem; font-size: .95rem; }
.toolbar { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1rem; }
#search {
  width: 100%; padding: .8rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); font-size: 1rem;
}
.filters { display: flex; flex-wrap: wrap; gap: .8rem; }
.filter-group { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.fg-label { color: var(--muted); font-size: .82rem; margin-right: .2rem; }
.chip {
  padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--muted); cursor: pointer; font-size: .85rem;
}
.chip.on, .chip:hover { color: var(--text); border-color: var(--accent); background: #262f4a; }
.hint { color: var(--muted); font-size: .85rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.card-grid.mini { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
/* 大框卡片设计 */
.card {
  position: relative;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  padding: .9rem; text-align: center; color: var(--text); transition: .2s; cursor: pointer; display: block;
}
.card-link { display: block; color: inherit; text-decoration: none; }
/* 图鉴 tile 右上角「看媒体」跳轉图标 */
.media-jump {
  position: absolute; top: .45rem; right: .45rem; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; border-radius: 999px;
  background: rgba(20,26,46,.82); color: #fff; font-size: .95rem; line-height: 1;
  border: 1px solid var(--accent2); text-decoration: none; transition: .15s;
}
.media-jump:hover { background: var(--accent2); transform: scale(1.08); }
.card:hover {
  transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow);
  background: #232b47;
}
.card:active { transform: translateY(-2px); }
.card.picked { outline: 2px solid var(--accent); }
.card-type { color: var(--type); font-size: .75rem; letter-spacing: .05em; margin-bottom: .35rem; }
.card-name { font-weight: 600; margin: .15rem 0 .5rem; }
.card-top { display: flex; justify-content: center; gap: .4rem; align-items: center; margin-bottom: .5rem; }
.badge { font-size: .72rem; font-weight: 600; border-radius: 999px; padding: .1rem .45rem; }
.badge.cost { background: var(--cost); color: #2a1f00; }
.badge.star { background: transparent; color: var(--star); border: 1px solid var(--star); }
.badge.type { background: transparent; color: var(--type); border: 1px solid var(--type); }
.card-ah { display: flex; justify-content: center; gap: 1rem; color: var(--muted); font-size: .9rem; margin-bottom: .5rem; }
.card-tags { display: flex; gap: .3rem; justify-content: center; flex-wrap: wrap; min-height: 1.2em; }
.pill { display: inline-block; padding: .08rem .4rem; border-radius: 999px; font-size: .68rem; border: 1px solid var(--line); color: var(--muted); }
.pill.tag { border-color: var(--tag); color: var(--tag); }

.back { display: inline-block; margin-bottom: 0.8rem; color: var(--muted); font-size: 0.9rem; }

/* ===== 卡牌详情 - 常驻头部（两栏：卡图 | 信息） ===== */
.card-hero {
  position: sticky;
  top: 58px;
  z-index: 9;
  background: rgba(15,19,32,0.96);
  backdrop-filter: blur(12px);
  padding: 0.7rem 0 0.5rem;
  margin: -0.6rem 0 0.6rem;
}
.card-hero-inner {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1rem;
  align-items: start;
}
.hero-art {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.hero-art img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.hero-art .art-ph { aspect-ratio: 3/4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; padding: 1rem; }
.hero-art .ph-emoji { font-size: 2.4rem; }
.hero-art .ph-text { font-size: 0.75rem; }
.hero-info { min-width: 0; padding-top: 0.1rem; }
.hero-info h2 { margin: 0 0 0.4rem; font-size: 1.6rem; line-height: 1.3; }

/* ===== 附图横排条：名字下面，徽章上面 ===== */
.thumb-strip {
  display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center;
  margin-bottom: 0.45rem;
}
.thumb-strip .thumb-pic {
  height: 80px; width: auto; max-width: 120px;
  border-radius: 7px; border: 1px solid var(--line);
  cursor: pointer; object-fit: cover; transition: .15s;
  background: #000; flex-shrink: 0;
}
.thumb-strip .thumb-pic:hover {
  border-color: var(--accent); transform: scale(1.06);
  box-shadow: 0 2px 10px rgba(255,122,89,.3);
}
/* 皮肤标签混在附图末尾 */
.thumb-strip .skin-tag {
  height: 80px; width: 80px; flex-shrink: 0;
  border-radius: 7px; border: 2px dashed var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; color: var(--muted); font-size: 0.68rem;
  background: rgba(255,255,255,.02); cursor: default;
  transition: .2s;
}
.thumb-strip .skin-tag:hover { border-color: var(--accent); background: rgba(255,122,89,.06); }
.skin-tag-icon { font-size: 1.3rem; opacity: .5; }

/* 徽章行 */
.hero-meta-row {
  display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.hero-meta-row .badge { font-size: 0.76rem; padding: 0.15rem 0.55rem; flex-shrink: 0; }

/* 紧凑属性条：小药丸横排 */
.stats-bar-compact { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.3rem 0 0.1rem; }
.stat-chip {
  display: inline-flex; align-items: center; gap: 0.28rem;
  padding: 0.22rem 0.62rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  font-size: 0.78rem; line-height: 1.2; white-space: nowrap;
}
.stat-chip .val { font-size: 1.02rem; font-weight: 700; }
.stat-chip.hp  { border-color: rgba(255,107,129,.45); } .stat-chip.hp  .val { color: #ff6b81; }
.stat-chip.atk { border-color: rgba(255,122,89,.45); } .stat-chip.atk .val { color: var(--accent); }
.stat-chip.melee { border-color: rgba(255,165,2,.45); } .stat-chip.melee .val { color: #ffa502; }
.stat-chip.magic { border-color: rgba(155,89,255,.45); } .stat-chip.magic .val { color: #9b59ff; }
.stat-chip.heal { border-color: rgba(38,222,129,.45); } .stat-chip.heal .val { color: #26de81; }
.stat-chip.rnd { border-color: rgba(255,209,102,.45); } .stat-chip.rnd .val { color: var(--star); }

/* 头部台词-紧凑 */
.hero-quote { margin: 0.35rem 0 0; padding: 0.3rem 0.7rem; font-size: 0.8rem; max-width: 100%; border-left-width: 3px; }

/* 附图弹窗 overlay */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 1.5rem;
}
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 10px; box-shadow: 0 8px 40px rgba(0,0,0,.6);
  cursor: default;
}

/* 滚动内容：技能左 | 等级表右，两栏并排 */
.content-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; margin-top: 0.5rem; }
.content-split .levels { margin: 0; }
.content-split .skills { margin: 0; }
@media (max-width: 750px) { .content-split { grid-template-columns: 1fr; } }

/* 移动端 */
@media (max-width: 640px) {
  .card-hero { top: 50px; padding: 0.45rem 0; margin-top: -0.4rem; }
  .card-hero-inner { grid-template-columns: 100px 1fr; gap: 0.6rem; }
  .hero-info h2 { font-size: 1.15rem; }
  .thumb-strip .thumb-pic { height: 52px; max-width: 70px; }
  .thumb-strip .skin-tag { height: 52px; width: 52px; font-size: 0.6rem; }
  .skin-tag-icon { font-size: 1rem; }
  .stats-bar-compact { gap: 0.22rem; }
  .stat-chip { padding: 0.18rem 0.45rem; font-size: 0.7rem; }
  .stat-chip .val { font-size: 0.85rem; }
  .hero-quote { font-size: 0.72rem; padding: 0.25rem 0.55rem; }
}
@media (max-width: 420px) {
  .hero-info h2 { font-size: 1rem; }
  .stat-chip { font-size: 0.66rem; padding: 0.15rem 0.38rem; }
  .stat-chip .val { font-size: 0.78rem; }
  .hero-quote { display: none; }
}
.skills { margin: 1rem 0; }
.skills h3 { font-size: 1rem; margin-bottom: .6rem; }
.skill { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; margin-bottom: .5rem; }
.skill b { color: var(--accent2); }
.skill p { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
.tags-line { margin: .8rem 0; }
.card-quote {
  background: rgba(255,255,255,.05);
  border-left: 4px solid var(--accent);
  padding: .8rem 1rem;
  margin: .8rem 0;
  font-style: italic;
  color: var(--accent2);
  border-radius: 0 8px 8px 0;
}
.desc { background: var(--bg-soft); padding: .9rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); }
.trait-links { margin-top: 1.4rem; border-top: 1px dashed var(--line); padding-top: 1.2rem; }
.trait-links h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.trait-links .muted { margin: 0 0 .9rem; }

.site-footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 2rem 1rem; border-top: 1px solid var(--line); margin-top: 2rem; }

/* 附图+皮肤合并区块 */
.media-section { margin: 1.2rem 0; }
.media-section h3 { margin: 0 0 .5rem; font-size: 1rem; color: var(--muted); }
.skin-ph-card {
  height: 260px; width: 170px;
  border-radius: 8px;
  border: 2px dashed var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; color: var(--muted); font-size: .82rem; flex-shrink: 0;
  background: rgba(255,255,255,.02);
  transition: .2s;
}
.skin-ph-card:hover { border-color: var(--accent); background: rgba(255,122,89,.05); }
.skin-ph-icon { font-size: 2.2rem; opacity: .6; }

/* 附图(技能详情/升级表) - 保留兼容 */
.extras { margin: 0; }
.extras h3 { margin: 0 0 .4rem; font-size: .95rem; color: var(--muted); }
.extras-row { display: flex; gap: .6rem; overflow-x: auto; padding: .3rem .1rem; }
.extras-row a { flex: 0 0 auto; }
.extras-row img { height: 260px; width: auto; border-radius: 8px; border: 1px solid var(--line); background: #000; object-fit: contain; transition: transform .15s; }
.extras-row img:hover { transform: scale(1.03); border-color: var(--accent); }

/* 等级表 */
.levels { margin: 1.5rem 0 1rem; }
.levels h3 { margin: 0 0 .6rem; font-size: 1rem; color: var(--muted); }
.levels-wrap { overflow-x: auto; }
.levels-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 400px; }
.levels-table th, .levels-table td { padding: .4rem .55rem; text-align: center; border-bottom: 1px solid var(--line); }
.levels-table th { background: rgba(255,255,255,.04); color: var(--muted); font-weight: 600; font-size: .78rem; }
.levels-table td:first-child { color: var(--accent); font-weight: 700; }
.levels-table tr:hover td { background: rgba(255,255,255,.03); }

/* 落地页 */
.landing { max-width: 1100px; margin: 0 auto; padding: 3rem 1.6rem 2rem; text-align: center; }
.landing h1 { font-size: 2.4rem; margin: 0 0 .5rem; letter-spacing: .04em; }
.landing .pitch { color: var(--muted); font-size: 1.05rem; margin: 0 auto 1.8rem; max-width: 700px; line-height: 1.7; }
/* 头像居中 */
.landing .logo-avatar { width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 1.4rem; display: block; object-fit: cover; border: 3px solid var(--accent); box-shadow: 0 6px 20px rgba(255,122,89,.35); }
.stats-bar { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; margin: 1.6rem 0; }
.stat { background: rgba(255,255,255,.04); border: 2px solid var(--line); border-radius: 14px; padding: 1.1rem 1.8rem; min-width: 130px; transition: .2s; }
.stat:hover { border-color: var(--accent2); transform: translateY(-2px); }
.stat b { display: block; font-size: 1.8rem; color: var(--accent); }
.stat span { color: var(--muted); font-size: .84rem; }
.cta-row { margin: 1rem 0 2rem; display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--accent); color: #0c0c10; border: none; border-radius: 10px; padding: .75rem 1.5rem; font-size: 1rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: .2s; }
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.btn.ghost:hover { border-color: var(--accent2); }
.teaser { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; text-align: left; }
@media (max-width: 768px) { .teaser { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .teaser { grid-template-columns: 1fr; } }
.teaser .t { display: block; text-decoration: none; color: inherit; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; transition: .2s; }
.teaser .t:hover { border-color: var(--accent); background: rgba(255,255,255,.05); transform: translateY(-3px); }
.teaser .t h3 { margin: .2rem 0 .4rem; font-size: 1.1rem; color: var(--text); }
.teaser .t p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }

/* 加频道门槛 */
#gate { position: fixed; inset: 0; background: rgba(8,8,12,.92); display: flex; align-items: center; justify-content: center; z-index: 999; padding: 1.2rem; }
.gate-box { background: #14141b; border: 1px solid var(--line); border-radius: 16px; padding: 2rem; max-width: 460px; text-align: center; }
.gate-box h2 { margin: 0 0 .6rem; }
.gate-box p { color: var(--muted); }
.gate-box .btn { margin: .4rem .3rem 0; }

/* 汇总页卡片 tile（上图下见解） */
.insight-line { color: var(--muted); font-size: .76rem; margin: .35rem 0 0; line-height: 1.35; }
.card .card-art { height: 220px; overflow: hidden; border-radius: 8px; margin-bottom: .55rem; }
.card .card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.card:hover .card-art img { transform: scale(1.05); }
.card-meta { margin-top: .4rem; }
.card-name { font-size: .95rem; font-weight: 600; margin-bottom: .25rem; }
.card-stats { display: flex; justify-content: center; gap: .35rem; flex-wrap: wrap; align-items:center; }
.color-dots { display:inline-flex; gap:2px; }
.color-dot { display:inline-block; width:8px; height:8px; border-radius:50%; }
.color-label-text { font-size: .7rem; color: var(--muted); margin-left: 2px; }
.pill.quality-精英 { border-color:#feca57; color:#feca57; background:rgba(254,202,87,.08); }
.pill.quality-彩钻 { border-color:#a29bfe; color:#a29bfe; background:rgba(162,155,254,.08); }
.pill.quality-黄金 { border-color:#f6e58d; color:#f6e58d; background:rgba(246,229,141,.08); }
.pill.quality-白银 { border-color:#bdc3c7; color:#bdc3c7; background:rgba(189,195,199,.08); }
.pill.quality-黑铁 { border-color:#636e72; color:#dfe6e9; background:rgba(99,110,114,.2); }
.badge.heat { background: var(--accent); color: #0c0c10; }
.sort-row { margin: .8rem 0; display: flex; gap: .6rem; }
.card-hint { color: var(--muted); font-size: .75rem; margin: .3rem 0 0; text-align: center; }

/* 详细页：皮肤占位 + 互动 */
.skins { margin: 1.5rem 0; }
.skins h3 { color: var(--muted); font-size: 1rem; }
.skins .placeholder { color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 1rem; font-size: .9rem; }
.like-row { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0; }
.like-btn { background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--fg); border-radius: 20px; padding: .4rem 1rem; cursor: pointer; }
.like-btn.on { background: var(--accent); color: #0c0c10; border-color: var(--accent); }

/* ══════ 互动区：赞 + 收藏（等级表下方） ══════ */
.interact-row {
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  margin: 1rem 0 0.8rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 10px;
}
.interact-btn { display: inline-flex; align-items: center; gap: 0.3rem; border-radius: 20px !important; padding: 0.45rem 1.1rem !important; font-weight: 600 !important; font-size: 0.9rem !important; transition: .2s; }
.interact-btn .icount { font-weight: 700; color: var(--accent2); }
.interact-btn.on { background: var(--accent) !important; color: #0c0c10 !important; border-color: var(--accent) !important; }
.interact-btn.on .icount { color: #0c0c10; }

/* ══════ 入场动画 tile 标记 ══════ */
.badge.anim-badge {
  background: rgba(255, 165, 0, 0.15); color: #ffa502;
  border: 1px solid rgba(255, 165, 0, 0.35); font-size: 0.7rem;
  padding: 0.08rem 0.45rem; line-height: 1.4;
}

/* ══════ 入场动画视频 ══════ */
.entry-anim {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  background: rgba(0,0,0,0.78); border-radius: 0 0 14px 14px;
  overflow: hidden; display: flex; flex-direction: column;
}
.entry-anim video {
  width: 100%; display: block; max-height: 180px;
  object-fit: contain; pointer-events: none; user-select: none;
}
.anim-toggle {
  position: absolute; bottom: 6px; right: 6px; z-index: 3;
  background: rgba(0,0,0,0.65); color: #fff; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px; padding: 2px 8px; font-size: 0.85rem; cursor: pointer;
  opacity: 0; transition: opacity 0.2s;
}
.entry-anim:hover .anim-toggle, .hero-art:hover .anim-toggle { opacity: 1; }

/* hero-art 容器加 relative 为动画定位 */
.hero-art { position: relative; overflow: hidden; border-radius: 14px; }

/* ══════ 分享到频道 ══════ */
.share-channel-row {
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  margin: 1rem 0 0.4rem; padding: 0.7rem 0.9rem;
  background: rgba(255,122,89,.06); border: 1px solid rgba(255,122,89,.22); border-radius: 10px;
}
.share-hint { font-size: 0.78rem; color: var(--muted); }
/* 详情页「看该卡媒体」按钮，与分享到频道同位置 */
.media-jump-btn { text-decoration: none; }

/* ══════ 卡牌互联（变身 / 召唤）══════ */
.interlink { border-top: 1px dashed var(--line); margin-top: 1.4rem; padding-top: 1.2rem; }
.interlink > h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.interlink > .muted { margin: 0 0 1rem; }
.interlink-sub { margin-bottom: 1.1rem; }
.interlink-sub h4 { font-size: .92rem; margin: 0 0 .35rem; color: var(--accent2); }
.interlink-sub .muted { margin: 0 0 .6rem; font-size: .8rem; }

/* ══════ 伙伴（Partners）专用样式 ══════ */
/* 伙伴 tile 边框用绿色调区分 */
.card.is-partner {
  border-color: rgba(46, 213, 115, 0.35);
  background: linear-gradient(180deg, rgba(46, 213, 115, 0.04) 0%, var(--bg-card) 40%);
}
.card.is-partner:hover {
  border-color: rgba(46, 213, 115, 0.7);
  box-shadow: 0 8px 24px rgba(46, 213, 115, 0.18);
}

/* PP / Lv / EXP 徽章（卡面 + 详情头部通用） */
.badge.pp {
  background: linear-gradient(135deg, #feca57 0%, #ff9f43 100%);
  color: #2a1f00;
  font-weight: 700;
}
.badge.lv {
  background: rgba(76, 201, 240, 0.15);
  color: var(--accent2);
  border: 1px solid rgba(76, 201, 240, 0.4);
  font-weight: 700;
}
.badge.lv.not-obtained {
  background: rgba(255, 107, 129, 0.12);
  color: #ff6b81;
  border: 1px solid rgba(255, 107, 129, 0.35);
}
.badge.exp {
  background: rgba(162, 155, 254, 0.15);
  color: #a29bfe;
  border: 1px solid rgba(162, 155, 254, 0.4);
  font-size: 0.7rem;
}
.badge.unlock {
  background: linear-gradient(135deg, #a55eea 0%, #8854d0 100%);
  color: #fff;
  font-weight: 700;
}
.badge.partner-badge {
  background: rgba(46, 213, 115, 0.18);
  color: #26de81;
  border: 1px solid rgba(46, 213, 115, 0.4);
  font-weight: 700;
}

/* 伙伴详情头属性条（覆盖原 HP/ATK 的色彩） */
.partner-stats {
  margin-top: 0.4rem;
}
.stat-chip.pp  { border-color: rgba(254, 202, 87, 0.5); }
.stat-chip.pp  .val { color: #feca57; }
.stat-chip.dur { border-color: rgba(76, 201, 240, 0.5); }
.stat-chip.dur .val { color: var(--accent2); }
.stat-chip.cd  { border-color: rgba(162, 155, 254, 0.5); }
.stat-chip.cd  .val { color: #a29bfe; }

/* 伙伴技能升级链卡片 */
.partner-skills { margin: 0; }
.partner-skills h3 { font-size: 1rem; margin-bottom: 0.6rem; color: var(--text); }
.partner-skill {
  background: linear-gradient(135deg, rgba(46, 213, 115, 0.05) 0%, var(--bg-soft) 100%);
  border: 1px solid rgba(46, 213, 115, 0.28);
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  margin-bottom: 0.55rem;
  position: relative;
}
.partner-skill .ps-head {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.partner-skill .ps-lv {
  font-size: 0.7rem; font-weight: 700; padding: 0.1rem 0.5rem;
  background: rgba(46, 213, 115, 0.18); color: #26de81;
  border: 1px solid rgba(46, 213, 115, 0.4); border-radius: 999px;
}
.partner-skill .ps-name { font-weight: 700; color: var(--accent2); font-size: 0.95rem; }
.partner-skill .ps-text { margin: 0.25rem 0 0.45rem; color: var(--text); font-size: 0.86rem; line-height: 1.55; }
.partner-skill .ps-stats { display: flex; flex-wrap: wrap; gap: 0.32rem; }
.partner-skill .ps-stats .stat-chip { padding: 0.18rem 0.55rem; font-size: 0.74rem; }
.partner-skill .ps-stats .stat-chip .val { font-size: 0.85rem; }

/* 伙伴等级表：左技能/奖励 + 数值 */
.partner-levels { min-width: 520px; }
.partner-levels th { background: rgba(46, 213, 115, 0.08); }
.partner-levels td:first-child { color: #26de81; }
.partner-levels tr.locked-row td { color: var(--muted); opacity: 0.65; }
.partner-levels tr.locked-row td:first-child { color: var(--muted); }
.partner-levels tr.reward-row {
  background: linear-gradient(90deg, rgba(254, 202, 87, 0.05) 0%, transparent 80%);
}
.partner-levels tr.reward-row td { border-bottom-color: rgba(254, 202, 87, 0.18); }
.partner-levels tr.reward-row.obtained { background: rgba(46, 213, 115, 0.06); }
.partner-levels tr.reward-row td:first-child { color: #feca57; }

/* ══════ 相关视频（卡详情，由视频库关联回来） ══════ */
.related-videos { margin: 1.2rem 0 0; border-top: 1px dashed var(--line); padding-top: 1rem; }
.related-videos h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.related-videos .muted { margin: 0 0 .7rem; }
.rv-list { display: flex; flex-direction: column; gap: .5rem; }
.rv-item { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .8rem; }
.rv-title { font-weight: 600; color: var(--accent2); text-decoration: none; flex: 1; min-width: 160px; }
.rv-title:hover { color: var(--accent); text-decoration: underline; }
.rv-pf { font-size: .68rem; padding: .1rem .45rem; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); }
.rv-author { font-size: .78rem; color: var(--muted); }
.rv-share { font-size: .74rem; padding: .25rem .7rem !important; }
.rv-more { display: inline-block; margin-top: .7rem; font-size: .85rem; font-weight: 600; color: var(--accent2); text-decoration: none; }
.rv-more:hover { color: var(--accent); text-decoration: underline; }

/* ══════ 频道精选见解 ══════ */
.community-insights { margin: 1.2rem 0 0; border-top: 1px dashed var(--line); padding-top: 1rem; }
.community-insights h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.community-insights .muted { margin: 0 0 .7rem; }
.ci-list { display: flex; flex-direction: column; gap: .5rem; }
.ci-item { background: rgba(255,122,89,.05); border: 1px solid rgba(255,122,89,.2); border-radius: 10px; padding: .6rem .85rem; }
.ci-who { font-weight: 700; font-size: .82rem; color: var(--accent2); margin-bottom: .2rem; }
.ci-body { font-size: .86rem; line-height: 1.6; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.comments, .insights { margin: 1.5rem 0; }
.comments h3, .insights h3 { font-size: 1rem; color: var(--muted); }
.comment, .insight { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; margin: .5rem 0; }
.comment .who, .insight .who { font-weight: 700; font-size: .85rem; }
.comment .when, .insight .when { color: var(--muted); font-size: .72rem; margin-left: .5rem; }
.cm-form, .ins-form { display: flex; flex-direction: column; gap: .5rem; max-width: 520px; margin-top: .6rem; }
.cm-form input, .cm-form textarea, .ins-form input, .ins-form textarea { background: #0e0e14; border: 1px solid var(--line); color: var(--fg); border-radius: 8px; padding: .55rem .7rem; font: inherit; }
.note-pending { color: var(--muted); font-size: .8rem; }
.admin-bar { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; padding: .8rem; margin: 1rem 0; }
.admin-bar input { background: #0e0e14; border: 1px solid var(--line); color: var(--fg); border-radius: 8px; padding: .4rem .6rem; }

/* ══════ 管理录入面板 ══════ */
#admin-panel { max-width: 1100px; margin: 0 auto; padding: 1.4rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.admin-header h2 { font-size: 1.4rem; }
.admin-section { margin-bottom: 1.5rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.admin-section-title { margin: 0; font-size: 1rem; cursor: pointer; user-select: none; color: var(--accent2); }
.admin-section-title:hover { color: var(--accent); }
.admin-form { margin-top: 0.8rem; }
.admin-form-row { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.45rem; }
.admin-form-row label { display: flex; flex-direction: column; gap: 0.18rem; font-size: 0.8rem; color: var(--muted); min-width: 100px; flex: 1; }
.admin-form-row input, .admin-form-row select {
  padding: 0.42rem 0.55rem; border-radius: 6px; border: 1px solid var(--line);
  background: var(--bg-card); color: var(--text); font-size: 0.86rem; font-family: inherit;
}
.admin-form-row select { cursor: pointer; }
.admin-msg { margin-left: 0.5rem; font-size: 0.82rem; }
.admin-msg.ok { color: #26de81; }
.admin-msg.err { color: #ff6b81; }

.slot-legend {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.6rem;
  font-size: 0.7rem; color: var(--muted);
}
.slot-legend span {
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  border-radius: 4px; padding: 0.12rem 0.45rem;
}

.admin-card-list { display: flex; flex-direction: column; gap: 0.45rem; }
.admin-card-row {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.5rem 0.7rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.card-id-label { font-weight: 700; color: var(--accent); font-size: 0.78rem; min-width: 50px; }
.card-name-label { font-weight: 600; font-size: 0.85rem; min-width: 90px; white-space: nowrap; }
.admin-slots { display: flex; gap: 0.35rem; flex: 1; flex-wrap: wrap; justify-content: flex-end; }
.admin-slot {
  display: flex; flex-direction: column; align-items: center; gap: 0.18rem;
  background: rgba(0,0,0,.12); border-radius: 6px; padding: 0.28rem; min-width: 72px; max-width: 100px; flex: 1;
}
.admin-slot .slot-label { font-size: 0.62rem; color: var(--muted); text-align: center; line-height: 1.2; }
.admin-slot .slot-preview {
  width: 64px; height: 64px; border-radius: 4px; background: var(--bg-soft);
  border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.admin-slot .slot-preview.has-img { border-style: solid; border-color: rgba(38,222,129,.4); }
.admin-slot .slot-preview img { width: 100%; height: 100%; object-fit: cover; }
.admin-slot .slot-preview .slot-missing {
  font-size: 0.58rem; color: var(--muted); text-align: center;
  padding: 2px; line-height: 1.2; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; word-break: break-all;
}
.admin-slot .slot-preview .slot-uploading { font-size: 0.68rem; color: var(--accent2); }
.admin-slot .slot-actions { display: flex; gap: 0.18rem; }
.admin-slot .slot-btn {
  font-size: 0.63rem; padding: 0.15rem 0.35rem; border-radius: 4px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text);
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.admin-slot .slot-btn:hover { border-color: var(--accent); background: #262f4a; }
.admin-slot .slot-btn.upload { background: var(--accent); color: #0c0c10; border-color: var(--accent); }
.admin-slot .slot-btn.upload:hover { opacity: 0.85; }

@media (max-width: 780px) {
  .admin-card-row { flex-direction: column; align-items: flex-start; }
  .admin-slots { justify-content: flex-start; width: 100%; }
  .admin-slot { min-width: 62px; }
  .admin-slot .slot-preview { width: 52px; height: 52px; }
}

/* ══════ 通用板块区块（资讯/图集/荣誉墙共用） ══════ */
.board-section {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.4rem; margin-bottom: 1.3rem;
}
.board-section h2 { margin: 0 0 0.7rem; font-size: 1.18rem; color: var(--accent2); display: flex; align-items: center; gap: 0.45rem; }
.board-section > .muted { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.8rem; line-height: 1.6; }

/* banner：去官方看原资讯 */
.info-banner {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  background: rgba(76, 201, 240, 0.06); border: 1px solid rgba(76, 201, 240, 0.25);
  border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.86rem; color: var(--text); margin-bottom: 1.3rem;
}
.info-banner b { color: var(--accent2); }

/* ══════ 资讯时间线 ══════ */
.news-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.news-timeline { display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--line); margin-left: 0.6rem; padding-left: 1.1rem; }
.news-item { position: relative; padding: 0.2rem 0 1.2rem; }
.news-item::before {
  content: ""; position: absolute; left: -1.42rem; top: 0.35rem;
  width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(255,122,89,.15);
}
.news-item .news-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.3rem; }
.news-item .news-date { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-item .news-cat { font-size: 0.7rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 999px; }
.news-cat.公告 { background: rgba(255,122,89,.16); color: var(--accent); border: 1px solid rgba(255,122,89,.4); }
.news-cat.版本 { background: rgba(76,201,240,.14); color: var(--accent2); border: 1px solid rgba(76,201,240,.4); }
.news-cat.活动 { background: rgba(254,202,87,.16); color: #feca57; border: 1px solid rgba(254,202,87,.4); }
.news-cat.赛事 { background: rgba(162,155,254,.16); color: #a29bfe; border: 1px solid rgba(162,155,254,.4); }
.news-item .news-title { font-size: 1.02rem; font-weight: 700; color: var(--text); margin: 0.1rem 0 0.35rem; }
.news-item .news-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin: 0; }
.news-item .news-link { display: inline-block; margin-top: 0.5rem; font-size: 0.83rem; font-weight: 600; }

/* ══════ 平台/渠道网格（复用，新增页也用） ══════ */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.8rem; margin-top: 0.3rem; }
.platform-tile { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem; text-align: center; transition: .2s; text-decoration: none; color: inherit; display: block; }
.platform-tile:hover { border-color: var(--accent); transform: translateY(-2px); background: rgba(255,255,255,.05); }
.platform-tile .icon { font-size: 1.7rem; margin-bottom: 0.3rem; }
.platform-tile .name { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.platform-tile .status { font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; }

/* ══════ 图集 ══════ */
.gallery-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.gallery-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; transition: .2s; text-decoration: none; color: inherit; display: block; }
.gallery-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); background: #232b47; }
.gallery-card .gc-art { height: 200px; overflow: hidden; background: var(--bg-soft); }
.gallery-card .gc-art img { width: 100%; height: 100%; object-fit: contain; }
.gallery-card .gc-foot { padding: 0.5rem 0.7rem; display: flex; justify-content: space-between; align-items: center; gap: 0.4rem; }
.gallery-card .gc-name { font-size: 0.85rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-card .gc-type { font-size: 0.7rem; color: var(--type); flex-shrink: 0; }
.gallery-board { display: flex; flex-direction: column; gap: 0.6rem; }
.gallery-board-item { display: flex; gap: 0.9rem; align-items: center; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; flex-wrap: wrap; }
.gallery-board-item .gb-thumb { width: 64px; height: 64px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--muted); overflow: hidden; }
.gallery-board-item .gb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-board-item .gb-body { flex: 1; min-width: 220px; }
.gallery-board-item .gb-title { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.gallery-board-item .gb-desc { font-size: 0.84rem; color: var(--muted); line-height: 1.55; margin-top: 0.2rem; }
.gallery-empty { font-size: 0.86rem; color: var(--muted); background: rgba(255,255,255,.02); border: 1px dashed var(--line); border-radius: 10px; padding: 0.9rem 1rem; }

/* ══════ 荣誉墙 ══════ */
.honor-board { display: flex; flex-direction: column; gap: 0.6rem; }
.honor-row { display: flex; align-items: center; gap: 1rem; background: linear-gradient(90deg, rgba(254,202,87,.05), transparent 70%); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 1rem; }
.honor-row .rank { font-weight: 800; font-size: 1.15rem; color: var(--star); width: 2.2rem; text-align: center; flex-shrink: 0; }
.honor-row .h-who { font-weight: 700; color: var(--accent2); font-size: 0.95rem; min-width: 120px; }
.honor-row .h-do { flex: 1; color: var(--muted); font-size: 0.86rem; }
.honor-row .h-medal { font-size: 1.3rem; }
.contrib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem; margin-top: 0.4rem; }
.contrib-card { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; transition: .2s; }
.contrib-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.contrib-card .cc-icon { font-size: 1.7rem; }
.contrib-card .cc-name { font-weight: 700; color: var(--text); margin: 0.4rem 0 0.3rem; font-size: 1rem; }
.contrib-card .cc-desc { font-size: 0.84rem; color: var(--muted); line-height: 1.55; }
.contrib-card .cc-cta { display: inline-block; margin-top: 0.6rem; font-size: 0.82rem; font-weight: 600; }
.contrib-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.8rem; }
