:root {
  --primary: #0a7be0;
  --primary-2: #18b7ff;
  --primary-dark: #075fb0;
  --ink: #172033;
  --body: #34445c;
  --muted: #68788f;
  --soft: #526783;
  --line: rgba(10, 123, 224, 0.14);
  --footer: #121d2f;
  --max: 1140px;
  --header: 74px;
  --shadow: 0 12px 30px rgba(24, 43, 77, 0.08);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--body);
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  font-size: 16px;
  line-height: 1.78;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
.nowrap { white-space: nowrap; }
a { color: var(--primary); text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: linear-gradient(135deg, #0a7be0 0%, #18b7ff 100%);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 12px 26px rgba(10, 123, 224, 0.26);
  cursor: pointer;
}
.btn:hover { filter: brightness(1.06); }
.btn-lg { min-height: 44px; padding: 10px 22px; font-size: 16px; }
.btn-outline {
  background: #fff;
  color: var(--primary);
  border-color: #0a7be0;
  box-shadow: none;
}
.btn-outline:hover { background: #f4f9ff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.nav-bar { height: 74px; background: #fff; }
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}
.logo img { width: 32px; height: 32px; }
.nav-menu { display: flex; align-items: center; margin-left: auto; }
.nav-menu > a,
.sub-toggle {
  display: inline-flex;
  align-items: center;
  height: 74px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #2f3f56;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
  white-space: nowrap;
}
.nav-menu > a:hover,
.sub-toggle:hover,
.menu-item:hover > .sub-toggle { color: var(--primary); }
.nav-menu > a.nav-cta {
  height: 38px;
  margin-left: 8px;
  padding: 0 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: linear-gradient(135deg, #0a7be0 0%, #18b7ff 100%);
  box-shadow: 0 12px 26px rgba(10, 123, 224, 0.26);
}
.nav-menu > a.nav-cta:hover { color: #fff; }
.menu-item { position: relative; }
.sub-toggle::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.submenu {
  display: none;
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  min-width: 240px;
  padding: 8px 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(24, 43, 77, 0.14);
  z-index: 50;
}
.menu-item:hover .submenu,
.menu-item:focus-within .submenu,
.menu-item.is-open .submenu { display: block; }
.submenu a {
  display: block;
  padding: 10px 20px;
  color: #3c4858;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.submenu a:hover { color: var(--primary); background: #f4f9ff; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 8px;
  background: #243044;
}

.hero {
  position: relative;
  padding: 88px 0 128px;
  text-align: center;
  color: #f8f9fc;
  overflow: hidden;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(255, 255, 255, 0.14) 28%, transparent 40%),
    linear-gradient(112deg, transparent 0 46%, rgba(255, 255, 255, 0.18) 56%, transparent 68%),
    linear-gradient(108deg, transparent 0 62%, rgba(255, 255, 255, 0.1) 72%, transparent 84%),
    radial-gradient(820px 240px at 18% 110%, rgba(255, 255, 255, 0.28), transparent 62%),
    linear-gradient(180deg, #9ad4ff 0%, #3b9ef2 36%, #0c78dc 72%, #49adf6 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 {
  color: #f8f9fc;
  font-size: 46px;
  font-weight: 500;
  line-height: 1.28;
}
.hero-sub {
  margin: 24px auto 0;
  max-width: 820px;
  color: #f8f9fc;
  font-size: 18px;
  font-weight: 400;
  line-height: 23px;
}
.hero-actions { margin-top: 28px; }
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 72px;
}

.release { position: relative; z-index: 2; margin-top: -64px; padding-bottom: 8px; }
.release-card {
  display: flex;
  gap: 18px;
  padding: 26px 30px;
  background:
    linear-gradient(135deg, rgba(10, 123, 224, 0.07), rgba(255, 255, 255, 0) 46%),
    #fff;
  border: 1px solid rgba(10, 123, 224, 0.24);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(10, 123, 224, 0.1);
}
.release-card img.rocket { width: 46px; height: 46px; flex: 0 0 46px; }
.release-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(10, 123, 224, 0.1);
  color: var(--primary);
  font-size: 13px;
  line-height: 1.6;
}
.release-card h2 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 29px;
}
.release-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.release-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

.section { padding: 86px 0; }
section[id], #docs, #editions, #embed { scroll-margin-top: 90px; }
.section-soft {
  background:
    radial-gradient(circle at 16% 18%, rgba(24, 183, 255, 0.14), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(10, 123, 224, 0.1), transparent 30%),
    linear-gradient(#fff, #f7fbff);
}
.section-arch {
  background: linear-gradient(#eef7ff 0%, #fff 10%, #fff 90%, #eef7ff 100%);
}
.section-adv {
  background:
    radial-gradient(circle at 12% 18%, rgba(24, 183, 255, 0.16), transparent 26%),
    linear-gradient(#eef7ff, #f8fbff);
}
.section-tint { background: linear-gradient(#f8fbff, #f2f7fc); }

.section-title { text-align: center; margin-bottom: 28px; }
.section-title h2 {
  color: var(--ink);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.28;
}
.section-title h2 span,
.section-title a,
.section-title strong { color: var(--primary); font-weight: 700; }
.section-title p {
  max-width: 860px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}
.section-title p.soft { color: var(--soft); }
.section-title p strong { color: var(--primary); }

.product-shot {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 50px rgba(24, 43, 77, 0.12);
}
.product-shot img,
.arch-shot { width: 100%; height: auto; display: block; }

.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.adv-grid article {
  padding: 30px 22px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.adv-grid img { width: 64px; height: 64px; margin: 0 auto 14px; }
.adv-grid h3 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 29px;
}
.adv-grid p { color: var(--muted); font-size: 14px; line-height: 1.7; }

.source-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.source-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 134px;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(36, 59, 92, 0.05);
}
.source-grid img { width: min(180px, 86%); height: auto; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.shot-card,
.case {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 3px rgba(60, 72, 88, 0.15);
  overflow: hidden;
}
.shot-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #10284a; }
.shot-card h3 { padding: 12px 14px 16px; }
.shot-card h3 a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}
.shot-card h3 a:hover { color: var(--primary); }
.more { margin-top: 28px; text-align: center; }

.case { position: relative; }
.case-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 118px;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
}
.case-logos .mark { width: 92px; height: 36px; object-fit: cover; border-radius: 6px; }
.case-logos .brand { width: 36px; height: 36px; }
.example-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #e8f4ff;
  color: var(--primary);
  font-size: 12px;
  line-height: 1.6;
}
.case h3 {
  padding: 14px 16px 18px;
  min-height: 76px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.qa {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  padding: 26px 32px;
  background: #f4f8ff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(24, 43, 77, 0.08);
}
.qa img { width: 28px; height: 28px; flex: 0 0 28px; margin-top: 2px; }
.qa h3 { color: var(--primary); font-size: 16px; font-weight: 700; line-height: 1.5; }
.qa p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.75; }

.edition-wrap { margin-top: 36px; }
.edition-wrap h3 {
  margin-bottom: 16px;
  text-align: center;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
}
.edition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.edition-grid article {
  padding: 22px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.edition-grid h4 { margin-bottom: 8px; color: var(--ink); font-size: 18px; }
.edition-grid p { min-height: 72px; color: var(--muted); font-size: 14px; }
.edition-grid a { font-weight: 650; }

.entry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 16px 22px;
  background: #f8fbff;
  border: 1px solid #e5eef6;
  border-radius: 8px;
}
.entry-list a {
  color: #0a7be0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}
.entry-list a:hover { color: var(--primary-dark); }

.site-footer { background: var(--footer); color: rgba(255, 255, 255, 0.82); padding: 42px 0 18px; }
.footer-main { display: grid; grid-template-columns: 1.15fr 2fr; gap: 40px; }
.logo.light span { color: #fff; }
.footer-brand p {
  margin-top: 14px;
  max-width: 28em;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.7;
}
.footer-icons { display: flex; gap: 10px; margin-top: 18px; }
.footer-icons a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.footer-nav h2 { margin-bottom: 12px; color: #fff; font-size: 16px; font-weight: 650; }
.footer-nav a { display: block; margin: 8px 0; color: rgba(255, 255, 255, 0.72); font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom p { color: rgba(255, 255, 255, 0.62); font-size: 13px; line-height: 1.7; }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }

@media (max-width: 1180px) {
  .nav-menu > a,
  .sub-toggle { padding: 0 8px; font-size: 14px; }
  .logo { font-size: 18px; }
}

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav-bar { height: auto; }
  .nav-inner { min-height: 64px; flex-wrap: wrap; }
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 12px;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu > a,
  .sub-toggle { height: 44px; justify-content: space-between; }
  .submenu { position: static; min-width: 0; box-shadow: none; padding: 0 0 8px 12px; }
  .submenu a { white-space: normal; }
  .nav-cta { width: calc(100% - 16px); margin: 8px !important; }
  .adv-grid,
  .source-grid,
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main,
  .edition-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
  .hero h1 { font-size: 34px; }
  .section-title h2 { font-size: 26px; }
  .edition-grid p { min-height: 0; }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 32px)); }
  .hero { padding: 56px 0 96px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; line-height: 1.5; }
  .release { margin-top: -40px; }
  .release-card { flex-direction: column; padding: 20px 16px; }
  .section { padding: 56px 0; }
  .adv-grid,
  .card-grid,
  .edition-grid { grid-template-columns: 1fr; }
  .source-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .source-grid li { min-height: 96px; padding: 12px 8px; }
  .qa { padding: 18px 16px; }
  .case h3 { min-height: 0; }
}
