html {
  margin: 0;
  padding: 0;
  min-width: 1200px; 
  background-color: #f3f5f7;
  overflow-x: auto; 
  overflow-y: scroll; 
}

body {
  background-color: #f3f5f7;
  margin: 0;
  padding: 0;
}

.wrapper {
  width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 头部区域 */
.header {
  height: 120px;
  background-color: #fff;
}
.header .wrapper {
  padding-top: 29px;
  display: flex;
  align-items: center;
  gap: 58px;
}

/* logo */
.logo a {
  display: block;
  width: 300px;
  height: 60px;
  background-image: url(../images/logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  text-indent: -9999px; /* 将文字移出可视区域 */
  overflow: hidden; /* 确保文字被裁剪 */
  background-position: center;
}

.nav {
  flex: 1; 
  min-width: 200px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.nav::-webkit-scrollbar {
  display: none;
}
.nav ul {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 0;
  margin: 0;
  list-style: none;
}
.nav li {
  margin-right: 24px;
  flex-shrink: 0;
}
.nav li a {
  display: block;
  padding: 12px 8px;
  line-height: 27px;
  font-size: 19px;
  color: #333;
  text-decoration: none;
}
.nav li .active,
.nav li a:hover {
  border-bottom: 2px solid #00a4ff;
}

.su {
  display: flex;
  justify-content: space-evenly;
}

/* 搜索 */
.search {
  flex: 0 0 auto;
  display: flex;
  align-items: center; /* 推荐：比 align-self 更好控制整体垂直居中 */
  padding-left: 19px;
  padding-right: 12px;
  width: 240px;
  height: 30px;
  background-color: #f3f5f7;
  border-radius: 20px;
  box-sizing: border-box; /* 防止 padding 影响宽度 */
}

.search input {
  flex: 1;
  border: none;
  background-color: transparent;
  outline: none;
  font-size: 14px;
  color: #333;
  padding: 0; /* 可选：去除内边距，让文字靠左对齐 */
}

.search input::placeholder {
  color: #999;
  font-size: 14px;
}

.search button {
  width: 18px;
  height: 18px;
  margin-left: 6px; /* 与输入框保持一点间距 */
  background-image: url(../images/放大镜.png);
  background-size: contain; /* 推荐：比 cover 更适合图标，避免裁剪 */
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent; /* 关键：确保背景透明 */
  border: none;
  outline: none;
  cursor: pointer; /* 显示手型光标 */
  opacity: 0.8; /* 美观：轻微透明感 */
  transition: opacity 0.2s; /* 点击反馈 */
  flex-shrink: 0; /* 防止被压缩 */
}

/* 悬停效果 */
.search button:hover {
  opacity: 1;
}

/* 焦点样式：更友好且可访问 */
.search button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.4);
}

/* 可选：暗色模式适配（如果网站支持） */
@media (prefers-color-scheme: dark) {
  .search {
    background-color: #333;
  }
  .search input,
  .search input::placeholder {
    color: #ccc;
  }
}
/* .search {
  flex: 0 0 auto;
  display: flex;
  padding-left: 19px;
  padding-right: 12px;
  width: 240px;
  height: 30px;
  background-color: #f3f5f7;
  border-radius: 20px;
}
.search input {
  flex: 1;
  border: 0;
  width: 100%;
  background-color: transparent;
  outline: none;
}
.search input::placeholder {
  font-size: 14px;
  color: #999;
}
.search button {
  align-self: center;
  width: 16px;
  height: 16px;
  background-image: url(../images/放大镜.png);
  background-size: cover;
  background-repeat: no-repeat;
  display: block;
  border: none;
}

.search button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
} */

/* 用户 */
.user {
  flex: 0 0 auto;
  margin-top: 3px;
  margin-left: 30px;
}

.user img {
  margin-right: 7px;
  vertical-align: middle;
  border-radius: 20px;
  width: 40px;
  height: 40px;
  object-fit: cover;
}
.user span {
  font-size: 16px;
  color: #666;
}

/* banner区域 */
.banner {
  height: 420px;
  background-color: #EED2EE;
}
.banner .wrapper {
  display: flex;
  justify-content: space-between;
  height: 420px;
  background-image: url(../images/折木夫妇.png);
  background-repeat: no-repeat;
  background-position: center;
}
/* 侧导航 */
.banner .left {
  padding: 3px 20px;
  width: 191px;
  height: 420px;
  background-color: rgba(0,0,0,0.42);
}
.banner .left a {
  display: block;
  height: 46px;
  background: url(../images/向右箭头.png) no-repeat right center;
  line-height: 46px;
  font-size: 16px;
  color: #fff;
}
.banner .left a:hover {
  color: #EE82EE;
}
/* 列表 */
.banner .right {
  margin-top: 60px;
  width: 218px;
  height: 305px;
  background-color: #FFE1FF;
  border-radius: 10px;
}
.banner .right h3 {
  margin-left: 14px;
  height: 48px;
  line-height:48px;
  font-size: 15px;
  color: #CD00CD;
  font-weight: 400;
}
.banner .right .content {
  padding: 14px;
  height: 257px;
  background-color: #fff;
  border-radius: 10px;
}
.banner .right dl {
  margin-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}
.banner .right dt {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}
.banner .right dd {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 16px;
}
.banner .right dd span {
  color: #CD00CD;
}
.banner .right dd strong {
  color: #7d7d7d;
  font-weight: 400;
}
.banner .right a {
  display: block;
  height: 32px;
  background-color: #EE82EE;
  text-align: center;
  line-height: 32px;
  font-size: 14px;
  color: #fff;
  border-radius: 15px;
}

/* 角色 */
.character {
  display: flex;
  margin-top: 11px;
  padding: 0 20px;
  height: 60px;
  background-color: #fff;
  box-shadow: 0px 1px 2px 0px rgba(211,211,211,0.5);
  line-height: 60px;
}
.character h3 {
  font-size: 18px;
  color: #EE82EE;
  font-weight: 400;
}
.character ul {
  flex: 1;
  display: flex;
}
.character ul li a {
  padding: 0 24px;
  border-right: 1px solid #e0e0e0;
}
.character ul li:last-child a {
  border-right: 0;
}
.character .modify {
  font-size: 16px;
  color: #EE82EE;
}

/* 文章区 */
.article {
  margin-top: 15px;
}
/* 标题 - 公共类 */
.hd {
  display:flex;
  justify-content: space-between;
  height: 60px;
  line-height: 60px;
}
.hd h3 {
  font-size: 21px;
  font-weight: 400;
}
.hd .more {
  padding-right: 20px;
  background: url(../images/向右箭头.png) no-repeat right center;
  font-size:14px;
  color: #999;
}
/* 文章内容 - 公共类 */
.bd ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.bd li {
  margin-bottom: 14px;
  width: 228px;
  height: 271px;
  background-color: pink;
}
.bd li .pic {
  height: 156px;
}
.bd li .text {
  padding: 20px;
  height: 115px;
  background-color: #fff;
}
.bd li .text h4 {
  margin-bottom: 13px;
  height: 40px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}
.bd li .text p {
  font-size: 14px;
  line-height: 20px;
  color: #999;
}
.bd li .text p span {
  color: #fa6400
}
.bd li .text p i {
  font-size: normal;
}

/* 前端 */
.hd ul {
  display: flex;
}
.hd li {
  margin-right: 60px;
  font-size: 16px;
}
.hd li .active {
  color:#00a4ff;
}
.bd {
  display: flex;
  justify-content: space-between;
}
.bd .left {
width: 228px;
height: 386px;
}
.bd .right {
width: 957px;
background-color: pink;
margin-bottom: 15px;
height: 100px;
}

/* 版权 */
.footer {
  margin-top: 60px;
  padding-top: 60px;
  height: 273px;
  background-color: #fff;
}
.footer .wrapper {
  display: flex;
  justify-content: space-between;
}
.footer .left {
  width: 440px;
  background-color: #fff;
}
.footer .left p {
  margin-top: 24px;
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 17px;
  color: #666;
}
.footer .left .download {
  display: block;
  width: 120px;
  height: 36px;
  border: 1px solid #00a4ff;
  text-align: center;
  line-height: 34px;
  font-size: 16px;
  color: #00a4ff;
}
.footer .right {
  display: flex;
}
.footer .right dl {
  margin-left: 130px;
}
.footer .right dt {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 23px;
}
.footer .right a {
  font-size: 14px;
  color: #666;
  line-height:24px;
}

/* 自定义提示框样式 */
.custom-alert {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.custom-alert-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 300px;
  text-align: center;
}

.custom-alert-content p {
  margin: 0 0 15px;
  color: #333;
  font-size: 14px;
}

.custom-alert-content button {
  background-color: #1a73e8;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.custom-alert-content button:hover {
  background-color: #1557b0;
}

/* 手机模式 */
@media screen and (max-width: 460px) {
      /* 移除固定宽度，适配移动端 */
    html {
      min-width: auto;
      overflow-x: hidden;
    }

    .wrapper {
      width: 100%;
      padding: 0 15px;
      box-sizing: border-box;
    }

    /* 头部区域适配 */
    .header {
      height: auto;
      padding: 15px 0;
    }

    .header .wrapper {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 15px;
      padding-top: 10px;
    }

    .logo a {
      display: block;
      width: 100%;
      max-width: 180px;
      height: 40px;
      background-size: contain;
      margin: 0 auto;
    }

    .nav {
      overflow-x: hidden;
      white-space: normal;
      padding: 0 10px;
    }

    .nav ul {
      align-items: center;
    }

    .nav li {
      margin: 8px 0;
      text-align: center;
    }

    .nav li a {
      font-size: 16px;
      padding: 10px 10px;
    }

    /* 用户区域 */
    .user {
      display: flex;
      gap: 10px;
       }

    .user a {
      font-size: 12px;
      padding: 6px 8px;
      text-decoration: none;
      border-radius: 4px;
     }

    .btn-login {
      background-color: #f3f3f3;
      color: #333;
      border: 1px solid #ccc;
    }

    .btn-login:hover {
      background-color: #e0e0e0;
    }

   .btn-register {
    background-color: #e74c3c;
    color: white;
    border: none;
    }

    .btn-register:hover {
      background-color: #c0392b;
    }

    /* Banner 区域适配 */
    .banner {
      height: 100%;
    }

    .banner .right{
      display:none;
    }

    .banner .wrapper {
      background-image: none;
      padding: 0;
    }

    .banner .left {
      width: 100%;
    }

    .banner .left a {
      font-size: 15px;
      line-height: 40px;
    }

    .character{
      display:none;
    }

    /* 文章区适配 */
    .article .hd {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }

    .article .hd h3 {
      font-size: 18px;
    }

    .article .bd {
      flex-direction: column;
    }

    .article .bd li {
      width: 100%;
      margin-bottom: 15px;
      height: auto;
    }

    .article .bd li .pic img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .article .bd li .text {
      padding: 15px;
    }

    .article .bd li .text h4 {
      font-size: 16px;
      height: auto;
      margin-bottom: 10px;
    }

    .article .bd li .text p {
      font-size: 14px;
    }

    /* 轻音少女专栏适配 */
    .bd.wrapper {
      flex-direction: column;
      padding: 15px;
    }

    .bd.wrapper{
      display: none;
    }

    .k-on{
      display: none;
    }

    .bd .left,
    .bd .right {
      width: 100%;
    }

    .bd .left img {
      width: 100%;
      height: auto;
    }

    .bd .top img,
    .bd .bottom img {
      width: 100%;
      height: auto;
    }

    .tab-content {
      margin-top: 15px;
    }

    .scroll-list li {
      width: 100%;
      margin-bottom: 12px;
    }

    .scroll-list li .pic img {
      width: 100%;
      height: 80px;
      object-fit: cover;
    }

    .scroll-list li .text h4 {
      font-size: 15px;
    }

    /* 版权区域适配 */
    .footer {
      margin-top: 30px;
      padding-top: 30px;
    }

    .footer .wrapper {
      flex-direction: column-reverse;
      gap: 20px;
    }

    .footer .left,
    .footer .right {
      width: 100%;
      text-align: center;
    }

    .footer .right {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
    }

    .footer .right dl {
      margin-left: 20px;
      margin-bottom: 15px;
    }

    .footer .left p {
      font-size: 13px;
      line-height: 1.5;
    }

    .footer .download {
      margin: 10px auto;
    } */

    /* 自定义提示框适配 */
    .custom-alert-content {
      max-width: 90%;
      padding: 15px;
    }

    .custom-alert-content button {
      padding: 6px 12px;
      font-size: 14px;
    }

    /* 移除滚动条样式 */
    .nav::-webkit-scrollbar {
      display: none;
    }

    /* 禁用水平滚动 */
    body {
      overflow-x: hidden;
    }

    /* 标题更多链接 */
    .more {
      font-size: 14px;
      color: #666;
    }

    /* Tab 导航垂直排列 */
    .tab-nav {
      flex-direction: column;
      margin: 15px 0;
    }

    .tab-nav li {
      margin: 5px 0;
    }

    .tab-nav li a {
      padding: 8px 15px;
      font-size: 14px;
    }

    /* 图片 */
  .picture img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
}