/* ==========================================================================
   阳拓明途云加速 — 静态官网样式
   ========================================================================== */

:root {
  /* 品牌色 */
  --blue: #4f8eff;
  --cyan: #00d4ff;
  --accent-grad: linear-gradient(120deg, #4f8eff 0%, #00d4ff 100%);

  /* 深色区（Hero / CDN） */
  --bg-dark: #0a1120;
  --bg-dark-2: #0d1730;
  --card-dark: rgba(255, 255, 255, 0.045);
  --card-dark-hover: rgba(255, 255, 255, 0.08);
  --line-dark: rgba(255, 255, 255, 0.09);
  --text-dark: #eaf1fb;
  --text-dark-2: #a3b2cc;
  --text-dark-3: #7286a3;

  /* 浅色区（Certum） */
  --bg-light: #f6f9fe;
  --card-light: #ffffff;
  --line-light: #e4ebf6;
  --text-light: #16233c;
  --text-light-2: #4a5a74;
  --text-light-3: #8394ac;

  /* 布局 */
  --container: 1180px;
  --header-h: 68px;
  --radius: 18px;

  /* 动效 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-light);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease),
    background-color 200ms var(--ease), border-color 200ms var(--ease),
    color 200ms var(--ease), filter 200ms var(--ease);
  user-select: none;
}

.btn:active { transform: scale(0.97); }

.btn-lg { padding: 14px 34px; font-size: 16px; }
.btn-sm { padding: 9px 20px; font-size: 14px; }

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 6px 22px rgba(63, 141, 255, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 30px rgba(63, 141, 255, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.btn-light {
  background: #fff;
  color: #1754c9;
  box-shadow: 0 6px 22px rgba(10, 20, 45, 0.22);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(10, 20, 45, 0.3); }

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-1px); }

/* ==========================================================================
   顶部导航（半透明材质）
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 17, 32, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease),
    box-shadow 300ms var(--ease);
}

.site-header.scrolled {
  background: rgba(10, 17, 32, 0.82);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #fff;
}

.brand-mark { display: inline-flex; border-radius: 9px; overflow: hidden; }
.brand-mark svg { display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-dark-2);
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-link.active { color: #fff; background: rgba(79, 142, 255, 0.22); }

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

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 250ms var(--ease), opacity 250ms var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 96px) 0 110px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(79, 142, 255, 0.16), transparent 60%),
    var(--bg-dark);
}

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

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: float 14s ease-in-out infinite alternate;
}
.hero-glow-1 {
  width: 520px; height: 520px;
  right: -140px; top: -160px;
  background: radial-gradient(circle, rgba(79, 142, 255, 0.45), transparent 70%);
}
.hero-glow-2 {
  width: 420px; height: 420px;
  left: -160px; bottom: -200px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.28), transparent 70%);
  animation-delay: -7s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 230, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 230, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
}

@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-30px, 24px, 0) scale(1.06); }
}

.hero-content { position: relative; text-align: center; }

.hero-eyebrow {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(79, 142, 255, 0.35);
  background: rgba(79, 142, 255, 0.1);
  color: #9cc2ff;
  font-size: 14px;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text-dark);
}

.text-gradient {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 680px;
  margin: 24px auto 0;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-dark-2);
}

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

.hero-stats {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.stat {
  padding: 22px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: var(--card-dark);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.stat-num {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.stat-unit { font-size: 0.85rem; font-weight: 600; color: var(--text-dark-2); margin-left: 2px; }
.stat-label { font-size: 13px; color: var(--text-dark-3); }

/* ==========================================================================
   通用 Section
   ========================================================================== */
.section { padding: 96px 0; }
.section.dark { background: var(--bg-dark); color: var(--text-dark); }
.section.dark.section-alt { background: var(--bg-dark-2); }
.section.light { background: var(--bg-light); color: var(--text-light); }

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

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9cc2ff;
  background: rgba(79, 142, 255, 0.12);
  border: 1px solid rgba(79, 142, 255, 0.3);
  margin-bottom: 18px;
}

.section-tag.tag-dark {
  color: #1f6fe0;
  background: rgba(79, 142, 255, 0.1);
  border-color: rgba(79, 142, 255, 0.28);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.section-desc {
  margin-top: 18px;
  font-size: 1rem;
  color: var(--text-dark-2);
}

.section.light .section-desc { color: var(--text-light-2); }

/* ==========================================================================
   网格
   ========================================================================== */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ==========================================================================
   卡片
   ========================================================================== */
.card {
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 300ms var(--ease), background-color 300ms var(--ease),
    border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}

.card:hover { transform: translateY(-4px); }

.card-dark {
  background: var(--card-dark);
  border: 1px solid var(--line-dark);
}
.card-dark:hover { background: var(--card-dark-hover); border-color: rgba(79, 142, 255, 0.35); }

.card-dark h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.card-dark p { font-size: 0.92rem; color: var(--text-dark-2); }

.card-light {
  background: var(--card-light);
  border: 1px solid var(--line-light);
  box-shadow: 0 2px 10px rgba(23, 48, 92, 0.05);
}
.card-light:hover {
  box-shadow: 0 16px 40px rgba(23, 48, 92, 0.12);
  border-color: rgba(79, 142, 255, 0.4);
}

.card-light h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-light);
}
.card-light p { font-size: 0.92rem; color: var(--text-light-2); }

/* 图标 */
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }

.icon-blue   { background: rgba(79, 142, 255, 0.14);  color: #6da4ff; }
.icon-cyan   { background: rgba(0, 212, 255, 0.12);   color: #3fd8f5; }
.icon-green  { background: rgba(52, 211, 153, 0.12);  color: #43d9a3; }
.icon-purple { background: rgba(167, 139, 250, 0.14); color: #a78bfa; }
.icon-amber  { background: rgba(251, 191, 36, 0.14);  color: #f5b32e; }

.card-light .icon-blue   { background: rgba(79, 142, 255, 0.1); }
.card-light .icon-green  { background: rgba(16, 185, 129, 0.1); }
.card-light .icon-amber  { background: rgba(245, 158, 11, 0.12); }

/* ==========================================================================
   产品优势（横向条目）
   ========================================================================== */
.feature-horizontal {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--card-dark);
  border: 1px solid var(--line-dark);
  transition: transform 300ms var(--ease), background-color 300ms var(--ease),
    border-color 300ms var(--ease);
}
.feature-horizontal:hover {
  transform: translateY(-4px);
  background: var(--card-dark-hover);
  border-color: rgba(79, 142, 255, 0.35);
}

.feature-horizontal .card-icon { margin-bottom: 0; flex-shrink: 0; }

.feature-body h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-body p { font-size: 0.93rem; color: var(--text-dark-2); }

/* ==========================================================================
   应用场景
   ========================================================================== */
.scene {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-dark);
  border: 1px solid var(--line-dark);
  transition: transform 300ms var(--ease), border-color 300ms var(--ease),
    box-shadow 300ms var(--ease);
}
.scene:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 18px 44px rgba(0, 30, 80, 0.35);
}

.scene-visual {
  padding: 34px 24px;
  color: #7db4ff;
  background:
    radial-gradient(240px 140px at 50% 0%, rgba(79, 142, 255, 0.18), transparent 75%),
    rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  justify-content: center;
  transition: color 300ms var(--ease);
}
.scene:hover .scene-visual { color: #9cc9ff; }
.scene-visual svg { width: 120px; height: 72px; }

.scene-body { padding: 26px 26px 30px; }
.scene-body h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.scene-body p { font-size: 0.92rem; color: var(--text-dark-2); }

.scenes-cta { margin-top: 52px; text-align: center; }

/* ==========================================================================
   Certum 证书
   ========================================================================== */
.certum-banner {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 40px 44px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(120deg, #eef4ff 0%, #f2fbff 100%);
  border: 1px solid var(--line-light);
  box-shadow: 0 8px 30px rgba(31, 77, 184, 0.07);
}

.certum-badge { flex-shrink: 0; }
.certum-badge svg { width: 108px; height: 108px; }

.certum-banner-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.certum-banner-text > p {
  margin-top: 10px;
  color: var(--text-light-2);
  font-size: 0.98rem;
}

.certum-points {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  list-style: none;
}
.certum-points li {
  position: relative;
  padding: 7px 16px 7px 34px;
  font-size: 13.5px;
  font-weight: 600;
  color: #2b5292;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 999px;
}
.certum-points li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--accent-grad);
}

.value-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 64px 0 32px;
}
.value-head h3 {
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
}
.value-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-light), transparent);
}

/* ==========================================================================
   联系我们
   ========================================================================== */
.contact {
  background:
    radial-gradient(900px 420px at 50% 120%, rgba(0, 212, 255, 0.22), transparent 70%),
    linear-gradient(160deg, #123064 0%, #0a1730 70%);
}

.contact-inner { text-align: center; padding: 20px 0; }

.contact-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
}

.contact-desc {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--text-dark-2);
}

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

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  background: #070d1a;
  color: var(--text-dark-3);
  padding-top: 64px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand .brand { font-size: 16px; color: #d5e1f4; }
.footer-slogan { margin-top: 14px; font-size: 13.5px; max-width: 300px; }

.footer-nav {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dark-2);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 13.5px;
  color: var(--text-dark-3);
  transition: color 200ms var(--ease);
}
.footer-col a:hover { color: #9cc2ff; }

.footer-bottom {
  padding: 22px 24px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dark-3);
  transition: color 200ms var(--ease);
}
.footer-links a:hover { color: #9cc2ff; }
.footer-sep { opacity: 0.5; }

.beian-badge { width: 14px; height: 14px; }

.footer-copy { color: var(--text-dark-3); }

/* ==========================================================================
   滚动显现动效
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
  will-change: opacity, transform;
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

[data-reveal-delay="1"] { --reveal-delay: 1; }
[data-reveal-delay="2"] { --reveal-delay: 2; }
[data-reveal-delay="3"] { --reveal-delay: 3; }

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

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 20px;
    background: rgba(10, 17, 32, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 260ms var(--ease), opacity 260ms var(--ease),
      visibility 260ms var(--ease);
  }
  .site-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-link { padding: 12px 14px; font-size: 15.5px; }

  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }

  .hero { padding: calc(var(--header-h) + 64px) 0 76px; }
  .section { padding: 68px 0; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .feature-horizontal { flex-direction: column; }

  .certum-banner { flex-direction: column; text-align: center; padding: 34px 24px; gap: 24px; }
  .certum-points { justify-content: center; }

  .footer-inner { flex-direction: column; }
  .footer-nav { gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .hero-cta .btn-lg { width: 100%; }
  .contact-actions .btn-lg { width: 100%; }
}

/* ==========================================================================
   无障碍：降低动效偏好
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-glow { animation: none; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card:hover, .scene:hover, .feature-horizontal:hover,
  .btn-primary:hover, .btn-ghost:hover { transform: none; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg-dark); backdrop-filter: none; }
  .site-nav { background: var(--bg-dark); backdrop-filter: none; }
}
