:root {
  --bg: #f4f7fb;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --text: #102033;
  --muted: #5c6b7e;
  --accent: #0b7db3;
  --accent-strong: #085a92;
  --accent-soft: rgba(11, 125, 179, 0.12);
  --shadow: 0 24px 60px rgba(16, 32, 51, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  /* 使用系统字体栈，减少首页冷启动时的额外远程字体请求。 */
  --font-display: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(41, 196, 255, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(11, 125, 179, 0.18), transparent 24%),
    linear-gradient(180deg, #f9fbfe 0%, #edf3f8 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 40px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #102033, #0b7db3);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong,
.nav-link,
.eyebrow,
.section-kicker,
.button,
.text-link,
.manual-group h3 {
  font-family: var(--font-display);
}

.brand-copy strong {
  font-size: 0.92rem;
  letter-spacing: -0.03em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.74rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(16, 32, 51, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted);
  transition: 180ms ease;
  font-size: 0.92rem;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  background: rgba(16, 32, 51, 0.06);
  border-radius: 999px;
}

.lang-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: 180ms ease;
  font-size: 0.84rem;
}

.lang-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(260px, 0.82fr);
  gap: 34px;
  padding: 30px 20px 28px;
  border-radius: 0;
  background: transparent;
}

.eyebrow,
.section-kicker,
.panel-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.74rem;
}

.hero h1,
.section h2,
.footer h2 {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.hero h1 {
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.92rem, 4.3vw, 3.26rem);
  white-space: normal;
  margin-top: 10px;
  white-space: pre-line;
}

.hero-description,
.section-summary,
.footer p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-description {
  max-width: 62ch;
  margin: 20px 0 0;
  font-size: 0.92rem;
  white-space: pre-line;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 700;
  transition: 180ms ease;
  font-size: 0.9rem;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(11, 125, 179, 0.22);
}

.button-secondary {
  background: #fff;
  border: 1px solid var(--line);
}

.button-secondary:hover {
  border-color: rgba(11, 125, 179, 0.24);
  color: var(--accent-strong);
}

.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(238, 246, 251, 0.84)),
    linear-gradient(135deg, rgba(11, 125, 179, 0.2), transparent);
  border: 1px solid rgba(11, 125, 179, 0.08);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -18% -28% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 125, 179, 0.22), transparent 68%);
  pointer-events: none;
}

.highlight-list {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 12px;
}

.highlight-list li {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(11, 125, 179, 0.08);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.88rem;
}

.section {
  margin-top: 10px;
  padding: 28px 0;
  border-radius: 0;
  background: transparent;
  /* 视口外内容按需渲染，减轻首屏首次绘制压力。 */
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

/* 固定导航后，锚点滚动需要预留顶部空间，避免标题被遮挡。 */
#hero,
#products,
#news,
#techs,
#manuals,
#about {
  scroll-margin-top: 88px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-head-compact {
  align-items: start;
}

.section h2,
.footer h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
}

.section-summary {
  max-width: 58ch;
  margin: 0;
  font-size: 0.9rem;
}

/* 核心产品使用 auto-fit 网格，后续只增减数据即可自动重排，不需要改布局代码。 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

html[lang="en"] .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
}

.product-card,
.manual-item,
.footer-link-group {
  border: 1px solid rgba(16, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 232px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 125, 179, 0.18);
  box-shadow: 0 18px 36px rgba(16, 32, 51, 0.08);
}

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(11, 125, 179, 0.1), rgba(11, 125, 179, 0.18));
  color: var(--accent-strong);
}

.product-icon svg {
  width: 28px;
  height: 28px;
}

.product-copy {
  display: grid;
  gap: 2px;
}

.product-local-name {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card h3,
.manual-group h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.product-card h3 {
  font-size: 0.98rem;
}

.product-card p,
.manual-item span {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.88rem;
}

.product-card > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

html[lang="en"] .product-card > p {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.product-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.82rem;
}

.product-link-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.product-link-icon svg {
  width: 16px;
  height: 16px;
}

.update-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: stretch;
}

.stack-list,
.manual-group-items,
.footer-links {
  display: grid;
  gap: 14px;
}

.updates-column,
.knowledge-column {
  display: grid;
  grid-template-rows: auto 1fr;
}

.stack-list,
.knowledge-grid {
  align-content: start;
  grid-auto-rows: 1fr;
}

.content-entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(16, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.76);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.content-entry:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 125, 179, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.content-entry-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-entry p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.88rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.knowledge-grid {
  display: grid;
  gap: 14px;
}

.content-entry-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 4px 8px;
}

.content-entry-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.3;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.inline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  overflow: hidden;
}

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 700;
}

.manual-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.manual-group {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.manual-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-size: 0.96rem;
  letter-spacing: -0.02em;
  color: var(--accent-strong);
}

.manual-group-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(11, 125, 179, 0.1);
}

.manual-group-icon svg {
  width: 16px;
  height: 16px;
}

.manual-group-items {
  gap: 8px;
}

.manual-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(16, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.72);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.manual-link-row:hover {
  transform: translateX(3px);
  border-color: rgba(11, 125, 179, 0.18);
  background: rgba(255, 255, 255, 0.9);
}

.manual-link-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.manual-link-title {
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.4;
}

.manual-link-date {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.manual-link-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--accent-strong);
}

.manual-link-icon svg {
  width: 18px;
  height: 18px;
}

.footer {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  padding: 18px 0 2px;
  border-radius: 0;
  border-top: 1px solid rgba(16, 32, 51, 0.08);
}

.footer-links {
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 20px;
  align-content: start;
}

.footer-link-group {
  padding: 0;
  border: 0;
  background: transparent;
}

.footer-link-group strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.footer-link-group a {
  display: block;
  color: var(--muted);
  line-height: 1.95;
  font-size: 0.9rem;
}

.footer-meta {
  grid-column: 1 / -1;
  padding-top: 12px;
  margin-top: 2px;
  border-top: 1px solid rgba(16, 32, 51, 0.08);
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin: 0;
}

.beian-link {
  color: var(--accent-strong);
  font-weight: 700;
  white-space: nowrap;
}

.footer-brand h2 {
  margin-bottom: 10px;
}

.footer-brand p {
  max-width: 42ch;
  margin: 0;
  white-space: pre-line;
}

@media (max-width: 960px) {
  .topbar,
  .section-head {
    grid-template-columns: 1fr;
  }

  .hero,
  .section,
  .footer {
    padding: 22px 0;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 6px;
  }

  .topbar {
    border-radius: 14px;
    padding: 10px 12px;
  }

  .nav {
    margin-left: auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(16, 32, 51, 0.08);
    box-shadow: 0 14px 34px rgba(16, 32, 51, 0.08);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 4px;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .lang-switch {
    align-self: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 0 18px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.54rem, 6vw, 2.1rem);
    white-space: normal;
  }

  .section-head {
    margin-bottom: 16px;
  }

  .update-section {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .product-grid,
  .knowledge-grid,
  .manual-groups,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .product-card,
  .content-entry,
  .manual-link-row {
    padding: 16px;
  }

  .footer {
    padding: 16px 0 2px;
  }

  .footer-meta-line {
    align-items: flex-start;
    justify-content: flex-start;
  }
}
