/* 全站统一头部 / 底部（与首页 index.html 保持一致的视觉与结构）
   使用 sc- 前缀类名，避免与各页面既有内联样式发生选择器冲突 */

/* ---------- Header ---------- */
.sc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 26, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #334155;
}

.sc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 16px;
  gap: 8px;
}
@media (min-width: 768px) { .sc-header-inner { padding: 12px 32px; } }
@media (min-width: 1200px) { .sc-header-inner { padding: 12px 80px; } }

.sc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s;
  min-width: 0;
}
.sc-brand:hover { opacity: 0.9; }
.sc-logo { width: 28px; height: 28px; flex-shrink: 0; }
.sc-title { font-size: 18px; font-weight: 700; color: #fff; }
@media (min-width: 768px) {
  .sc-brand { flex-shrink: 0; }
  .sc-title { font-size: 17px; white-space: nowrap; }
}
@media (min-width: 1200px) { .sc-title { font-size: 20px; } }

.sc-actions {
  display: flex;
  flex: 0 1 auto;
  flex-shrink: 0;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
@media (min-width: 768px) { .sc-actions { gap: 16px; } }
@media (min-width: 1200px) { .sc-actions { gap: 32px; } }

/* 5 个导航链接较宽，768-1023 区间容不下"品牌+导航+成长中心+立即测试"四者，
   故导航延后到 1024px 才显示；768-1023 区间仅保留品牌 + 两个按钮（与首页一致） */
.sc-nav { display: none; gap: 18px; flex-shrink: 0; }
@media (min-width: 1024px) { .sc-nav { display: flex; } }
@media (min-width: 1200px) { .sc-nav { gap: 32px; } }

.sc-nav-link {
  font-size: 13px;
  font-weight: 500;
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.sc-nav-link:hover { color: #2563EB; }
.sc-nav-link.active { color: #2563EB; }

.sc-growth-btn {
  display: none;
  height: 36px;
  padding: 0 12px;
  background: transparent;
  color: #10B981;
  border: 1px solid #10B981;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.sc-growth-btn:hover { background: #10B981; color: #0B0F1A; }
.sc-growth-full { display: none; }
.sc-growth-short { display: inline; }
@media (min-width: 768px) {
  .sc-growth-btn { display: inline-flex; height: 40px; padding: 0 18px; font-size: 14px; }
  .sc-growth-full { display: inline; }
  .sc-growth-short { display: none; }
}

.sc-primary-btn {
  min-width: 120px;
  height: 40px;
  padding: 0 20px;
  background: #2563EB;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.sc-primary-btn:hover { opacity: 0.9; }
@media (max-width: 767px) { .sc-actions .sc-primary-btn { min-width: 96px; padding: 0 14px; } }

/* ---------- Footer ---------- */
.sc-footer {
  padding: 64px 24px 24px;
  background: #020617;
  border-top: 1px solid #334155;
}
@media (min-width: 768px) { .sc-footer { padding: 64px 80px 24px; } }

.sc-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 1400px;
  margin: 0 auto;
}
@media (min-width: 768px) { .sc-footer-grid { grid-template-columns: repeat(3, 1fr); } }

.sc-footer-brand-row { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.sc-footer-logo { width: 28px; height: 28px; flex-shrink: 0; }
.sc-footer-title { font-size: 20px; font-weight: 700; color: #fff; }
.sc-footer-desc { font-size: 14px; color: #94A3B8; line-height: 1.6; }

.sc-footer-links h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.sc-footer-links a,
.sc-footer-links button {
  display: block;
  font-size: 14px;
  color: #94A3B8;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.sc-footer-links a:hover,
.sc-footer-links button:hover { color: #2563EB; }

.sc-footer-disclaimer { font-size: 12px; color: #94A3B8; line-height: 1.6; margin: 4px 0; }

.sc-footer-bottom {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid #334155;
  text-align: center;
}
.sc-footer-bottom p { font-size: 12px; color: #94A3B8; }
