/* ============================================================
   通玄 TONGXUAN · 三式合参 hecan.css
   理念条（三盘互证） / 合参帖 / 逐题信度结论卡
   —— 颜色一律走 token 或金·朱砂 rgba，换肤零负担 ——
   ============================================================ */

/* hidden 属性优先（几个显隐元件带显式 display 类） */
[hidden] { display: none !important; }

/* ================= 页首 ================= */
.hecan-hero-divider { animation: pageUp 1s var(--ease-out) 0.28s both; }

/* ================= 第一幕 · 理念条 + 合参帖 ================= */
.hecan-entry { padding-top: 72px; }

/* ---------- 三盘印章（理念条与证据行共用配色） ---------- */
.seal-ming {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 60%, var(--gold-600));
  color: #241a08;
  box-shadow: 0 4px 12px rgba(212, 175, 106, 0.35);
}
.seal-zi {
  background: linear-gradient(150deg, var(--ink-700), var(--ink-950));
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 106, 0.5);
  box-shadow: 0 4px 12px rgba(10, 15, 30, 0.3);
}
.seal-xing {
  background: linear-gradient(155deg, var(--cinnabar), var(--cinnabar-deep));
  color: #f8ecd8;
  box-shadow: 0 4px 12px rgba(150, 53, 44, 0.3);
}

/* ---------- 理念条：命 · 紫 · 星 互证 ---------- */
.concept-band {
  max-width: 980px;
  margin: 0 auto 64px;
  padding: 32px 40px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 106, 0.4);
  background:
    radial-gradient(ellipse 120% 150% at 50% -40%, rgba(212, 175, 106, 0.14), transparent 55%),
    linear-gradient(150deg, var(--ink-800), var(--ink-950) 90%);
  box-shadow: 0 18px 44px rgba(44, 42, 36, 0.18), inset 0 1px 0 rgba(212, 175, 106, 0.18);
  color: var(--text-hi);
}
.concept-row { display: flex; align-items: stretch; gap: 18px; }
.concept-card {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 7px;
  padding: 18px 12px 15px;
  border: 1px solid rgba(212, 175, 106, 0.22);
  border-radius: var(--radius-md);
  background: rgba(212, 175, 106, 0.05);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, background 0.35s;
}
.concept-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 106, 0.55);
  background: rgba(212, 175, 106, 0.09);
}
.concept-glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 10px;
  font-family: var(--font-serif);
  font-size: 23px; font-weight: 700;
}
.concept-name {
  font-family: var(--font-serif);
  font-size: 16.5px; font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-300);
}
.concept-sub { font-size: 12px; letter-spacing: 0.08em; color: var(--text-low); }

/* 互证连线：两段金线，各嵌一枚小环字 */
.concept-link {
  flex: none;
  align-self: center;
  display: flex; align-items: center;
  width: 76px;
}
.concept-link::before, .concept-link::after {
  content: "";
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 106, 0.65));
}
.concept-link::after { transform: scaleX(-1); }
.concept-link i {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  margin: 0 4px;
  border: 1px solid rgba(212, 175, 106, 0.55);
  border-radius: 50%;
  background: rgba(212, 175, 106, 0.08);
  font-style: normal;
  font-family: var(--font-serif);
  font-size: 12.5px; font-weight: 600;
  color: var(--gold-400);
}
.concept-motto {
  margin-top: 22px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 14.5px;
  letter-spacing: 0.22em;
  color: var(--text-mid);
}

/* ================= 第二幕 · 合参结论 ================= */
.verdict-section {
  padding-top: 40px;
  border-top: 1px solid rgba(44, 42, 36, 0.08);
}
.verdict-section .section-head { margin-bottom: 52px; }
.verdict-badge-row { margin-top: 16px; }

.topic-list {
  display: grid;
  gap: 26px;
  max-width: 900px;
  margin-inline: auto;
}

/* ---------- 逐题卡 ---------- */
.topic-card {
  position: relative;
  padding: 26px 32px 24px;
  background: linear-gradient(175deg, var(--paper-50), var(--paper-100));
  border: 1px solid rgba(184, 145, 75, 0.5);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 22px rgba(44, 42, 36, 0.08);
  transition: border-color 0.45s, box-shadow 0.45s var(--ease-out);
  animation: topicIn 0.8s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 150ms);
}
.topic-card:hover {
  border-color: rgba(184, 145, 75, 0.85);
  box-shadow: 0 16px 38px rgba(120, 96, 50, 0.16);
}
@keyframes topicIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* 高信度：金色描边微光 */
.topic-card.conf-high { border-color: rgba(212, 175, 106, 0.85); }
.topic-card.conf-high::after {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(212, 175, 106, 0.35), 0 0 26px rgba(212, 175, 106, 0.26);
  animation: goldBreath 3.8s ease-in-out infinite;
}
@keyframes goldBreath {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}
/* 存疑：朱砂描边提示 */
.topic-card.conf-low { border-color: rgba(184, 73, 62, 0.42); }

/* 卡头 */
.topic-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(150, 114, 58, 0.28);
}
.topic-name {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--paper-ink);
}
.topic-name::before {
  content: "";
  width: 8px; height: 8px;
  transform: rotate(45deg);
  background: var(--gold-600);
  flex: none;
}
.topic-conf { flex: none; white-space: nowrap; }

/* 卡身：三行证据 */
.topic-evidence { padding: 4px 0 2px; }
.ev-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(150, 114, 58, 0.22);
  animation: evIn 0.6s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 150ms + 0.35s + var(--j, 0) * 140ms);
}
.ev-row:last-child { border-bottom: none; }
@keyframes evIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}
.ev-seal {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 9px;
  font-family: var(--font-serif);
  font-size: 19px; font-weight: 700;
}
.ev-main { flex: 1; min-width: 0; }
.ev-src {
  display: block;
  font-family: var(--font-serif);
  font-size: 12px; letter-spacing: 0.18em;
  color: var(--paper-ink-soft);
}
.ev-text {
  margin-top: 2px;
  font-size: 15px; line-height: 1.85; letter-spacing: 0.03em;
  color: var(--paper-ink);
}

/* 卡底：金线之上的结论句 */
.topic-verdict {
  position: relative;
  margin-top: 18px;
  padding-top: 20px;
  text-align: center;
  animation: evIn 0.6s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 150ms + 0.35s + 3 * 140ms + 80ms);
}
.topic-verdict::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(340px, 76%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 145, 75, 0.75), transparent);
}
.topic-verdict::after {
  content: "";
  position: absolute; top: -2.5px; left: 50%;
  width: 6px; height: 6px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--gold-600);
}
.topic-verdict p {
  font-family: var(--font-serif);
  font-size: 16.5px; font-weight: 600;
  line-height: 1.9; letter-spacing: 0.06em;
  color: var(--paper-ink);
}

.conf-legend {
  max-width: 900px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 12.5px; letter-spacing: 0.06em;
  color: var(--paper-ink-soft);
}

/* ================= 减动效 ================= */
@media (prefers-reduced-motion: reduce) {
  .hecan-hero-divider, .topic-card, .ev-row, .topic-verdict {
    animation-delay: 0s !important;
  }
  .topic-card.conf-high::after { animation: none; opacity: 0.8; }
}

/* ================= 响应式 ================= */
@media (max-width: 720px) {
  .hecan-entry { padding-top: 52px; }

  .concept-band { padding: 26px 22px 22px; margin-bottom: 48px; }
  .concept-row { flex-direction: column; gap: 12px; }
  .concept-link { width: 100%; }
  .concept-motto { font-size: 13.5px; letter-spacing: 0.12em; }

  .topic-card { padding: 22px 20px 20px; }
  .topic-name { font-size: 19px; gap: 10px; }
  .ev-seal { width: 34px; height: 34px; font-size: 16.5px; border-radius: 8px; }
  .ev-text { font-size: 14.5px; }
  .topic-verdict p { font-size: 15px; }
}
@media (max-width: 420px) {
  .topic-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}
