/* Eway 益威 — 浅色清爽科技风 */
:root {
  --bg-page: #e8eef5;
  --bg-page-2: #f2f6fb;
  --bg-panel: rgba(255, 255, 255, 0.88);
  --bg-elevated: #ffffff;
  --border-subtle: rgba(0, 140, 120, 0.18);
  --accent: #00a88a;
  --accent-dim: rgba(0, 168, 138, 0.4);
  --accent-blue: #0b7dd1;
  --text: #1a2332;
  --text-muted: #5a6a7d;
  --grid: rgba(0, 120, 100, 0.055);
  --shadow-sm: 0 4px 24px rgba(15, 40, 60, 0.06);
  --shadow-md: 0 12px 40px rgba(15, 40, 60, 0.08);
  --radius: 12px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
  /* 顶栏 sticky，锚点滚动时预留高度，避免标题被挡（随 header 视觉增高略调） */
  --anchor-offset: 100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.65;
}

/* 浅底 + 淡网格 */
.bg-layers {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(0, 168, 138, 0.09), transparent 52%),
    radial-gradient(ellipse 55% 45% at 100% 30%, rgba(11, 125, 209, 0.06), transparent 55%),
    linear-gradient(165deg, var(--bg-page-2) 0%, var(--bg-page) 48%, #dde8f3 100%);
}

.bg-layers::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 38%, black 25%, transparent 78%);
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.5);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

.wrap {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

/* 顶栏 — 玻璃层 + 底边渐变线 + 品牌竖条 + 导航胶囊 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  backdrop-filter: blur(18px) saturate(160%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(245, 250, 252, 0.9) 55%,
    rgba(238, 246, 248, 0.88) 100%
  );
  border-bottom: 1px solid rgba(0, 120, 100, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 10px 36px rgba(15, 45, 70, 0.07);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.95) 20%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    #00c9a8 28%,
    var(--accent-blue) 72%,
    rgba(11, 125, 209, 0.15) 100%
  );
  opacity: 0.72;
  pointer-events: none;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  padding: 16px 0 18px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  padding: 8px 16px 8px 12px;
  margin: -8px -12px -8px -8px;
  border-radius: 14px;
  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.brand::before {
  content: "";
  width: 4px;
  height: clamp(38px, 5.5vw, 48px);
  border-radius: 4px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--accent) 0%, #00c4a4 45%, var(--accent-blue) 100%);
  box-shadow: 0 2px 14px var(--accent-dim);
}

.brand:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 28px rgba(0, 90, 110, 0.08);
}

.brand:hover .brand-text strong {
  color: var(--accent);
}

.brand img {
  height: auto;
  max-height: 48px;
  width: auto;
  max-width: min(360px, 52vw);
  display: block;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 8px rgba(0, 60, 80, 0.1));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-text strong {
  font-size: clamp(1.05rem, 3.6vw, 1.42rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.28;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.brand-text span {
  font-family: var(--font-mono);
  font-size: clamp(0.74rem, 2.2vw, 0.9rem);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.nav {
  display: flex;
  gap: 3px;
  align-items: center;
  padding: 5px 6px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(0, 120, 100, 0.12);
  border-radius: 999px;
  box-shadow:
    0 2px 18px rgba(15, 40, 60, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.nav a {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.nav a:hover {
  color: var(--accent);
  background: rgba(0, 168, 138, 0.1);
  border-color: rgba(0, 168, 138, 0.18);
}

.nav a.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #00b396 0%, var(--accent) 38%, #0b8fd9 100%);
  box-shadow:
    0 4px 16px rgba(0, 168, 138, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nav a.active:hover {
  color: #fff;
  filter: brightness(1.04);
}

@media (max-width: 720px) {
  :root {
    --anchor-offset: 124px;
  }

  .header-inner {
    padding: 14px 0 16px;
  }

  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 12px;
    padding: 3px 4px;
    gap: 1px;
  }

  .nav a {
    padding: 6px 9px;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }

  .brand {
    width: 100%;
    margin: -6px -8px 4px -8px;
    padding-right: 12px;
  }
}

/* 首页轮播（整宽；后台可关闭显示） */
.hero {
  margin-top: 8px;
  margin-bottom: 28px;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 120, 100, 0.14);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.hero-slides {
  position: relative;
  /* 高度在原先 260 基础上减小 40% → 260×0.6=156 */
  aspect-ratio: 980 / 156;
  min-height: 91px;
  background: #dfe8f2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.93) 0%,
    rgba(255, 255, 255, 0.52) 46%,
    rgba(255, 255, 255, 0) 72%
  );
}

.hero-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 14px 20px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.hero-caption h1 {
  margin: 0 0 4px;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 600;
  max-width: 520px;
  color: var(--text);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95), 0 0 18px rgba(255, 255, 255, 0.65);
}

.hero-caption p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 560px;
}

.hero-dots {
  position: absolute;
  right: 20px;
  bottom: 16px;
  z-index: 5;
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(30, 50, 70, 0.2);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s, background 0.2s;
}

.hero-dots button.active {
  background: var(--accent);
  transform: scale(1.25);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 10px var(--accent-dim);
}

/* 公司简介 + 授权产品线：大屏左右并排（简介列在 35% 弹性份额上再加宽约 5 个汉字） */
.grid-intro-products {
  display: grid;
  /* 原 0.7fr:1.3fr ≈ 35%:65% 的可分宽度；首列额外加宽约 5 个汉字 */
  grid-template-columns:
    minmax(0, calc(0.35 * (100% - 28px) + 5em))
    minmax(0, calc(0.65 * (100% - 28px) - 5em));
  gap: 28px;
  margin-top: 8px;
  margin-bottom: 48px;
  align-items: start;
}

@supports (width: 1ic) {
  .grid-intro-products {
    grid-template-columns:
      minmax(0, calc(0.35 * (100% - 28px) + 5ic))
      minmax(0, calc(0.65 * (100% - 28px) - 5ic));
  }
}

@media (max-width: 960px) {
  .grid-intro-products {
    grid-template-columns: 1fr;
  }
}

/* 首屏公司简介（与产品线同排时由外层 grid 控间距） */
.home-intro-top {
  margin: 0;
  min-width: 0;
}

/* Section 标题 */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2.6vw, 1.26rem);
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-head h2::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-blue));
  box-shadow: 0 2px 10px var(--accent-dim);
}

.section-head .sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.section-head--with-search {
  align-items: center;
}

.section-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.section-head-left h2 {
  flex-shrink: 0;
}

.section-head-left .solution-search-bar {
  flex: 0 1 160px;
  max-width: 160px;
  min-width: 80px;
}

.section-head-left .solution-search-keywords-row {
  flex: 1;
  min-width: 120px;
}

/* 最新方案：全宽，位于简介与产品线下方 */
.solutions-section {
  margin-bottom: 48px;
}

.solution-search-keywords-row {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  line-height: 1.5;
}

.solution-search-keywords {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  line-height: 1.5;
}

.solution-search-kw {
  display: inline-block;
  padding: 4px 10px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  vertical-align: baseline;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.solution-search-kw:hover,
.solution-search-kw:focus-visible {
  color: var(--accent);
  background: rgba(0, 168, 138, 0.1);
  border-color: rgba(0, 168, 138, 0.18);
  outline: none;
}

.solution-search-show-all.is-active {
  color: var(--accent);
  background: rgba(0, 168, 138, 0.1);
  border-color: rgba(0, 168, 138, 0.18);
}

@media (max-width: 720px) {
  .section-head--with-search .section-head-left {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .section-head--with-search .section-head-left h2 {
    width: 100%;
  }

  .section-head-left .solution-search-keywords-row {
    order: 2;
    width: 100%;
    flex: none;
    min-width: 0;
  }

  .section-head-left .solution-search-bar {
    order: 3;
    width: 100%;
    max-width: none;
    flex: none;
  }

  .solutions-section .solution-search-status {
    margin-top: -2px;
  }
}

.solutions-section .solution-search-status {
  margin: -10px 0 14px;
}

.solution-search-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(0, 120, 100, 0.18);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-panel);
  backdrop-filter: blur(8px);
}

.solution-search-bar:focus-within {
  border-color: rgba(0, 168, 138, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 168, 138, 0.12);
}

.solution-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.solution-search-input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.solution-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.solution-search-input:focus {
  outline: none;
}

.solution-search-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  padding: 0;
  margin: 0;
  border: none;
  border-left: 1px solid rgba(0, 120, 100, 0.14);
  border-radius: 0;
  background: rgba(0, 168, 138, 0.1);
  color: var(--accent);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.solution-search-btn:hover {
  background: rgba(0, 168, 138, 0.18);
  color: var(--text);
}

.solution-search-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.solution-search-icon {
  display: block;
}

.solution-search-status {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.solution-search-status.is-error {
  color: #c0392b;
}

.solution-list-empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 置顶条目在列表内用蓝色角标 */
.solution-title-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.solution-pinned-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--accent-blue);
  border-radius: 4px;
  line-height: 1.25;
  box-shadow: 0 1px 3px rgba(11, 125, 209, 0.35);
}

.solution-title-group .solution-title-text {
  flex: 1;
  min-width: 0;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid rgba(0, 120, 100, 0.12);
  border-radius: var(--radius);
  padding: 24px 26px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, rgba(0, 168, 138, 0.08), transparent 70%);
  pointer-events: none;
}

.intro-body {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.intro-body p {
  margin: 0 0 14px;
}

.intro-body p:last-child {
  margin-bottom: 0;
}

.intro-body strong {
  color: var(--text);
  font-weight: 600;
}

/* 方案列表（每页最多 20 条，随页面滚动） */
.solution-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 最新方案 — 邮件列表式（标题一行 + 摘要两行） */
.solution-item {
  padding: 0;
  border-bottom: 1px solid rgba(0, 120, 100, 0.1);
}

.solution-item:last-child {
  border-bottom: none;
}

.solution-row-link {
  display: block;
  padding: 14px 10px;
  margin: 0 -10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.solution-row-link:hover {
  background: rgba(0, 168, 138, 0.06);
}

.solution-item--selected .solution-row-link {
  background: rgba(0, 168, 138, 0.1);
}

.solution-item--selected .solution-title-text {
  color: var(--accent);
}

.solution-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
}

.solution-title-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.solution-row-link:hover .solution-title-text {
  color: var(--accent);
}

.solution-meta-inline {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.solution-preview {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.solution-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 120, 100, 0.1);
}
.solution-pager-btn {
  font-size: 0.82rem;
  padding: 6px 14px;
}
.solution-pager-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* 授权产品线（与简介并排时底边距由 .grid-intro-products 承担） */
.products-panel {
  margin-bottom: 0;
  min-width: 0;
}

.products-frame {
  border-radius: var(--radius);
  border: 1px solid rgba(0, 120, 100, 0.12);
  background: var(--bg-elevated);
  padding: 14px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 11px;
  align-items: center;
  justify-items: center;
}

.logo-cell {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 120, 100, 0.12);
  background: linear-gradient(180deg, #fafcfd 0%, #f3f7fb 100%);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.logo-cell:hover {
  border-color: rgba(0, 168, 138, 0.35);
  box-shadow: 0 6px 18px rgba(15, 40, 60, 0.06);
}

.logo-cell img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.06));
}

/* 联系我们页 */
.contact-page-main {
  padding: 12px 0 40px;
}

.contact-page-head {
  margin-bottom: 22px;
  text-align: center;
}

.contact-page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
}

.contact-page-head .sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.contact-offices {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-branch {
  position: relative;
  padding: 20px 22px 22px;
  text-align: left;
}

.contact-branch h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.contact-dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  align-items: start;
  font-size: 0.92rem;
}

.contact-dl dt {
  margin: 0;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.contact-dl dd {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.contact-dl a {
  color: var(--accent-blue);
}

.contact-dl a:hover {
  color: var(--accent);
}

.contact-plain {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.65;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid rgba(0, 120, 100, 0.12);
  padding: 32px 0 40px;
  margin-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.5));
}

.site-footer p {
  margin: 6px 0;
}

.site-footer a {
  color: var(--accent-blue);
}

#sol-detail-body video {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 14px 0;
  background: #0f1729;
}

#sol-detail-body img,
.intro-body img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block;
  box-sizing: border-box;
  margin: 10px 0;
  border-radius: 8px;
}

#sol-detail-body,
.article-detail {
  overflow-x: hidden;
  max-width: 100%;
}

/* 角落装饰 — “芯片焊盘” */
.corner-deco {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent);
  opacity: 0.45;
  pointer-events: none;
}

.corner-tl {
  top: 10px;
  left: 10px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.corner-br {
  bottom: 10px;
  right: 10px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

/* 方案详情弹层（首页当前窗口） */
.sol-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  background: rgba(12, 28, 42, 0.42);
  touch-action: none;
}

.sol-modal[hidden] {
  display: none !important;
}

body.sol-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

html.sol-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.sol-modal .sol-popup-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(94vh, 960px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(0, 120, 100, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 251, 0.96) 100%);
  box-shadow:
    0 24px 64px rgba(15, 40, 60, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.sol-popup-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sol-popup-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  border: 1.5px solid rgba(11, 125, 209, 0.55);
  border-radius: 999px;
  background: rgba(11, 125, 209, 0.1);
  color: #0b7dd1;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(11, 125, 209, 0.18);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.sol-popup-share:hover:not(:disabled),
.sol-popup-share:focus-visible:not(:disabled) {
  color: #fff;
  border-color: #0969c3;
  background: #0b7dd1;
  box-shadow: 0 2px 8px rgba(11, 125, 209, 0.35);
  outline: none;
}

.sol-popup-share:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sol-popup-share-status {
  position: absolute;
  top: 36px;
  right: 8px;
  z-index: 2;
  max-width: min(240px, calc(100% - 16px));
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(11, 125, 209, 0.92);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: right;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(11, 125, 209, 0.28);
}

.sol-popup-share-status[hidden] {
  display: none !important;
}

.sol-popup-close {
  position: static;
  width: 24px;
  height: 24px;
  border: 1.5px solid rgba(220, 53, 69, 0.55);
  border-radius: 999px;
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(220, 53, 69, 0.18);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.sol-popup-close:hover,
.sol-popup-close:focus-visible {
  color: #fff;
  border-color: #c82333;
  background: #dc3545;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.35);
  outline: none;
}

.sol-popup-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 36px 6px 12px;
  border-bottom: 1px solid rgba(0, 120, 100, 0.1);
  flex-shrink: 0;
}

.sol-popup-dialog.sol-popup-has-share .sol-popup-brand {
  padding-right: 82px;
}

.sol-popup-brand-main {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 0 auto;
}

.sol-popup-brand .sol-popup-brand-logo,
.sol-popup-brand #brand-logo {
  max-height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

.sol-popup-brand-contact {
  flex: 1 1 auto;
  min-width: 0;
  margin-right: 18px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.2;
  color: var(--text-muted);
}

.sol-popup-brand-contact[hidden] {
  display: none;
}

.sol-popup-brand-contact-line {
  white-space: nowrap;
}

.sol-popup-brand-contact a {
  color: var(--accent-blue);
  text-decoration: none;
}

.sol-popup-brand-contact a:hover {
  text-decoration: underline;
}

.sol-popup-article {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 14px 20px 12px;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.sol-popup-article .sol-detail-title {
  margin: 0 0 12px;
  font-size: clamp(1.08rem, 2.8vw, 1.32rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.sol-popup-article .sol-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.2;
  color: var(--text-muted);
}

.sol-popup-article .sol-meta-sep {
  opacity: 0.55;
  user-select: none;
}

.sol-popup-article .sol-detail-body {
  font-size: 0.94rem;
  line-height: 1.75;
}

.sol-popup-article .sol-external-link {
  display: none;
  font-size: inherit;
  color: #0d6efd;
  text-decoration: none;
}

.sol-popup-article .sol-external-link:hover {
  color: #0a58ca;
  text-decoration: underline;
}

.sol-popup-article .sol-detail-body video {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 14px 0;
  background: #0f1729;
}

@media (max-width: 560px) {
  .sol-modal {
    padding: 12px 8px;
  }

  .sol-modal .sol-popup-dialog {
    max-height: 96vh;
    border-radius: 12px;
  }

  .sol-popup-brand,
  .sol-popup-article {
    padding-left: 16px;
    padding-right: 16px;
  }

      .sol-popup-brand {
        flex-wrap: nowrap;
        padding: 5px 32px 5px 10px;
      }

      .sol-popup-dialog.sol-popup-has-share .sol-popup-brand {
        padding-right: 74px;
      }

      .sol-popup-brand-contact {
        width: auto;
        margin-right: 0;
        padding-left: 0;
        text-align: right;
      }
}
