/* 全局基础样式（浅色） */
html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  box-sizing: border-box;
  background: #f5f6fa;
  color: #222;
  font-family: "微软雅黑", "Arial", sans-serif;
}
*, *::before, *::after {
  box-sizing: border-box;
}

.header {
  text-align: center;
  padding: 32px 0 16px 0;
  background: #4fc3f7;
  color: #fff;
  position: relative;
}
.subtitle {
  color: #e3f2fd;
  margin-bottom: 8px;
}
.night-toggle {
  position: absolute;
  right: 18px;
  top: 18px;
  background: #fff;
  color: #1976d2;
  border: none;
  border-radius: 18px;
  padding: 6px 18px;
  font-size: 1em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(33,150,243,0.10);
  transition: background 0.2s, color 0.2s;
}
.night-toggle:hover {
  background: #1976d2;
  color: #fff;
}

.version-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 32px 0;
}
.version-card {
  display: flex;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(60,60,60,0.06);
  overflow: hidden;
  width: 600px;
  max-width: 95vw;
  margin-bottom: 16px;
}
.card-left {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e3f2fd;
  min-width: 200px;
  min-height: 180px;
}
.version-cover {
  width: 200px;
  height: 180px;
  object-fit: contain;
}
.card-right {
  flex: 1;
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.version-title {
  font-size: 1.5em;
  margin: 0;
}
.version-author {
  color: #1976d2;
  font-size: 1em;
}
.version-badge {
  background: #4fc3f7;
  color: #fff;
  border-radius: 8px;
  padding: 2px 10px;
  font-size: 0.95em;
  margin-left: 8px;
}
.version-desc {
  margin: 12px 0 16px 0;
  color: #333;
}
.card-bottom {
  margin-top: auto;
}
.download-btn {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.2s;
}
.download-btn:hover {
  background: #1565c0;
}
.footer {
  text-align: center;
  padding: 24px 0 16px 0;
  background: #e3f2fd;
  color: #1976d2;
  font-size: 0.95em;
}
.footer a {
  color: #1976d2;
  text-decoration: none;
}
.download-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px 24px 24px;
  min-width: 260px;
  max-width: 90vw;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  position: relative;
  text-align: center;
}
.modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 1.8em;
  color: #1976d2;
  cursor: pointer;
}
.modal-links a {
  display: block;
  margin: 12px 0;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 6px;
  padding: 10px 0;
  text-decoration: none;
  font-size: 1.1em;
  transition: background 0.2s;
}
.modal-links a:hover {
  background: #b3e5fc;
}

/* 夜间模式（深色） */
.dark-mode, .dark-mode body, .dark-mode html {
  background: #222 !important;
  color: #fff !important;
}
.dark-mode .header {
  background: #333 !important;
  color: #fff !important;
}
.dark-mode .subtitle {
  color: #ccc !important;
}
.dark-mode .night-toggle {
  background: #292929 !important;
  color: #fff !important;
}
.dark-mode .version-card {
  background: #292929 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}
.dark-mode .card-left {
  background: #222 !important;
}
.dark-mode .version-title {
  color: #fff !important;
}
.dark-mode .version-author {
  color: #aaa !important;
}
.dark-mode .version-badge {
  background: #4caf50 !important;
  color: #fff !important;
}
.dark-mode .version-desc {
  color: #eee !important;
}
.dark-mode .download-btn {
  background: #ff9800 !important;
  color: #fff !important;
}
.dark-mode .download-btn:hover {
  background: #e68900 !important;
}
.dark-mode .footer {
  background: #333 !important;
  color: #bbb !important;
}
.dark-mode .footer a {
  color: #ff9800 !important;
}
.dark-mode .modal-content {
  background: #222 !important;
  color: #fff !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.4) !important;
}
.dark-mode .modal-close {
  color: #fff !important;
}
.dark-mode .modal-links a {
  background: #444 !important;
  color: #fff !important;
}
.dark-mode .modal-links a:hover {
  background: #666 !important;
}

@media (max-width: 700px) {
  .header {
    padding: 20px 0 10px 0;
  }
  .version-list {
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
  }
  .version-card {
    flex-direction: column;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .card-left {
    min-width: 100vw;
    min-height: 120px;
    padding: 8px 0;
  }
  .version-cover {
    width: 96vw;
    max-width: 340px;
    height: auto;
    margin: 0 auto;
    display: block;
  }
  .card-right {
    padding: 16px 12px 12px 12px;
  }
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .version-title {
    font-size: 1.2em;
  }
  .version-author, .version-badge {
    font-size: 1em;
  }
  .version-desc {
    font-size: 1em;
  }
  .download-btn {
    width: 100%;
    font-size: 1.1em;
    padding: 12px 0;
    margin-top: 8px;
  }
  .footer {
    padding: 10px 0 8px 0;
    font-size: 1em;
  }
  .modal-content {
    min-width: 0;
    width: 98vw;
    padding: 14px 4px 12px 4px;
  }
  .modal-links a {
    font-size: 1em;
    padding: 10px 0;
  }
} 

