/* ============ 百焱小站 · 深色科技风 ============ */
:root {
  --bg: #060a13;
  --panel: rgba(13, 21, 38, .72);
  --line: rgba(0, 229, 255, .12);
  --cyan: #00e5ff;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --text: #e2e8f0;
  --muted: #8b9bb4;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* 网格底纹 + 顶部光晕 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 229, 255, .10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 110%, rgba(139, 92, 246, .08), transparent 60%),
    linear-gradient(rgba(0, 229, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, .035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
}

.mono { font-family: var(--mono); }

/* 粒子画布 */
#bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* 阅读进度条 */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  box-shadow: 0 0 12px rgba(0, 229, 255, .8);
  z-index: 100; transition: width .1s linear;
}

/* ============ 头部 ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 6vw, 72px);
  transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(6, 10, 19, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.logo {
  font-size: 22px; font-weight: 800; letter-spacing: 2px;
  color: var(--text); text-decoration: none;
}
.logo-dot {
  background: linear-gradient(135deg, var(--amber), var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 15px;
  position: relative; padding: 4px 0; transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px;
  width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: translateX(-50%); transition: width .25s;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after, .nav a:hover::after { width: 100%; }

/* ============ Hero ============ */
.hero {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  position: relative; text-align: center;
  padding: 120px 24px 80px;
}
.hero-tag {
  display: inline-block;
  font-size: 13px; letter-spacing: 3px; color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, .3); border-radius: 999px;
  padding: 6px 18px; margin-bottom: 28px;
  background: rgba(0, 229, 255, .06);
  text-shadow: 0 0 12px rgba(0, 229, 255, .6);
}
.hero-title {
  font-size: clamp(52px, 11vw, 112px);
  font-weight: 900; letter-spacing: clamp(4px, 1.5vw, 14px);
  background: linear-gradient(120deg, #fff 10%, var(--cyan) 40%, var(--violet) 70%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(0, 229, 255, .35));
  margin-bottom: 22px;
}
.hero-sub { color: var(--muted); font-size: clamp(15px, 2.2vw, 18px); }
.hero-kw {
  display: inline-block; margin-top: 10px; font-size: 13px;
  color: rgba(0, 229, 255, .85); letter-spacing: 1px;
}
.hero-actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 34px; border-radius: 10px;
  font-size: 15px; text-decoration: none; letter-spacing: 2px;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-primary {
  color: #051018; font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), #4dd9ff);
  box-shadow: 0 0 24px rgba(0, 229, 255, .35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 32px rgba(0, 229, 255, .55); }
.btn-ghost {
  color: var(--text); border: 1px solid rgba(139, 92, 246, .5);
  background: rgba(139, 92, 246, .08);
}
.btn-ghost:hover { transform: translateY(-3px); background: rgba(139, 92, 246, .18); }

.hero-stats {
  margin-top: 56px; display: flex; gap: clamp(28px, 6vw, 72px); justify-content: center;
}
.stat b {
  display: block; font-size: 30px; font-weight: 800;
  background: linear-gradient(180deg, #fff, #9bd9ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 12px; color: var(--muted); letter-spacing: 2px; }

/* 装饰光球 */
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: float 9s ease-in-out infinite; pointer-events: none;
}
.orb-1 { width: 380px; height: 380px; left: -120px; top: 16%; background: rgba(0, 229, 255, .16); }
.orb-2 { width: 320px; height: 320px; right: -100px; bottom: 10%; background: rgba(139, 92, 246, .16); animation-delay: -4.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }

/* ============ 区块 ============ */
.section { max-width: 1200px; margin: 0 auto; padding: 90px clamp(20px, 5vw, 48px) 30px; }
.section-head { margin-bottom: 40px; position: relative; }
.sec-num {
  font-size: clamp(64px, 9vw, 104px); font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(0, 229, 255, .22);
  position: absolute; top: -34px; left: -6px; z-index: -1; user-select: none;
}
.section-head h2 {
  font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; letter-spacing: 2px;
  background: linear-gradient(90deg, #fff, #9bd9ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head p { color: var(--muted); margin-top: 6px; }

/* 筛选 */
.filter-tabs { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.tab {
  font-family: inherit; font-size: 14px; letter-spacing: 1px;
  color: var(--muted); background: transparent; cursor: pointer;
  border: 1px solid rgba(139, 146, 180, .25); border-radius: 999px;
  padding: 8px 22px; transition: all .25s;
}
.tab:hover { color: var(--text); border-color: rgba(0, 229, 255, .4); }
.tab.active {
  color: #051018; font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), #4dd9ff);
  border-color: transparent;
  box-shadow: 0 0 18px rgba(0, 229, 255, .35);
}

/* ============ 卡片 ============ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 24px;
  position: relative; overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, .55), transparent);
  opacity: 0; transition: opacity .3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, .35);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .45), 0 0 24px rgba(0, 229, 255, .12);
}
.card:hover::before { opacity: 1; }

.card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.card-icon {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 800; font-size: 17px;
  color: var(--c, var(--cyan));
  border: 1px solid color-mix(in srgb, var(--c, var(--cyan)) 45%, transparent);
  background: color-mix(in srgb, var(--c, var(--cyan)) 12%, transparent);
  border-radius: 12px;
  text-shadow: 0 0 14px var(--c, var(--cyan));
  box-shadow: inset 0 0 14px color-mix(in srgb, var(--c, var(--cyan)) 12%, transparent);
}
.card-title h3 { font-size: 19px; letter-spacing: 1px; }
.card-title span { font-size: 13px; color: var(--muted); }

.path { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.path p { font-size: 13.5px; color: #b9c5d8; flex: 1; }
.lv {
  flex: none; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  padding: 2px 10px; border-radius: 6px; margin-top: 3px;
}
.lv1 { color: var(--green); background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .3); }
.lv2 { color: var(--violet); background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .3); }
.lv3 { color: var(--pink); background: rgba(244, 114, 182, .12); border: 1px solid rgba(244, 114, 182, .3); }

.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed rgba(139, 146, 180, .18); }
.links a {
  font-size: 12.5px; color: var(--cyan); text-decoration: none;
  padding: 5px 13px; border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, .22); background: rgba(0, 229, 255, .05);
  transition: all .25s;
}
.links a:hover {
  background: rgba(0, 229, 255, .16);
  box-shadow: 0 0 14px rgba(0, 229, 255, .3);
  transform: translateY(-2px);
}

/* 隐藏被筛选的卡片 */
.card.hidden { display: none; }

/* ============ 中间件链路横幅 ============ */
.mw-banner {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(10px, 3vw, 26px); flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px clamp(16px, 4vw, 40px);
}
.mw-item { text-align: center; }
.mw-item b { display: block; font-size: 18px; color: var(--text); letter-spacing: 1px; }
.mw-item span { font-size: 12px; color: var(--muted); }
.mw-arrow { color: rgba(0, 229, 255, .6); font-size: 14px; }
.mw-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }

/* ============ 时间线 ============ */
.timeline { max-width: 720px; margin: 0 auto; padding-left: 10px; }
.tl-item { display: flex; gap: 20px; padding-bottom: 34px; position: relative; }
.tl-item:not(:last-child)::before {
  content: ""; position: absolute; left: 5px; top: 18px; bottom: -4px;
  width: 1px; background: linear-gradient(180deg, rgba(0, 229, 255, .4), rgba(139, 92, 246, .15));
}
.tl-dot {
  flex: none; width: 11px; height: 11px; margin-top: 6px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, .8);
}
.tl-item b { font-size: 16px; letter-spacing: 1px; }
.tl-item p { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ============ 页脚 ============ */
.footer {
  margin-top: 60px; padding: 40px 20px 34px; text-align: center;
  border-top: 1px solid var(--line);
  background: rgba(6, 10, 19, .6);
}
.footer-line { color: var(--muted); font-size: 13.5px; }
.footer-line a {
  color: var(--muted); text-decoration: none; transition: color .25s;
  display: inline-block; margin-top: 6px;
}
.footer-line a:hover { color: var(--cyan); }

/* ============ 回到顶部 ============ */
.backtop {
  position: fixed; right: 26px; bottom: 30px; z-index: 80;
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  color: var(--cyan); font-size: 18px;
  background: rgba(6, 10, 19, .8); border: 1px solid rgba(0, 229, 255, .3);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.backtop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.backtop:hover { box-shadow: 0 0 18px rgba(0, 229, 255, .4); background: rgba(0, 229, 255, .12); }

/* ============ 入场动画 ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .nav { gap: 16px; }
  .nav a { font-size: 13.5px; }
  .hero { padding-top: 104px; }
  .card { padding: 20px; }
  .sec-num { top: -26px; }
}

/* 无障碍：减少动效 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-orb { animation: none; }
}
