:root {
  --bg-deep: #050505;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #f0f0f0;
  --text-secondary: #8a8f98;
  --text-muted: #555;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.15);
  --radius: 20px;
  --radius-sm: 14px;
  --font: "Inter", "Noto Sans SC", -apple-system, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

#canvas-wrap {
  position: fixed;
  inset: 0;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
#fx { width: 100%; height: 100%; display: block; }

.nav-glass-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* —— 导航：818 液态玻璃 —— */
.navbar-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px clamp(18px, 6vw, 72px);
  transition: padding 0.5s ease;
}
.navbar-wrap.scrolled { padding-left: clamp(40px, 10vw, 122px); padding-right: clamp(40px, 10vw, 122px); }

.navbar {
  width: 100%;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible;
  background: transparent;
  box-shadow:
    rgba(255, 255, 255, 0.35) 0 0 2px 1px inset,
    rgba(255, 255, 255, 0.12) 0 0 10px 4px inset,
    rgba(17, 17, 26, 0.08) 0 8px 24px,
    rgba(17, 17, 26, 0.06) 0 16px 56px;
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar-wrap.scrolled .navbar { height: 72px; }

.nav-glass-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: url(#water-distort) saturate(1.25) blur(8px);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
}

.nav-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: inherit;
  position: relative;
  z-index: 20;
}
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #000;
  box-shadow: 0 0 16px var(--accent-glow);
}
.nav-logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links > a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 50px;
  transition: color 0.25s, transform 0.25s, text-shadow 0.25s;
}
.nav-links > a:hover {
  color: #fff;
  transform: translateY(-2px);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}
.nav-right { flex-shrink: 0; }
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}
.nav-login-btn:hover {
  color: #fff;
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
  transform: translateY(-1px);
}

/* —— Hero —— */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(20px, 5vw, 80px) clamp(40px, 6vw, 80px);
}
.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}
.hero-title {
  font-size: clamp(52px, 10vw, 96px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
  margin-bottom: 8px;
  color: #fff;
}
.hero-sub {
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  color: rgba(255, 255, 255, 0.35);
}
.hero-tagline {
  font-size: 14px;
  letter-spacing: 1px;
  max-width: 16rem;
  text-align: right;
  background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85) 50%, transparent);
  background-size: 100px 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: rgba(255, 255, 255, 0.35);
  background-repeat: no-repeat;
  animation: shinyText 3s cubic-bezier(0.6, 0.6, 0, 1) infinite;
}
@keyframes shinyText {
  0% { background-position: -100px 0; }
  100% { background-position: calc(100% + 100px) 0; }
}

/* —— Sections —— */
.eco-section {
  position: relative;
  z-index: 1;
  padding: 72px clamp(16px, 4vw, 60px) 40px;
}
.eco-header {
  text-align: center;
  margin-bottom: 40px;
}
.eco-badge {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 700;
  background-image: linear-gradient(to right, #e85c11, #fede28, #e85c11, #fede28, #e85c11);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 4s linear infinite;
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.eco-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -1px;
}

/* —— Bento 项目 —— */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 160px;
  color: inherit;
}
.bento-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.bento-card.span-8 { grid-column: span 8; }
.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-6 { grid-column: span 6; }
.bento-card.span-12 { grid-column: span 12; }

.bento-port {
  display: inline-flex;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 14px;
}
.bento-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.bento-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.bento-go {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.25s;
}
.bento-card:hover .bento-go { color: var(--accent); }

/* —— 插件卡片（闪电描边） —— */
.feature-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}
@property --feat-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes feat-spin {
  to { --feat-angle: 360deg; }
}
.feat-card {
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 150px;
  position: relative;
  z-index: 0;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feat-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--feat-angle),
    transparent 0%,
    transparent 70%,
    rgba(245, 158, 11, 0.7) 76%,
    rgba(232, 92, 17, 1) 80%,
    rgba(254, 222, 40, 0.9) 82%,
    rgba(232, 92, 17, 1) 84%,
    rgba(245, 158, 11, 0.7) 88%,
    transparent 94%,
    transparent 100%
  );
  z-index: -2;
  opacity: 0;
  transition: opacity 0.4s;
}
.feat-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--bg-card);
  z-index: -1;
}
.feat-card:hover::before {
  opacity: 1;
  animation: feat-spin 0.8s linear infinite;
}
.feat-card:hover {
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.15), 0 8px 24px rgba(0, 0, 0, 0.3);
}
.feat-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feat-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.feat-tag {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}

/* —— Browser mockup —— */
.browser-section {
  position: relative;
  z-index: 1;
  padding: 0 clamp(16px, 5vw, 60px) 64px;
}
.browser-mockup {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0c0c0c;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55), 0 10px 30px rgba(0, 0, 0, 0.35);
  transform: perspective(1200px) rotateX(8deg);
  transform-origin: center bottom;
}
.browser-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }
.browser-url {
  margin-left: 10px;
  flex: 1;
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}
.browser-body { padding: 16px; }
.dash-row { display: flex; gap: 10px; margin-bottom: 10px; }
.dash-stat {
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.dash-stat .lbl { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; }
.dash-stat .val { font-size: 16px; font-weight: 700; }
.dash-stat .val.accent { color: var(--accent); }
.dash-chart {
  height: 120px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.1) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.dash-chart::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.dash-chart.short { height: 80px; }

.mini-dash {
  margin-top: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.mini-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}
.mini-bar .url {
  margin-left: 8px;
  font-size: 11px;
  color: var(--text-muted);
}
.mini-body { padding: 14px; }

.bento-globe {
  min-height: 280px;
  justify-content: flex-end;
}
.globe-ring {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 160px;
  height: 160px;
  margin-left: -80px;
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow:
    0 0 40px rgba(245, 158, 11, 0.15),
    inset 0 0 40px rgba(245, 158, 11, 0.08);
  animation: globeSpin 18s linear infinite;
}
.globe-ring::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}
@keyframes globeSpin { to { transform: rotate(360deg); } }

.overview-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}
.overview-card {
  grid-column: span 2;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s, border-color 0.3s;
}
.overview-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}
.overview-card.wide { grid-column: span 6; }
.overview-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.overview-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.chip-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.chip-row li {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}
.stat-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.stat-row strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}
.stat-row span { font-size: 11px; color: var(--text-muted); }

.tech-section {
  position: relative;
  z-index: 1;
  padding: 40px 0 60px;
  text-align: center;
}
.logo-row-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logo-row-track { display: flex; width: max-content; }
.logo-row-track.scroll-l { animation: logoScroll 32s linear infinite; }
.logo-row-track:hover { animation-play-state: paused; }
@keyframes logoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-row-list {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0 12px;
}
.logo-chip {
  flex: none;
  min-width: 110px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.3s, border-color 0.3s;
}
.logo-chip:hover {
  color: #fff;
  border-color: rgba(245, 158, 11, 0.4);
}

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px clamp(16px, 4vw, 60px);
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}
.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #22c55e;
  font-weight: 500;
}
.footer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: ping 1.5s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  100% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}
.footer a:hover { color: var(--text-secondary); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .bento-card.span-8,
  .bento-card.span-4,
  .bento-card.span-6,
  .bento-card.span-12 { grid-column: span 12; }
  .feature-bento { grid-template-columns: 1fr; }
  .overview-card,
  .overview-card.wide { grid-column: span 6; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .hero-tagline { text-align: left; max-width: none; }
  .browser-mockup { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
