/* ==========================================================================
   滨州市易豪云计算有限公司 · 官网自定义样式
   与 Tailwind CDN 配合使用（Tailwind 负责布局，本文件负责品牌细节与动效）
   主色 #0F52BA / 高亮青 #00D4FF
   ========================================================================== */

:root {
  --brand: #0F52BA;
  --brand-dark: #0B3E8E;
  --brand-light: #2A73E0;
  --accent: #00D4FF;
  --ink: #111827;
  --ink-soft: #333842;
  --mist: #F4F7FA;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink-soft);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  color: var(--ink);
}

/* 锚点跳转时给固定导航留出空间 */
[id] {
  scroll-margin-top: 110px;
}

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */
.site-header {
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 30px -12px rgba(15, 82, 186, .28);
}

.nav-item {
  position: relative;
}
.nav-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.nav-item:hover > .nav-panel,
.nav-item:focus-within > .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-item:hover .nav-link::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}
.nav-link.is-active {
  color: var(--brand);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Hero 首屏：云网格 + 光晕 + 数据流（低饱和，不抢文字）
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(0, 212, 255, .22), transparent 62%),
    radial-gradient(900px 460px at 6% 106%, rgba(15, 82, 186, .30), transparent 60%),
    linear-gradient(150deg, #0B1B3A 0%, #0F2E63 46%, #0A2A55 100%);
}

.hero-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: grid-drift 28s linear infinite;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
}
@keyframes grid-drift {
  to { background-position: 56px 56px, 56px 56px; }
}

.hero-flow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, .55) 50%, transparent 100%);
  height: 1px;
  opacity: .5;
}
.hero-flow.f1 { top: 32%; animation: flow 9s ease-in-out infinite; }
.hero-flow.f2 { top: 58%; animation: flow 12s ease-in-out infinite reverse; }
.hero-flow.f3 { top: 76%; animation: flow 15s ease-in-out infinite; }
@keyframes flow {
  0%   { transform: translateX(-60%); opacity: 0; }
  20%  { opacity: .55; }
  80%  { opacity: .55; }
  100% { transform: translateX(60%); opacity: 0; }
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: .42;
  animation: orb-pulse 10s ease-in-out infinite;
}
.orb-1 { width: 320px; height: 320px; right: 4%; top: 12%; background: rgba(0, 212, 255, .55); }
.orb-2 { width: 260px; height: 260px; left: 2%; bottom: 8%; background: rgba(15, 82, 186, .85); animation-delay: 3s; }
@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: .36; }
  50%      { transform: scale(1.12); opacity: .52; }
}

/* 深色面板（Hero 右侧监控卡 / 深色区块） */
.panel-dark {
  background: linear-gradient(160deg, rgba(17, 24, 39, .92) 0%, rgba(11, 27, 58, .94) 100%);
  border: 1px solid rgba(0, 212, 255, .22);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .65);
  backdrop-filter: blur(6px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .7);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.load-bar {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #4EA8FF);
  animation: load-grow 3.6s ease-in-out infinite alternate;
}
@keyframes load-grow {
  from { transform: scaleX(.32); }
  to   { transform: scaleX(.92); }
}

/* --------------------------------------------------------------------------
   通用组件
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: .75rem;
  font-weight: 600;
  padding: .85rem 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(120deg, var(--brand) 0%, #1C63D8 100%);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(15, 82, 186, .75);
}
.btn-primary:hover { box-shadow: 0 18px 36px -14px rgba(15, 82, 186, .9); }
.btn-accent {
  background: var(--accent);
  color: #06283D;
  box-shadow: 0 14px 30px -14px rgba(0, 212, 255, .8);
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .45);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline {
  border: 1px solid rgba(15, 82, 186, .28);
  color: var(--brand);
  background: #fff;
}
.btn-outline:hover { background: var(--mist); }

.card {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, .07);
  border-radius: 1rem;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, .55);
  box-shadow: 0 24px 50px -26px rgba(15, 82, 186, .45);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, rgba(15, 82, 186, .1), rgba(0, 212, 255, .16));
  color: var(--brand);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  padding: .2rem .7rem;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(15, 82, 186, .08);
  color: var(--brand);
}
.tag-accent {
  background: rgba(0, 212, 255, .14);
  color: #06708C;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
}
.section-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* FAQ 折叠项：隐藏浏览器默认三角（配合 class="list-none"） */
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

.grid-lines-light {
  background-image:
    linear-gradient(rgba(15, 82, 186, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 82, 186, .06) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* 表单 */
.field {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: .75rem;
  padding: .8rem 1rem;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(15, 82, 186, .12);
}
.field::placeholder { color: #9AA3AF; }

/* 滚动进入动画 */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-grid, .hero-flow, .orb, .load-bar, .pulse-dot { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* 富文本（新闻/条款正文） */
.prose-yh h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 .85rem;
  padding-left: .75rem;
  border-left: 4px solid var(--accent);
}
.prose-yh h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 .6rem;
}
.prose-yh p {
  margin-bottom: 1rem;
  line-height: 1.9;
}
.prose-yh ul {
  margin: 0 0 1.1rem 1.1rem;
  list-style: disc;
}
.prose-yh li {
  margin-bottom: .5rem;
  line-height: 1.85;
}
.prose-yh code {
  background: var(--mist);
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: .35rem;
  padding: .1rem .4rem;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: .875em;
  color: var(--brand-dark);
}
.prose-yh pre {
  background: #0B1B3A;
  color: #D6E4FF;
  border-radius: .9rem;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.2rem;
  font-size: .875rem;
  line-height: 1.7;
}
.prose-yh pre code {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
}
