@charset "utf-8";

/* 基础样式 - 合并两个文件的基础设置 */
* {
  padding: 0;
  margin: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  font-family: 'Noto Sans SC Sliced', PingFangSC-Light, Microsoft YaHei UI, Microsoft YaHei, helvetica, sans-serif;
  background: #fff;
  font-weight: 500;
  color: #000;
}

a {
  text-decoration: none;
  color: #000;
}

form, input, button {
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
  background: none;
}

ul, li {
  display: block;
  list-style: none;
}

input::-webkit-input-placeholder {
  color: #ccc;
  letter-spacing: 2px;
  font-size: 16px;
}

/* 主内容区域样式 */
#content {
  width: 100%;
  height: 100%;
}

.con {
  width: 100%;
  transition: 1s all;
  margin: auto;
  min-width: 320px;
  height: 380px;
  position: absolute;
  left: 0;
  top: -100px;
  right: 0;
  bottom: 0;
}

.con .shlogo {
  position: relative;
  width: 480px;
  height: 120px;
  margin: 20px auto;
  background: url(icon/logo.svg) no-repeat center/cover;
}

.con .shlogo a {
  width: 100%;
  display: block;
  height: 100%;
}

.con .sou {
  max-width: 680px;
  position: relative;
  width: calc(100% - 60px);
  min-width: 320px;
  margin: 0 auto;
}

/* 搜索表单样式 */
.con .sou form {
  width: 100%;
  height: 50px;
  display: block;
  margin: 10px auto 30px;
  position: relative;
}

.con .sou form .wd {
  width: 100%;
  height: 100%;
  display: block;
  border: 1px solid #ddd;
  border-radius: 25px;
  line-height: 100%;
  font-size: 18px;
  text-indent: 50px;
  transition: 0.3s all;
}

.con .sou form .lg {
  display: block;
  width: 30px;
  height: 30px;
  position: absolute;
  left: 13px;
  top: 10px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}

.con .sou form .wd:focus {
  background: #fff;
  box-shadow: 0 0px 15px 0 rgba(32, 33, 36, 0.2);
  border-color: #fff
}

.con .sou form button {
  width: 40px;
  height: 40px;
  display: block;
  position: absolute;
  z-index: 10;
  right: 6px;
  top: 6px;
  cursor: pointer;
  font-size: 22px;
  line-height: 40px;
  border-radius: 50%;
  color: #777;
}

/* 搜索建议样式 */
.con .sou #word{
  width: calc(100% - 70px);
  border: 15px solid #f1f1f1;
  border-radius: 10px;
  left:20px;
  position: absolute;
  z-index: 500;
  top:65px;
  background: #f1f1f1;
  line-height: 30px;
  font-size: 16px;
  overflow: hidden;
  display: none; 
}

.con .sou #word .li{
  cursor: pointer;
  color: #555;
}

.con .sou #word .li:hover{
  color: #29f;
}

/* 侧边菜单样式 - 以功能完整的style.css为主，保留必要动画属性 */
.right.menu {
  width: 50px;
  height: 50px;
  transform: scale(0.8);
  position: absolute;
  right: 10px;
  top: 5px;
  z-index: 2000000;
  cursor: pointer;
  transition: 0.5s;
}

.right.menu i {
  position: absolute;
  left: 0;
  right: 0;
  margin: 24px auto;
  width: 30px;
  height: 2px;
  background: #777;
}

.right.menu i:before, .right.menu i:after {
  content: '';
  width: 20px;
  height: 2px;
  background: #777;
  position: absolute;
}

.right.menu i:before {
  top: -8px;
  right: 0;
}

.right.menu i:after {
  bottom: -8px;
  left: 0;
}

.right.menu.on {
  right: 380px;
  background: #29f;
  border-radius: 25px;
  box-shadow: 0 6px 8px rgba(36, 159, 253, .3);
}

.right.menu.on i {
  width: 20px;
  background: #fff;
}

.right.menu.on i:before {
  top: -5px;
  transform: rotate(45deg);
  width: 14px;
  right: -1px;
  left: auto;
  background: #fff;
}

.right.menu.on i:after {
  bottom: -5px;
  transform: rotate(-45deg);
  width: 14px;
  right: -1px;
  left: auto;
  background: #fff;
}

.right.list {
  width: 337px;
  padding: 0 20px;
  height: 100%;
  overflow: hidden;
  overflow-y: auto;
  position: absolute;
  right: 0px;
  z-index: 2000;
  background: rgba(34, 45, 70, 0.5);
  transition: 0.3s all linear;
}

.right.list.closed {
  right: -380px;
}

.right.list ul {
  width: 330px;
  float: left;
  padding: 0 0 20px;
  margin-bottom: 20px;
}

.right.list ul li {
  float: left;
  margin: 5px;
  width: 100px;
  height: 30px;
  text-align: left;
  line-height: 30px;
}

.right.list ul li a {
  width: 100%;
  border-radius: 5px;
  transition: 0.2s all linear;
  height: 100%;
  display: flex; /* 使用flex布局 */
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
  gap: 5px; /* 图标与文字间距 */
  color: #fff;
  font-weight: 500;
  background: #293550;
  font-size: 12px;
  text-decoration: none; /* 确保无下划线 */
}

.right.list ul li:hover a {
  color: #fff;
  background-color: #29f;
  background-image: linear-gradient(135deg, rgba(35, 153, 255) 0%, rgba(84, 175, 253) 100%);
  box-shadow: 0 3px 3px rgba(0, 40, 70, .3);
}

.right.list ul li.title {
  width: 100%;
  height: 40px;
  line-height: 40px;
  margin: 30px 0 0;
  text-align: left;
  text-indent: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

/* 其他辅助样式 */
.home {
  width: 50px;
  height: 50px;
  position: absolute;
  right: 70px;
  top: 10px;
  z-index: 200;
  cursor: pointer;
}

.home a {
  font-size: 20px;
  color: #999;
  line-height: 50px;
  display: block;
  text-align: center;
}

.mywth {
  position: absolute;
  left: 20px;
  top: 15px;
  font-size: 12px;
  height: 20px;
  line-height: 20px;
  cursor: pointer;
  z-index: 100000;
  height: 22px;
}

svg.icon {
  width: 14px;
  height: 14px;
  margin: 0 5px 0 8px;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

.right.list ul li.title svg.icon {
  width: 20px;
  height: 20px;
}

/* 页脚样式 */
.foot {
  position: fixed; /* 改为fixed定位，相对于视口固定 */
  bottom: 10px;    /* 距离底部10px */
  left: 0;         /* 左对齐视口 */
  right: 0;        /* 右对齐视口 */
  text-align: center;
  width: 100%;
  color: #999;
  height: auto;    /* 自动适应内容高度 */
  line-height: 20px;
  font-size: 12px;
  z-index: 100;    /* 确保在其他内容上方显示 */
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #222d46;
  border-radius: 0px;
}

::-webkit-scrollbar-thumb {
  background: #293550;
  border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
  background: #293550;
}

::-webkit-scrollbar-corner {
  background: #222d46;
}

/* 响应式调整 - 合并两个文件的断点设置 */
@media (max-width: 768px) {
  .con .shlogo {
    width: 320px;
    height: 80px;
  }
  
  .right.list {
    width: 80%;
  }
  
  .right.list.closed {
    right: -80%;
  }
  
  .right.menu.on {
    right: 80%;
  }
}

@media (max-width: 640px) {
  .con {
    top: 0px;
  }

  .con .shlogo {
    width: 320px;
    height: 100px;
  }

  .con .sou form .wd:focus {
    background: #f1f1f1;
    box-shadow: none;
    border-color: #ccc
  }

  .con .sou form button {
    border-radius: 25px;
  }
  
  .con .sou #word{
    max-height: 150px;
  }

  .right.menu.on {
    right: 270px;
  }

  .right.list {
    width: 227px;
  }

  .right.list ul {
    width: 220px;
  }

  .con .sou ul li {
    width: 100px;
    font-size: 12px;
    text-indent: 30px;
  }

  .home,
  .right.menu {
    top: 5px;
  }

  .mywth {
    color: #777;
    left: 10px;
  }

  .mywth.hidden {
    display: none;
  }
}

@media (max-height: 420px) {
  .con {
    margin: 0;
    top: 0px;
  }

  .con .shlogo {
    display: none;
  }

  .home,
  .right.menu,
  .mywth,
  .foot {
    display: none;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #162035;
  }

  .mywth {
    color: #bbb;
  }

  .con .sou form .wd:focus {
    background: #293550;
    border: 1px solid #162035;
  }

  .con .sou form .wd {
    border: 1px solid #293550;
    color: #bbb;
  }
  
  .con .sou #word {
    border: 15px solid #293550;
    background: #293550;
  }
  
  .con .sou #word .click_work {
    color: #89b;
  }
}



/*@import url(//fonts.loli.net/earlyaccess/notosansscsliced.css);*/


/* 登录表单样式 */
.login-form {
    padding: 15px;
}

.login-form .form-group {
    margin-bottom: 15px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.login-form input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.login-form button:hover {
    background: #0069d9;
}

.login-form .error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 10px;
    text-align: center;
}