/* ===== Reladock 官网样式 ===== */

:root {
  --bg: #070b14;
  --bg-soft: #0b1120;
  --surface: #101a2e;
  --surface-2: #14203a;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e6edf7;
  --text-muted: #93a3bb;
  --text-dim: #6b7a93;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --grad: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #6366f1 100%);
  --grad-text: linear-gradient(120deg, #22d3ee, #818cf8);
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 20px 50px -20px rgba(2, 8, 23, 0.9);
  --font-sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  padding: 12px 24px;
  box-shadow: 0 8px 24px -8px rgba(59, 130, 246, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(59, 130, 246, 0.65);
}

.btn-ghost {
  background: rgba(148, 163, 184, 0.06);
  color: var(--text);
  padding: 12px 24px;
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(148, 163, 184, 0.12); border-color: var(--border-strong); }

.btn-outline {
  background: transparent;
  color: var(--text);
  padding: 12px 24px;
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.arrow { transition: transform 0.2s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.08);
  padding: 10px 0;
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-logo { width: 32px; height: 32px; }
.brand-logo svg { width: 100%; height: 100%; }
.brand-name { font-size: 1.25rem; letter-spacing: -0.01em; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.glow-1 { width: 480px; height: 480px; background: rgba(6, 182, 212, 0.35); top: -120px; left: -100px; }
.glow-2 { width: 520px; height: 520px; background: rgba(99, 102, 241, 0.32); bottom: -160px; right: -120px; }

.hero-nodes { position: absolute; inset: 0; }

.hero-inner { position: relative; text-align: center; max-width: 860px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #7dd3fc;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 28px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--text); }
.stat-unit { font-size: 1.1rem; font-weight: 600; color: var(--cyan); margin-left: 2px; }
.stat-label { color: var(--text-dim); font-size: 0.85rem; margin-top: 4px; }

/* 网络节点动画（JS 生成） */
.net-node {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
}
.net-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.6), rgba(99, 102, 241, 0.6));
  transform-origin: left center;
  animation: dash 3s linear infinite;
}
@keyframes dash {
  to { opacity: 0.15; }
}

/* ===== 信任条 ===== */
.trustbar {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.trust-label {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.trust-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-logos span {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 1.1rem;
  opacity: 0.75;
  letter-spacing: -0.01em;
}

/* ===== 通用 Section ===== */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ===== 产品优势 ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 24px 48px -24px rgba(6, 182, 212, 0.35);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.12);
  margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; fill: #22d3ee; }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== 全球节点 ===== */
.coverage { background: var(--bg-soft); }
.coverage-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.region-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.region-card:hover { border-color: rgba(6, 182, 212, 0.4); transform: translateX(4px); }
.region-flag { font-size: 1.7rem; line-height: 1; }
.region-info { flex: 1; }
.region-info h4 { font-size: 1rem; font-weight: 700; }
.region-info p { color: var(--text-dim); font-size: 0.85rem; }
.region-latency {
  font-size: 0.9rem;
  font-weight: 700;
  color: #22d3ee;
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ===== 解决方案 ===== */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.solution-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.solution-card:hover { transform: translateY(-6px); border-color: rgba(99, 102, 241, 0.4); }
.solution-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.solution-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99, 102, 241, 0.12);
}
.solution-icon svg { width: 24px; height: 24px; fill: #a5b4fc; }
.solution-top h3 { font-size: 1.25rem; font-weight: 700; }
.solution-card > p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }
.solution-points { display: flex; flex-direction: column; gap: 8px; }
.solution-points li {
  position: relative;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.solution-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22d3ee;
  font-weight: 700;
}

/* ===== 接入流程 ===== */
.how { background: var(--bg-soft); }
.steps {
  display: flex;
  align-items: stretch;
  gap: 20px;
}
.step {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.92rem; }
.step-connector {
  flex: 0 0 40px;
  align-self: center;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.4), rgba(99, 102, 241, 0.4));
  position: relative;
}
.step-connector::after {
  content: "→";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cyan);
  font-size: 0.9rem;
}

/* ===== 价格方案 ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.price-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.price-card.featured {
  border-color: rgba(6, 182, 212, 0.5);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.08), var(--surface) 40%);
  box-shadow: 0 24px 48px -24px rgba(6, 182, 212, 0.4);
}
.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.price-desc { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 22px; }
.price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 26px; }
.currency { font-size: 1.2rem; font-weight: 600; color: var(--text-muted); }
.amount { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.period { color: var(--text-dim); font-size: 0.9rem; }
.price-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; flex: 1; }
.price-features li {
  position: relative;
  padding-left: 26px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22d3ee;
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq { background: var(--bg-soft); }
.faq-container { max-width: 780px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 20px 24px;
}
.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 182, 212, 0.1);
  color: #22d3ee;
  font-size: 1.2rem;
  font-weight: 500;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p { padding: 0 24px 22px; color: var(--text-muted); font-size: 0.95rem; }

/* ===== 联系我们 ===== */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
}
.contact-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 32px; }
.contact-methods { display: flex; flex-direction: column; gap: 18px; }
.contact-method { display: flex; align-items: center; gap: 14px; color: var(--text-muted); }
.contact-method svg { width: 22px; height: 22px; fill: #22d3ee; flex-shrink: 0; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-dim); }
.form-note { color: var(--text-dim); font-size: 0.78rem; text-align: center; }

/* ===== 页脚 ===== */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ===== 滚动显示动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .coverage-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 64px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }

  .nav-links {
    position: fixed;
    top: 62px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 4px;
    background: rgba(11, 17, 32, 0.98);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 8px; border-radius: 8px; }
  .nav-links a:hover { background: rgba(148, 163, 184, 0.06); }
  .nav-toggle { display: flex; }
  .nav-actions .btn-sm { display: none; }

  .feature-grid { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
  .coverage-list { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-connector { flex: 0 0 30px; width: 1px; height: 30px; align-self: center; transform: rotate(90deg); }

  .contact-box { grid-template-columns: 1fr; padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .hero-cta .btn { width: 100%; }
}
