:root {
  --brick: #1F5F8B;
  --brick-2: #2A4A66;
  --bg: #F0F4F8;
  --card: #FFFFFF;
  --border: #D5DEE8;
  --text: #1A2330;
  --muted: #5A6878;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--brick); text-decoration: none; }
a:hover { color: #174A6E; text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

header.sg-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.sg-nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.sg-brand { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; color: #1A2330; }
.sg-brand span { color: var(--brick); }
.sg-links { display: flex; gap: 24px; list-style: none; }
.sg-links a { font-size: 14px; font-weight: 600; color: var(--muted); }
.sg-links a:hover, .sg-links a.active { color: var(--brick); text-decoration: none; }

.btn-sg {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: 0.2s; text-decoration: none !important;
}
.btn-sg-primary {
  background: linear-gradient(135deg, #1F5F8B 0%, #2A4A66 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(31, 95, 139, 0.25);
}
.btn-sg-primary:hover { opacity: 0.95; transform: translateY(-1px); color: #fff; }
.btn-sg-outline { background: #fff; border: 1px solid var(--border); color: #1A2330; }
.btn-sg-outline:hover { background: #E8EEF4; color: #1A2330; }

.sg-hero {
  padding: 70px 0 50px;
  background:
    radial-gradient(circle at 80% 20%, rgba(31, 95, 139, 0.09) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(42, 74, 102, 0.08) 0%, transparent 60%);
  border-bottom: 1px solid var(--border);
}
.sg-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.sg-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 14px; background: #E4EEF6; border: 1px solid #B8CFE0;
  border-radius: 20px; font-size: 13px; color: var(--brick); font-weight: 700; margin-bottom: 20px;
}
.sg-hero h1 { font-size: 42px; font-weight: 800; line-height: 1.2; margin-bottom: 18px; color: #1A2330; letter-spacing: -0.02em; }
.sg-hero p { font-size: 17px; color: var(--muted); margin-bottom: 28px; line-height: 1.6; }
.sg-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.sg-topo {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.sg-topo-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #E8EEF4; gap: 12px; flex-wrap: wrap;
}
.sg-topo-title { font-size: 13px; font-weight: 700; color: #5A6878; }
.sg-topo-flow { display: flex; flex-direction: column; gap: 12px; }
.sg-node {
  padding: 12px 16px; background: #F0F4F8; border: 1px solid var(--border);
  border-radius: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; gap: 10px;
}
.sg-node strong { display: block; font-size: 13px; }
.sg-node span.sg-sub { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.sg-node em { font-style: normal; font-weight: 700; color: #5A6878; flex: none; }
.sg-node.active { border-color: var(--brick); background: #E4EEF6; }

.sg-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 60px 0; }
.sg-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: 0.25s; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.sg-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06); border-color: var(--brick); }
.sg-icon {
  width: 44px; height: 44px; border-radius: 10px; background: #E4EEF6; color: var(--brick);
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; margin-bottom: 18px;
}
.sg-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; color: #1A2330; }
.sg-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.sg-dl { padding: 50px 0 70px; }
.sg-dl-card {
  background: #fff; border: 2px solid var(--brick); border-radius: var(--radius);
  padding: 36px; margin-bottom: 30px; box-shadow: 0 4px 16px rgba(31, 95, 139, 0.08);
}
.sg-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--brick); margin-bottom: 8px; }
.sg-dl-card h2 { font-size: 22px; margin-bottom: 8px; }
.sg-file { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.sg-ok { font-size: 14px; margin-bottom: 18px; }
.sg-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.sg-env { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.sg-env-card { background: #F0F4F8; border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.sg-env-card h3 { font-size: 17px; margin-bottom: 8px; }
.sg-env-card p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }

.sg-article {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; margin-bottom: 24px;
}
.sg-article h1 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.sg-article h2 { font-size: 22px; font-weight: 700; margin-bottom: 14px; color: #1A2330; }
.sg-article h3 { font-size: 17px; margin: 18px 0 8px; color: var(--brick); }
.sg-article p { font-size: 15px; color: #2C3848; margin-bottom: 14px; }
.sg-article ul, .sg-article ol { margin-left: 20px; font-size: 15px; color: #2C3848; margin-bottom: 16px; }
.sg-code {
  background: #15202C; color: #A8C8E0; padding: 18px; border-radius: 8px;
  font-family: Consolas, monospace; font-size: 13px; margin: 16px 0; overflow-x: auto;
}

footer.sg-footer { background: #15202C; color: #9AABBC; padding: 48px 0 24px; font-size: 13px; }
.sg-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.sg-footer-col h4 { color: #fff; margin-bottom: 12px; font-size: 14px; }
.sg-foot-title { color: #A8C8E0; }
.sg-footer-col p { margin-bottom: 12px; line-height: 1.6; }
.sg-footer-col ul { list-style: none; }
.sg-footer-col li { margin-bottom: 8px; }
.sg-footer-col a { color: #9AABBC; }
.sg-footer-col a:hover { color: #A8C8E0; }
.sg-legal {
  border-top: 1px solid #2A3848; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

@media (max-width: 900px) {
  .sg-hero-grid, .sg-grid-3, .sg-env, .sg-footer-grid { grid-template-columns: 1fr; }
  .sg-links { display: none; }
  .sg-hero h1 { font-size: 32px; }
}
