:root {
  --button-color-light: #111; /* 默认浅色模式值 */
  --button-hover-bg-light: #e5e7eb;
  --button-focus-bg-light: #d1d5db;
  --icon-color-light: initial;
  --body-bg: initial;
  --text-color: #333;
  --dropdown-bg: white;
  --dropdown-item-color: initial;
  --dropdown-item-hover-bg: #f3f4f6;
  --dropdown-item-active-bg: #e5e7eb;
  --dropdown-item-selected-color: #1363FA;
  --dropdown-item-selected-bg: rgba(59, 130, 246, 0.2);
}
/* 手动切换暗色模式（html.dark） */
html.dark {
  --button-color-dark: #ffffff;
  --button-hover-bg-dark: #374151;
  --button-focus-bg-dark: #4b5563;
  --icon-color-dark: #ffffff;
  --body-bg: #0f151ff0;
  --text-color: #f6f6f6;
  --dropdown-bg: #0f172a;
  --dropdown-item-color: #ffffff;
  --dropdown-item-hover-bg: #374151;
  --dropdown-item-active-bg: #1f2937;
}
@media (prefers-color-scheme: dark) {
  :root {
    --button-color-dark: #ffffff;
    --button-hover-bg-dark: #374151;
    --button-focus-bg-dark: #4b5563;
    --icon-color-dark: #ffffff;
    --body-bg: #0f151ff0;
    --text-color: #f6f6f6;
    --dropdown-bg: #0f172a;
    --dropdown-item-color: #ffffff;
    --dropdown-item-hover-bg: #374151;
    --dropdown-item-active-bg: #1f2937;
  }
}

/* 应用样式 */
body {
  background: var(--body-bg);
  font-family: Arial, sans-serif;
  max-width: 1200px;
  padding: 20px 16px;
  margin: 0 auto;
  position: relative;
}
.btn-container {
  right: 20px;
  position: absolute;
  top: 15px;
  text-align: left;
  display: inline-block;
}

a, a>span {
  color: #1363FA;
}
*:not(a),
h1,
h2 {
  color: var(--text-color);
}
.dropdown {
  background-color: var(--dropdown-bg);
  position: absolute;
  z-index: 10;
  top: 25px;
  margin-top: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: none;
}
.dropdown.open {
  display: block;
}

.dropdown ul {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  font-size: 14px;
}
.dropdown li {
  padding: 0.25rem 1rem;
  cursor: pointer;
  font-weight: normal;
  color: var(--dropdown-item-color);
}
.dropdown li:hover {
  background-color: var(--dropdown-item-hover-bg);
}
.dropdown li:active {
  background-color: var(--dropdown-item-active-bg);
}
.dropdown li.active {
  color: var(--dropdown-item-selected-color);
  background-color: var(--dropdown-item-selected-bg);
}

.custom-button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--button-color-dark, var(--button-color-light));
}

.custom-button:hover {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  background-color: var(--button-hover-bg-dark, var(--button-hover-bg-light));
}

.custom-button:focus {
  background-color: var(--button-focus-bg-dark, var(--button-focus-bg-light));
}

/* Optional for your SVG sizes */
.icon-svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--icon-color-dark, var(--icon-color-light));
}

.arrow-svg {
  width: 1rem;
  height: 1rem;
}
.content-div {
  display: none;
  line-height: 1.6;
  margin-top: 20px;
}

.content-div.active {
  display: block;
}

header {
  border-bottom: 2px solid #eee;
  padding-bottom: 15px;
}

ul {
  padding-left: 20px;
}

.contact-info {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
