:root {
  --brand: #1e3190;        /* 参考站主蓝 */
  --brand-2: #293b95;      /* 次蓝 */
  --brand-deep: #1d295c;   /* 深蓝背景 */
  --text: #202020;
  --muted: #656565;
  --border: #e3e7ee;
  --bg: #ffffff;
  --bg-soft: #eff2f8;      /* 参考站常用浅灰蓝 */
  --bg-softer: #f6f6f6;
  --max-width: 1200px;
  --shadow: 0 14px 28px rgba(22, 37, 76, 0.12);
  --shadow-soft: 0 10px 22px rgba(22, 37, 76, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  margin: 0;
  padding: 0;
  /* 避免首块与 body 外边距合并后，视口顶沿露出一条 body 底色（常见为白线） */
  display: flow-root;
}

/* 若误将 meta/title 写在 body 内，在 JS 纠正前避免参与排版 */
body > meta,
body > title {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* 参考站整体更“紧凑”一点 */
@media (min-width: 1200px) {
  .container {
    padding: 0 12px;
  }
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  border: 1px solid transparent;
  transition: 0.2s;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 20px rgba(30, 49, 144, 0.22);
}

.btn-primary:hover {
  background: var(--brand-deep);
}

.btn-outline {
  border-color: var(--border);
  background: #fff;
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* moved to header.css */

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
}

/* 首页首屏：横幅略向上延伸，盖住视口顶沿与 body 白底之间的缝隙。
   勿在 .zolix-header 上用 padding-top「垫高」：未滚动时顶栏透明，会透出 body 形成白边。 */
main#top > .hero-carousel:first-child {
  margin-top: -4px;
  height: calc(100vh + 4px);
  min-height: calc(680px + 4px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.hero-overlay-content {
  position: absolute;
  left: 12%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 560px;
  color: #fff;
  z-index: 2;
}

.hero-overlay-content h1 {
  color: #fff;
  font-size: 56px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-overlay-content p {
  font-size: 24px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 22px;
}

.hero-tag {
  display: inline-flex;
  font-size: 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 14px;
}

.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dots button {
  width: 26px;
  height: 4px;
  border-radius: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.active {
  background: #fff;
}

.app-showcase {
  background: #fff;
}

.app-tabs {
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.app-tabs a,
.app-tabs > button:not(.app-arrow) {
  min-width: 150px;
  padding: 16px 10px;
  text-align: center;
  color: #232c3e;
  font-weight: 500;
  position: relative;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.app-tabs a + a::before,
.app-tabs > button:not(.app-arrow) + button:not(.app-arrow)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 26px;
  background: #e3e8f1;
}

.app-tabs a.active,
.app-tabs > button:not(.app-arrow).active {
  color: #42b87d;
}

.app-tabs a.active::after,
.app-tabs > button:not(.app-arrow).active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 72px;
  height: 3px;
  background: #42b87d;
}

.app-tabs .app-arrow {
  border: none;
  background: transparent;
  font-size: 44px;
  color: #222;
  width: 58px;
  cursor: pointer;
  line-height: 1;
}

.app-stage {
  margin-top: 12px;
  min-height: 460px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.app-stage-card {
  position: absolute;
  left: 56px;
  top: 62px;
  width: 450px;
  background: rgba(24, 54, 161, 0.88);
  color: #fff;
  padding: 28px 28px 22px;
  display: flex;
  flex-direction: column;
}

.app-stage-card h3 {
  font-size: 42px;
  margin-bottom: 10px;
}

.app-stage-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 22px;
  margin-bottom: 10px;
}

.app-stage-card ul {
  margin: 0 0 16px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 16px;
}

.app-stage-card .btn-outline {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
  background: transparent;
  align-self: flex-end;
  display: inline-flex;
  padding: 6px 14px;
  font-size: 14px;
  min-height: 34px;
  line-height: 1;
}

.app-stage-card .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--bg-soft), #fff 66%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

.badge {
  display: inline-block;
  font-size: 12px;
  color: var(--brand-deep);
  background: #e7efff;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

h1 {
  font-size: 40px;
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.hero p {
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-actions .btn-outline {
  color: var(--brand);
}

.hero-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-card ul {
  list-style: none;
  color: #44516e;
  font-size: 14px;
  display: grid;
  gap: 8px;
}

section {
  padding: 56px 0;
}

.section-kicker {
  text-align: center;
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 30px;
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: 0.01em;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 14px;
}

.features {
  background: var(--bg-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

.feature-card h4 {
  margin-bottom: 8px;
  font-size: 17px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
}

.spec-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  width: 200px;
  background: var(--bg-soft);
  color: #495777;
  font-weight: 600;
}

.support {
  background: var(--bg-soft);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.support-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

.support-card h4 {
  margin-bottom: 8px;
  font-size: 17px;
}

.support-card p {
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 14px;
}

.resources-arc {
  background:
    radial-gradient(circle at 50% 18%, rgba(72, 128, 255, 0.26), rgba(72, 128, 255, 0) 42%),
    radial-gradient(circle at 85% 88%, rgba(45, 104, 255, 0.18), rgba(45, 104, 255, 0) 38%),
    linear-gradient(180deg, #031a66 0%, #05257d 45%, #062a8f 100%);
  padding: 64px 0 56px;
  position: relative;
  overflow: visible;
}

.resources-arc::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 74px;
  transform: translateX(-50%);
  width: min(980px, 90vw);
  height: 210px;
  border-top: 1px solid rgba(170, 203, 255, 0.32);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}

.resources-arc::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 76px;
  transform: translateX(-50%);
  width: min(980px, 90vw);
  height: 210px;
  border-top: 1px solid rgba(201, 223, 255, 0.18);
  border-radius: 999px 999px 0 0;
  /* 圆弧刻度 */
  -webkit-mask: repeating-radial-gradient(circle at 50% 100%, transparent 0 75px, #000 75px 77px);
  mask: repeating-radial-gradient(circle at 50% 100%, transparent 0 75px, #000 75px 77px);
  opacity: 0.55;
  pointer-events: none;
}

.resources-arc-inner {
  position: relative;
  z-index: 1;
}

.resources-title-cn {
  text-align: center;
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.resources-title-en {
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 6px;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.resources-arc-track {
  margin: 42px auto 0;
  width: min(980px, 92vw);
  height: 246px;
  position: relative;
  overflow: visible;
}

.resource-node {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 144px;
  height: 154px;
  border: 1px solid rgba(120, 162, 255, 0.42);
  background: rgba(22, 62, 173, 0.48);
  color: rgba(227, 238, 255, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease, opacity 0.28s ease;
  transform-origin: center bottom;
  opacity: var(--node-opacity, 1);
  z-index: var(--node-z, 1);
  transform:
    translateX(-50%)
    translateX(var(--node-x, 0px))
    translateY(var(--node-y, 0px))
    rotate(var(--node-r, 0deg))
    scale(var(--node-s, 1));
}

.resource-node.active {
  background: rgba(35, 122, 255, 0.34);
  border-color: #3eb3ff;
  box-shadow: 0 0 0 2px rgba(62, 179, 255, 0.28) inset, 0 0 18px rgba(44, 129, 255, 0.52);
}

.resource-node.hover-glow {
  box-shadow: 0 0 0 1px rgba(170, 206, 255, 0.45) inset, 0 0 16px rgba(120, 174, 255, 0.45);
}

.node-icon {
  font-size: 26px;
}

.node-icon img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.node-text {
  font-size: 16px;
}

.resources-down {
  margin-top: 18px;
  text-align: center;
  min-height: 36px;
}

.down-chevron {
  width: 14px;
  height: 14px;
  border-right: 2px solid rgba(197, 220, 255, 0.95);
  border-bottom: 2px solid rgba(197, 220, 255, 0.95);
  transform: rotate(45deg);
  display: block;
  margin: 0 auto;
  animation: resourcesChevron 1.35s ease-out infinite;
}

.down-chevron + .down-chevron {
  margin-top: 2px;
}

@keyframes resourcesChevron {
  0% { opacity: 0.95; transform: translateY(0) rotate(45deg); }
  100% { opacity: 0; transform: translateY(10px) rotate(45deg); }
}

.resources-more-wrap {
  margin-top: 22px;
  text-align: center;
}

.resources-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 42px;
  border-radius: 24px;
  border: 1px solid rgba(174, 203, 255, 0.7);
  color: #d7e8ff;
}

.resources-more-btn:hover {
  border-color: #fff;
  color: #fff;
}

/* moved to home.css and footer.css */

/* product/category/detail page styles moved to product-pages.css */

/* 列表/卡片 */
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.card:hover {
  border-color: rgba(30, 49, 144, 0.32);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.card-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.card-meta {
  color: var(--muted);
  font-size: 13px;
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fff;
}

.list-item a {
  color: var(--brand-deep);
  font-weight: 600;
}

.list-item a:hover {
  color: var(--brand);
}

.tag {
  font-size: 12px;
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 999px;
  color: #555;
  background: #fff;
}

/* 顶部按钮与抽屉按钮更贴近参考站 */
.mobile-toggle {
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

/* 移动端菜单 */
.mobile-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

/* moved to header.css */

@media (max-width: 960px) {
  .hero-carousel {
    height: 76vh;
    min-height: 520px;
  }

  main#top > .hero-carousel:first-child {
    height: calc(76vh + 4px);
    min-height: calc(520px + 4px);
  }

  .app-tabs {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .app-tabs a {
    min-width: 130px;
    font-size: 14px;
  }

  .app-tabs > button:not(.app-arrow) {
    min-width: 130px;
    font-size: 14px;
  }

  .app-stage {
    min-height: 360px;
  }

  .app-stage-card {
    left: 18px;
    right: 18px;
    width: auto;
    top: 18px;
    padding: 18px;
  }

  .app-stage-card h3 {
    font-size: 30px;
  }

  .app-stage-card p {
    font-size: 16px;
  }

  .app-stage-card ul {
    font-size: 14px;
  }

  .hero-overlay-content {
    left: 7%;
    right: 7%;
    top: 50%;
    transform: translateY(-50%);
    max-width: none;
  }

  .hero-overlay-content h1 {
    font-size: 36px;
  }

  .hero-overlay-content p {
    font-size: 18px;
  }

  /* header responsive styles moved to header.css */

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 30px;
  }

  .feature-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .resources-title-cn {
    font-size: 34px;
  }

  .resources-arc-track {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 10px;
  }

  .resource-node {
    min-width: 104px;
    height: 122px;
  }

  .news-cards {
    grid-template-columns: 1fr;
  }

  .news-row {
    grid-template-columns: 84px 1fr;
  }

  .news-date,
  .news-detail {
    text-align: left;
  }

  .news-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .news-links {
    padding: 36px 0 42px;
  }

  .news-link-col {
    width: auto;
    border-left: none;
    border: 1px solid #d7dbe6;
    padding: 14px;
    gap: 6px;
  }

  .news-link-col h3 {
    font-size: 22px;
  }

  .news-link-col a {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .news-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
