:root {
  --bg: #0b1020;
  --bg-soft: #11182e;
  --card: #161f3a;
  --card-hover: #1c2747;
  --line: #26314f;
  --text: #e7ecf5;
  --muted: #9aa6be;
  --primary: #5b8cff;
  --primary-2: #8b5cf6;
  --accent: #22d3ee;
  --aws: #ff9900;
  --gcp: #4285f4;
  --azure: #0089d6;
  --radius: 16px;
  --maxw: 1140px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== 顶部导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 16, 32, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 22px; }
.brand { font-weight: 800; font-size: 18px; letter-spacing: .3px; display: flex; align-items: center; gap: 8px; }
.brand img { display: block; height: 34px; }
.brand .dot { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); display: inline-block; }
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: .15s; }
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-links a.active { color: var(--text); background: var(--card); }
.nav-links a.cta { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; font-size: 18px; cursor: pointer; }

/* ===== 通用区块 ===== */
.section { padding: 64px 0; }
.section h2 { font-size: 28px; font-weight: 800; }
.section .lead { color: var(--muted); margin-top: 8px; max-width: 640px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 90px 0 70px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 15% 10%, rgba(91,140,255,.25), transparent 60%),
    radial-gradient(500px 320px at 85% 20%, rgba(139,92,246,.22), transparent 60%),
    radial-gradient(400px 300px at 60% 90%, rgba(34,211,238,.15), transparent 60%);
  pointer-events: none;
}
.hero .inner { position: relative; max-width: 760px; }
.hero h1 { font-size: 46px; line-height: 1.15; font-weight: 900; letter-spacing: -.5px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 18px; margin-top: 18px; }
.hero .btns { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { padding: 13px 24px; border-radius: 12px; font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: .15s; display: inline-flex; align-items: center; gap: 8px; }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: var(--card); border-color: var(--line); color: var(--text); }
.btn.ghost:hover { background: var(--card-hover); }
.btn.contact { background: rgba(34,211,238,.12); border-color: rgba(34,211,238,.5); color: var(--accent); }
.btn.contact:hover { background: rgba(34,211,238,.2); transform: translateY(-1px); }

/* provider 徽标条 */
.providers-bar { display: flex; gap: 26px; align-items: center; margin-top: 44px; flex-wrap: wrap; }
.providers-bar span { color: var(--muted); font-size: 13px; }
.provider-chip { font-weight: 800; font-size: 17px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.provider-chip.aws { color: var(--aws); }
.provider-chip.gcp { color: var(--gcp); }
.provider-chip.azure { color: var(--azure); }

/* ===== 统计条 ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat .num { font-size: 30px; font-weight: 900; background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* ===== 卡片网格 ===== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: .18s; display: flex; flex-direction: column; cursor: pointer;
}
.card:hover { background: var(--card-hover); transform: translateY(-3px); border-color: #34406a; }
.card .ico { font-size: 30px; }
.card h3 { font-size: 17px; margin-top: 12px; font-weight: 700; }
.card .cat { display: inline-block; font-size: 11.5px; color: var(--accent); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; margin-top: 10px; align-self: flex-start; }
.card p { color: var(--muted); font-size: 13.5px; margin-top: 10px; flex: 1; }
.card .pills { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.pill.aws { color: var(--aws); background: rgba(255,153,0,.12); }
.pill.gcp { color: var(--gcp); background: rgba(66,133,244,.14); }
.pill.azure { color: var(--azure); background: rgba(0,137,214,.14); }

/* 筛选 */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 26px; }
.filter-btn { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 13.5px; cursor: pointer; transition: .15s; }
.filter-btn:hover { color: var(--text); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== 详情页 ===== */
.detail-head { padding: 50px 0 30px; }
.crumb { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.crumb a:hover { color: var(--text); }
.detail-head .ico { font-size: 50px; }
.detail-head h1 { font-size: 36px; font-weight: 900; margin-top: 10px; }
.detail-head .tagline { color: var(--accent); font-size: 17px; margin-top: 6px; }
.detail-desc { color: var(--muted); font-size: 16px; max-width: 760px; margin-top: 18px; }
.detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; margin-top: 10px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h3 { font-size: 17px; margin-bottom: 14px; }
.feat-list { list-style: none; }
.feat-list li { padding: 9px 0 9px 28px; position: relative; color: var(--text); border-bottom: 1px solid var(--line); font-size: 14.5px; }
.feat-list li:last-child { border-bottom: none; }
.feat-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.prov-row { display: flex; flex-direction: column; gap: 12px; }
.prov-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.prov-card .top { display: flex; align-items: center; gap: 10px; }
.prov-card .badge { font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 7px; }
.prov-card.aws .badge { color: var(--aws); background: rgba(255,153,0,.12); }
.prov-card.gcp .badge { color: var(--gcp); background: rgba(66,133,244,.14); }
.prov-card.azure .badge { color: var(--azure); background: rgba(0,137,214,.14); }
.prov-card .pname { font-weight: 700; font-size: 15px; }
.prov-card .pnote { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ===== 订阅 ===== */
.subscribe { background: linear-gradient(135deg, rgba(91,140,255,.12), rgba(139,92,246,.10)); border: 1px solid var(--line); border-radius: 22px; padding: 40px; }
.subscribe h2 { font-size: 26px; }
.subscribe .lead { margin: 8px auto 0; text-align: center; }
.subscribe .center { text-align: center; }
.sub-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 680px; margin: 26px auto 0; }
.field { display: flex; flex-direction: column; gap: 5px; text-align: left; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field select {
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 11px 13px; font-size: 15px; font-family: inherit; width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); }
.sub-msg { text-align: center; min-height: 22px; margin-top: 14px; font-size: 14px; }
.sub-msg.ok { color: #34d399; }
.sub-msg.err { color: #f87171; }
.im-group { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }

/* ===== 页脚 ===== */
.footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 13.5px; margin-top: 40px; }
.footer .inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer a:hover { color: var(--text); }

/* ===== 教程文章正文 ===== */
.art-body { max-width: 760px; }
.art-h { font-size: 20px; font-weight: 800; margin: 28px 0 10px; color: var(--text); }
.art-p { color: #c4cde0; font-size: 16px; margin: 12px 0; line-height: 1.8; }
.art-ul { margin: 12px 0 12px 4px; padding-left: 20px; }
.art-ul li { color: #c4cde0; font-size: 15.5px; margin: 8px 0; line-height: 1.7; }
.art-code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; color: var(--accent); white-space: pre-wrap; margin: 14px 0; line-height: 1.7; }
.art-tip { background: rgba(34,211,238,.08); border-left: 3px solid var(--accent); border-radius: 8px; padding: 12px 16px; color: #c4cde0; font-size: 14.5px; margin: 18px 0; }

/* ===== 客服悬浮入口 ===== */
.cs-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-size: 26px; box-shadow: 0 10px 30px rgba(91,140,255,.5);
  display: none; align-items: center; justify-content: center; transition: .15s;
}
.cs-fab::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--primary); opacity: .6; animation: cs-pulse 2.2s ease-out infinite;
}
@keyframes cs-pulse { 0% { transform: scale(.9); opacity: .6; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
.cs-fab:hover { transform: translateY(-2px) scale(1.05); }
.cs-fab.show { display: flex; }
.cs-pop {
  position: fixed; right: 22px; bottom: 88px; z-index: 60; width: 320px; max-width: calc(100vw - 44px);
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  box-shadow: 0 16px 50px rgba(0,0,0,.5); display: none;
}
.cs-pop.show { display: block; }
.cs-pop h4 { font-size: 16px; margin-bottom: 4px; }
.cs-pop .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 14px; }
.cs-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 8px; }
.cs-item .emoji { font-size: 20px; }
.cs-item .meta { min-width: 0; }
.cs-item .meta .t { font-size: 12px; color: var(--muted); }
.cs-item .meta .v { font-size: 14px; font-weight: 600; word-break: break-all; }
.cs-item a.v { color: var(--primary); }
.cs-note { color: var(--muted); font-size: 12.5px; margin-top: 8px; text-align: center; }
.cs-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 10px 0; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-soft); flex-direction: column; padding: 10px 16px; border-bottom: 1px solid var(--line); gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-toggle { display: block; }
  .hero { padding: 56px 0 44px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .section { padding: 44px 0; }
  .section h2 { font-size: 23px; }
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sub-form { grid-template-columns: 1fr; }
  .subscribe { padding: 26px 18px; }
  .detail-head h1 { font-size: 28px; }
  .footer .inner { flex-direction: column; }
}
