/* ========================================
   赛博牛马 官网 — 全局样式
   暗色简约风，参考 Codex 设计语言
   ======================================== */

/* --- CSS Variables --- */
:root {
  --bg-primary: #08080a;
  --bg-secondary: #0d0d12;
  --bg-card: #111118;
  --bg-card-hover: #161622;
  --bg-glass: rgba(17, 17, 24, 0.7);
  --border: rgba(255, 255, 255, 0.06);
  --border-active: rgba(255, 255, 255, 0.12);

  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #5a5a72;

  --accent: #6c5ce7;
  --accent-light: #a78bfa;
  --accent-gradient: linear-gradient(135deg, #6c5ce7 0%, #a78bfa 50%, #c084fc 100%);
  --accent-glow: 0 0 40px rgba(108, 92, 231, 0.3);

  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Cascadia Code", monospace;

  --max-width: 1200px;
  --header-height: 64px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

/* --- Background Canvas --- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* --- Background Effects --- */
.bg-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.bg-glow--top {
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: var(--accent);
}

.bg-glow--bottom {
  bottom: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: #c084fc;
}

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(8, 8, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.header__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent-light);
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.3);
  line-height: 1.6;
}

.header__logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.header__logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 450;
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--text-primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 550;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-sans);
}

.btn--primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 2px 16px rgba(108, 92, 231, 0.25);
}

.btn--primary:hover {
  box-shadow: var(--accent-glow);
  transform: translateY(-1px);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
  background: var(--bg-card);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* --- Hero --- */
.hero {
  position: relative;
  z-index: 1;
  padding: 160px 24px 60px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease both;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.hero__title {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.1s ease both;
}

.hero__title-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 36px;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.hero__bonus {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
  animation: fadeInUp 0.6s 0.35s ease both;
}

.hero__bonus strong {
  color: var(--accent-light);
  font-weight: 600;
}

/* --- Section --- */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 24px;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.section__title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* --- Install Section --- */
.download-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.install-details {
  max-width: 980px;
  margin: 18px auto 0;
  text-align: left;
}

.install-details summary {
  width: fit-content;
  margin: 0 auto;
  padding: 10px 18px;
  border-radius: 100px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.22);
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.install-details summary:hover {
  background: rgba(108, 92, 231, 0.16);
  color: #fff;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.install-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.install-card__main h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.install-card__main p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.hash-box {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  word-break: break-all;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.install-step {
  display: flex;
  gap: 14px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.install-step__num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.25);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.install-step h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.install-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.install-step code {
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: 12px;
  word-break: break-all;
}

.install-note {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

/* --- Feature Cards --- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.feature-card__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Scroll Reveal --- */
.reveal,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--visible,
.reveal-stagger--visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal-stagger--visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger--visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger--visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger--visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger--visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger--visible > *:nth-child(6) { transition-delay: 0.5s; }

/* --- Screenshot Section --- */
#screenshots {
  padding-top: 40px;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.screenshot-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  transition: all 0.3s;
  cursor: default;
}

.screenshot-placeholder:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.screenshot-placeholder__icon {
  font-size: 40px;
  opacity: 0.4;
}

.screenshot-placeholder__text {
  font-size: 14px;
}

/* --- CTA Section --- */
.cta {
  text-align: center;
  padding: 120px 24px;
  position: relative;
  z-index: 1;
}

.cta__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta__card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(108, 92, 231, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
  position: relative;
}

.cta__desc {
  color: var(--text-secondary);
  margin-bottom: 28px;
  position: relative;
}

.cta__bonus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  font-size: 15px;
  color: var(--accent-light);
  font-weight: 600;
  margin-top: 20px;
  position: relative;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer__right {
  display: flex;
  gap: 24px;
}

.footer__right a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__right a:hover {
  color: var(--text-secondary);
}

/* --- Auth Pages (Login/Register) --- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.auth-card__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.auth-card__title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.auth-card__subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
}

/* --- Form --- */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
  min-height: 16px;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.form-footer a {
  color: var(--accent-light);
  font-weight: 550;
}

.form-bonus {
  text-align: center;
  padding: 12px;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.15);
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--accent-light);
  font-weight: 550;
}

/* --- Dashboard --- */
.dashboard {
  padding: calc(var(--header-height) + 40px) 24px 60px;
  position: relative;
  z-index: 1;
}

.dashboard__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.dashboard__greeting {
  font-size: 24px;
  font-weight: 700;
}

.dashboard__greeting span {
  color: var(--text-secondary);
  font-weight: 400;
}

.dashboard__user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard__user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.dashboard__user-name {
  font-size: 14px;
  font-weight: 550;
}

/* --- Stats Cards --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s;
}

.stat-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.stat-card__label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.stat-card__value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.stat-card__value--accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card__sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Usage Charts --- */
.usage-charts {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.45fr);
  gap: 16px;
  margin-bottom: 22px;
}

.usage-chart-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 17, 24, 0.92), rgba(13, 13, 18, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-height: 286px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.usage-chart-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 0%, rgba(108, 92, 231, 0.11), transparent 32%);
}

.usage-chart-card__header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.usage-chart-card__header h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.usage-chart-card__header p {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 12px;
  white-space: nowrap;
}

.chart-legend span,
.chart-breakdown span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.legend-dot--standard {
  background: #fbbf24;
}

.legend-dot--pro {
  background: #3b82f6;
}

.donut-wrap {
  position: relative;
  width: min(190px, 68vw);
  margin: 2px auto 14px;
}

.donut-chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.donut-segment {
  cursor: pointer;
  transition: opacity 0.18s, filter 0.18s;
}

.donut-segment:hover {
  opacity: 0.88;
  filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.22));
}

.donut-center {
  position: absolute;
  inset: 27%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.donut-center span {
  font-size: 12px;
  color: var(--text-muted);
}

.donut-center strong {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.donut-center em {
  margin-top: 4px;
  font-style: normal;
  color: var(--text-secondary);
  font-size: 12px;
}

.chart-breakdown {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.chart-breakdown div {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.chart-breakdown strong,
.chart-breakdown em {
  display: block;
  margin-top: 6px;
}

.chart-breakdown strong {
  color: var(--text-primary);
  font-size: 14px;
}

.chart-breakdown em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 12px;
}

.bar-chart {
  position: relative;
  height: clamp(206px, 22vw, 260px);
  min-height: 206px;
  margin-top: 26px;
}

.bar-chart svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.bar-chart rect {
  transition: opacity 0.18s, transform 0.18s;
  cursor: pointer;
}

.bar-chart g:hover rect:not(:first-child) {
  opacity: 0.86;
}

.bar-chart text {
  fill: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 550;
}

.chart-tooltip {
  position: fixed;
  z-index: 1200;
  min-width: 176px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(12, 12, 16, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.65;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s, transform 0.12s;
}

.chart-tooltip--show {
  opacity: 1;
  transform: translateY(0);
}

.chart-tooltip strong {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
  margin-bottom: 4px;
}

.chart-tooltip span {
  display: block;
}

/* --- Table --- */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

.panel__header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel__title {
  font-size: 16px;
  font-weight: 600;
}

.log-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.log-tab {
  min-width: 72px;
  padding: 8px 18px;
  border: 1px solid rgba(108, 92, 231, 0.24);
  border-radius: var(--radius);
  background: rgba(108, 92, 231, 0.08);
  color: var(--accent-light);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.2s;
}

.log-tab:hover {
  color: #fff;
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(108, 92, 231, 0.16);
  transform: translateY(-1px);
}

.log-tab--active {
  color: #fff;
  border-color: rgba(167, 139, 250, 0.65);
  background: var(--accent-gradient);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.26);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 550;
}

.badge--success {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
}

.badge--warning {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warning);
}

/* --- API Key Section --- */
.api-key-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.api-key-box .key-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Toast --- */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 550;
  animation: slideInRight 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toast--success {
  background: #065f46;
  color: #d1fae5;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.toast--error {
  background: #7f1d1d;
  color: #fee2e2;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

/* --- Loading Spinner --- */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* --- Empty State --- */
.empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty__icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.empty__text {
  font-size: 14px;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero__title {
    font-size: 36px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .download-actions {
    flex-direction: column;
  }

  .install-grid,
  .install-steps {
    grid-template-columns: 1fr;
  }

  .install-card {
    align-items: stretch;
  }

  .screenshots {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .header__nav {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .section__title {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   语言切换器 (i18n)
   ======================================== */

.lang-switcher-wrap {
  position: relative;
  display: inline-flex;
  margin-right: 8px;
}

.lang-switcher {
  height: 32px;
  min-width: 34px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  line-height: 32px;
  text-align: center;
}

.lang-switcher:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
  background: var(--bg-glass);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 130px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 200;
  overflow: hidden;
  padding: 4px;
}

.lang-dropdown--open {
  display: block;
}

.lang-option {
  display: block;
  width: 100%;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s, background 0.15s;
}

.lang-option:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.lang-option--active {
  color: var(--accent-light);
  font-weight: 600;
}
