:root {
  --bg: #ffffff;
  --bg-soft: #f3f7f6;
  --bg-mist: #eef6f3;
  --ink: #111827;
  --ink-soft: #4b5563;
  --line: rgba(17, 24, 39, 0.08);
  --accent: #0d9f6e;
  --accent-deep: #0b7a55;
  --accent-soft: rgba(13, 159, 110, 0.12);
  --glow: rgba(45, 212, 168, 0.35);
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 40px rgba(15, 23, 42, 0.08);
  --radius: 28px;
  --radius-sm: 16px;
  --header-h: 64px;
  --font-display: "Sora", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.header-inner {
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.header-nav {
  display: none;
  gap: 22px;
  margin-left: 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.header-nav a:hover { color: var(--ink); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-text {
  display: none;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 8px 10px;
}

.btn-text:hover { color: var(--ink); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.btn-sm { padding: 10px 16px; font-size: 0.9rem; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; min-width: 240px; }

.btn-link {
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.98rem;
}

.btn-link:hover { color: var(--accent); }

.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer[hidden] { display: block; }

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #fff;
  padding: 20px 22px;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.12);
}

.drawer.is-open .drawer-panel { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.drawer-close {
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-soft);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-nav a {
  padding: 14px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
}

.drawer-nav a:hover { background: var(--bg-soft); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 24px 28px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 8%;
  width: min(920px, 120vw);
  height: 420px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at center, var(--glow) 0%, transparent 65%),
    radial-gradient(ellipse at 30% 40%, rgba(56, 189, 248, 0.18) 0%, transparent 50%);
  pointer-events: none;
  filter: blur(8px);
  animation: glow-breathe 8s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.hero-accent { color: var(--ink); }

.hero-lead {
  margin: 22px auto 0;
  max-width: 38em;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.75;
}

.hero-trust {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(13, 159, 110, 0.28);
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(13, 159, 110, 0.08);
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.offline-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 720px;
  margin: -8px auto 28px;
  padding: 20px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(13, 159, 110, 0.1), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(13, 159, 110, 0.22);
  text-align: center;
}

.offline-banner strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
}

.offline-banner span {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .offline-banner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: left;
  }

  .offline-banner strong {
    flex-shrink: 0;
    padding-right: 16px;
    border-right: 1px solid rgba(13, 159, 110, 0.25);
  }
}

.hero-window {
  margin: 48px auto 0;
  max-width: 980px;
  border-radius: 22px;
  overflow: hidden;
  background: #f8faf9;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateY(12px);
}

.window-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f1f5f4;
  border-bottom: 1px solid var(--line);
}

.window-chrome .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.amber { background: #febc2e; }
.dot.green { background: #28c840; }

.window-title {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.hero-window img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: top center;
  background: #eef1f4;
}

/* Sections */
.section {
  padding: 88px 24px;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 40em;
  margin: 0 auto 40px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Capabilities */
.capabilities { background: var(--bg); }

.tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  margin: 0 auto 28px;
  max-width: 560px;
  background: #eceff1;
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 1 0 auto;
  min-width: 88px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.tab-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 28px;
  animation: panel-in 0.35s ease;
}

.tab-panel[hidden] { display: none; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.panel-copy h3 span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-deep);
  letter-spacing: 0;
}

.panel-copy p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 42em;
}

.dept-chips {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dept-chips li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.dept-chips li:last-child {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-deep);
}

.panel-visual {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.panel-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: top center;
  background: #eef1f4;
}

/* Ecosystem */
.ecosystem {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(45, 212, 168, 0.12), transparent 60%),
    var(--bg-soft);
}

.eco-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.eco-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.eco-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.eco-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 14px;
}

.eco-icon svg { width: 100%; height: 100%; }

.eco-item h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.eco-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Security */
.security { background: var(--bg-mist); }

.security-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.security-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px;
  border: 1px solid transparent;
}

.sec-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 18px;
}

.sec-icon svg { width: 100%; height: 100%; }

.security-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

.security-card p {
  margin: 0;
  color: var(--ink-soft);
}

.security-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: #fff;
}

.security-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: top center;
  background: #eef1f4;
}

/* Download */
.download {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(45, 212, 168, 0.16), transparent 55%),
    #fff;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.dl-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  padding: 24px 22px;
  border-radius: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dl-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 159, 110, 0.35);
  box-shadow: var(--shadow-soft);
}

.dl-card.is-highlight {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}

.dl-card.is-highlight .dl-desc { color: rgba(255, 255, 255, 0.72); }
.dl-card.is-highlight .dl-action { color: #6ee7b7; }

.dl-os {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.dl-desc {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.dl-action {
  margin-top: 8px;
  font-weight: 600;
  color: var(--accent-deep);
  font-size: 0.95rem;
}

.download-note {
  margin: 28px auto 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 36em;
}

/* Footer */
.site-footer {
  background: #0f1720;
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-brand p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 20px;
}

.footer-nav h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-nav a {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-nav a:hover { color: #fff; }

.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: #fff;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast[hidden] { display: block; pointer-events: none; }

/* Desktop */
@media (min-width: 768px) {
  .header-nav { display: flex; }
  .btn-text { display: inline-flex; }
  .menu-toggle { display: none; }

  .hero { padding: 72px 32px 40px; }
  .hero-cta { flex-direction: column; }

  .tab-panel {
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
  }

  .eco-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .security-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .download-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer-nav { grid-template-columns: repeat(4, 1fr); }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .download-grid { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 108px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .tab-panel,
  .hero-glow,
  .eco-item,
  .dl-card,
  .btn-primary {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
