/* ================================
   iStat Menus 中文站 · 公共样式
   主题色：#3B3B3B #1F1F1F #7554F2 #17E9FD #FB3435
   ================================ */

:root {
  --bg-0: #0c0c0e;
  --bg-1: #1F1F1F;
  --bg-2: #3B3B3B;
  --brand: #7554F2;
  --cyan: #17E9FD;
  --red: #FB3435;
  --text: #EDEDF2;
  --muted: #9a9aa8;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* 容器 */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* =============== 导航栏 =============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 14, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.nav-brand .brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-brand .brand-name b {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-brand .brand-name span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 999px;
  transition: all .2s ease;
}
.nav-menu a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-menu a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(117,84,242,0.25), rgba(23,233,253,0.18));
  box-shadow: inset 0 0 0 1px rgba(117,84,242,0.45);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: rgba(255,255,255,0.15);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #7554F2 0%, #9A7BFF 100%);
  box-shadow: 0 8px 24px rgba(117, 84, 242, 0.45);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(117,84,242,0.55); }

.nav-hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.nav-hamburger span::before,
.nav-hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform .2s ease;
}
.nav-hamburger span::before { top: -6px; }
.nav-hamburger span::after { top: 6px; }
.nav-hamburger.open span { background: transparent; }
.nav-hamburger.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-menu, .nav-actions .btn { display: none; }
  .nav-hamburger { display: inline-flex; }
  .mobile-panel.open { display: block; }
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(12,12,14,0.96);
  backdrop-filter: blur(14px);
}
.mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 14px 28px;
}
.mobile-panel li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.mobile-panel li:last-child { border-bottom: 0; }
.mobile-panel a { font-size: 15px; color: var(--text); }
.mobile-panel .actions {
  display: flex;
  gap: 10px;
  padding: 16px 28px 22px;
}
.mobile-panel .actions .btn { flex: 1; justify-content: center; }

/* =============== 页脚 =============== */
.site-footer {
  margin-top: 120px;
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(1000px 300px at 20% 0%, rgba(117,84,242,0.10), transparent 60%),
    radial-gradient(800px 260px at 85% 0%, rgba(23,233,253,0.08), transparent 60%),
    #0a0a0c;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.footer-brand img { width: 40px; height: 40px; border-radius: 9px; }
.footer-brand h4 { margin: 0; font-size: 17px; font-weight: 600; }
.footer-brand p { margin: 2px 0 0; font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.footer-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 560px;
}
.footer-note .en { display: block; margin-top: 8px; opacity: 0.75; font-size: 12px; }
.footer-contact {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
}
.footer-contact h5 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.footer-contact .row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
}
.footer-contact .row svg {
  width: 18px; height: 18px; flex-shrink: 0;
  color: var(--cyan);
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom .copyright b { color: var(--text); font-weight: 500; }

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { margin-top: 80px; }
}
