/* 智能小分子药物设计平台 V6 · 首页（就地评估首屏、影片区、常见问题）与全站右上展示入口 */
.top-show { display: flex; gap: 8px; align-items: center; }
.top-show a { font-size: 13px; font-weight: 600; line-height: 1; padding: 8px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; border: 1px solid var(--w6a-brand); color: var(--w6a-brand); background: var(--w6a-paper); }
.top-show a.is-demo { background: var(--w6a-brand); color: #fff; }
.top-show a:hover { background: var(--w6a-brand-deep); color: #fff; }
.top-show a:focus-visible { outline: 2px solid var(--w6a-accent); outline-offset: 2px; }
.brand .brand-name { font-weight: 700; }
@media (max-width: 1180px) { .top .badge { display: none; } }
@media (max-width: 720px) { .top-show a { padding: 7px 9px; font-size: 12px; } .top-show a .lg { display: none; } }

.h7-hero { background: radial-gradient(1100px 620px at 78% 10%, #16365a 0%, #0c1b2c 58%, #08121d 100%); color: #eef2f6; position: relative; overflow: hidden; }
.h7-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(95, 211, 196, .22) 1.4px, transparent 1.6px); background-size: 46px 40px; opacity: .5; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.h7-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 44px; padding-bottom: 48px; }
.h7-eyebrow { margin: 0; font-size: 13px; letter-spacing: .16em; color: #5fd3c4; font-weight: 700; }
.h7-hero h1 { font-size: clamp(28px, 3.05vw, 44px); text-wrap: balance; line-height: 1.15; margin: 12px 0 14px; color: #fff; letter-spacing: .01em; }
.h7-lede { font-size: 17px; line-height: 1.7; color: #c3d0de; margin: 0 0 20px; max-width: 34em; }
.h7-go { display: flex; gap: 8px; }
.h7-go input { flex: 1; min-width: 0; padding: 14px 16px; border: 1.5px solid #3a5372; border-radius: 12px; font-size: 16px; background: #fff; color: #0b0b0b; font-family: var(--w6a-font-mono); }
.h7-go input::placeholder { font-family: var(--w6a-font-cn); color: #7b8794; font-size: 14px; }
.h7-go input:focus { outline: none; border-color: #5fd3c4; box-shadow: 0 0 0 4px rgba(95, 211, 196, .28); }
.h7-btn { border-radius: 12px; padding: 0 22px; font-size: 16px; background: #2aa393; border-color: #2aa393; color: #04121c; font-weight: 700; white-space: nowrap; }
.h7-btn:hover { background: #5fd3c4; }
.h7-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0; font-size: 13px; color: #9fb0c2; }
.h7-chip { font: inherit; font-size: 13px; color: #dbe5ef; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.h7-chip:hover, .h7-chip:focus-visible { background: rgba(95, 211, 196, .22); border-color: #5fd3c4; outline: none; }
.h7-chip-t { border-style: dashed; }
.h7-msg { min-height: 24px; margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: #c3d0de; }
.h7-msg.ok { color: #7fe0b0; } .h7-msg.err { color: #ffb4a8; } .h7-msg.warn { color: #f4d27a; }
.h7-msg a { color: #9fe6dc; } .h7-msg a.btn, .h7-msg .btn { color: #04121c; background: #5fd3c4; border-color: #5fd3c4; margin: 0 4px; }
.h7-proof { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.h7-proof li { border-left: 2px solid #2aa393; padding-left: 10px; display: grid; gap: 2px; }
.h7-proof b { font-size: 26px; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.h7-proof span { font-size: 12px; line-height: 1.45; color: #9fb0c2; }

.h7-card { background: #fff; color: var(--w6a-ink-900); border-radius: 18px; padding: 18px 20px 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .42); min-width: 0; transition: opacity .25s; }
.h7-card[data-state="busy"] { opacity: .55; }
.h7c-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.h7c-tag { font-size: 12px; font-weight: 700; color: var(--w6a-accent-ink); background: var(--w6a-accent-tint); border-radius: 999px; padding: 2px 10px; }
.h7-card[data-state="live"] .h7c-tag { color: var(--w6a-ok); background: #EAF3EC; }
.h7c-name { font-size: 19px; } .h7c-formula { font-size: 13px; color: var(--w6a-ink-500); }
.h7c-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 12px; align-items: center; margin: 8px 0 10px; }
.h7c-svg svg { width: 100%; height: auto; max-height: 200px; display: block; }
.h7c-props { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.h7c-props div { border-bottom: 1px solid var(--w6a-hairline); padding-bottom: 4px; }
.h7c-props dt { font-size: 12px; color: var(--w6a-ink-500); } .h7c-props dd { margin: 0; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.h7c-rules { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.h7c-rules li { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; border-radius: 8px; padding: 5px 9px; }
.h7c-rules li.ok { background: #EAF3EC; color: #14532a; } .h7c-rules li.no { background: #FDF0D5; color: #7a4a00; }
.h7c-rules b { font-weight: 700; white-space: nowrap; }
.h7c-alert { margin: 0 0 6px; font-size: 13px; color: var(--w6a-ink-500); } .h7c-alert.has { color: #7a4a00; } .h7c-alert .mono { font-family: var(--w6a-font-mono); font-size: 12px; }
.h7c-verdict { margin: 0 0 10px; font-size: 14px; line-height: 1.55; padding: 8px 10px; border-radius: 8px; }
.h7c-verdict.ok { background: #EAF3EC; color: #14532a; } .h7c-verdict.warn { background: #FDF0D5; color: #6b4100; }
.h7c-act { display: flex; flex-wrap: wrap; gap: 6px; }
.h7c-note { margin: 8px 0 0; font-size: 12px; color: var(--w6a-ink-300); }

.h7-film-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.h7-film .hf-box { background: #08121d; border-color: #1c2f44; }
.hf-ctl { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; }
.hf-ctl[hidden] { display: none; }
.hf-ctl .hf-toggle { position: static; background: rgba(8, 18, 29, .78); color: #eef2f6; border-color: rgba(255, 255, 255, .35); }
.hf-ctl .hf-toggle:hover { background: #2aa393; color: #04121c; }
.hf-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); }
.hf-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3fb6a8, #f4c542); }
.h7-script { margin: 10px 0 16px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.h7-script li { counter-increment: s; font-size: 14px; line-height: 1.55; color: var(--w6a-ink-500); padding-left: 30px; position: relative; }
.h7-script li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: var(--w6a-brand-tint); color: var(--w6a-brand); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.h7-script b { color: var(--w6a-ink-900); margin-right: 8px; }
.h7-faq details { border-bottom: 1px solid var(--w6a-hairline); padding: 12px 0; }
.h7-faq summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.h7-faq details p { margin: 8px 0 0; color: var(--w6a-ink-500); line-height: 1.7; max-width: 52em; }
.dm-step:target, .dm.auto { scroll-margin-top: 80px; }

@media (max-width: 980px) {
  .h7-hero-in, .h7-film-grid { grid-template-columns: 1fr; }
  .h7-proof { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .h7-go { flex-direction: column; } .h7-btn { padding: 13px 22px; }
  .h7c-body { grid-template-columns: 1fr; } .h7c-rules { grid-template-columns: 1fr 1fr; }
  .h7-hero-in { padding-top: 28px; padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) { .h7-card { transition: none; } }
.pname { font-weight: 700; color: var(--w6a-ink-900); text-decoration: none; white-space: nowrap; font-size: 15px; }
.pname:hover { color: var(--w6a-brand); }
.brand { font-weight: 600; font-size: 14px; color: var(--w6a-ink-500); }
@media (max-width: 1320px) { .brand .back { display: none; } }
@media (max-width: 860px) { .top-in { flex-wrap: wrap; } .top-show { margin-left: auto; } }

.top .top-in { max-width: 1340px; }
.top .nav { gap: 14px; }
#matrix { overflow-x: clip; padding-bottom: 4px; }

.h7c-ai { margin: 10px 0 4px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.h7c-ai-hint { font-size: 12px; color: #5b6673; flex: 1 1 200px; }
.h7c-ai-out { flex: 1 1 100%; border: 1px solid #cfe3de; background: #f3faf8; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.7; color: #14232b; }
.h7c-ai-out.err { background: #fff4f1; border-color: #f0c4ba; color: #8a3a2a; }
.h7c-ai-tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #2aa393; color: #04121c; margin-bottom: 6px; }
.h7c-ai-tag.cache { background: #f4d27a; }
.h7c-ai-body { white-space: pre-wrap; }
.h7c-ai-body.cur::after { content: "▍"; animation: h7blink 1s steps(2) infinite; color: #2aa393; }
@keyframes h7blink { 50% { opacity: 0; } }
.h7c-ai-foot { display: block; margin-top: 6px; font-size: 12px; color: #5b6673; }
#home-card.stale > :not(.h7c-stale) { opacity: .55; filter: grayscale(.4); transition: opacity .2s; }
.h7c-stale { display: block; margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; background: #fff1c9; color: #6a4a00; font-size: 13px; font-weight: 600; }
