/* 贝塔伊科技 · beta1.cn — 公司官网 */

:root {
  --bg: #0a0c10;
  --bg-card: rgba(20, 25, 35, 0.75);
  --text: #eef2ff;
  --text-muted: #9aaec9;
  --text-soft: #b0c4e7;
  --accent-cyan: #2ec4d4;
  --accent-green: #8fd14f;
  --accent-blue: #2d6a9f;
  --border: rgba(46, 196, 212, 0.25);
  --max-width: 1280px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #14161c;
}
::-webkit-scrollbar-thumb {
  background: var(--accent-blue);
  border-radius: 8px;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 20% 30%, rgba(46, 196, 212, 0.12), var(--bg) 70%);
}

.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(46, 196, 212, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 196, 212, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── 固定顶栏 ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* ── 导航 ── */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: var(--header-height);
  padding: 10px 0 12px;
  flex-wrap: nowrap;
  gap: 12px;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.nav-logo {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px 12px;
  align-items: flex-end;
  margin-left: auto;
  flex-shrink: 1;
  min-width: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  padding: 6px 12px;
  border-radius: 40px;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.2;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.nav-links a.nav-active {
  background: rgba(46, 196, 212, 0.12);
  border-color: var(--border);
  color: var(--accent-cyan);
}

/* ── 按钮 ── */
.btn-primary {
  background: linear-gradient(135deg, #1e6a7d, #2d6a9f);
  border: none;
  padding: 13px 30px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 196, 212, 0.25);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-blue);
  padding: 13px 30px;
  border-radius: 40px;
  font-weight: 500;
  color: #c7e2f5;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, border-color 0.2s;
}

.btn-outline:hover {
  background: rgba(45, 106, 159, 0.2);
  border-color: var(--accent-cyan);
  color: #fff;
}

/* ── 通用区块 ── */
section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(45, 106, 159, 0.18);
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ── Hero ── */
.hero {
  padding: 32px 0 80px;
  text-align: center;
}

.hero-logo {
  width: min(88vw, 26rem);
  height: auto;
  margin: 0 auto calc(-1 * min(88vw, 26rem) * 137 / 705);
  display: block;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  background: linear-gradient(to right, #fff, var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 64px;
  margin-bottom: 64px;
  line-height: 1.25;
}

.hero h2:empty,
.hero p:empty {
  display: none;
}

.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 auto 12px;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 价值三列 ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.value-card {
  background: var(--bg-card);
  backdrop-filter: blur(4px);
  border-radius: 24px;
  padding: 32px 24px;
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s;
}

.value-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
}

.value-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  line-height: 1;
}

.value-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.value-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ── 产品六列 ── */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.product-card {
  background: #11141c;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #202632;
  transition: border-color 0.2s;
}

.product-card:hover {
  border-color: rgba(46, 196, 212, 0.4);
}

.product-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.product-card h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.product-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.product-card.featured {
  border-color: rgba(143, 209, 79, 0.35);
  background: linear-gradient(145deg, #11141c, rgba(143, 209, 79, 0.05));
}

.product-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(143, 209, 79, 0.15);
  color: var(--accent-green);
  margin-bottom: 10px;
}

.products-footnote {
  text-align: center;
  margin-top: 32px;
  color: #8fafd0;
  font-style: italic;
  font-size: 0.95rem;
}

/* ── 为什么 β1 ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.stat-badge {
  background: #0f121a;
  border-left: 3px solid var(--accent-cyan);
  padding: 12px 18px;
  font-family: "SF Mono", "JetBrains Mono", monospace;
  font-size: 0.9rem;
  margin: 0 0 12px;
  border-radius: 0 12px 12px 0;
  color: var(--accent-cyan);
}

.why-left p {
  color: var(--text-soft);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.fake-terminal {
  background: #03060c;
  border-radius: 20px;
  padding: 22px;
  font-family: "SF Mono", "JetBrains Mono", "Menlo", monospace;
  font-size: 0.82rem;
  border: 1px solid rgba(46, 196, 212, 0.3);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
}

.terminal-line {
  color: #9cd9f0;
  margin-bottom: 8px;
  word-break: break-word;
}

.terminal-prompt {
  color: var(--accent-green);
}

/* ── 场景卡片 ── */
.scenarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.scenario-card {
  background: rgba(10, 14, 20, 0.7);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  border: 1px solid #252e3a;
}

.scenario-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.scenario-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.scenario-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ── CTA ── */
.cta-section {
  text-align: center;
  background: linear-gradient(145deg, #0d1119, #080b10);
  border-radius: 40px;
  margin: 40px 0 48px;
  padding: 56px 28px;
  border: 1px solid var(--border);
}

.cta-section h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin-bottom: 14px;
}

.cta-section .lead {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.cta-section .btn-primary {
  margin-top: 24px;
}

.contact-email {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-email a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.contact-email a:hover {
  color: var(--accent-green);
}

.contact-tags {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #6a7c9e;
}

/* ── 弹窗 ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #0f131c;
  max-width: 440px;
  width: 100%;
  padding: 32px;
  border-radius: 28px;
  border: 1px solid var(--accent-blue);
}

.modal h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.modal p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.modal input,
.modal textarea {
  width: 100%;
  padding: 12px 16px;
  margin: 10px 0;
  background: #1e242f;
  border: 1px solid var(--accent-blue);
  border-radius: 16px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}

.modal textarea {
  min-height: 80px;
  resize: vertical;
}

.modal-close {
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
}

.modal-close:hover {
  color: var(--text);
}

/* ── 页脚 ── */
footer {
  text-align: center;
  padding: 36px 0 48px;
  color: #6a7c9e;
  font-size: 0.82rem;
  line-height: 1.8;
}

footer a {
  color: #7ab3c8;
  text-decoration: none;
}

footer a:hover {
  color: var(--accent-cyan);
}

.icp-link {
  opacity: 0.75;
}

.icp-link a {
  color: var(--text-muted);
  text-decoration: none;
}

.icp-link a:hover {
  color: var(--accent-cyan);
}

/* ── 响应式 ── */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .site-header .container {
    padding: 0 12px;
  }

  .navbar {
    padding: 8px 0 10px;
    gap: 8px;
    align-items: flex-end;
  }

  .nav-brand {
    flex-shrink: 0;
  }

  .nav-logo {
    height: 34px;
  }

  .nav-links {
    gap: 2px 4px;
    justify-content: flex-end;
  }

  .nav-links a {
    font-size: 0.68rem;
    padding: 5px 6px;
    border-radius: 24px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-logo {
    width: min(92vw, 20rem);
    margin-bottom: calc(-1 * min(92vw, 20rem) * 137 / 705);
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 56px 0;
  }
}

@media (max-width: 360px) {
  .nav-links a {
    font-size: 0.62rem;
    padding: 4px 4px;
  }
}

@media (min-width: 1024px) {
  .nav-logo {
    height: 56px;
  }

  .hero-logo {
    width: 28rem;
    margin-bottom: calc(-28rem * 137 / 705);
  }
}
