/* 全站主题变量：默认暖杏琥珀 */
html[data-theme="amber"],
html:not([data-theme]) {
  --ink: #2a2118;
  --muted: #7a6a58;
  --line: #e8dccf;
  --bg: #f6efe6;
  --panel: #fffdf9;
  --brand: #c2410c;
  --brand-dark: #9a3412;
  --brand-glow: rgba(194, 65, 12, 0.32);
  --buy: #ea580c;
  --buy-hover: #c2410c;
  --soft: #fff4eb;
  --glow-a: rgba(234, 88, 12, 0.10);
  --glow-b: rgba(217, 119, 6, 0.08);
  --brand-mark: linear-gradient(135deg, #ea580c 0%, #d97706 52%, #b45309 100%);
  --nav-link: #4a3f35;
}

html[data-theme="white"] {
  --ink: #1a1a1a;
  --muted: #64748b;
  --line: #e5e7eb;
  --bg: #ffffff;
  --panel: #ffffff;
  --brand: #c2410c;
  --brand-dark: #9a3412;
  --brand-glow: rgba(194, 65, 12, 0.22);
  --buy: #ea580c;
  --buy-hover: #c2410c;
  --soft: #f4f4f5;
  --glow-a: rgba(15, 23, 42, 0.04);
  --glow-b: rgba(194, 65, 12, 0.05);
  --brand-mark: linear-gradient(135deg, #ea580c 0%, #d97706 52%, #b45309 100%);
  --nav-link: #334155;
}

html[data-theme="coral"] {
  --ink: #2c1f1c;
  --muted: #8a6f68;
  --line: #eddcd6;
  --bg: #faf3f0;
  --panel: #fffbfa;
  --brand: #e11d48;
  --brand-dark: #be123c;
  --brand-glow: rgba(225, 29, 72, 0.28);
  --buy: #f97316;
  --buy-hover: #ea580c;
  --soft: #fff1f2;
  --glow-a: rgba(244, 63, 94, 0.08);
  --glow-b: rgba(249, 115, 22, 0.07);
  --brand-mark: linear-gradient(135deg, #f43f5e 0%, #e11d48 48%, #ea580c 100%);
  --nav-link: #4a3834;
}

html[data-theme="olive"] {
  --ink: #1f2a22;
  --muted: #6b7368;
  --line: #dde5d8;
  --bg: #f3f0e8;
  --panel: #fffcf7;
  --brand: #3f6212;
  --brand-dark: #365314;
  --brand-glow: rgba(63, 98, 18, 0.28);
  --buy: #d97706;
  --buy-hover: #b45309;
  --soft: #f0fdf4;
  --glow-a: rgba(101, 163, 13, 0.08);
  --glow-b: rgba(217, 119, 6, 0.07);
  --brand-mark: linear-gradient(135deg, #65a30d 0%, #3f6212 55%, #d97706 100%);
  --nav-link: #3a453c;
}


html[data-theme="caramel"] {
  --ink: #292018;
  --muted: #7c6a58;
  --line: #e4d8c8;
  --bg: #f5ebe0;
  --panel: #fffaf4;
  --brand: #92400e;
  --brand-dark: #78350f;
  --brand-glow: rgba(146, 64, 14, 0.30);
  --buy: #c2410c;
  --buy-hover: #9a3412;
  --soft: #fef3c7;
  --glow-a: rgba(180, 83, 9, 0.10);
  --glow-b: rgba(120, 53, 15, 0.07);
  --brand-mark: linear-gradient(135deg, #d97706 0%, #92400e 50%, #451a03 100%);
  --nav-link: #4a3c30;
}




html[data-theme="teal"] {
  --ink: #1e2930;
  --muted: #6b7c85;
  --line: #d8e0e4;
  --bg: #eef3f2;
  --panel: #ffffff;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-glow: rgba(15, 118, 110, 0.28);
  --buy: #ea580c;
  --buy-hover: #c2410c;
  --soft: #ccfbf1;
  --glow-a: rgba(20, 184, 166, 0.08);
  --glow-b: rgba(234, 88, 12, 0.06);
  --brand-mark: linear-gradient(135deg, #14b8a6 0%, #0f766e 55%, #ea580c 100%);
  --nav-link: #3d4a50;
}


/* 主题切换控件 */

/* 网站风格：与版权挨着并居中 */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.footer-theme {
  display: flex;
  flex-shrink: 0;
  padding: 0;
}
.theme-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}
.theme-switch label {
  font-size: 0.84rem;
  color: #94a3b8;
  white-space: nowrap;
}
.site-footer .theme-switch label {
  color: #94a3b8;
}
.theme-switch select {
  min-width: 120px;
  max-width: 160px;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: menulist;
}
.theme-switch select:focus {
  border-color: rgba(251, 146, 60, 0.7);
  outline: none;
}
.theme-switch select option {
  color: #0f172a;
  background: #fff;
}
.site-footer .footer-copy {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  text-align: left;
  flex: 0 1 auto;
  min-width: 0;
}
@media (max-width: 1100px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 16px;
  }
  .theme-switch {
    justify-content: center;
  }
  .theme-switch select {
    min-height: 40px;
  }
  .site-footer .footer-copy {
    text-align: center;
  }
}
