/* ==========================================================================
   云启科技官网 - 设计系统与全局样式
   ========================================================================== */

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

html { scroll-behavior: smooth; }

:root {
  --bg: #0A0E1A;
  --bg-alt: #0D1220;
  --card: rgba(255,255,255,.045);
  --card-hover: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.09);
  --border-hover: rgba(255,255,255,.2);
  --text-hi: #ffffff;
  --text-lo: #9CA3B8;
  --text-mut: #6B7690;
  --m1: #FF7A45;
  --m2: #EC4899;
  --m3: #8B5CF6;
  --m4: #4F7CFF;
  --m5: #22D3EE;
  --mesh: linear-gradient(100deg, var(--m1), var(--m2) 25%, var(--m3) 50%, var(--m4) 75%, var(--m5));
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text-hi);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, textarea { font: inherit; color: inherit; }
i.ti { font-style: normal; }

/* ==========================================================================
   布局
   ========================================================================== */

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.section-title { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.section-sub { font-size: 15px; color: var(--text-lo); }
.divider { height: 2px; background: var(--mesh); opacity: .5; }
.top-accent { height: 3px; background: var(--mesh); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 84px 0; }
  .section-title { font-size: 32px; }
}

/* ==========================================================================
   导航栏
   ========================================================================== */

.navbar { position: sticky; top: 0; z-index: 100; background: rgba(10,14,26,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; max-width: var(--container); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; object-fit: contain; }

.nav-links { display: none; align-items: center; gap: 26px; }
.nav-links a { font-size: 14.5px; color: var(--text-lo); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }

.nav-cta { display: none; }
.nav-toggle { display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); color: #fff; font-size: 20px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

.mobile-menu { display: none; flex-direction: column; padding: 8px 20px 18px; border-bottom: 1px solid var(--border); background: var(--bg); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 13px 4px; font-size: 15px; color: var(--text-lo); border-bottom: 1px solid var(--border); }
.mobile-menu a[aria-current="page"] { color: #fff; }
.mobile-menu .btn { margin-top: 14px; }
@media (min-width: 900px) { .mobile-menu { display: none !important; } }

/* ==========================================================================
   按钮 / 徽标 / 标签
   ========================================================================== */

.btn { cursor: pointer; border-radius: var(--radius-sm); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 24px; transition: filter .2s, background .2s; }
.btn-primary { background: linear-gradient(135deg, var(--m3), var(--m4)); color: #fff; box-shadow: 0 4px 18px rgba(139,92,246,.4); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-secondary { background: rgba(255,255,255,.05); color: #fff; border: 1px solid var(--border-hover); }
.btn-secondary:hover { background: rgba(255,255,255,.1); }
.btn-light { background: #fff; color: #12172A; }
.btn-light:hover { filter: brightness(.96); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }

.badge { display: inline-block; background: rgba(255,255,255,.06); border: 1px solid var(--border-hover); color: var(--m5); border-radius: 20px; font-size: 12px; padding: 5px 14px; }
.tag { display: inline-block; background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text-lo); font-size: 11.5px; padding: 4px 11px; border-radius: 6px; }
.pill { font-size: 12.5px; padding: 8px 18px; border-radius: 20px; cursor: pointer; background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text-lo); }
.pill[aria-current="true"] { background: linear-gradient(135deg, var(--m3), var(--m4)); color: #fff; border-color: transparent; }

.grad-text { background: linear-gradient(90deg, var(--m1), var(--m2), var(--m3), var(--m4)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ==========================================================================
   卡片 / 图标
   ========================================================================== */

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, background .2s; }
.card:hover { border-color: var(--border-hover); background: var(--card-hover); }
.card-pad { padding: 20px; }

.icon-box { border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-box i { color: #fff; }
.icon-box.sz-md { width: 40px; height: 40px; font-size: 20px; }
.icon-box.sz-lg { width: 44px; height: 44px; font-size: 22px; }

/* ==========================================================================
   Hero / 光晕背景
   ========================================================================== */

.hero { position: relative; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.orb-1 { background: var(--m1); width: 320px; height: 320px; top: -18%; left: -10%; animation: float1 9s ease-in-out infinite; }
.orb-2 { background: var(--m2); width: 260px; height: 260px; top: -22%; left: 32%; animation: float2 12s ease-in-out infinite; }
.orb-3 { background: var(--m3); width: 340px; height: 340px; top: -12%; right: -12%; animation: float3 10s ease-in-out infinite; }
.orb-4 { background: var(--m4); width: 280px; height: 280px; bottom: -20%; left: 8%; animation: float2 11s ease-in-out infinite; }
.orb-5 { background: var(--m5); width: 250px; height: 250px; bottom: -16%; right: 6%; animation: float1 13s ease-in-out infinite; }
.orb-single { opacity: .3; }

@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(16px,-18px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-18px,14px); } }
@keyframes float3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(10px,18px); } }
@keyframes glowpulse { 0%,100% { box-shadow: 0 4px 18px rgba(139,92,246,.4); } 50% { box-shadow: 0 4px 28px rgba(79,124,255,.65); } }
.btn-primary.pulse { animation: glowpulse 2.6s ease-in-out infinite; }

.hero-content { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; padding: 56px 0; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.15fr 1fr; padding: 96px 0; } }

.hero-title { font-size: 32px; font-weight: 700; line-height: 1.28; margin-bottom: 16px; }
@media (min-width: 1024px) { .hero-title { font-size: 46px; } }
.hero-sub { font-size: 15px; color: var(--text-lo); line-height: 1.75; margin-bottom: 26px; max-width: 460px; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 480px) { .hero-actions { flex-direction: row; } }

/* 页头（内页小型 hero） */
.page-header { position: relative; overflow: hidden; padding: 40px 0 44px; }
.breadcrumb { font-size: 13px; color: var(--text-mut); margin-bottom: 12px; }
.breadcrumb a { color: var(--text-lo); }
.breadcrumb a:hover { color: #fff; }
.page-title { font-size: 30px; font-weight: 700; margin-bottom: 10px; }
.page-sub { font-size: 14.5px; color: var(--text-lo); max-width: 480px; }
@media (min-width: 1024px) { .page-title { font-size: 38px; } }

/* ==========================================================================
   统计横幅 / CTA 区
   ========================================================================== */

.mesh-band { background: var(--mesh); padding: 44px 0; text-align: center; }
.mesh-band .band-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.mesh-band .band-sub { font-size: 14px; color: rgba(255,255,255,.9); margin-bottom: 22px; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; text-align: center; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-num { font-size: 30px; font-weight: 700; color: #fff; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.85); margin-top: 4px; }

/* ==========================================================================
   时间轴
   ========================================================================== */

.timeline-h { display: none; position: relative; }
.timeline-h::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--border); }
.timeline-h .tl-item { flex: 1; text-align: center; position: relative; }
.timeline-h .tl-dot { width: 12px; height: 12px; border-radius: 50%; margin: 0 auto 12px; position: relative; z-index: 1; border: 3px solid var(--bg); }
.timeline-h .tl-year { font-size: 15px; font-weight: 700; }
.timeline-h .tl-label { font-size: 12px; color: var(--text-lo); margin-top: 4px; }

.timeline-v { display: block; }
.timeline-v .tl-row { display: flex; gap: 14px; }
.timeline-v .tl-dot-col { display: flex; flex-direction: column; align-items: center; }
.timeline-v .tl-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.timeline-v .tl-line { width: 2px; flex: 1; background: var(--border); margin-top: 4px; }
.timeline-v .tl-row-content { padding-bottom: 22px; font-size: 14.5px; font-weight: 700; }

@media (min-width: 900px) { .timeline-h { display: flex; } .timeline-v { display: none; } }

/* ==========================================================================
   表单
   ========================================================================== */

.field-label { font-size: 12.5px; color: var(--text-lo); margin-bottom: 6px; display: block; }
.field { width: 100%; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; color: var(--text-hi); margin-bottom: 14px; }
.field::placeholder { color: var(--text-mut); }
.field:focus { outline: none; border-color: var(--m4); }
textarea.field { resize: vertical; min-height: 96px; }

/* ==========================================================================
   页脚
   ========================================================================== */

.site-footer { background: #05060B; padding: 48px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: 28px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-col-title { font-size: 13px; font-weight: 500; color: #fff; margin-bottom: 12px; }
.footer-links { font-size: 13px; color: var(--text-mut); line-height: 2.2; }
.footer-links a:hover { color: var(--text-lo); }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social i { color: var(--text-lo); font-size: 18px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 18px; text-align: center; font-size: 12px; color: var(--text-mut); }

/* ==========================================================================
   工具类
   ========================================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
