/* ===== EDATEK 官网样式 ===== */

:root {
  --bg: #070b14;
  --bg-2: #0b1220;
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #e7eef8;
  --muted: #94a3bb;
  --cyan: #22d3ee;
  --blue: #4f8cff;
  --purple: #a78bfa;
  --amber: #fbbf24;
  --green: #34d399;
  --danger: #f87171;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img,
canvas {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.container-narrow {
  width: min(820px, 92%);
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(79, 140, 255, 0.08), transparent 60%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: 0.5px;
  margin: 10px 0 12px;
}

.section-head p {
  color: var(--muted);
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 5px 14px;
  border-radius: 999px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #04101d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 14px 38px rgba(34, 211, 238, 0.38);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.06);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 1.12rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  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: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 140, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 140, 255, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.orb-1 {
  width: 480px;
  height: 480px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.5), transparent 70%);
  animation: float 12s ease-in-out infinite;
}

.orb-2 {
  width: 520px;
  height: 520px;
  bottom: -200px;
  right: -140px;
  background: radial-gradient(circle, rgba(79, 140, 255, 0.55), transparent 70%);
  animation: float 14s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(26px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.16;
  letter-spacing: 1px;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.hero-sub strong {
  color: var(--text);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 6vw, 72px);
  margin-top: 60px;
  flex-wrap: wrap;
}

.stat b {
  display: block;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== 卡片 ===== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  background: var(--card-hover);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: var(--shadow);
}

/* ===== 产品 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.product-card {
  padding: 40px 34px;
}

.product-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.product-icon svg {
  width: 40px;
  height: 40px;
}

.icon-pcb {
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(34, 211, 238, 0.04));
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.icon-ic {
  color: var(--purple);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.16), rgba(167, 139, 250, 0.04));
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.product-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.card-desc {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 20px;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  color: #c8d4e6;
  font-size: 0.93rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
}

.price-card .feature-list li::before {
  color: var(--cyan);
}

.card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  flex-wrap: wrap;
}

.price-tag {
  color: var(--muted);
  font-size: 0.9rem;
}

.price-tag b {
  color: var(--amber);
  font-size: 1.5rem;
  font-weight: 800;
  margin-left: 4px;
}

/* ===== Demo ===== */
.demo-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tool-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-btn {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.tool-btn:hover {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.4);
}

.tool-btn.is-active {
  color: #04101d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-color: transparent;
}

.tool-danger {
  color: var(--danger);
}

.tool-danger:hover {
  border-color: rgba(248, 113, 113, 0.5);
  color: var(--danger);
  background: rgba(248, 113, 113, 0.08);
}

.board {
  position: relative;
  background: #0c1626;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 0 80px rgba(34, 211, 238, 0.06), var(--shadow);
}

.board canvas {
  width: 100%;
  height: auto;
  cursor: crosshair;
  touch-action: none;
}

.board-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--cyan);
  opacity: 0.8;
  pointer-events: none;
}

.corner-tl { top: 10px; left: 10px; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.corner-tr { top: 10px; right: 10px; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
.corner-bl { bottom: 10px; left: 10px; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
.corner-br { bottom: 10px; right: 10px; border-left: none; border-top: none; border-radius: 0 0 6px 0; }

.demo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.demo-stats {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.demo-stats b {
  color: var(--cyan);
  font-size: 1.1rem;
}

.demo-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ===== 流程 ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  counter-reset: none;
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.35);
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #04101d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  margin-bottom: 18px;
}

.step:nth-child(odd) .step-num {
  background: linear-gradient(135deg, var(--purple), var(--blue));
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

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

/* ===== 价格 ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}

.price-card {
  padding: 40px 34px;
}

.price-card-featured {
  border-color: rgba(34, 211, 238, 0.45);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.09), var(--card) 55%);
  position: relative;
}

.price-card-featured::before {
  content: "推荐";
  position: absolute;
  top: -13px;
  right: 26px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #04101d;
  background: linear-gradient(135deg, var(--amber), #f59e0b);
  padding: 4px 14px;
  border-radius: 999px;
}

.price-label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 26px;
}

.price .currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--amber);
}

.price b {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--amber);
}

.price .per {
  color: var(--muted);
  font-size: 0.9rem;
}

.fine-print {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 28px;
}

/* ===== FAQ ===== */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 22px;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(34, 211, 238, 0.35);
}

.faq-item[open] {
  border-color: rgba(34, 211, 238, 0.45);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--cyan);
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--muted);
  font-size: 0.93rem;
  padding-bottom: 18px;
}

/* ===== 联系 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 12px 0 14px;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 26px;
}

.contact-list {
  display: grid;
  gap: 12px;
  color: #c8d4e6;
}

.contact-list a:hover {
  color: var(--cyan);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 32px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #c8d4e6;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.form-tip {
  font-size: 0.85rem;
  color: var(--green);
  min-height: 1.2em;
}

/* ===== 页脚 ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  background: #060a12;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 12px;
}

.footer-beian {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-beian:hover {
  color: var(--cyan);
}

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(6px);
  padding: 20px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  width: min(420px, 100%);
  padding: 34px 32px;
  position: relative;
  animation: pop 0.25s ease;
}

@keyframes pop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal h3 {
  margin: 12px 0 18px;
  font-size: 1.25rem;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.18s ease;
}

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

.modal-summary {
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.modal-summary p {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}

.modal-summary b {
  color: var(--text);
}

.modal-summary .accent {
  color: var(--amber);
  font-size: 1.2rem;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions .btn {
  flex: 1;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: #0f2233;
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 12px;
  padding: 14px 26px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: pop 0.25s ease;
  text-align: center;
}

.toast[hidden] {
  display: none;
}

/* ===== 滚动入场动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .orb {
    animation: none;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(7, 11, 20, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 8px 5vw 18px;
    display: none;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 120px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .product-card,
  .price-card {
    padding: 30px 24px;
  }

  .demo-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-footer .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
