/* BESCORE — solutions page: hero index, energy-flow diagram, scenario blocks.
   Loaded after product.css and line.css. */

/* ---------- hero ---------- */
.shero .phero__title { font-size: clamp(36px, 4.1vw, 70px); }
.shero__photo { height: min(52vh, 560px); border-radius: 28px; overflow: hidden; background: var(--ink-2); }
.shero__photo .lhero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.shero__photo::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, rgba(3, 8, 10, 0) 50%, rgba(3, 8, 10, 0.45) 100%), linear-gradient(0deg, rgba(3, 8, 10, 0.5), rgba(3, 8, 10, 0) 45%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.phero__specs.shero__index { grid-template-columns: repeat(6, 1fr); }
.shero__index a { display: block; }
.phero__specs.shero__index b { font-size: 12px; letter-spacing: 0.1em; color: var(--glow); }
.phero__specs.shero__index span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.3; color: #fff; transition: color 0.3s; }
.shero__index a:hover span { color: var(--glow); }

/* ---------- energy-flow diagram ---------- */
.topo { margin-top: 56px; }
.topo__pills { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--ink-line); }
.topo__pills button { height: 44px; padding: 0 20px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-muted); white-space: nowrap; transition: background 0.3s, color 0.3s; }
.topo__pills button:hover { color: #fff; }
.topo__pills button.is-active { background: #fff; color: var(--text); }
.topo__grid { margin-top: 22px; display: grid; grid-template-columns: 1.9fr 1fr; gap: 18px; align-items: stretch; }
.topo__stage { position: relative; display: flex; align-items: center; padding: 28px 24px 56px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); background-color: #03080a; background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 22px 22px; }
.topo__scroll { width: 100%; }
.topo__svg { display: block; width: 100%; height: auto; }
.topo__wire { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 2.5; }
.topo__flow { fill: none; stroke: url(#tg); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 10 22; opacity: 0; transition: opacity 0.5s; filter: drop-shadow(0 0 4px rgba(62, 240, 210, 0.8)); }
.topo__flow.is-on { opacity: 1; animation: topoflow 1.1s linear infinite; }
.topo__flow.is-rev { animation-direction: reverse; }
@keyframes topoflow { from { stroke-dashoffset: 32; } to { stroke-dashoffset: 0; } }
.topo__node rect { fill: #071114; stroke: rgba(255, 255, 255, 0.12); stroke-width: 1.5; transition: stroke 0.4s, fill 0.4s; }
.topo__node text { fill: rgba(233, 242, 241, 0.5); font: 500 15px var(--mono); letter-spacing: 0.05em; text-transform: uppercase; transition: fill 0.4s; }
.topo__node text.sub { font-size: 13px; letter-spacing: 0; text-transform: none; fill: rgba(233, 242, 241, 0.36); }
.topo__node.is-on rect { stroke: rgba(62, 240, 210, 0.75); fill: #08191b; }
.topo__node.is-on text { fill: #fff; }
.topo__node.is-on text.sub { fill: rgba(62, 240, 210, 0.9); }
.topo__hub rect { fill: #0a2224; stroke: var(--glow); stroke-width: 1.5; }
.topo__hub rect.ring { fill: none; stroke: rgba(62, 240, 210, 0.3); stroke-dasharray: 4 8; animation: toporing 14s linear infinite; }
@keyframes toporing { to { stroke-dashoffset: -240; } }
.topo__hub text { fill: #fff; font: 600 18px var(--font); letter-spacing: -0.01em; }
.topo__hub text.sub { fill: var(--glow); font: 500 15px var(--mono); letter-spacing: 0.14em; }
.topo__hub text.sub2 { fill: rgba(233, 242, 241, 0.5); font: 400 10.5px var(--mono); letter-spacing: 0; }
.topo__badge { position: absolute; right: 16px; bottom: 14px; padding: 6px 10px; border-radius: 6px; border: 1px dashed rgba(255, 255, 255, 0.2); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(233, 242, 241, 0.5); }
.topo__side { display: flex; flex-direction: column; gap: 26px; padding: 30px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(255, 255, 255, 0.08); }
.topo__panel { display: none; }
.topo__panel.is-active { display: block; animation: topofade 0.5s var(--ease); }
@keyframes topofade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.topo__panel h3 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; color: #fff; }
.topo__panel .topo__k { margin: 22px 0 6px; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--glow); }
.topo__panel p { margin: 0; font-size: 15px; color: var(--ink-muted); }
.topo__panel ul { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; font-size: 14.5px; color: var(--ink-text); }
.topo__panel li { position: relative; padding-left: 18px; }
.topo__panel li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); }
.topo__side .btn { margin-top: auto; align-self: flex-start; }

/* ---------- scenario blocks ---------- */
.scns .section-head { margin-bottom: 20px; }
.scn { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line); scroll-margin-top: 140px; }
.scn:first-of-type { border-top: 0; }
.scn--flip .scn__img { order: 2; }
.scn__img { position: relative; margin: 0; aspect-ratio: 16 / 11; border-radius: 28px; overflow: hidden; background: var(--ink-2); }
.scn__img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 0.9s var(--ease); }
.scn__img:hover img { transform: scale(1.03); }
.scn__img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, rgba(3, 8, 10, 0) 55%, rgba(3, 8, 10, 0.3) 100%); box-shadow: inset 0 0 0 1px rgba(11, 21, 23, 0.08); }
.scn__tag { position: absolute; left: 16px; bottom: 14px; z-index: 2; padding: 5px 9px; border-radius: 6px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(3, 8, 10, 0.6); color: rgba(255, 255, 255, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.scn__n { font-size: 12px; letter-spacing: 0.1em; color: var(--teal); }
.scn__body .h3 { margin-top: 10px; font-size: clamp(30px, 3vw, 46px); }
.scn__lead { margin: 16px 0 0; max-width: 560px; font-size: 18px; color: var(--muted); }
.scn__rows { display: grid; margin: 28px 0 0; }
.scn__rows div { display: grid; grid-template-columns: 132px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.scn__rows dt { padding-top: 4px; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.scn__rows dd { margin: 0; font-size: 15.5px; }
.scn__links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 15px; }

@media (max-width: 1180px) {
  .topo__grid { grid-template-columns: 1fr; }
  .scn { gap: 40px; }
}
@media (max-width: 900px) {
  .shero__photo { height: 40vh; min-height: 260px; max-width: none; }
  .phero__specs.shero__index { grid-template-columns: repeat(3, 1fr); }
  .topo__pills { border-radius: 24px; }
  .topo__stage { padding: 20px 14px 54px; }
  .topo__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .topo__svg { min-width: 720px; }
  .scn { grid-template-columns: 1fr; gap: 26px; padding: 48px 0; }
  .scn--flip .scn__img { order: 0; }
}
@media (max-width: 640px) {
  .phero__specs.shero__index { grid-template-columns: repeat(2, 1fr); }
  .scn__rows div { grid-template-columns: 1fr; gap: 6px; }
  .topo__side { padding: 24px; }
  .topo__pills button { height: 40px; padding: 0 15px; font-size: 13.5px; }
}

/* ---------- 逆变器页的应用示意图 ---------- */
.topo__node.is-fault rect { stroke: #ff7a6b; stroke-dasharray: 7 7; fill: #1a0f0f; }
.topo__node.is-fault text { fill: #ffb1a8; }
.topo__node.is-fault text.sub { fill: rgba(255, 177, 168, 0.75); }
.topo__hub--img rect { fill: #0b1c1e; }
.topo__hub--img text { font-size: 16px; }
.topo__hub--img text.sub2 { font-size: 12px; fill: var(--glow); }
.topo--pcs { margin-top: 26px; }
/* 逆变器的能量示意图有两张：宽屏用横版，窄屏用竖版（不用左右滑） */
.topo__svg--tall { display: none; }
.topo__svg--tall .topo__flow { stroke: url(#tgm); }
.topo__svg--tall .topo__node text { font-size: 18px; }
.topo__svg--tall .topo__node text.sub { font-size: 13.5px; }
.topo__svg--tall .topo__hub--img text { font-size: 19px; }
.topo__svg--tall .topo__hub--img text.sub2 { font-size: 14px; }
@media (max-width: 900px) {
  .topo--pcs .topo__scroll { overflow: visible; }
  .topo--pcs .topo__svg--wide { display: none; }
  .topo--pcs .topo__svg--tall { display: block; min-width: 0; max-width: 500px; margin: 0 auto; }
  .topo--pcs .topo__stage { padding-bottom: 60px; }
}

/* ---------- 3D 场景 ---------- */
.topo--3d .topo__grid { display: block; position: relative; margin-top: 0; }
.topo--3d .topo__stage { display: block; width: 100%; padding: 90px 24px 56px; background-image: none; background: radial-gradient(80% 90% at 40% 18%, #0a2729 0%, #03080a 72%); }
.topo--3d .topo__stage.has-3d { padding: 0; aspect-ratio: 16 / 8.6; min-height: 580px; max-height: 86vh; }
.topo--3d .topo__pills { position: absolute; left: 20px; top: 20px; z-index: 5; background: rgba(3, 8, 10, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.topo3d { position: absolute; inset: 0; display: none; }
.has-3d .topo3d { display: block; }
.has-3d .topo__scroll { display: none; }
.topo3d canvas { display: block; width: 100%; height: 100%; }
.topo3d__labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.topo3d__label { position: absolute; left: 0; top: 0; display: grid; gap: 2px; padding: 7px 11px 8px; border-radius: 10px; text-align: left; white-space: nowrap; pointer-events: auto; color: #fff; background: rgba(3, 8, 10, 0.72); border: 1px solid rgba(62, 240, 210, 0.36); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: opacity 0.4s, border-color 0.4s, background 0.4s, box-shadow 0.4s; will-change: transform; }
.topo3d__label::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 22px; background: linear-gradient(180deg, rgba(62, 240, 210, 0.85), rgba(62, 240, 210, 0)); }
.topo3d__label b { font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.topo3d__label span { font: 400 10.5px var(--mono); color: rgba(62, 240, 210, 0.92); }
.topo3d__label span { display: none; }
.topo3d__label.is-focus span:not(:empty) { display: block; }
.topo3d__label:not(.is-focus) { padding: 5px 9px 6px; }
.topo3d__label:not(.is-focus) b { font-size: 10px; }
/* 镜头停在某个环节时，标签里多一行：这个环节此刻在做什么 */
.topo3d__label i { display: none; align-items: center; gap: 6px; margin-top: 4px; padding-top: 5px; border-top: 1px solid rgba(62, 240, 210, 0.22); font: 500 10px var(--mono); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.topo3d__label i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 8px var(--glow); animation: topo3d-blink 1.4s ease-in-out infinite; }
.topo3d__label i[data-s="charge"]::before, .topo3d__label i[data-s="evcharge"]::before, .topo3d__label i[data-s="consume"]::before { background: #ffc46b; box-shadow: 0 0 8px #ffc46b; }
.topo3d__label i[data-s="standby"] { color: rgba(233, 242, 241, 0.55); }
.topo3d__label i[data-s="standby"]::before { background: rgba(233, 242, 241, 0.4); box-shadow: none; animation: none; }
.topo3d__label.is-focus i:not(:empty) { display: inline-flex; }
.topo3d__name { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--glow); }
@keyframes topo3d-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .topo3d__label i::before { animation: none; } }
.topo3d__label.is-off { opacity: 0.3; border-color: rgba(255, 255, 255, 0.14); }
.topo3d__label.is-off span { color: rgba(233, 242, 241, 0.5); }
.topo3d__label.is-focus { background: rgba(8, 44, 43, 0.94); border-color: var(--glow); box-shadow: 0 0 26px rgba(62, 240, 210, 0.38); }
.topo3d__hud { position: absolute; left: 20px; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 14px; }
.topo3d__step { font-size: 11px; letter-spacing: 0.12em; white-space: nowrap; color: rgba(233, 242, 241, 0.72); }
.topo3d__dots { display: flex; gap: 8px; }
.topo3d__dots button { width: 22px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.24); transition: background 0.3s, width 0.3s; }
.topo3d__dots button.is-on { width: 38px; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.topo3d__play { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(3, 8, 10, 0.5); }
.topo3d__play i { display: block; width: 9px; height: 10px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.is-paused .topo3d__play i { width: 0; height: 0; margin-left: 3px; border: 6px solid transparent; border-left: 10px solid #fff; border-right: 0; }
.topo--3d .topo__badge { z-index: 5; }
@media (min-width: 1181px) {
  .topo--3d .has-3d + .topo__side { position: absolute; right: 18px; top: 18px; bottom: 54px; width: 350px; z-index: 5; overflow: auto; background: rgba(5, 13, 15, 0.74); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .topo--3d .topo__stage:not(.has-3d) + .topo__side { margin-top: 18px; }
}
@media (max-width: 1180px) {
  .topo--3d .topo__side { margin-top: 18px; }
  .topo--3d .topo__stage.has-3d { aspect-ratio: 4 / 3; min-height: 440px; }
}
@media (max-width: 640px) {
  .topo--3d .topo__stage.has-3d { aspect-ratio: 3 / 4; min-height: 520px; }
  /* 手机上：进度条一行排开，当前环节的名字不再重复显示，“示意”标识挪到进度条上方 */
  .topo3d__hud { left: 14px; right: 14px; bottom: 14px; gap: 10px; }
  .topo3d__step { white-space: nowrap; }
  .topo3d__name { display: none; }
  .topo3d__dots { gap: 5px; }
  .topo3d__dots button { width: 14px; }
  .topo3d__dots button.is-on { width: 24px; }
  .topo--3d .has-3d .topo__badge { right: auto; left: 14px; bottom: 58px; font-size: 9.5px; padding: 4px 8px; }
  .topo--3d .topo__pills { left: 10px; right: 10px; top: 10px; }
  .topo3d__label span { display: none; }
}
/* 视频首屏：宣传片是蓝色的，压暗一点，和页面的青色靠近 */
.vhero--film .vhero__media video { filter: saturate(0.85) hue-rotate(-18deg) brightness(0.85); }

/* ---------- 第四轮：工商业场景演停电时的提示 ---------- */
.topo3d__alert { position: absolute; left: 50%; top: 84px; z-index: 4; margin: 0; padding: 9px 16px; border-radius: 999px; white-space: nowrap; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #ffd9d4; background: rgba(60, 14, 10, 0.72); border: 1px solid rgba(255, 122, 107, 0.7); box-shadow: 0 0 30px rgba(255, 90, 77, 0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transform: translate(-50%, -8px); transition: opacity 0.35s, transform 0.5s var(--ease); pointer-events: none; }
.is-outage .topo3d__alert { opacity: 1; transform: translate(-50%, 0); }
.topo3d__label.is-fault { border-color: #ff7a6b; background: rgba(46, 12, 9, 0.94); box-shadow: 0 0 22px rgba(255, 90, 77, 0.4); }
.topo3d__label.is-fault i[data-s="outage"] { display: inline-flex; color: #ffb1a8; }
.topo3d__label i[data-s="outage"]::before { background: #ff5a4d; box-shadow: 0 0 8px #ff5a4d; }
@media (min-width: 1181px) { .topo--3d .topo3d__alert { left: calc((100% - 380px) / 2); } }
@media (max-width: 640px) { .topo3d__alert { top: 118px; font-size: 9.5px; padding: 7px 12px; } }

/* ---------- 2026-12-02 第五轮：手机上西语、葡语的按钮文字长，允许换行 ---------- */
@media (max-width: 640px) {
  .topo__side .btn { align-self: stretch; justify-content: center; height: auto; min-height: 52px; padding: 12px 22px; white-space: normal; text-align: center; }
  .topo__side .btn svg { flex: 0 0 auto; }
}
