body, html {
  margin: 0; padding: 0; height: 100%;
  font-family: "微软雅黑", Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
}

#container {
  display: flex;
  height: 100vh;
}

#sidebar {
  width: 220px;
  background: #2c3e50;
  color: white;
  overflow-y: auto;
  padding: 20px;
}

#sidebar h2 {
  font-weight: normal;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.3em;
}

#main-content {
  flex: 1;
  padding: 40px;
  background: white;
  overflow-y: auto;
}

h1 {
  font-weight: normal;
  color: #2980b9;
}

p {
  font-size: 1.1em;
  line-height: 1.6em;
}

#device-list {
  list-style: none;
  padding-left: 0;
}

#device-list > li {
  margin-bottom: 10px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 4px;
}

#device-list > li:hover, 
#device-list > li.active {
  background-color: #34495e;
}

#device-list {
  list-style: none;
  padding-left: 0;
}

#device-list > li {
  margin-bottom: 10px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 4px;
}

#device-list > li.series {
  font-weight: bold;
  background-color: #1c2e3b;
}

#device-list li:hover {
  background-color: #34495e;
}

#device-list li.active {
  background-color: #16a085 !important;
}

#device-list > li.series {
  font-weight: bold;
  background-color: #1c2e3b;
  position: relative;
  z-index: 1;
  transition: background-color 0.2s ease;
}

#device-list > li.series:hover {
  background-color: #223544;
}

@media (max-width: 768px) {
  #sidebar {
	display: none;
    position: fixed;
    top: 0;
    left: 0px;
    width: 240px;
    height: 100%;
    background-color: #1c2e3b;
    z-index: 9998;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
  }

  #sidebar.show {
	display: block;
    left: 0;
  }

  #main-content {
    margin-left: 0 !important;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 760px) {
  .footer {
    font-size: 8px;
    padding: 12px 6px;
  }
}

#sidebar {
  position: relative;
  padding-bottom: 60px;
}

ul.model-list, ul.version-list {
  list-style: none;
  padding-left: 15px;
  margin-top: 5px;
}

.model-list .model {
  font-weight: normal;
  background-color: #34495e;
  padding: 6px 8px;
  border-radius: 3px;
  margin-top: 4px;
}

.hidden {
  display: none;
}

.back-button {
  background-color: #2980b9;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}
.floating-buttons button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  font-size: 20px;
  cursor: pointer;
  background-color: #3498db;
  transition: background-color 0.3s ease;
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.floating-buttons button:hover {
  background-color: #1abc9c;
}

.hidden {
  display: none;
}

.model-list, .version-list {
  list-style: none;
  padding-left: 15px;
  margin: 4px 0;
  transition: all 0.3s ease;
}

.model-list li.model {
  font-weight: normal;
  background-color: #2f3f4f;
  padding: 6px 8px;
  border-radius: 3px;
  margin-top: 4px;
  position: relative;
}

.model-list li.model:hover {
  background-color: #3e5566;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: #1c2e3b;
  color: white;
  padding: 10px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 9999;
}

.site-title {
  flex: 1;
  text-align: center;
  margin: 0;
  font-size: 18px;
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  padding: 6px 10px;
  cursor: pointer;
  z-index: 9999;
}

.footer {
  width: 98%;
  padding: 16px 10px;
  margin-top: 5px;
  border-top: 1px solid #ddd;
  font-size: 14px;
  text-align: center;
  color: #666;
  background-color: #f9f9f9;
}

.footer a {
  color: #337ab7;
  text-decoration: none;
  margin: 0 6px;
}

.footer a:hover {
  text-decoration: underline;
}

.contribute-button {
  display: block;
  position: absolute;
  bottom: 15px;
  left: 10px;
  right: 10px;
  width: calc(100% - 20px);
  margin: 16px auto;
  padding: 10px;
  background-color: #2ecc71;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contribute-button:hover {
  background-color: #27ae60;
}

/* 悬浮图标样式 */
.btn-top-img {
  position: fixed;
  bottom: 25px;
  right: 15px;
  width: 127px;
  height: 127px;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.btn-top-img:hover {
  transform: scale(1.1);
}

.btn-top-img.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
