/* socolode 站点共享样式：设计 token + 通用组件（.site- 前缀）
 * 边界：只含 :root 变量与作用域类名，不放 reset、不放裸元素选择器、不设 body 背景，
 * 以免污染光绘生成器页的 Tailwind Preflight；各页 reset/body 背景留在页面自己的 CSS。
 */

:root {
  --site-bg: #07080f;
  --site-bg-2: #0c0e1c;
  --site-bg-3: #151233;
  --site-ink: #f4f5ff;
  --site-muted: #9aa3c7;
  --site-rule: rgba(255,255,255,0.09);
  --site-accent: #7c6cf0;
  --site-accent-2: #22d3ee;
  --site-accent-3: #f472b6;
  --site-surface: rgba(255,255,255,0.045);
  --site-surface-strong: rgba(255,255,255,0.075);
  --site-radius: 18px;
  --site-radius-lg: 22px;
  --site-shadow: 0 20px 50px rgba(0,0,0,0.4);
  --site-glow: 0 14px 34px rgba(124,108,240,0.4);
}

/* ---------- 统一顶栏 ---------- */
.site-topbar {
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 96px 26px 0; /* 右留白避开 fixed 语言切换按钮 */
}
.site-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--site-ink); }
.site-logo { height: 34px; width: auto; display: block; }
.site-brand-name { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.site-tagline { font-size: 13px; color: var(--site-muted); white-space: nowrap; }
.site-back {
  font-size: 13px; color: var(--site-muted); text-decoration: none;
  border: 1px solid var(--site-rule); padding: 7px 14px; border-radius: 999px;
  transition: all .2s ease; white-space: nowrap;
}
.site-back:hover { color: var(--site-ink); border-color: rgba(124,108,240,.55); }

@media (max-width: 640px) {
  .site-topbar { padding-right: 88px; }
  .site-tagline { display: none; }
}

/* ---------- 按钮 ---------- */
.site-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: inherit; font-weight: 600;
  border-radius: 12px; text-decoration: none; line-height: 1.4;
  transition: transform .2s ease, filter .2s ease, background .2s ease;
}
.site-btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 9px; }
.site-btn-md { padding: 11px 20px; font-size: 14.5px; }
.site-btn-lg { padding: 16px 34px; font-size: 17px; font-weight: 700; border-radius: 14px; }
.site-btn-block { width: 100%; }
.site-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #6d5ce0, #22d3ee);
  box-shadow: 0 14px 34px rgba(124,108,240,.4);
}
.site-btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.site-btn-violet {
  color: #fff;
  background: linear-gradient(135deg, #6d5ce0, #8b7cf6);
  box-shadow: 0 10px 26px rgba(109,92,224,.38);
}
.site-btn-violet:hover { transform: translateY(-1px); filter: brightness(1.08); }
.site-btn-ghost {
  color: var(--site-ink);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--site-rule);
}
.site-btn-ghost:hover { background: rgba(255,255,255,.13); }
.site-btn[disabled], .site-btn.is-wait {
  opacity: .55; cursor: not-allowed; pointer-events: none;
  transform: none; filter: none;
}

/* ---------- 卡片容器 ---------- */
.site-card {
  background: var(--site-surface);
  border: 1px solid var(--site-rule);
  border-radius: var(--site-radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
