/* 云朵 · 代码港 — 站点共享样式（可扩展产品矩阵） */
:root {
  --bg: #F0F6FB;
  --bg-deep: #E3EFF8;
  --ink: #1A2E44;
  --ink-2: #3D5A78;
  --ink-3: #6B87A0;
  --white: #FFFFFF;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-2: rgba(255, 255, 255, 0.94);
  --border: rgba(61, 126, 219, 0.12);
  --orbit: #3D7EDB;
  --orbit-2: #2B62B8;
  --orbit-soft: rgba(61, 126, 219, 0.12);
  --harbor: #E86A5C;
  --harbor-2: #C94F42;
  --harbor-soft: rgba(232, 106, 92, 0.12);
  --green: #2FA97A;
  --green-soft: rgba(47, 169, 122, 0.12);
  --amber: #E39A2B;
  --purple: #7B6FD0;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 14px 40px rgba(47, 111, 166, 0.12);
  --shadow-lg: 0 28px 72px rgba(47, 111, 166, 0.18);
  --font: "PingFang SC", "SF Pro Text", "Microsoft YaHei", "Inter", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Menlo", Consolas, monospace;
  --max: 1120px;
  --nav-h: 62px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; cursor: pointer; background: none; }

/* ===== 一级导航 + 产品二级菜单 ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(240, 246, 251, 0.82);
  border-bottom: 1px solid rgba(61, 126, 219, 0.08);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 8px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 16.5px; letter-spacing: -0.02em;
  margin-right: 18px;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--orbit), var(--harbor));
  display: grid; place-items: center; color: #fff; font-size: 15px;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
}
.brand-mark .app-icon {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* 真实产品图标（App Icon） */
.app-icon {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  background: transparent;
}
.icon-frame {
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid rgba(26, 46, 68, 0.06);
}

.nav-menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-item {
  position: relative;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 14px; border-radius: 999px; font-size: 13.5px;
  font-weight: 650; color: var(--ink-2); transition: 0.18s;
  background: transparent; white-space: nowrap;
}
.nav-link:hover { background: var(--orbit-soft); color: var(--orbit-2); }
.nav-link.active { background: var(--white); color: var(--orbit-2); box-shadow: 0 4px 14px rgba(47,111,166,0.10); }
.nav-link .caret {
  font-size: 10px; opacity: 0.55; transition: transform 0.2s;
  margin-top: 1px;
}

/* 二级菜单（下拉） */
.nav-item.open > .nav-link .caret { transform: rotate(180deg); }
.nav-item.open > .nav-link {
  background: var(--white); color: var(--orbit-2);
  box-shadow: 0 4px 14px rgba(47,111,166,0.10);
}
.submenu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-item.open .submenu,
.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.submenu a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 11px;
  transition: background 0.15s;
}
.submenu a:hover { background: var(--orbit-soft); }
.submenu a .sm-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-size: 15px; flex-shrink: 0;
  overflow: hidden;
}
.submenu a .sm-icon.orbit { background: var(--orbit-soft); color: var(--orbit); }
.submenu a .sm-icon.harbor { background: var(--harbor-soft); color: var(--harbor); }
.submenu a .sm-icon.more { background: rgba(123,111,208,0.12); color: var(--purple); }
.submenu a .sm-icon.muted { background: rgba(107,135,160,0.12); color: var(--ink-3); }
.submenu a .sm-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.submenu a .sm-text strong {
  font-size: 13px; font-weight: 750; letter-spacing: -0.01em; color: var(--ink);
}
.submenu a .sm-text span {
  font-size: 11px; color: var(--ink-3); font-weight: 550;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.submenu .sm-divider {
  height: 1px; background: var(--border); margin: 6px 10px;
}
.submenu .sm-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 8px 12px 4px;
}

.nav-cta {
  margin-left: 10px; padding: 9px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 750;
  transition: 0.2s; white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none; margin-left: auto;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle i {
  display: block; width: 16px; height: 1.5px; background: var(--ink);
  border-radius: 2px;
}

/* ===== 通用组件 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-size: 14.5px;
  font-weight: 700; transition: 0.22s; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-orbit { background: var(--orbit); color: #fff; }
.btn-orbit:hover { background: var(--orbit-2); transform: translateY(-2px); }
.btn-harbor { background: var(--harbor); color: #fff; }
.btn-harbor:hover { background: var(--harbor-2); transform: translateY(-2px); }
.btn-ghost {
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--orbit); color: var(--orbit-2); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.18); }
.btn-outline-white {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px var(--green-soft);
}

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orbit); margin-bottom: 14px;
}
.section-label.harbor { color: var(--harbor); }
.section-label.muted { color: var(--ink-3); }
.section-title {
  font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.035em;
  line-height: 1.25; font-weight: 800; max-width: 640px;
}
.section-desc {
  margin-top: 14px; font-size: 16.5px; color: var(--ink-2);
  max-width: 560px; line-height: 1.75;
}

.chip {
  font-size: 11.5px; font-weight: 650; padding: 4px 10px; border-radius: 8px;
  background: var(--bg); color: var(--ink-2); border: 1px solid var(--border);
}
.tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tag.orbit { background: var(--orbit-soft); color: var(--orbit-2); }
.tag.harbor { background: var(--harbor-soft); color: var(--harbor-2); }
.tag.green { background: var(--green-soft); color: var(--green); }

/* 面包屑 */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-3); font-weight: 600;
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--orbit); }
.breadcrumb .sep { opacity: 0.45; }
.breadcrumb .current { color: var(--ink); }

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-in { opacity: 1 !important; transform: translateY(0) !important; }

/* Footer */
footer {
  padding: 48px 24px 56px; border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; flex-wrap: wrap;
}
.footer-brand { max-width: 280px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 {
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 13.5px; color: var(--ink-2);
  padding: 4px 0; font-weight: 550;
}
.footer-col a:hover { color: var(--orbit); }
.footer-bottom {
  max-width: var(--max); margin: 36px auto 0; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-3);
}

/* 响应式 */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #F7FAFD;
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch;
    padding: 12px 16px 18px;
    gap: 4px;
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; border-radius: 12px; padding: 12px 14px; }
  .submenu {
    position: static !important;
    transform: none !important;
    left: auto !important; top: auto !important;
    opacity: 1 !important; visibility: visible !important;
    pointer-events: auto; box-shadow: none; border: 0;
    background: rgba(61, 126, 219, 0.06);
    margin: 4px 0 8px; min-width: 0 !important; width: 100%;
    padding: 8px;
  }
  .nav-item:not(.open) .submenu { display: none !important; }
  .nav-item.open .submenu,
  .nav-item:hover .submenu,
  .nav-item:focus-within .submenu {
    display: block;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .submenu a { padding: 10px 10px; }
  .submenu a .sm-text strong,
  .submenu a .sm-text span {
    white-space: normal; overflow: visible; text-overflow: clip;
  }
  .nav-cta {
    margin: 8px 0 0; text-align: center; justify-content: center;
    display: inline-flex;
  }
}
