
:root {
  --brick: #8C2F1B;
  --brick-2: #6B3A1F;
  --bg: #F6F1EA;
  --card: #FFFFFF;
  --border: #E7DDD0;
  --text: #2A2118;
  --muted: #6F6256;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "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: #6E2414; 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: #2A2118; }
.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, #8C2F1B 0%, #6B3A1F 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(140, 47, 27, 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: #2A2118; }
.btn-sg-outline:hover { background: #F3EBE4; color: #2A2118; }

.sg-hero {
  padding: 70px 0 50px;
  background:
    radial-gradient(circle at 80% 20%, rgba(140, 47, 27, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(107, 58, 31, 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: #F8E6DC; border: 1px solid #E7C4B0;
  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: #2A2118; 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 #F3EBE4;
}
.sg-topo-title { font-size: 13px; font-weight: 700; color: #6F6256; }
.sg-topo-flow { display: flex; flex-direction: column; gap: 12px; }
.sg-node {
  padding: 12px 16px; background: #F6F1EA; border: 1px solid var(--border);
  border-radius: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 13px;
}
.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: #6F6256; }
.sg-node.active { border-color: var(--brick); background: #F8E6DC; }

.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: #F8E6DC; color: var(--brick);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px;
}
.sg-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; color: #2A2118; }
.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(140, 47, 27, 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: #F6F1EA; 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: #2A2118; }
.sg-article h3 { font-size: 17px; margin: 18px 0 8px; color: var(--brick); }
.sg-article p { font-size: 15px; color: #3C342C; margin-bottom: 14px; }
.sg-article ul, .sg-article ol { margin-left: 20px; font-size: 15px; color: #3C342C; margin-bottom: 16px; }
.sg-code {
  background: #241910; color: #E7C4A8; padding: 18px; border-radius: 8px;
  font-family: Consolas, monospace; font-size: 13px; margin: 16px 0; overflow-x: auto;
}

footer.sg-footer { background: #241910; color: #B7A89A; 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: #E7C4A8; }
.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: #B7A89A; }
.sg-footer-col a:hover { color: #E7C4A8; }
.sg-legal {
  border-top: 1px solid #3A2E24; padding-top: 20px;
  display: flex; justify-content: space-between;
}

@media (max-width: 900px) {
  .sg-hero-grid, .sg-grid-3, .sg-env, .sg-footer-grid { grid-template-columns: 1fr; }
  .sg-links { display: none; }
}
