/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
  }
  
  /* 侧边栏 */
.sidenav {
    height: 100%;
    width: 200px;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #f8f8f8;
    overflow-x: hidden;
    padding-top: 20px;
   
  }
  
  .brand-logo {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .brand-logo h1 {
    font-size: 24px;
    color: #000000;
  }
  
  /* 主要内容区域 */
  .main {
    margin-left: 200px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f5f5;
  }
  
  .device-list {
    text-align: center;
  }
  
  #deviceContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .add-device-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 200px;
    height: 200px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .add-device-icon {
    font-size: 48px;
    color: #cccccc;
    margin-bottom: 10px;
  }
  
  .add-device-text {
    font-size: 16px;
    color: #666666;
  }


/* 自动适配浏览器暗色模式 */
@media (prefers-color-scheme: dark) {
  .sidenav {
    background-color: #222222;
  }
  .main {
    background-color: #1e1e1e;
  }
  .brand-logo h1 {
    color: #d8d8d8;
  }
  .add-device-box {
    background-color: #333;
  }
  .add-device-text {
    color: #cccccc;
  }
  .add-device-icon {
    color: #cccccc;
  }

  footer p {
    background-color: #222222 !important;
  }
  footer p a {
    color: #bbbbbb !important;
  }
}

footer a {
  pointer-events: none;
  cursor: default;
}
