/* ===== 人类评档 · 语级 + 卡牌 ===== */
.community-rating {
  border: 1px solid rgba(199, 164, 96, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(28, 24, 20, 0.92), rgba(18, 16, 14, 0.96));
  padding: 20px 22px;
  margin-bottom: 8px;
}

.community-rating--assets {
  border-color: rgba(120, 180, 220, 0.22);
}

.rating-badge-human,
.rating-badge-card {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(199, 164, 96, 0.35);
  color: var(--gold);
}

.rating-badge-card {
  border-color: rgba(120, 180, 255, 0.35);
  color: #9ec5ff;
}

.rating-deck {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 10px;
}

.rating-target-label {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--gold);
  margin: 0 0 14px;
}

.rating-tier-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.rating-tier-row--compact {
  gap: 6px;
}

.rating-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  font-family: var(--font-serif);
}

.rating-chip:hover:not(.is-disabled):not(.is-official) {
  border-color: rgba(199, 164, 96, 0.55);
  transform: translateY(-1px);
}

.rating-chip.is-selected {
  border-color: var(--gold);
  background: rgba(199, 164, 96, 0.16);
  color: var(--gold);
  box-shadow: 0 0 0 1px rgba(199, 164, 96, 0.25);
}

.rating-chip--power .rating-chip-label {
  font-size: 18px;
  letter-spacing: 0.12em;
}

.rating-chip--beyond {
  opacity: 0.55;
  cursor: not-allowed;
  font-style: italic;
}

.rating-chip--beyond.is-official {
  opacity: 1;
  border-color: rgba(255, 120, 180, 0.5);
  color: #ffb8d8;
  background: rgba(255, 80, 160, 0.08);
  cursor: default;
}

.rating-chip--beyond.is-disabled {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.2);
}

.rating-chip--card {
  min-width: 42px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-family: var(--font-ui);
}

.rating-chip--n.is-selected { border-color: #8a8a8a; color: #ccc; background: rgba(140, 140, 140, 0.15); }
.rating-chip--r.is-selected { border-color: #5b9bd5; color: #8ec5ff; background: rgba(91, 155, 213, 0.15); }
.rating-chip--sr.is-selected { border-color: #b06bff; color: #d4a8ff; background: rgba(176, 107, 255, 0.15); }
.rating-chip--ssr.is-selected { border-color: #ffb347; color: #ffd699; background: rgba(255, 179, 71, 0.15); }
.rating-chip--ur.is-selected {
  border-color: #ff6b9d;
  color: #ffc0d8;
  background: linear-gradient(135deg, rgba(255, 80, 140, 0.2), rgba(255, 200, 80, 0.12));
}

.rating-tier-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin: 10px 0 14px;
  min-height: 1.2em;
}

.rating-comment-wrap {
  display: block;
  margin-bottom: 12px;
}

.rating-comment-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.rating-comment-label em {
  font-style: normal;
  opacity: 0.75;
}

.rating-comment {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.55;
  resize: vertical;
  min-height: 56px;
  font-family: var(--font-ui);
}

.rating-comment:focus {
  outline: none;
  border-color: rgba(199, 164, 96, 0.5);
}

.rating-comment-count {
  display: block;
  text-align: right;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.rating-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 8px 16px !important;
  font-size: 12px !important;
}

.rating-saved-note {
  font-size: 12px;
  color: var(--gold);
}

.rating-saved-note[hidden] {
  display: none;
}

.asset-rating-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.asset-card-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
}

.asset-card-rating-label {
  font-size: 13px;
  color: var(--ink);
  min-width: 88px;
}

.pack-tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-serif);
  border: 1px solid rgba(199, 164, 96, 0.45);
  color: var(--gold);
  background: rgba(199, 164, 96, 0.1);
}

.rating-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rating-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
  font-size: 13.5px;
  line-height: 1.55;
}

.rating-list-comment {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.pack-tier-badge--community {
  border-color: rgba(255, 200, 100, 0.55);
  background: rgba(255, 180, 60, 0.12);
  font-size: 12px;
}

.pack-tier-badge--brewing {
  border-color: rgba(140, 160, 200, 0.35);
  color: #a8b8d8;
  background: rgba(100, 120, 180, 0.08);
}

/* ---------- 卡片评分行：官方基线档 + 社区评分星级 ---------- */
.pack-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.community-stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
}
.community-stars .cs-dots {
  display: inline-flex;
  gap: 2.5px;
}
.community-stars .cs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: inline-block;
  transition: background 0.2s;
}
.community-stars .cs-dot.is-on {
  background: var(--gold);
  box-shadow: 0 0 5px rgba(255, 200, 100, 0.55);
}
.community-stars--live {
  border-color: rgba(255, 200, 100, 0.5);
  background: rgba(255, 180, 60, 0.1);
}
.community-stars--live .cs-label {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.community-stars--live .cs-count {
  color: var(--muted);
  font-size: 10.5px;
}
.community-stars--brewing {
  border-color: rgba(140, 160, 200, 0.32);
}
.community-stars--brewing .cs-brew {
  width: 38px;
  height: 5px;
  border-radius: 999px;
  background: rgba(120, 140, 180, 0.25);
  overflow: hidden;
  display: inline-block;
}
.community-stars--brewing .cs-brew i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5b8fd4, var(--gold));
}
.community-stars--brewing .cs-label {
  color: #a8b8d8;
}
.community-stars--empty {
  border-style: dashed;
  opacity: 0.6;
}
.community-stars--empty .cs-label--muted {
  color: var(--muted);
}

/* 卡片完成度条：封面底缘金色进度，直观体现官方完成度 */
.pack-cover .cover-completion {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, var(--gold), #ffd98a);
  box-shadow: 0 0 8px rgba(255, 200, 100, 0.5);
  border-radius: 0 2px 2px 0;
  z-index: 3;
}

.community-aggregate {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

.community-aggregate--live {
  border-color: rgba(199, 164, 96, 0.45);
  background: rgba(199, 164, 96, 0.08);
}

.community-aggregate--brewing {
  border-color: rgba(120, 140, 180, 0.3);
  background: rgba(0, 0, 0, 0.2);
}

.ca-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ca-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.ca-tier { font-size: 15px !important; }

.ca-meta {
  font-size: 12px;
  color: var(--muted);
}

.ca-note {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.55;
}

.ca-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin-top: 10px;
  overflow: hidden;
}

.ca-progress-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5b8fd4, var(--gold));
  border-radius: 999px;
}

.community-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 10px;
}

.community-feed-head h5 {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 15px;
}

.rating-filter-note {
  font-size: 11px;
  color: var(--muted);
}

.community-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.community-feed-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.cf-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.cf-author {
  font-size: 12px;
  color: var(--gold);
}

.cf-tier {
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid rgba(199, 164, 96, 0.35);
  border-radius: 4px;
}

.cf-time {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}

.cf-report {
  appearance: none;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}

.cf-report:hover { color: #e88; }

.cf-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
}

@media (max-width: 600px) {
  .asset-card-rating {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== 官方基线档（manifest auto 评级 · mugen 纸/并/强/狂/神 · 与社区档并列） ===== */
.pack-tier-badge--official.tier-paper {
  border-color: rgba(150, 150, 150, 0.45);
  color: #c7c7c7;
  background: rgba(140, 140, 140, 0.12);
}
.pack-tier-badge--official.tier-parallel {
  border-color: rgba(120, 150, 190, 0.5);
  color: #a8c0e0;
  background: rgba(90, 120, 170, 0.14);
}
.pack-tier-badge--official.tier-strong {
  border-color: rgba(90, 190, 160, 0.5);
  color: #8fe0c2;
  background: rgba(60, 170, 140, 0.14);
}
.pack-tier-badge--official.tier-mad {
  border-color: rgba(190, 120, 255, 0.5);
  color: #d8b0ff;
  background: rgba(160, 100, 240, 0.15);
}
.pack-tier-badge--official.tier-god {
  border-color: rgba(255, 200, 90, 0.6);
  color: #ffe1a0;
  background: linear-gradient(135deg, rgba(255, 180, 60, 0.22), rgba(255, 120, 180, 0.14));
  box-shadow: 0 0 0 1px rgba(255, 200, 90, 0.2);
}

/* 详情页 · 官方基线档卡（评分依据可追溯 + 权限 + AI 占比） */
.detail-baseline {
  border: 1px solid rgba(199, 164, 96, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(30, 26, 22, 0.9), rgba(20, 18, 16, 0.95));
  padding: 16px 18px;
  margin-bottom: 14px;
}
.baseline-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.baseline-label {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.baseline-score {
  font-size: 12px;
  color: var(--muted);
}
.baseline-ent {
  font-size: 11px !important;
}
.baseline-ent--free {
  border-color: rgba(90, 190, 160, 0.5) !important;
  color: #8fe0c2 !important;
}
.baseline-ent--limited {
  border-color: rgba(255, 140, 180, 0.5) !important;
  color: #ffb8d8 !important;
}
.baseline-basis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.basis-chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
}
.baseline-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ===== 按世界探索 · 世界横幅 ===== */
.world-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 26px;
  margin-bottom: 20px;
  border: 1px solid rgba(199, 164, 96, 0.3);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(199, 164, 96, 0.1), rgba(20, 18, 16, 0.6)), rgba(24, 21, 18, 0.9);
  position: relative;
  overflow: hidden;
}
.world-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(199, 164, 96, 0.12), transparent 60%);
  pointer-events: none;
}
.wb-main {
  position: relative;
  z-index: 1;
}
.wb-kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}
.wb-name {
  font-family: var(--font-serif);
  font-size: 26px;
  color: #f3ecdd;
  margin: 6px 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.wb-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 12px;
  max-width: 60ch;
}
.wb-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.wb-stat {
  font-size: 13px;
  color: var(--ink);
}
.wb-stat strong {
  color: var(--gold);
  font-size: 16px;
  font-family: var(--font-serif);
}
.world-banner .wb-open {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  padding: 12px 22px !important;
  font-size: 13px !important;
}
@media (max-width: 600px) {
  .world-banner {
    padding: 18px;
  }
  .wb-name {
    font-size: 22px;
  }
}

/* ===== 剧情分支 · 交互式选择器 ===== */
.branch-lead {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}
.branch-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.branch-card {
  text-align: left;
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  padding: 16px 18px;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.branch-card:hover {
  border-color: rgba(199, 164, 96, 0.5);
  transform: translateY(-2px);
}
.branch-card.is-selected {
  border-color: var(--gold);
  background: rgba(199, 164, 96, 0.12);
  box-shadow: 0 0 0 1px rgba(199, 164, 96, 0.3);
}
.branch-num {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.8;
}
.branch-card h5 {
  font-family: var(--font-serif);
  font-size: 17px;
  color: #f3ecdd;
  margin: 6px 0 8px;
}
.branch-card .ending-trigger {
  display: inline-block;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.branch-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 12px;
}
.branch-adopt {
  display: inline-block;
  font-size: 12px;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.2s;
}
.branch-card:hover .branch-adopt,
.branch-card.is-selected .branch-adopt {
  opacity: 1;
}
.branch-card.is-selected .branch-adopt::before {
  content: "✓ 已复制 · ";
}
@media (max-width: 600px) {
  .branch-selector {
    grid-template-columns: 1fr;
  }
}
