/* EastDigi.ai — EastDTC.com 星辰大海视觉体系 */

:root {
  --ed-cosmos-bg: #020208;
  --eastdtc-aurora-red: #e60012;
  --eastdtc-aurora-cyan: #2ee8c8;
  --eastdtc-aurora-blue: #5eb8ff;
  --eastdtc-aurora-violet: #b48cff;
  --eastdtc-aurora-pink: #ff7eb3;
  --ed-glass-bg: rgba(8, 14, 32, 0.55);
  --ed-glass-border: rgba(255, 255, 255, 0.08);
}

@keyframes eastdtc-aurora-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

html, body.ed-cosmos-page {
  overflow-x: clip;
  max-width: 100%;
  background: var(--ed-cosmos-bg);
  color: #f1f5f9;
}

@supports not (overflow: clip) {
  html, body.ed-cosmos-page { overflow-x: hidden; }
}

/* —— 全屏星辰大海背景 —— */
.ed-cosmos-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--ed-cosmos-bg);
  overflow: hidden;
}

.ed-cosmos-sky canvas,
.ed-cosmos-footer-canvas canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.ed-cosmos-sky__overlay,
.ed-cosmos-footer-canvas .ed-cosmos-sky__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% 35%, rgba(72, 100, 200, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, rgba(2, 4, 16, 0.15) 0%, transparent 42%, rgba(4, 12, 32, 0.1) 85%, rgba(0, 0, 0, 0.2) 100%);
}

.ed-cosmos-sky__grain,
.ed-cosmos-footer-canvas .ed-cosmos-sky__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.ed-page-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* —— 页脚数字地球 —— */
.ed-footer-earth {
  position: relative;
  overflow: hidden;
  background: var(--ed-cosmos-bg) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 420px;
}

.ed-cosmos-footer-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: var(--ed-cosmos-bg);
}

.ed-footer-earth__inner {
  position: relative;
  z-index: 2;
}

.ed-footer-earth__desc {
  color: rgba(203, 213, 225, 0.88);
}

.ed-footer-earth__nav {
  color: rgba(148, 163, 184, 0.95);
}

.ed-footer-earth__legal {
  color: rgba(186, 198, 218, 0.82);
}

.ed-footer-earth__legal a {
  color: rgba(148, 196, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ed-footer-earth__legal a:hover {
  color: #fff;
}

/* 战略合作伙伴 Logo */
.ed-partners-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ed-partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
  align-items: stretch;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .ed-partners-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

.ed-partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.875rem;
  padding: 1.25rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.ed-partner-card:hover,
.ed-partner-card:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.ed-partner-card:focus-visible {
  box-shadow: 0 0 0 2px rgba(126, 200, 255, 0.35);
}

.ed-partner-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.35rem 0.5rem;
}

.ed-partner-icon-canvas {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  max-width: 100%;
  pointer-events: none;
}

.ed-partner-card:hover .ed-partner-icon-canvas {
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.18));
}

.ed-partner-label {
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.02em;
  color: rgba(148, 163, 184, 0.95);
  text-align: center;
  transition: color 0.35s ease;
}

.ed-partner-card:hover .ed-partner-label--shopify { color: #95bf47; }
.ed-partner-card:hover .ed-partner-label--google { color: #5eb8ff; }
.ed-partner-card:hover .ed-partner-label--meta { color: #0082fb; }
.ed-partner-card:hover .ed-partner-label--paypal { color: #009cde; }

/* EastDigi.ai Canvas 动态 LOGO */
.ed-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.ed-logo__canvas {
  display: block;
  pointer-events: none;
}

.ed-logo--md .ed-logo__canvas {
  width: 172px;
  height: 40px;
}

.ed-logo--sm .ed-logo__canvas {
  width: 148px;
  height: 30px;
}

.ed-logo--lg .ed-logo__canvas {
  width: 200px;
  height: 48px;
}

.ed-logo:hover .ed-logo__canvas,
.ed-logo:focus-visible .ed-logo__canvas {
  filter: drop-shadow(0 0 12px rgba(126, 200, 255, 0.25));
}

.ed-logo:focus-visible {
  outline: none;
  border-radius: 6px;
  box-shadow: 0 0 0 2px rgba(126, 200, 255, 0.35);
}

/* EastDTC 全链路增长（同款 Canvas 支柱动效） */
.ed-services {
  position: relative;
  padding: clamp(56px, 9vw, 88px) 0;
  overflow: hidden;
}

.ed-services__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(77, 163, 255, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(2, 4, 12, 0.4) 0%, transparent 42%, rgba(2, 4, 12, 0.75) 100%);
}

.ed-services__inner {
  position: relative;
  z-index: 1;
}

.ed-services__head {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto clamp(28px, 4vw, 40px);
}

.ed-services__title {
  font-family: 'K2D', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.ed-services__lead {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(203, 213, 225, 0.88);
}

.ed-services__lead a {
  color: rgba(126, 200, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ed-services__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 40rem;
  margin: 0 auto clamp(32px, 5vw, 48px);
}

.ed-services__stat {
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(8, 14, 32, 0.55);
  border: 1px solid rgba(126, 200, 255, 0.14);
}

.ed-services__stat-value {
  font-family: 'K2D', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.ed-services__stat-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(148, 163, 184, 0.9);
  margin-top: 0.25rem;
}

.ed-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 2.5vw, 24px);
}

@media (min-width: 750px) {
  .ed-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .ed-services__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ed-services__card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 18px;
  background: rgba(8, 14, 32, 0.72);
  border: 1px solid rgba(126, 200, 255, 0.18);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.ed-services__card:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 200, 255, 0.36);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38), 0 0 28px rgba(77, 163, 255, 0.1);
}

.ed-services__card-visual {
  display: block;
  flex: 0 0 auto;
  min-height: clamp(160px, 22vw, 220px);
  width: 100%;
  aspect-ratio: 480 / 360;
  border-bottom: 1px solid rgba(126, 200, 255, 0.12);
  text-decoration: none;
  overflow: hidden;
}

.ed-services__card:hover .ed-services__card-visual {
  border-bottom-color: rgba(230, 0, 18, 0.28);
  box-shadow: inset 0 0 48px rgba(77, 163, 255, 0.08);
}

.ed-services__canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.ed-services__card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(16px, 2.5vw, 22px);
  text-align: left;
}

.ed-services__card-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eastdtc-aurora-red);
  margin-bottom: 0.5rem;
}

.ed-services__card-title {
  font-family: 'K2D', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.ed-services__card-text {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: rgba(148, 163, 184, 0.95);
  flex: 1;
  margin-bottom: 1rem;
}

.ed-services__card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'K2D', sans-serif;
  color: rgba(126, 200, 255, 0.95);
  text-decoration: none;
  transition: color 0.25s ease, gap 0.25s ease;
}

.ed-services__card-btn:hover {
  color: #fff;
  gap: 0.5rem;
}

.ed-services__footer-cta {
  text-align: center;
  margin-top: clamp(28px, 4vw, 40px);
}

/* —— 玻璃拟态 —— */
.ed-cosmos-page .glass-nav {
  background: rgba(2, 4, 14, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--ed-glass-border);
}

.ed-cosmos-page .glass-card,
.ed-cosmos-page .glass-panel {
  background: var(--ed-glass-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--ed-glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.ed-cosmos-page .glass-card:hover {
  border-color: rgba(94, 184, 255, 0.35);
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(94, 184, 255, 0.12);
}

.ed-cosmos-page #solutions,
.ed-cosmos-page .Panel-right-bg,
.ed-cosmos-page .bg-brand-dark {
  background: transparent !important;
}

.ed-cosmos-page .text-slate-400 { color: rgba(203, 213, 225, 0.88) !important; }
.ed-cosmos-page .text-slate-500 { color: rgba(148, 163, 184, 0.9) !important; }

.ed-cosmos-page .text-gradient {
  background: linear-gradient(
    125deg,
    var(--eastdtc-aurora-cyan) 0%,
    var(--eastdtc-aurora-blue) 30%,
    var(--eastdtc-aurora-violet) 55%,
    var(--eastdtc-aurora-red) 75%,
    var(--eastdtc-aurora-pink) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: eastdtc-aurora-flow 8s ease-in-out infinite;
}

.ed-cosmos-page .bg-grid-pattern {
  opacity: 0.35;
}

/* —— 北极光主按钮 —— */
.ed-btn-aurora {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  color: #fff !important;
  background: linear-gradient(135deg, #c40010 0%, var(--eastdtc-aurora-red) 45%, #a8000f 100%) !important;
  transition:
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.25s ease;
  box-shadow:
    0 0 12px rgba(230, 0, 18, 0.35),
    0 0 22px rgba(94, 184, 255, 0.18);
}

.ed-btn-aurora::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background: linear-gradient(
    125deg,
    var(--eastdtc-aurora-cyan) 0%,
    var(--eastdtc-aurora-blue) 22%,
    var(--eastdtc-aurora-violet) 45%,
    var(--eastdtc-aurora-red) 62%,
    var(--eastdtc-aurora-pink) 80%,
    var(--eastdtc-aurora-cyan) 100%
  );
  background-size: 320% 320%;
  animation: eastdtc-aurora-flow 7s ease-in-out infinite;
  mix-blend-mode: screen;
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ed-btn-aurora > * {
  position: relative;
  z-index: 1;
}

.ed-btn-aurora:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 0 18px rgba(230, 0, 18, 0.7),
    0 0 36px rgba(94, 184, 255, 0.5),
    0 0 54px rgba(46, 232, 200, 0.38),
    0 0 72px rgba(180, 140, 255, 0.28);
}

.ed-btn-aurora:hover:not(:disabled)::before {
  opacity: 0.75;
  transform: scale(1.06);
  animation-duration: 3.5s;
}

.ed-btn-aurora:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ed-btn-aurora--light {
  color: var(--ed-cosmos-bg) !important;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.15);
}

.ed-btn-aurora--ghost {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0 !important;
}

.ed-btn-aurora--block {
  width: 100%;
}

/* 导航链接极光悬停 */
.ed-nav-aurora {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 6px;
  transition: box-shadow 0.45s ease, color 0.2s ease;
}

.ed-nav-aurora::before {
  content: '';
  position: absolute;
  inset: 4px 8px;
  border-radius: 4px;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(
    120deg,
    rgba(46, 232, 200, 0.55) 0%,
    rgba(94, 184, 255, 0.5) 28%,
    rgba(180, 140, 255, 0.45) 52%,
    rgba(230, 0, 18, 0.4) 72%,
    rgba(255, 126, 179, 0.35) 100%
  );
  background-size: 260% 260%;
  transition: opacity 0.4s ease;
}

.ed-nav-aurora:hover::before,
.ed-nav-aurora:focus-visible::before {
  opacity: 0.32;
  animation: eastdtc-aurora-flow 9s ease-in-out infinite;
}

.ed-nav-aurora:hover,
.ed-nav-aurora:focus-visible {
  box-shadow:
    0 0 6px rgba(230, 0, 18, 0.22),
    0 0 12px rgba(94, 184, 255, 0.18);
}

/* 深色区文字链接 */
.ed-footer-earth a:hover,
.ed-cosmos-page .ed-link-aurora:hover {
  color: #fff;
  text-shadow:
    0 0 10px rgba(126, 200, 255, 0.62),
    0 0 20px rgba(46, 232, 200, 0.45),
    0 0 28px rgba(230, 0, 18, 0.35);
}

/* 工作台侧栏 */
.ed-app-sidebar {
  background: rgba(2, 4, 14, 0.82) !important;
  border-right-color: var(--ed-glass-border) !important;
}

.ed-app-main {
  background: transparent !important;
}

/* Markdown */
.ed-cosmos-page .markdown-content strong,
.ed-cosmos-page .prose strong {
  color: var(--eastdtc-aurora-blue);
}

/* 滚动条 */
.ed-cosmos-page ::-webkit-scrollbar { width: 6px; height: 6px; }
.ed-cosmos-page ::-webkit-scrollbar-track { background: #0a0e1a; }
.ed-cosmos-page ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #334155, var(--eastdtc-aurora-red));
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .ed-btn-aurora::before,
  .ed-nav-aurora::before,
  .ed-cosmos-page .text-gradient {
    animation: none !important;
  }
  .ed-cosmos-page .glass-card:hover {
    transform: none;
  }
}
