/* 首页专用样式(#951 / D306)。所有类以 hm- 开头,不与 site.css 撞名;设计稿 design/home-redesign-review-2026-10-08.html */
.hm { --hm-line: rgba(255,255,255,.09); --hm-soft: rgba(51,226,122,.1); }
.hm svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hm section { padding: 72px 0; }
.hm h1 { font-size: clamp(2.125rem, 5.2vw, 3.75rem); line-height: 1.05; letter-spacing: -.025em; max-width: 820px; margin: 0 auto; }
.hm h2 { font-size: clamp(1.625rem, 3.4vw, 2.375rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; margin: 0 auto; max-width: 720px; }
.hm h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; margin: 0; }
.hm-eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--accent); font-size: .8125rem; font-weight: 600; margin-bottom: 12px; }
.hm-lede { color: var(--text-mid); font-size: clamp(1rem, 1.6vw, 1.1875rem); max-width: 560px; margin: 16px auto 0; line-height: 1.55; }
.hm-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--hm-line); color: var(--text-hi); text-decoration: none; font: 600 1rem var(--sans); background: none; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.hm-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.04); }
.hm-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hm-btn.primary:hover { background: #4fe98c; }
.hm-btn:focus-visible, .hm-tab:focus-visible, .hm-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hm-cta { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hm-head { text-align: center; margin-bottom: 48px; }
.hm-center { text-align: center; }

.hm-hero { padding-top: 72px; text-align: center; position: relative; overflow: hidden; }
.hm-hero::before { content: ""; position: absolute; left: 50%; top: -120px; width: 760px; height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(51,226,122,.16), transparent); pointer-events: none; }
.hm-chips { display: flex; gap: 20px; justify-content: center; margin-top: 24px; color: var(--text-mid); font-size: .875rem; flex-wrap: wrap; }
.hm-chips span { display: inline-flex; align-items: center; gap: 8px; }
.hm-chips svg { color: var(--accent); font-size: 18px; }
.hm-shot { border: 1px solid var(--hm-line); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.hm-shot img { display: block; width: 100%; height: auto; }
.hm-hero .hm-shot { margin-top: 56px; position: relative; transition: transform .25s var(--ease); will-change: transform; }

.hm-pillars { display: grid; grid-template-columns: 380px 1fr; gap: 48px; margin-top: 48px; align-items: start; }
.hm-tabs { display: grid; gap: 12px; }
.hm-tab { display: flex; gap: 16px; text-align: left; background: none; color: var(--text-hi); font: inherit; border: 1px solid var(--hm-line); border-radius: 12px; padding: 18px 20px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); min-height: 44px; }
.hm-tab:hover { transform: translateX(3px); }
.hm-tab .ic, .hm-card .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--hm-soft); color: var(--accent); display: grid; place-items: center; font-size: 20px; flex: none; }
.hm-tab .t { display: block; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.hm-tab .s { display: block; color: var(--text-mid); font-size: .875rem; margin-top: 4px; }
.hm-tab[aria-selected=true] { border-color: rgba(51,226,122,.55); background: rgba(51,226,122,.06); }
.hm-panel { display: none; }
.hm-panel.on { display: block; animation: hm-in .45s var(--ease); }
@keyframes hm-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hm-memory { padding: 28px; display: grid; gap: 14px; }
.hm-bubble { padding: 14px 16px; border-radius: 14px; font-size: .875rem; max-width: 88%; line-height: 1.5; }
.hm-bubble.q { background: #1d1d1d; border: 1px solid var(--hm-line); }
.hm-bubble.a { background: rgba(51,226,122,.09); border: 1px solid rgba(51,226,122,.3); margin-left: auto; }
.hm-bubble small { display: flex; align-items: center; gap: 6px; color: var(--accent); font-size: .75rem; margin-bottom: 6px; font-weight: 600; }

.hm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hm-card { border: 1px solid var(--hm-line); border-radius: 12px; padding: 22px; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.hm-card:hover { transform: translateY(-4px); border-color: rgba(51,226,122,.4); background: rgba(51,226,122,.04); }
.hm-card .ic { margin-bottom: 16px; }
.hm-card p { color: var(--text-mid); font-size: .875rem; margin: 6px 0 0; }

.hm-cmp { border: 1px solid var(--hm-line); border-radius: 16px; overflow: hidden; }
.hm-row { display: grid; grid-template-columns: 1fr repeat(4, 92px); align-items: center; border-top: 1px solid var(--hm-line); min-height: 56px; }
.hm-row:first-child { border-top: 0; color: var(--text-mid); font-size: .8125rem; min-height: 48px; }
.hm-row > div { padding: 12px 16px; position: relative; }
.hm-row > div:not(:first-child) { text-align: center; }
.hm-row .us { background: rgba(51,226,122,.07); color: var(--text-hi); font-weight: 600; align-self: stretch; display: grid; place-items: center; }
.hm-row .yes { color: var(--accent); } .hm-row .no { color: #7a7a73; } .hm-row .mid { color: #c9a54a; }
.hm-row svg { font-size: 20px; vertical-align: middle; }
.hm-more { display: flex; justify-content: center; margin-top: 24px; }
.hm-more a { color: var(--accent); text-decoration: none; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }

.hm-faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.hm-faq details { border: 1px solid var(--hm-line); border-radius: 12px; padding: 0 20px; transition: border-color .2s; }
.hm-faq details[open] { border-color: rgba(51,226,122,.35); }
.hm-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; min-height: 60px; font-weight: 600; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary .q { color: var(--accent); font-size: 20px; }
.hm-faq summary .plus { margin-left: auto; color: var(--text-mid); transition: transform .25s var(--ease); }
.hm-faq details[open] .plus { transform: rotate(45deg); }
.hm-faq p { color: var(--text-read); padding: 0 0 20px 34px; font-size: .9375rem; margin: 0; }

.hm-final { background: var(--green-bg); border-top: 1px solid var(--green-edge); border-bottom: 1px solid var(--green-edge); text-align: center; }

.hm-modal { border: 0; background: transparent; padding: 0; overflow: visible; width: min(960px, 94vw); max-width: none; }
.hm-modal::backdrop { background: rgba(0,0,0,.8); }
.hm-modal .frame { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.hm-modal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hm-modal .close { position: absolute; right: 0; top: -44px; min-height: 40px; }

.hm.hm-js .hm-rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.hm.hm-js .hm-rv.show { opacity: 1; transform: none; }
.hm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .hm-panel.on { animation: none; }
  .hm-btn:hover, .hm-card:hover, .hm-tab:hover { transform: none; }
  .hm-hero .hm-shot { transform: none !important; }
}

@media (max-width: 900px) {
  .hm-pillars { grid-template-columns: 1fr; gap: 24px; }
  .hm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .hm section { padding: 48px 0; }
  .hm-hero { padding-top: 40px; }
  .hm-hero .hm-shot { margin-top: 32px; }
  .hm-cta .hm-btn { width: 100%; justify-content: center; }
  .hm-chips { gap: 14px; font-size: .8125rem; }
  .hm-head { margin-bottom: 32px; }
  .hm-pillars { margin-top: 32px; }
  .hm-tabs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hm-tab { flex-direction: column; align-items: center; text-align: center; padding: 12px 6px; gap: 8px; }
  .hm-tab .s { display: none; }
  .hm-tab .t { font-size: .8125rem; }
  .hm-tab:hover { transform: none; }
  .hm-memory { padding: 16px; }
  .hm-bubble { max-width: 100%; }
  .hm-grid { grid-template-columns: 1fr; gap: 12px; }
  .hm-card { display: grid; grid-template-columns: 40px 1fr; gap: 0 14px; padding: 16px; }
  .hm-card .ic { grid-row: span 2; margin: 0; }
  .hm-card p { margin-top: 2px; }
  .hm-row { grid-template-columns: 1fr repeat(4, 44px); }
  .hm-row > div { padding: 10px 6px; }
  .hm-row > div:first-child { padding-left: 12px; font-size: .8125rem; }
  .hm-row:first-child { font-size: .625rem; }
  .hm-row:first-child .us { font-size: .5625rem; padding: 10px 0; overflow: hidden; }
  .hm-row .us { font-size: .6875rem; }
  .hm-faq details { padding: 0 14px; }
  .hm-faq p { padding-left: 0; }
}
