/* 作品评审墙 + 全屏评审 + IP 形象定位卡（宣纸 / 靛青 / 朱砂 / 鎏金） */

/* ---------- 页头 ---------- */

.wall-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.wall-title { display: flex; align-items: flex-end; gap: 16px; }
.wall-title h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: 6px;
  text-indent: 6px;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.wall-stats {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 12.5px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.wall-stats b { font-family: var(--serif); font-size: 15px; font-weight: 500; }

/* ---------- 五列墙 ---------- */

.wall-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
  align-items: stretch;
}

.wall-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  animation: wall-in 0.42s ease both;
}
@keyframes wall-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.wall-col-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 0 2px 2px;
}
.wall-no {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gold-deep);
}
.wall-name {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wall-score {
  margin-left: auto;
  align-self: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(176, 138, 69, 0.4);
  background: rgba(217, 188, 126, 0.16);
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 11px;
}

.wall-shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--frame-line);
  border-radius: 12px;
  background: var(--frame);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 8px 22px rgba(23, 60, 64, 0.15);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.wall-shot img { width: 100%; height: 100%; object-fit: contain; }
.wall-col:hover .wall-shot {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(23, 60, 64, 0.24);
}
.wall-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(18, 83, 86, 0.78) 100%);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.wall-col:hover .wall-shot::after { opacity: 1; }

.wall-cta {
  position: absolute;
  left: 12px;
  bottom: 11px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 1px;
  color: #f7f2e4;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.wall-col:hover .wall-cta { opacity: 1; transform: translateY(0); }

.wall-metrics {
  position: absolute;
  right: 9px;
  top: 9px;
  z-index: 2;
  display: flex;
  gap: 4px;
}
.wall-metrics i {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(196, 212, 206, 0.9);
  color: var(--teal-deep);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.5px;
  backdrop-filter: blur(6px);
}

.wall-meta { display: flex; flex-direction: column; gap: 6px; padding: 0 2px; }
.wall-meta h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.55;
  letter-spacing: 1px;
  color: var(--ink);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wall-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.wall-tags span {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.5px;
}

.wall-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 4 / 5;
  border: 1px dashed rgba(147, 181, 172, 0.6);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.8;
}
.wall-empty b { font-family: var(--serif); font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 2px; }

/* ---------- 通用：区块头与条形（分析看板复用） ---------- */

.ov-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ov-head b { font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: 2px; color: var(--ink); }
.ov-head small { font-size: 11.5px; color: var(--muted-2); letter-spacing: 0.5px; }
.ov-head span { margin-left: auto; font-size: 11px; letter-spacing: 1.5px; color: var(--gold-deep); }
.ov-item { display: flex; flex-direction: column; gap: 7px; }
.ov-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.ov-item-top span { font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.ov-item-top b { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--teal-deep); }
.ov-track { height: 5px; border-radius: 999px; background: #dce7e3; overflow: hidden; }
.ov-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width 0.5s ease;
}
.ov-item small { font-size: 10.5px; line-height: 1.6; color: var(--muted-2); }

/* ---------- 综合分析看板（智能体触发） ---------- */

.analysis-board {
  --g1: #1b6a6d; --g2: #b08a45; --g3: #c2543a; --g4: #4a6d8c; --g5: #7a5f8a;
  --c-diff: #b08a45; --c-match: #1b6a6d; --c-spread: #c2543a;
  margin-top: 26px;
  padding: 22px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #fdfaf2 100%);
  box-shadow: var(--shadow);
  animation: wall-in 0.42s ease both;
  scroll-margin-top: 18px;
}
.analysis-board .ab-head { align-items: center; margin-bottom: 18px; padding-bottom: 14px; }
.analysis-board .ab-head b { font-size: 21px; letter-spacing: 3px; }
.analysis-board .ab-head small { font-size: 13px; color: var(--muted); letter-spacing: 1px; }
.analysis-board .ab-head span { font-size: 12.5px; color: var(--muted-2); }
.ab-close {
  height: 30px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--teal-deep);
  font-size: 12.5px;
  letter-spacing: 1px;
  cursor: pointer;
}
.ab-close:hover { border-color: var(--teal); color: var(--teal); }

/* ---- KPI 四格：左彩条 + 大数字 ---- */

.ab-kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.ab-kpi-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 12px 16px 12px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.ab-kpi-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--tone);
}
.ab-kpi-card::after {
  content: "";
  position: absolute;
  right: -26px; top: -26px;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--tone);
  opacity: 0.08;
}
.ab-kpi-card b {
  flex: none;
  min-width: 86px;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  color: var(--tone);
}
.ab-kpi-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.ab-kpi-text span {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
  color: var(--ink);
}
.ab-kpi-text small {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.2;
  color: var(--muted-2);
}

/* ---- 三块面板 ---- */

.ab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.ab-panel {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(23, 60, 64, 0.04);
}
.ab-panel h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0 0 11px 12px;
  border-left: 4px solid var(--tone);
  border-bottom: 1px solid rgba(23, 60, 64, 0.1);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--tone);
}
.ab-panel h4 small {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--muted-2);
}

/* 面板顶部固定槽位：三块面板的大数字/环图同高，条形起点才对得齐 */

.ab-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 108px;
}
.ab-hero > b {
  flex: none;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
  color: var(--tone);
}
.ab-hero-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ab-hero-text span {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
  color: var(--ink);
}
.ab-hero-text small {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.3;
  color: var(--muted-2);
}

/* 用户匹配：环图 + 两个并排数字 */

.ab-ring { flex: none; width: 112px; }
.ab-ring .chart-svg { display: block; width: 100%; height: auto; }
.ab-hero-stats { display: flex; gap: 24px; }
.ab-hero-stats > div { display: flex; flex-direction: column; gap: 4px; }
.ab-hero-stats b {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  color: var(--c-match);
}
.ab-hero-stats span { font-size: 12.5px; font-weight: 600; letter-spacing: 0.3px; color: var(--muted); }

/* 组色条形 */

.ab-bars { display: flex; flex-direction: column; gap: 13px; }
.ab-bar-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 58px;
  gap: 10px;
  align-items: center;
}
.ab-bar-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ab-bar-track {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: #eef1ee;
  overflow: hidden;
}
.ab-bar-row.is-top .ab-bar-track { box-shadow: inset 0 0 0 1.5px rgba(194, 84, 58, 0.5); }
.ab-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  transition: width 0.5s ease;
}
.ab-bar-avg {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 2px;
  background: var(--gold-deep);
  opacity: 0.9;
}
.ab-bar-num {
  font-family: var(--serif);
  font-size: 15.5px;
  text-align: right;
}
.ab-bar-row.is-top .ab-bar-num { font-weight: 700; }

/* 图例 / 小标题 / 注释 */

.ab-legend { display: flex; flex-wrap: wrap; gap: 9px 14px; }
.ab-legend span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.ab-legend i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.ab-sub { margin: 4px 0 0; font-size: 13px; letter-spacing: 0.5px; color: var(--muted); }
.ab-fineprint {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted-2);
}
.ab-chart { margin: 0; }
.ab-chart .chart-svg { display: block; width: 100%; height: auto; }

/* ---- 下方双列：六维雷达 + 三指标走势 ---- */

.ab-lower {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.ab-side-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(23, 60, 64, 0.04);
}
.ab-side-block h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  padding: 0 0 11px 12px;
  border-left: 4px solid var(--tone);
  border-bottom: 1px solid rgba(23, 60, 64, 0.1);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--tone);
}
.ab-side-block h4 small {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--muted-2);
}
.ab-radar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 32px);
  flex-wrap: wrap;
}
.ab-radar-wrap .ab-chart { width: min(420px, 100%); }
.ab-legend-col { flex-direction: column; gap: 12px; }
.ab-legend-col span { font-size: 13px; }
.ab-legend-col i { width: 11px; height: 11px; }
.ab-side-block .ab-chart { margin-top: auto; }
.ab-side-block .ab-legend { margin-top: 10px; justify-content: center; }

/* ---------- 全屏评审 ---------- */

.review-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1000px 600px at 12% -6%, rgba(176, 138, 69, 0.16), transparent 66%),
    radial-gradient(820px 520px at 92% 104%, rgba(27, 106, 109, 0.30), transparent 68%),
    linear-gradient(170deg, #123c3c 0%, #0d2b2b 55%, #0a2222 100%);
  animation: rv-fade 0.2s ease both;
}
@keyframes rv-fade { from { opacity: 0; } to { opacity: 1; } }

.rv-top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* 与下方画框左边缘对齐（超宽屏时内容居中，标题跟着一起收） */
  padding: 14px max(clamp(16px, 2.4vw, 30px), calc((100vw - 1620px) / 2));
  border-bottom: 1px solid rgba(217, 188, 126, 0.22);
}
.rv-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.rv-no { font-family: var(--serif); font-size: 11.5px; letter-spacing: 2px; color: var(--gold-light); }
.rv-title b { font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: 1px; color: #f7f2e4; }
.rv-title i { color: rgba(217, 188, 126, 0.45); font-style: normal; }
.rv-title span:last-child {
  font-size: 13px;
  color: rgba(233, 239, 226, 0.78);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rv-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.rv-btn {
  height: 34px;
  min-width: 34px;
  padding: 0 13px;
  border: 1px solid rgba(217, 188, 126, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #eae3ce;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.rv-btn:hover { background: rgba(217, 188, 126, 0.18); border-color: rgba(217, 188, 126, 0.66); color: #fff8e6; }
.rv-close { font-size: 12px; color: rgba(233, 239, 226, 0.7); }
.rv-pos { font-family: var(--serif); font-size: 12.5px; color: rgba(233, 239, 226, 0.66); padding: 0 4px; letter-spacing: 1px; }

.rv-body {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  /* 左：作品（宽度贴合作品比例）；右：定位卡加宽，给文字更大字号留出空间 */
  grid-template-columns: minmax(0, 1fr) clamp(430px, 34vw, 620px);
  gap: clamp(14px, 1.6vw, 26px);
  padding: clamp(14px, 1.6vw, 22px) clamp(16px, 2.4vw, 30px) clamp(16px, 2vw, 26px);
}

.rv-stage {
  display: flex;
  flex-direction: column;
  align-items: center;      /* 画框贴合作品比例后居中，左右留白对称不空洞 */
  justify-content: center;  /* 横版作品上下也居中 */
  gap: 10px;
  min-height: 0;
}

/* 画框：宣纸装裱，尺寸贴合作品比例，不再出现大面积空白 */
.rv-frame {
  flex: none;                /* 尺寸由 JS 按作品比例算，横竖版都不留空边 */
  min-height: 0;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: var(--shot-ratio, 3 / 4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(8px, 0.9vw, 13px);
  border-radius: 6px;
  border: 1px solid rgba(217, 188, 126, 0.42);
  background: linear-gradient(180deg, #faf7ee 0%, #f2ecdd 100%);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}
.rv-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 3px;
}
.rv-stage-foot {
  flex: none;
  display: flex;
  justify-content: center;
  gap: 26px;
  padding: 0 4px;
  font-size: 12.5px;
  letter-spacing: 1px;
  color: rgba(233, 239, 226, 0.55);
}

/* ---------- 定位卡（宣纸卡） ---------- */

.rv-card {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #ddcfae;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
  color: var(--text);
  scrollbar-width: thin;
  scrollbar-color: rgba(27, 106, 109, 0.25) transparent;
}
.rv-card::-webkit-scrollbar { width: 6px; }
.rv-card::-webkit-scrollbar-thumb { background: rgba(27, 106, 109, 0.24); border-radius: 99px; }

.card-top {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px 13px;
  background: linear-gradient(180deg, #fffdf8 0%, #fdf9ee 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 14px rgba(23, 60, 64, 0.05);
}
.card-id {
  padding-right: 10px;
  border-right: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: 2px;
  color: var(--gold-deep);
}
.card-group {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(47, 139, 98, 0.12); }
.card-title-tag {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted-2);
  text-transform: uppercase;
}

.card-inner { padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 18px; }

.card-slogan {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.45;
  letter-spacing: 1.5px;
  color: var(--teal-deep);
}
.card-persona { margin: -8px 0 0; font-size: 13.5px; line-height: 1.85; color: var(--muted); }

/* KPI */

.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi {
  padding: 12px 14px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.kpi b {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--teal-deep);
}
.kpi b em { font-style: normal; font-size: 13px; color: var(--muted-2); margin-left: 2px; }
.kpi span { display: block; margin-top: 6px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.kpi i {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.3px;
  color: var(--green);
}
.kpi i.down { color: var(--gold-deep); }

/* 区块 */

.block { display: flex; flex-direction: column; gap: 11px; }
.block h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--ink);
}
.block h4::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
.block h4 small {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--muted-2);
}

.chart-svg { display: block; width: 100%; height: auto; }
/* 卡片变宽后图表不要无节制放大，避免挤压版面 */
.rv-card #chartRadar .chart-svg { max-width: 430px; margin: 0 auto; }

/* 配色 */

.stack-bar {
  display: flex;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-3);
  border: 1px solid var(--frame-line);
}
.stack-bar i { display: block; height: 100%; }

.swatches { display: flex; gap: 8px; }
.swatch { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.swatch-color {
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--frame-line);
  box-shadow: inset 0 -10px 18px rgba(23, 60, 64, 0.08);
}
.swatch-name { font-size: 12px; line-height: 1.35; color: var(--text); }
.swatch-hex {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: -0.3px;
  color: var(--muted-2);
  cursor: pointer;
}
.swatch-hex:hover { color: var(--teal); }
.swatch-share { font-size: 10.5px; letter-spacing: 0.5px; color: var(--gold-deep); }

/* 色相 + 明度 */

.hue-wrap { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; align-items: center; }
.hue-legend { display: flex; flex-direction: column; gap: 8px; }
.hue-item { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.5px; color: var(--muted); }
.hue-item i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.hue-item b { margin-left: auto; font-family: var(--serif); font-size: 12.5px; color: var(--teal-deep); font-weight: 500; }

/* 六维对比 */

.cmp-list { display: flex; flex-direction: column; gap: 9px; }
.cmp-row { display: grid; grid-template-columns: 68px minmax(0, 1fr) 84px; gap: 10px; align-items: center; }
.cmp-label { font-size: 12.5px; letter-spacing: 0.5px; color: var(--muted); }
.cmp-track { position: relative; height: 14px; border-radius: 999px; background: #e2ece9; overflow: hidden; }
.cmp-self {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-deep), #4d9b93);
}
.cmp-avg {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: var(--gold-deep);
  opacity: 0.85;
}
.cmp-num { font-family: var(--serif); font-size: 13.5px; color: var(--ink); text-align: right; }
.cmp-num small { color: var(--muted-2); font-size: 11px; }

/* 标签与说明 */

.card-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.card-tags span {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--teal-deep);
  font-size: 12.5px;
  letter-spacing: 0.5px;
}
.card-facts { display: flex; flex-direction: column; gap: 8px; }
.card-fact { display: flex; gap: 10px; font-size: 13px; line-height: 1.7; }
.card-fact dt { flex: none; width: 74px; letter-spacing: 0.5px; color: var(--muted-2); }
.card-fact dd { margin: 0; color: var(--text); }
.card-intro {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
  white-space: pre-wrap;
  text-align: justify;
}
.card-intro.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.intro-toggle {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal);
  font-size: 12.5px;
  letter-spacing: 0.5px;
}

/* 智能体点评 */

.ai-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdfc, #f4f8f6);
}
.ai-head { display: flex; align-items: center; gap: 10px; }
.ai-head img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); }
.ai-head b { font-family: var(--serif); font-size: 14px; font-weight: 500; letter-spacing: 1px; color: var(--ink); }
.ai-head small { font-size: 11.5px; color: var(--muted-2); }
.ai-btn {
  align-self: flex-start;
  height: 38px;
  padding: 0 17px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: #ffffff;
  color: var(--teal-deep);
  font-size: 13.5px;
  letter-spacing: 0.5px;
  transition: background 0.16s ease, color 0.16s ease;
}
.ai-btn:hover:not(:disabled) { background: var(--teal); color: #ffffff; }
.ai-btn:disabled { opacity: 0.55; cursor: wait; }
.ai-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text);
  white-space: pre-wrap;
  text-align: justify;
}
.ai-text:empty { display: none; }
.ai-text.is-loading::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 12px;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--teal);
  animation: ai-blink 0.9s steps(2) infinite;
}
@keyframes ai-blink { 50% { opacity: 0; } }
.ai-error { font-size: 12.5px; color: var(--accent); }

/* 指标说明 */

.formulas { border-top: 1px dashed var(--line); padding-top: 12px; }
.formulas summary {
  cursor: pointer;
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--muted-2);
  list-style: none;
}
.formulas summary::-webkit-details-marker { display: none; }
.formulas summary::before { content: "▸ "; color: var(--gold-deep); }
.formulas[open] summary::before { content: "▾ "; }
.formula-list { margin: 11px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.formula-list li { font-size: 12px; line-height: 1.8; color: var(--muted); }
.formula-list b { color: var(--ink); font-weight: 500; }

/* ---------- 定位评价（策划层） ---------- */

.pos-kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.pos-kpi > div {
  padding: 12px 13px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.pos-kpi b {
  display: block;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--teal-deep);
}
.pos-kpi b i { font-style: normal; font-size: 13px; color: var(--muted-2); }
.pos-kpi span { display: block; margin-top: 5px; font-size: 12px; letter-spacing: 0.5px; color: var(--muted); }

.pos-note {
  margin: 0;
  padding-left: 10px;
  border-left: 2px solid var(--gold);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.evidence {
  margin: 0;
  padding: 10px 13px;
  border-left: 2px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, rgba(217, 188, 126, 0.16), rgba(217, 188, 126, 0.03));
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text);
}
.evidence.is-empty {
  border-left-color: rgba(194, 84, 58, 0.55);
  background: rgba(194, 84, 58, 0.06);
  color: #a9503a;
}

/* ---------- 评审墙：定位面板与矩阵 ---------- */

.pos-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}
.pos-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pos-stat {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.pos-stat b {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--teal-deep);
}
.pos-stat span { display: block; margin-top: 4px; font-size: 12px; letter-spacing: 0.5px; color: var(--text); }
.pos-stat small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted-2); }

.pos-conflicts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px dashed rgba(194, 84, 58, 0.45);
  border-radius: 10px;
  background: var(--accent-soft);
}
.pos-conflicts b {
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--red);
}
.pos-conflicts span { font-size: 11.5px; color: #8d3a26; }

/* ---------- 响应式 ---------- */

@media (max-width: 1400px) {
  .wall-grid { gap: 14px; }
  .ab-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ab-lower { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .rv-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(200px, 42vh) minmax(0, 1fr); }
  .rv-stage { align-items: center; }
  .rv-stage-foot { justify-content: space-between; }
  .rv-card { max-height: none; }
  /* 堆叠后卡片变宽，图表要限宽，否则文字被放大到失真 */
  .card-inner { max-width: 720px; margin: 0 auto; width: 100%; }
  .rv-card .chart-svg { max-width: 460px; margin: 0 auto; }
  .hue-wrap { max-width: 620px; }
  .pos-body { grid-template-columns: minmax(0, 1fr); }
  .ab-grid { grid-template-columns: minmax(0, 1fr); }
  .ab-lower { grid-template-columns: minmax(0, 1fr); }
  .ab-hero { min-height: 0; }
  .ab-panel .chart-svg { max-width: 480px; margin: 0 auto; }
}

@media (max-width: 860px) {
  .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hue-wrap { grid-template-columns: 1fr; }
  .ab-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analysis-board { padding: 16px 14px 18px; }
  .ab-bar-row { grid-template-columns: 78px minmax(0, 1fr) 52px; gap: 8px; }
  .ab-bar-label { font-size: 13px; }
  .ab-hero-stats { gap: 16px; }
  .ab-kpi-card b { font-size: 34px; }
}

@media (max-width: 520px) {
  .kpi-row { grid-template-columns: 1fr; }
  .wall-name { font-size: 15px; letter-spacing: 1px; }
  .ab-kpi { grid-template-columns: 1fr; }
}
