/* ═══════════════════════════════════════════════════
   穹狼科创 · Gitea 首页品牌样式 — 暗色赛博风
   所有类名以 qw- 前缀避免与 Gitea Fomantic-UI 冲突
   ═══════════════════════════════════════════════════ */

/* ── Scoped reset ── */
.qw-home *, .qw-home *::before, .qw-home *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --qw-void:        #060917;
  --qw-bg:          #0A0D1A;
  --qw-bg-raised:   #0E1225;
  --qw-card:        #111631;
  --qw-card-hover:  #161C3E;
  --qw-border:      #1E2450;
  --qw-border-glow: #2563EB33;

  --qw-blue:        #2563EB;
  --qw-blue-light:  #3B82F6;
  --qw-blue-bright: #60A5FA;
  --qw-blue-dark:   #1D4ED8;
  --qw-purple:      #6366F1;
  --qw-indigo:      #818CF8;
  --qw-orange:      #F97316;
  --qw-orange-dim:  #F9731640;
  --qw-cyan:        #22D3EE;

  --qw-text:        #E2E8F0;
  --qw-text-dim:    #94A3B8;
  --qw-text-muted:  #8899B5;

  --font-sans: 'Microsoft YaHei UI', 'PingFang SC', system-ui, sans-serif;
  --font-mono: 'Cascadia Code', 'Consolas', 'Courier New', monospace;
}

.qw-home {
  font-family: var(--font-sans);
  background: var(--qw-void) !important;
  color: var(--qw-text);
  overflow-x: hidden;
  overflow-y: visible;
  -webkit-font-smoothing: antialiased;
  min-height: calc(100vh - 50px);
  display: flex;
  flex-direction: column;
}

/* ── 首页导航栏暗色覆盖（:has 选择器 Chrome 105+） ── */
body:has(.qw-home) #navbar {
  background: #060917 !important;
  border-bottom: 1px solid #1E2450 !important;
}
body:has(.qw-home) #navbar .item,
body:has(.qw-home) #navbar a,
body:has(.qw-home) #navbar button {
  color: #E2E8F0 !important;
}
body:has(.qw-home) #navbar .item:hover,
body:has(.qw-home) #navbar a:hover {
  color: #fff !important;
}

/* 亮色模式恢复 */
body:has(.qw-home.qw-light) #navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid #E2E6F0 !important;
}
body:has(.qw-home.qw-light) #navbar .item,
body:has(.qw-home.qw-light) #navbar a,
body:has(.qw-home.qw-light) #navbar button {
  color: #334155 !important;
}
body:has(.qw-home.qw-light) #navbar .item:hover,
body:has(.qw-home.qw-light) #navbar a:hover {
  color: #0F172A !important;
}

/* ── Circuit-board grid ── */
.qw-circuit-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 59px, #3B82F6 59px, #3B82F6 60px),
    repeating-linear-gradient(0deg, transparent, transparent 59px, #3B82F6 59px, #3B82F6 60px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 0%, transparent 100%);
}
.qw-circuit-grid::before,
.qw-circuit-grid::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--qw-blue-bright);
  box-shadow: 0 0 8px 2px var(--qw-blue);
  animation: qw-trace-pulse 4s ease-in-out infinite;
}
.qw-circuit-grid::before { top: 30%; left: 30%; }
.qw-circuit-grid::after  { top: 50%; left: 45%; animation-delay: 2s; }
@keyframes qw-trace-pulse {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%      { opacity: 1; transform: scale(1.5); }
}

/* ── Hero ── */
.qw-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 2rem 20px;
  text-align: center;
  overflow: hidden;
}
.qw-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.qw-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

/* ── Logo ── */
.qw-hero-logo-wrap { position: relative; display: inline-block; margin-bottom: 0.8rem; }
.qw-hero-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  background: transparent;
  object-fit: cover;
  filter: drop-shadow(0 0 30px rgba(37, 99, 235, 0.25));
  animation: qw-logo-float 6s ease-in-out infinite;
}
.qw-hero-logo-ring {
  display: none;
}
@keyframes qw-logo-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes qw-ring-breathe {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.8; transform: scale(1.03); }
}

/* ── Titles ── */
.qw-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.4rem;
  background: linear-gradient(135deg, #fff 0%, var(--qw-blue-bright) 50%, var(--qw-indigo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.qw-hero-title .qw-mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85em;
}
.qw-hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 400;
  color: var(--qw-text-dim);
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}

/* ── Orange divider ── */
.qw-hero-divider { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 1rem; }
.qw-hero-divider-line { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--qw-orange), transparent); }
.qw-hero-divider-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--qw-orange);
  box-shadow: 0 0 12px var(--qw-orange-dim);
  animation: qw-dot-glow 3s ease-in-out infinite;
}
@keyframes qw-dot-glow {
  0%, 100% { box-shadow: 0 0 8px var(--qw-orange-dim); }
  50%      { box-shadow: 0 0 20px var(--qw-orange); }
}

/* ── CTA buttons ── */
.qw-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.qw-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s;
  border: none;
  position: relative;
  overflow: hidden;
}
.qw-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.qw-btn-primary,
.qw-btn-primary:hover,
.qw-btn-primary:active,
.qw-btn-primary:focus {
  color: #fff !important;
  text-decoration: none;
}
.qw-btn-primary {
  background: var(--qw-blue);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}
.qw-btn-primary:hover {
  background: var(--qw-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.45);
}
.qw-btn-primary span { display: inline-flex; align-items: center; gap: 8px; }
.qw-btn-ghost {
  color: var(--qw-text-dim) !important;
  background: transparent;
  border: 1px solid var(--qw-border);
  text-decoration: none;
}
.qw-btn-ghost:hover {
  color: var(--qw-text) !important;
  border-color: var(--qw-blue);
  background: rgba(37, 99, 235, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
}
.qw-hero-note {
  margin-top: 14px;
  color: var(--qw-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Features ── */
.qw-features { position: relative; z-index: 2; padding: 0 2rem 30px; max-width: 1040px; margin: 0 auto; }
.qw-features-header { text-align: center; margin-bottom: 1.5rem; }
.qw-features-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-size: 0.8rem; font-weight: 500;
  color: var(--qw-blue-light); letter-spacing: 0.05em;
  padding: 6px 14px; border: 1px solid var(--qw-border); border-radius: 100px;
  background: rgba(37, 99, 235, 0.05); margin-bottom: 0.8rem;
}
.qw-features-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--qw-blue); box-shadow: 0 0 8px var(--qw-blue); }
.qw-features-title { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; color: var(--qw-text); }

.qw-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.qw-feature-card {
  position: relative; padding: 24px 22px; border-radius: 16px;
  background: var(--qw-card); border: 1px solid var(--qw-border);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.qw-feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; border-radius: 16px 16px 0 0; opacity: 0; transition: opacity 0.3s;
}
.qw-feature-card:nth-child(1)::before { background: linear-gradient(90deg, transparent, var(--qw-blue), transparent); }
.qw-feature-card:nth-child(2)::before { background: linear-gradient(90deg, transparent, var(--qw-orange), transparent); }
.qw-feature-card:nth-child(3)::before { background: linear-gradient(90deg, transparent, var(--qw-cyan), transparent); }
.qw-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3);
  background: var(--qw-card-hover);
  box-shadow: 0 12px 40px rgba(6, 9, 23, 0.5), 0 0 0 1px var(--qw-border-glow);
}
.qw-feature-card:hover::before { opacity: 1; }

.qw-feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.5rem; position: relative;
}
.qw-feature-icon--blue  { background: rgba(37, 99, 235, 0.1);  border: 1px solid rgba(37, 99, 235, 0.15);  color: var(--qw-blue-bright); }
.qw-feature-icon--orange { background: rgba(249, 115, 22, 0.1); border: 1px solid rgba(249, 115, 22, 0.15); color: var(--qw-orange); }
.qw-feature-icon--cyan  { background: rgba(34, 211, 238, 0.1);  border: 1px solid rgba(34, 211, 238, 0.15); color: var(--qw-cyan); }
.qw-feature-icon svg { width: 24px; height: 24px; }

.qw-feature-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--qw-text); }
.qw-feature-desc { font-size: 0.875rem; line-height: 1.7; color: var(--qw-text-muted); }
.qw-feature-desc strong { color: var(--qw-text-dim); font-weight: 500; }
.qw-feature-tag {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 12px;
  font-size: 0.7rem; color: var(--qw-text-muted); letter-spacing: 0.02em;
}
.qw-feature-tag::before { content: '>'; color: var(--qw-blue); }

/* ── Stats ── */
.qw-stats {
  position: relative; z-index: 2;
  display: flex; justify-content: center; gap: clamp(2rem, 6vw, 5rem);
  padding: 24px 2rem; margin: 0 auto; max-width: 800px;
  border-top: 1px solid var(--qw-border); border-bottom: 1px solid var(--qw-border);
}
.qw-stat { text-align: center; }
.qw-stat-value {
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--qw-blue-bright), var(--qw-indigo));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.2;
}
.qw-stat-label { font-size: 0.8rem; color: var(--qw-text-muted); margin-top: 4px; letter-spacing: 0.05em; }

.qw-software {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2rem));
  margin: 28px auto 0;
}
.qw-software-header {
  text-align: center;
  margin-bottom: 18px;
}
.qw-software-lead {
  margin-top: 10px;
  color: var(--qw-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.qw-software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.qw-software-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(17, 22, 49, 0.92), rgba(10, 13, 26, 0.94));
  box-shadow: 0 18px 48px rgba(6, 9, 23, 0.28);
  padding: 24px;
}
.qw-software-topline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.qw-software-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.28);
}
.qw-software-badge--ghost {
  color: var(--qw-text-dim);
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.16);
}
.qw-software-main {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  align-items: start;
}
.qw-software-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qw-blue-bright);
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.qw-software-title {
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--qw-text);
  margin-bottom: 10px;
}
.qw-software-desc {
  color: var(--qw-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}
.qw-software-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 20px;
}
.qw-software-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(10, 13, 26, 0.45);
  color: var(--qw-text-dim);
  font-size: 0.82rem;
}
.qw-software-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.qw-software-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--qw-text);
  text-decoration: none;
  font-weight: 600;
}
.qw-software-link:hover {
  color: var(--qw-blue-bright);
}

/* ── Footer（首页内嵌） ── */
.qw-footer {
  margin-top: auto;
  text-align: center;
  padding: 12px 2rem;
  color: var(--qw-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  z-index: 2;
  position: relative;
}

/* ── Animations ── */
.qw-fade-in { opacity: 0; transform: translateY(24px); animation: qw-fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.qw-fade-in:nth-child(1) { animation-delay: 0.1s; }
.qw-fade-in:nth-child(2) { animation-delay: 0.2s; }
.qw-fade-in:nth-child(3) { animation-delay: 0.3s; }
.qw-fade-in:nth-child(4) { animation-delay: 0.4s; }
.qw-fade-in:nth-child(5) { animation-delay: 0.5s; }
@keyframes qw-fadeUp { to { opacity: 1; transform: translateY(0); } }

.qw-feature-card { opacity: 0; transform: translateY(20px); }
.qw-features-visible .qw-feature-card { animation: qw-fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.qw-features-visible .qw-feature-card:nth-child(1) { animation-delay: 0.1s; }
.qw-features-visible .qw-feature-card:nth-child(2) { animation-delay: 0.2s; }
.qw-features-visible .qw-feature-card:nth-child(3) { animation-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .qw-features-grid { grid-template-columns: 1fr; gap: 16px; }
  .qw-stats { gap: 2rem; }
  .qw-software-main { grid-template-columns: 52px 1fr; gap: 14px; }
  .qw-hero { padding: 80px 1.5rem 60px; }
  .qw-hero-logo { width: 96px; height: 96px; border-radius: 22px; }
  .qw-hero-logo-ring { border-radius: 30px; }
  .qw-hero-logo-ring::before { border-radius: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .qw-home *, .qw-home *::before, .qw-home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .qw-home { scroll-behavior: auto; }
}
@media (max-width: 480px) {
  .qw-hero-actions { flex-direction: column; align-items: stretch; }
  .qw-software-actions { flex-direction: column; align-items: stretch; }
  .qw-software-main { grid-template-columns: 1fr; }
  .qw-software-icon { width: 52px; height: 52px; border-radius: 16px; }
  .qw-btn { justify-content: center; }
  .qw-stats { flex-direction: column; gap: 1.5rem; }
  .qw-software { width: min(100%, calc(100% - 1rem)); }
  .qw-software-card { padding: 20px 18px; border-radius: 20px; }
}

/* ═══════════════════════════════════════
   亮色主题（通过 .qw-light class 切换）
   ═══════════════════════════════════════ */
.qw-home.qw-light {
  --qw-void:        #F7F8FC;
  --qw-bg:          #F7F8FC;
  --qw-bg-raised:   #EFF1F7;
  --qw-card:        #FFFFFF;
  --qw-card-hover:  #F8FAFF;
  --qw-border:      #E2E6F0;
  --qw-border-glow: rgba(37, 99, 235, 0.12);

  --qw-text:        #0F172A;
  --qw-text-dim:    #64748B;
  --qw-text-muted:  #6B7A8D;

  background: var(--qw-void);
  color: var(--qw-text);
}
.qw-home.qw-light .qw-circuit-grid { opacity: 0.04; }
.qw-home.qw-light .qw-circuit-grid::before,
.qw-home.qw-light .qw-circuit-grid::after { display: none; }

.qw-home.qw-light .qw-hero::before {
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, rgba(99,102,241,0.04) 35%, transparent 65%);
}
.qw-home.qw-light .qw-hero::after { display: none; }

.qw-home.qw-light .qw-hero-logo {
  background: transparent;
  filter: drop-shadow(0 8px 24px rgba(37,99,235,0.15));
}

.qw-home.qw-light .qw-hero-title {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
  color: var(--qw-text);
}
.qw-home.qw-light .qw-hero-title .qw-mono { color: var(--qw-blue); }

.qw-home.qw-light .qw-btn-primary {
  background: var(--qw-blue);
  box-shadow: 0 4px 16px rgba(37,99,235,0.2);
}
.qw-home.qw-light .qw-btn-primary:hover {
  background: var(--qw-blue-light);
  box-shadow: 0 6px 24px rgba(59,130,246,0.35);
}

.qw-home.qw-light .qw-btn-ghost {
  color: #334155;
  background: #FFFFFF;
  border-color: var(--qw-border);
}
.qw-home.qw-light .qw-btn-ghost:hover {
  color: var(--qw-blue);
  border-color: var(--qw-blue-light);
  background: #EFF6FF;
}

.qw-home.qw-light .qw-features-label {
  color: var(--qw-blue);
  background: #EFF6FF;
  font-family: var(--font-sans);
}

.qw-home.qw-light .qw-feature-card {
  background: #FFFFFF;
  border-color: var(--qw-border);
}
.qw-home.qw-light .qw-feature-card:hover {
  border-color: #C7D2E8;
  background: #F8FAFF;
  box-shadow: 0 12px 40px rgba(15,23,42,0.06), 0 4px 12px rgba(15,23,42,0.04);
}
.qw-home.qw-light .qw-feature-card::before { height: 3px; }
.qw-home.qw-light .qw-feature-card:nth-child(1)::before { background: linear-gradient(90deg, var(--qw-blue), #60A5FA); }
.qw-home.qw-light .qw-feature-card:nth-child(2)::before { background: linear-gradient(90deg, var(--qw-orange), #FBBF24); }
.qw-home.qw-light .qw-feature-card:nth-child(3)::before { background: linear-gradient(90deg, #0891B2, #2DD4BF); }

.qw-home.qw-light .qw-feature-icon--blue  { background: #EFF6FF; border-color: transparent; color: var(--qw-blue); }
.qw-home.qw-light .qw-feature-icon--orange { background: #FFF7ED; border-color: transparent; color: var(--qw-orange); }
.qw-home.qw-light .qw-feature-icon--cyan  { background: #ECFEFF; border-color: transparent; color: #0891B2; }

.qw-home.qw-light .qw-feature-desc strong { color: #334155; }

.qw-home.qw-light .qw-stat-value {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
  color: var(--qw-blue);
}
.qw-home.qw-light .qw-software-card {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 252, 0.98));
  border-color: rgba(199, 210, 232, 0.95);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}
.qw-home.qw-light .qw-software-badge {
  color: var(--qw-blue);
  border-color: rgba(37, 99, 235, 0.18);
  background: #eff6ff;
}
.qw-home.qw-light .qw-software-badge--ghost {
  color: #475569;
  border-color: #e2e8f0;
  background: #f8fafc;
}
.qw-home.qw-light .qw-software-icon {
  color: var(--qw-blue);
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.16);
}
.qw-home.qw-light .qw-software-chip {
  color: #334155;
  background: #f8fafc;
  border-color: #e2e8f0;
}
.qw-home.qw-light .qw-software-link {
  color: #0f172a;
}
.qw-home.qw-light .qw-software-link:hover {
  color: var(--qw-blue);
}


/* ═══════════════════
   导航栏主题切换按钮（匹配 Gitea .item 样式）
   ═══════════════════ */
#navbar .qw-theme-toggle.item {
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  transition: opacity 0.2s;
  margin: 0;
}
#navbar .qw-theme-toggle.item:hover { opacity: 1; }
.qw-theme-icon { width: 16px; height: 16px; }
.qw-theme-icon--moon { display: none; }
.qw-home.qw-light .qw-theme-icon--sun { display: none; }
.qw-home.qw-light .qw-theme-icon--moon { display: block; }


/* ═══════════════════
   全站：隐藏帮助链接 + footer 清理
   ═══════════════════ */
#navbar a[href*="docs.gitea"],
#navbar a[href*="/help"] {
  display: none !important;
}

/* 首页时隐藏 Gitea 原版 footer（用 JS 替换的版本也隐藏，改由 .qw-home 内自带） */
.qw-home ~ .page-footer,
.page-content.qw-home ~ .page-footer {
  display: none !important;
}
/* 非首页 footer 清理 */
.page-footer .powered,
.page-footer a[href*="gitea.com"],
.page-footer a[href*="swagger"],
.page-footer .ui.language {
  display: none !important;
}
