/* ============================================================
   Evidence-led homepage components
   证据驱动型首页：首屏证据 / 档案计数 / 数据货架 / 方法时间线
   ============================================================ */

:root {
  --ev-navy: #0a1b3d;
  --ev-navy-2: #12274f;
  --ev-violet: #5b3fd6;
  --ev-violet-soft: #6d4ae0;
  --ev-line: rgba(10, 27, 61, .12);
  --ev-ink: #14203a;
  --ev-muted: #5c6a86;
  --ev-surface: #f5f6fa;
}

/* ---------- 1. 证据首屏 ---------- */
.ev-hero {
  position: relative;
  overflow: hidden;
  background: var(--ev-navy);
  color: #fff;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.ev-hero-media {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-banner-v2.jpg");
  background-size: cover;
  background-position: center;
  opacity: .42;
  transform: scale(1.02);
}

.ev-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7,18,42,.97) 0%, rgba(7,18,42,.90) 46%, rgba(7,18,42,.62) 100%),
    radial-gradient(120% 90% at 88% 12%, rgba(109,74,224,.30) 0%, transparent 58%);
}

.ev-hero-inner {
  position: relative;
  z-index: 5;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 96px 0 88px;
  max-width: 780px;
}

.ev-hero .eyebrow {
  color: #b8aeff;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 18px;
}

.ev-hero h1 {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .35);
}

.ev-lede {
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.65;
  color: rgba(255,255,255,.92);
  margin: 0 0 34px;
  max-width: 620px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

.ev-query {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 620px;
}

.ev-query input {
  flex: 1 1 300px;
  min-width: 0;
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  backdrop-filter: blur(6px);
  transition: border-color .2s, background .2s;
}

.ev-query input::placeholder { color: rgba(255,255,255,.55); }

.ev-query input:focus {
  outline: none;
  border-color: var(--ev-violet-soft);
  background: rgba(255,255,255,.13);
}

.ev-query .button.primary {
  flex: 0 0 auto;
  padding: 16px 28px;
  border-radius: 10px;
  background: var(--ev-violet);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.ev-query .button.primary:hover { background: #4a30c4; transform: translateY(-1px); }

.ev-hint {
  margin: 20px 0 0;
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
}

.ev-chip {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #cfc7ff;
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 13px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  cursor: pointer;
  margin: 0 4px;
  transition: all .2s;
}

.ev-chip:hover { background: var(--ev-violet); border-color: var(--ev-violet); color: #fff; }

/* 查询结果卡 */
.ev-sample {
  margin-top: 26px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-left: 3px solid var(--ev-violet-soft);
  border-radius: 12px;
  padding: 22px 26px;
  backdrop-filter: blur(10px);
  animation: evFade .35s ease;
}

@keyframes evFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ev-sample-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ev-sample-title strong {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 19px;
  color: #fff;
  letter-spacing: .02em;
}

.ev-sample-title span { font-size: 12.5px; color: #a89cf5; letter-spacing: .08em; text-transform: uppercase; }

.ev-sample dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px 22px;
  margin: 0 0 16px;
}

.ev-sample dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.ev-sample dd { margin: 0; font-size: 14.5px; color: #fff; }

.ev-sample a {
  color: #cfc7ff;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(207,199,255,.4);
  padding-bottom: 1px;
}

.ev-sample a:hover { color: #fff; border-color: #fff; }

.ev-sample .ev-miss { color: #ffd9a0; font-size: 14.5px; }
.ev-sample .ev-miss b { font-family: ui-monospace, monospace; }

/* ---------- 2. 档案计数器 ---------- */
.ev-counter {
  background: var(--ev-surface);
  border-bottom: 1px solid var(--ev-line);
}

.ev-counter-grid {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ev-line);
}

.ev-stat {
  background: var(--ev-surface);
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ev-stat strong {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--ev-navy);
  line-height: 1;
  letter-spacing: -.02em;
}

.ev-stat span {
  font-size: 13px;
  color: var(--ev-muted);
  letter-spacing: .03em;
}

.ev-stat-live strong {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(19px, 2vw, 25px);
  color: var(--ev-violet);
  letter-spacing: .01em;
}

.ev-stat-live { position: relative; }

.ev-stat-live::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #26c281;
  box-shadow: 0 0 0 0 rgba(38,194,129,.7);
  animation: evPulse 2.4s infinite;
}

@keyframes evPulse {
  0%   { box-shadow: 0 0 0 0 rgba(38,194,129,.6); }
  70%  { box-shadow: 0 0 0 9px rgba(38,194,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(38,194,129,0); }
}

/* ---------- 3. 数据货架 ---------- */
.ev-shelf { background: #fff; }

.shelf-wrap {
  overflow-x: auto;
  border: 1px solid var(--ev-line);
  border-radius: 12px;
}

.shelf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 720px;
}

.shelf-table thead th {
  text-align: left;
  vertical-align: middle;
  padding: 15px 20px;
  background: var(--ev-navy);
  color: rgba(255,255,255,.82);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.shelf-table tbody tr { border-bottom: 1px solid var(--ev-line); transition: background .15s; }
.shelf-table tbody tr:last-child { border-bottom: none; }
.shelf-table tbody tr:hover { background: #f7f8fc; }

.shelf-table td { padding: 15px 20px; color: var(--ev-ink); vertical-align: middle; }

.shelf-code a {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ev-violet);
  text-decoration: none;
}

.shelf-code a:hover { text-decoration: underline; }

.shelf-cat { color: var(--ev-muted); }

.shelf-purity { display: flex; align-items: center; gap: 11px; white-space: nowrap; }

.purity-bar {
  display: inline-block;
  width: 96px;
  height: 6px;
  border-radius: 999px;
  background: #e6e9f2;
  overflow: hidden;
  flex: 0 0 auto;
}

.purity-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ev-violet-soft), var(--ev-violet));
}

.shelf-purity b { font-weight: 600; font-size: 14px; color: var(--ev-ink); }

.shelf-pack { color: var(--ev-muted); white-space: nowrap; }

.shelf-link {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ev-violet);
  text-decoration: none;
  border: 1px solid rgba(91,63,214,.35);
  border-radius: 6px;
  padding: 5px 12px;
  transition: all .18s;
}

.shelf-link:hover { background: var(--ev-violet); color: #fff; border-color: var(--ev-violet); }

.shelf-note { margin: 16px 0 0; font-size: 13.5px; color: var(--ev-muted); }
.shelf-note a { color: var(--ev-violet); }

/* ---------- 4. 方法时间线 ---------- */
.ev-method { background: var(--ev-surface); }

.method-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  position: relative;
}

.method-step { position: relative; }

.method-img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e6e9f2;
  margin-bottom: 20px;
}

.method-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.method-num {
  display: inline-block;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ev-violet);
  background: rgba(91,63,214,.1);
  border-radius: 5px;
  padding: 3px 9px;
  margin-bottom: 10px;
}

.method-step h3 {
  font-size: 18px;
  margin: 0 0 9px;
  color: var(--ev-navy);
  font-weight: 600;
}

.method-step p { margin: 0; font-size: 14px; line-height: 1.62; color: var(--ev-muted); }

.method-step::after {
  content: "";
  position: absolute;
  top: 22%;
  right: -18px;
  width: 10px;
  height: 1px;
  background: var(--ev-line);
}

.method-step:last-child::after { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .ev-counter-grid { grid-template-columns: repeat(2, 1fr); }
  .method-track { grid-template-columns: repeat(2, 1fr); }
  .method-step::after { display: none; }
}

@media (max-width: 640px) {
  .ev-hero { min-height: auto; }
  .ev-hero-inner { padding: 64px 0 60px; }
  .ev-query .button.primary { width: 100%; }
  .ev-counter-grid { grid-template-columns: 1fr; }
  .method-track { grid-template-columns: 1fr; }
  .ev-stat { padding: 24px 20px; }
}


/* ---------- 5. 首屏 B/C 双分流路径 ---------- */
.ev-paths {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 46px;
  max-width: 790px;
}

.ev-path {
  display: block;
  padding: 26px 28px;
  background: #16264a;
  border: 1px solid rgba(160,150,255,.42);
  border-top: 3px solid var(--ev-violet-soft);
  border-radius: 13px;
  text-decoration: none;
  transition: background .22s, transform .22s, border-color .22s;
  position: relative;
  z-index: 3;
  box-shadow: 0 10px 32px rgba(0,0,0,.42);
}

.ev-path:hover {
  background: #24356b;
  border-color: rgba(184,174,255,.9);
  transform: translateY(-3px);
}

.ev-path-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--ev-violet);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 14px;
}

.ev-path strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  font-family: "Outfit", system-ui, sans-serif;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

.ev-path-desc {
  display: block;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,.88);
  margin-bottom: 15px;
}

.ev-path-cta {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  color: #d5cfff;
  transition: color .2s, transform .2s;
}

.ev-path:hover .ev-path-cta { color: #fff; transform: translateX(3px); }

/* ---------- 6. 货架：量级 + 双 CTA ---------- */
.shelf-pack .pack-bulk { display: block; font-size: 14px; color: var(--ev-ink); }

.shelf-pack .pack-trial {
  display: block;
  font-size: 11.5px;
  color: var(--ev-violet);
  letter-spacing: .04em;
  margin-top: 3px;
}

.shelf-act { white-space: nowrap; }

.shelf-quote {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ev-navy);
  border: 1px solid var(--ev-navy);
  border-radius: 6px;
  padding: 5px 13px;
  text-decoration: none;
  margin-right: 7px;
  transition: all .18s;
}

.shelf-quote:hover { background: var(--ev-violet); border-color: var(--ev-violet); }

/* ---------- 7. 双栏评价 ---------- */
.fb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}

.fb-head { margin-bottom: 20px; }

.fb-head h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ev-navy);
  margin: 0 0 5px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.fb-head h3::before {
  content: "";
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: var(--ev-violet);
  display: inline-block;
}

.fb-head p { margin: 0; font-size: 13px; color: var(--ev-muted); }

.fb-b2c .fb-head h3::before { background: #26a17b; }

.fb-col figure {
  margin: 0 0 15px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--ev-line);
  border-radius: 11px;
  transition: border-color .2s, box-shadow .2s;
}

.fb-col figure:hover { border-color: rgba(91,63,214,.35); box-shadow: 0 4px 18px rgba(10,27,61,.06); }

.fb-b2c figure { background: #fbfcfd; }

.fb-col blockquote {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ev-ink);
  font-style: normal;
}

.fb-col figcaption { display: flex; flex-direction: column; gap: 2px; }

.fb-col figcaption strong { font-size: 13.5px; font-weight: 600; color: var(--ev-navy); }
.fb-col figcaption span { font-size: 12.5px; color: var(--ev-muted); }

@media (max-width: 860px) {
  .ev-paths { grid-template-columns: 1fr; }
  .fb-grid { grid-template-columns: 1fr; gap: 28px; }
}
