:root {
  /* 默认回退；生成时由站点配置覆盖为 --ms-color-primary */
  --ms-color-primary: #033458;
  --ms-color-primary-rgb: 3, 52, 88;
  --ms-primary: var(--ms-color-primary);
  --ms-primary-rgb: var(--ms-color-primary-rgb);
  --ms-accent: #0b90ec;
  --ms-section-dark: var(--ms-color-primary);
  --hdr-bg: linear-gradient(135deg, rgb(5, 85, 138) 0%, rgb(3, 52, 88) 50%, rgb(55, 81, 101) 100%);
  --hdr-fg: #ffffff;
  --hdr-active: #ffffff;
  --ms-ink: #0f172a;
  --ms-muted: #64748b;
  --ms-page: 1100px;
  --hdr-h: 64px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ms-ink);
  background: #f8fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--hdr-h);
  background: var(--hdr-bg);
  color: var(--hdr-fg, #fff);
}
.site-header__inner {
  height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 28px;
}
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; white-space: nowrap; flex-shrink: 0;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--ms-accent), var(--ms-color-primary));
  display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 800;
}
.brand-logo {
  height: 36px; width: auto; display: block; object-fit: contain;
}
.nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px;
  color: rgba(255,255,255,0.92); text-decoration: none; font-size: 14px; border-radius: 6px; white-space: nowrap;
}
.nav-link:hover, .nav-item:hover > .nav-link, .nav-link.is-active { color: var(--hdr-active, var(--ms-accent)); }
.nav-caret { font-size: 10px; opacity: 0.7; transform: translateY(1px); }
.dropdown {
  position: absolute; left: 0; top: 100%; min-width: 168px;
  /* 上内边距作为悬停桥，避免移到子菜单途中穿过空隙导致面板消失 */
  padding: 10px 8px 8px;
  margin: 0;
  background: transparent;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
  z-index: 120;
}
.dropdown-inner {
  background: rgba(8, 16, 16, 0.96); border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35); padding: 8px;
}
.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.dropdown a {
  display: block; padding: 9px 12px; color: #fff; text-decoration: none; font-size: 13px; border-radius: 6px;
}
.dropdown a:hover { color: var(--hdr-active, var(--ms-accent)); background: rgba(255,255,255,0.06); }
.menu-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px; border: 0;
  background: transparent; color: #fff; cursor: pointer; border-radius: 8px;
}
.menu-toggle:hover { background: rgba(255,255,255,0.08); }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 1px; }
.mobile-panel {
  display: none; position: fixed; inset: var(--hdr-h) 0 0;
  background: rgba(8, 16, 16, 0.98); color: #fff; overflow: auto; padding: 12px 16px 40px; z-index: 99;
}
.mobile-panel.open { display: block; }
.mobile-panel details { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-panel summary, .mobile-panel > a {
  display: block; padding: 14px 8px; font-size: 15px; cursor: pointer; list-style: none; text-decoration: none; color: #fff;
}
.mobile-panel summary::-webkit-details-marker { display: none; }
.mobile-panel details a {
  display: block; padding: 10px 8px 10px 20px; color: rgba(255,255,255,0.82); text-decoration: none; font-size: 14px;
}
.mobile-panel a:hover, .mobile-panel summary:hover { color: var(--ms-accent); }
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ms-color-primary); }
.hero__viewport { position: relative; aspect-ratio: 16 / 7; min-height: 220px; }
.hero__track { display: flex; height: 100%; transition: transform 0.45s ease; }
.hero__slide {
  position: relative; flex: 0 0 100%; height: 100%;
  background: var(--ms-color-primary) center/cover no-repeat; text-decoration: none;
}
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(var(--ms-color-primary-rgb), 0.55) 0%, rgba(var(--ms-color-primary-rgb), 0.15) 55%, transparent 100%);
}
.hero__caption {
  position: absolute; left: max(24px, calc((100% - var(--ms-page)) / 2)); bottom: 18%; z-index: 1;
  color: #fff; max-width: 480px; text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.hero__caption h1 {
  margin: 0 0 8px; font-size: clamp(1.4rem, 3.2vw, 2.4rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.25;
}
.hero__caption p { margin: 0; font-size: clamp(0.9rem, 1.5vw, 1.05rem); opacity: 0.92; }
.hero__dots {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.hero__dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,0.45); cursor: pointer;
}
.hero__dot.active { background: #fff; width: 22px; border-radius: 999px; }

.wrap { max-width: var(--ms-page); margin: 0 auto; }
.container { max-width: 960px; margin: 0 auto; padding: 32px 16px 48px; }
.container.wide { max-width: var(--ms-page); }

.heading { text-align: center; padding: 56px 20px 12px; }
.heading.dark { background: var(--ms-section-dark, var(--ms-color-primary)); color: #fff; padding-bottom: 20px; }
.heading h2 {
  margin: 0 0 12px; font-size: clamp(1.45rem, 2.8vw, 2.1rem); font-weight: 700;
  color: inherit; letter-spacing: -0.02em;
}
.heading.dark h2 { color: #fff; }
.heading:not(.dark) h2 { color: var(--ms-ink); }
.heading .accent {
  width: 40px; height: 3px; margin: 0 auto 14px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ms-primary), var(--ms-accent));
}
.heading.dark .accent { background: linear-gradient(90deg, #93c5fd, var(--ms-accent)); }
.heading p { margin: 0 auto; max-width: 640px; font-size: 16px; color: var(--ms-muted); }
.heading.dark p { color: #bfdbfe; }

.features { padding: 12px 20px 56px; }
.features.sol { background: linear-gradient(180deg, var(--ms-section-dark, var(--ms-color-primary)) 0 40px, #f8fafc 40px); }
.feat-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feat-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feat-card {
  position: relative; padding: 26px 20px 22px; border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px; background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  text-align: center; overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.feat-card:hover {
  border-color: color-mix(in srgb, var(--ms-primary) 55%, white);
  box-shadow: 0 16px 40px rgba(var(--ms-primary-rgb), 0.14);
  transform: translateY(-3px);
}
.feat-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 16px;
  background: #ecfeff center/cover no-repeat; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.feat-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.feat-card p { margin: 0; color: var(--ms-muted); font-size: 0.92rem; line-height: 1.6; }

.stats { padding: 40px 20px 56px; background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; text-align: center; }
.stat-value {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--ms-primary);
  letter-spacing: -0.03em; line-height: 1.1;
}
.stat-label { margin-top: 8px; color: var(--ms-muted); font-size: 0.95rem; }

.products { padding: 24px 20px 48px; }
.prod-grid, .card-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.prod-card, .card {
  display: block; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden;
  text-decoration: none; background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.2s ease;
}
.prod-card:hover, .card:hover {
  border-color: color-mix(in srgb, var(--ms-primary) 55%, white);
  box-shadow: 0 12px 28px rgba(var(--ms-primary-rgb), 0.14);
  transform: translateY(-3px);
}
.prod-cover, .card .cover {
  aspect-ratio: 16 / 10; background: #e2e8f0 center/cover no-repeat; width: 100%; object-fit: cover;
}
.prod-body, .card .body { padding: 14px 16px 18px; }
.prod-body h3, .card .body h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 700; }
.prod-body p, .card .body p { margin: 0; color: var(--ms-muted); font-size: 0.88rem; }

.cat-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px;
}
.cat-tabs a {
  padding: 8px 14px; border-radius: 999px; border: 1px solid #e2e8f0;
  background: #fff; text-decoration: none; font-size: 14px; color: var(--ms-muted);
}
.cat-tabs a.active, .cat-tabs a:hover {
  color: #fff; background: var(--ms-primary); border-color: var(--ms-primary);
}

.news { padding: 24px 20px 56px; }
.news-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: start; }
.news-tabs { display: flex; flex-direction: column; gap: 4px; }
.news-tab {
  text-align: left; border: 0; background: transparent; padding: 12px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 600; color: var(--ms-muted); cursor: pointer;
}
.news-tab.active { color: var(--ms-primary); background: color-mix(in srgb, var(--ms-primary) 10%, white); }
.news-more {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; padding: 8px 14px;
  color: var(--ms-primary); text-decoration: none; font-weight: 600; font-size: 14px;
}
.news-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-card {
  display: flex; flex-direction: column; border: 1px solid #e2e8f0; border-radius: 12px;
  overflow: hidden; background: #fff; text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover { box-shadow: 0 12px 28px rgba(var(--ms-primary-rgb), 0.12); transform: translateY(-2px); }
.news-card .meta { padding: 16px 16px 12px; flex: 1; }
.news-card .day { font-size: 1.6rem; font-weight: 800; color: var(--ms-primary); line-height: 1; }
.news-card .my { margin: 4px 0 10px; font-size: 12px; color: #94a3b8; }
.news-card .title {
  margin: 0; font-size: 0.95rem; font-weight: 650; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .media { aspect-ratio: 16 / 10; background: #e2e8f0 center/cover no-repeat; }
.news-cards[hidden] { display: none; }

.faq { padding: 24px 20px 48px; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; padding: 0 16px;
}
.faq-item:hover {
  border-color: color-mix(in srgb, var(--ms-primary) 55%, white);
  box-shadow: 0 8px 20px rgba(var(--ms-primary-rgb), 0.1);
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 14px 0; font-weight: 600; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: #94a3b8; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 14px; color: var(--ms-muted); font-size: 0.95rem; line-height: 1.65; }

.cta {
  position: relative; padding: 72px 20px; color: #fff; text-align: center; overflow: hidden;
  background: linear-gradient(125deg,
    color-mix(in srgb, var(--ms-primary) 72%, #0f172a) 0%,
    color-mix(in srgb, var(--ms-primary) 40%, #020617) 100%);
}
.cta .orb {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.5;
  animation: float 8s ease-in-out infinite; pointer-events: none;
}
.cta .o1 { width: 280px; height: 280px; left: -60px; top: -80px; background: var(--ms-primary); }
.cta .o2 {
  width: 320px; height: 320px; right: -80px; bottom: -120px;
  background: color-mix(in srgb, var(--ms-primary) 65%, white); animation-delay: -3s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, -14px); }
}
.cta .inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3.2vw, 2.2rem); letter-spacing: -0.02em; }
.cta p { margin: 0 0 28px; opacity: 0.88; font-size: 1.02rem; line-height: 1.7; }
.cta .btn, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px;
  border-radius: 999px; background: var(--ms-primary); color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 10px 30px rgba(var(--ms-primary-rgb), 0.4);
}
.cta .btn:hover, .btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); }

.site-footer {
  padding: 18px 16px; background: #ebebeb; color: #666; font-size: 13px; line-height: 1.6;
}
.site-footer__inner {
  max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 6px 18px;
}
.site-footer a { color: inherit; text-decoration: none; white-space: nowrap; }
.site-footer a:hover { color: var(--ms-primary); }

/* Detail / prose */
.page-hero { padding: 40px 16px 8px; max-width: 960px; margin: 0 auto; }
.page-hero h1 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.page-hero .summary { margin: 0; color: var(--ms-muted); font-size: 1.05rem; }
.crumb { margin: 0 0 16px; font-size: 13px; color: #94a3b8; }
.crumb a { color: var(--ms-primary); text-decoration: none; }
.detail-cover {
  width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px;
  margin: 0 0 20px; background: #eef1f6;
}
.prose { color: #334155; font-size: 1.02rem; line-height: 1.8; }
.prose h2 { margin: 28px 0 12px; font-size: 1.25rem; color: var(--ms-ink); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.3em; }
.prose li { margin: 0 0 6px; }
.prose figure { margin: 24px 0; }
.prose img { border-radius: 12px; width: 100%; }
.prose figcaption { margin-top: 8px; font-size: 13px; color: #64748b; text-align: center; }
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 24px 0;
}
.gallery img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; font-size: 13px; color: #94a3b8; }
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--ms-primary) 12%, white); color: var(--ms-primary); font-size: 12px;
}
.related { margin-top: 40px; padding-top: 24px; border-top: 1px solid #e2e8f0; }
.related h2 { margin: 0 0 16px; font-size: 1.2rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .feat-grid, .feat-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .prod-grid, .card-grid, .news-cards { grid-template-columns: 1fr 1fr; }
  .news-layout { grid-template-columns: 1fr; }
  .news-tabs { flex-direction: row; flex-wrap: wrap; }
  .hero__caption { bottom: 14%; max-width: 88%; }
}
@media (max-width: 560px) {
  .feat-grid, .feat-grid.cols-3, .prod-grid, .card-grid, .news-cards { grid-template-columns: 1fr; }
  .hero__viewport { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  .cta .orb { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
