:root {
  --bg-color: #f9f9f9;
  --text-color: #3d3d3d;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  --border-color: #f2f2f2;
  --hover-bg: #eee;
  --primary-color: #ff7f00;
  --header-bg: rgba(255, 255, 255, 0.3);
  --header-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  --link-color: #000000;
  --selection-bg: #ff7f00;
  --selection-color: #fff;
  --search-bg: rgba(255, 255, 255, 0.85);
  --search-type-bg: rgba(173, 173, 173, 0.4);
  --search-type-active: rgba(255, 253, 253, 0.85);
  --nav-bg-color: rgb(255, 255, 255, 0.85); 
  --ico-bg-color: rgb(255 255 255 / 0%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1a1a1a;
  --text-color: #fff;
  --card-bg: rgba(45,45,45,0.85);
  --card-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  --border-color: #3d3d3d;
  --hover-bg: #3d3d3d;
  --header-bg: rgba(45, 45, 45, 0.9);
  --header-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  --link-color: #ddd;
  --search-bg: rgba(45, 45, 45, 0.85);
  --search-type-bg: rgba(85, 85, 85, 0.4);
  --search-type-active: rgba(45, 45, 45, 0.85);
  --nav-bg-color: rgb(57, 56, 56, 0.85);
  --ico-bg-color: rgb(60 60 60 / 0%);
  }
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Microsoft YaHei UI", Roboto, Noto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  transition: background 0.3s, color 0.3s;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-color);
}

/* 2025.6.16 调整顶部字体颜色*/
a.top-text {
    color: #ff7f00;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.header {
  position: absolute;
  width: 100%;
  height: 60px;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s;
}

.logo {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    height: 55px;
    width: 220px;
    padding: 8px 0;
}

.logo img {
  height: 100%;
}

.nav {
    display: flex;
    margin-left: auto;
    font-size: 14px;
    float: right;
}

.nav li {
  margin-left: 20px;
  position: relative;
}

.nav li a {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 10px;
}

.nav li a i {
  margin-right: 5px;
}

.nav li::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-color);
  transition: width 0.3s;
}

.nav li:hover::after {
  width: 100%;
}

ul, li {
    list-style: none;
    /* padding: 0; */
    /* margin: 0; */
}

.banner
 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 300px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.search-type {
  display: flex;
  margin-bottom: 15px;
  z-index: 1;
}
.search-type .title {
    padding: 8px 15px;
    white-space: nowrap;
}
.search-type li {
  color: white;
  background: var(--search-type-bg);
  padding: 8px 15px;
  margin: 0 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.search-type li.active,
.search-type li:hover {
  background: var(--search-type-active);
  color: var(--primary-color);
}

.search-main {
  display: flex;
  width: 80%;
  max-width: 700px;
  z-index: 1;
}

.search-input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
  background: var(--card-bg);
  color: var(--text-color);
  outline: none;
}

.search-btn {
  padding: 0 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.search-btn:hover {
  background: #e67300;
}

.card {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  margin: 15px 0;
  overflow: hidden;
}

.card-head {
  padding: 12px 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.card-head i {
  margin-right: 8px;
  color: var(--primary-color);
}

.card-body {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
}

.item {
  width: 16.666%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s;
}

@media (max-width: 992px) {
  .item {
    width: 20%;
  }
}

@media (max-width: 767px) {
  .item {
    width: 25%;
  }
}

@media (max-width: 576px) {
  .item {
    width: 33.333%;
  }
}

.item:hover {
  transform: translateY(-5px);
}

.icon {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  background-color: var(--ico-bg-color);
  border-radius: 9px;
}

.icon img {
  border-radius: 9px;
  max-width: 100%;
  max-height: 100%;
}

.name {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.clicks {
  color: var(--primary-color);
  font-size: 12px;
  margin-top: 3px;
}

.private-tag {
  color: #ff5252;
  font-size: 10px;
  margin-top: 2px;
}

.login-notice {
  width: 100%;
  text-align: center;
  padding: 10px;
  background: var(--hover-bg);
  border-radius: 4px;
  margin-top: 10px;
}

.login-notice a {
  color: var(--primary-color);
  font-weight: bold;
}

.top-grid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.top-grid .item {
  width: 14.285%;
}

@media (max-width: 992px) {
  .top-grid .item {
    width: 20%;
  }
}

@media (max-width: 767px) {
  .top-grid .item {
    width: 25%;
  }
}

.sub-category {
  width: 100%;
  padding: 8px;
  font-weight: bold;
  color: var(--primary-color);
  border-bottom: 1px dashed var(--border-color);
  margin-bottom: 8px;
}

.links {
  margin: 20px 0;
}

.links .card-body {
  display: block;
  text-align: center;
}

.links a {
  display: inline-block;
  margin: 5px;
  padding: 5px 15px;
  background: var(--hover-bg);
  border-radius: 20px;
  transition: all 0.3s;
}

.links a:hover {
  background: var(--primary-color);
  color: white;
}

.suspend {
  position: fixed;
  right: 20px;
  bottom: 20px;
  list-style: none;
}

.suspend li {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.suspend li:hover {
  transform: scale(1.1);
}

.suspend li .more {
  position: absolute;
  right: 50px;
  color: var(--text-color);
  background: var(--card-bg);
  padding: 5px 10px;
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}

.suspend li:hover .more {
  opacity: 1;
  right: 60px;
  pointer-events: auto;
}

.back-top {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
}

.back-top.show {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
}

p {
    margin: 5px 0;
}

.theme-switcher {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: var(--card-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  z-index: 100;
}

/* 暗黑模式切换动画 */
body[data-theme="dark"] {
  transition: background 0.5s, color 0.5s;
}

@media (min-width: 767px) {
    .header.fixed {
        height: 55px;
    }

    .header.fixed a {
        color: #666;
    }
    .nav-bar {
        display: none;
    }
}
  .banner {
    height: 300px;
  }
.nav-bar {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    z-index: 1000;
    cursor: pointer;
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -o-transform: scale(0.8);
    transform: scale(0.8);
    -webkit-transition: transform .3s;
    -moz-transition: transform .3s;
    -o-transition: transform .3s;
    transition: transform .3s;
}

.nav-bar.active {
    -webkit-transform: rotateZ(90deg) scale(0.8);
    -moz-transform: rotateZ(90deg) scale(0.8);
    -o-transform: rotateZ(90deg) scale(0.8);
    transform: rotateZ(90deg) scale(0.8);
}

.nav-bar span {
    position: absolute;
    left: 0;
    right: 0;
    margin: 24px auto;
    width: 25px;
    height: 2px;
    background: #aaa;
    border-radius: 25px;
}

.nav-bar span::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 0;
    width: 16px;
    height: 2px;
    background: #aaa;
    border-radius: 25px;
}

.nav-bar span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 16px;
    height: 2px;
    background: #aaa;
    border-radius: 25px;
}

.logo {
    display: inline-flex;
    justify-content: center;
    height: 55px;
    width: 220px;
    padding: 8px 0;
}

/* 响应式调整 */

@media (max-width: 576px) {
  .banner {
    height: 300px;
  }
  
  .search-type {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .search-type li {
    margin: 5px;
    padding: 6px 12px;
  }
  
  .item {
    width: 33.33%;
  }
  
  .nav {
    display: none;
  }
  
  .nav.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
  }
  
  .nav li {
    margin: 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav li a {
    padding: 15px;
  }
  
  .nav-bar {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 50px;
    height: 50px;
    z-index: 1000;
    cursor: pointer;
    transform: scale(0.8);
    transition: transform 0.3s;
  }
}

@media (min-width: 767px) {
    .header.fixed {
        height: 55px;
    }

    .header.fixed a {
        color: #666;
    }

    .nav-bar {
        display: none;
    }
}
.nav-bar {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    z-index: 1000;
    cursor: pointer;
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -o-transform: scale(0.8);
    transform: scale(0.8);
    -webkit-transition: transform .3s;
    -moz-transition: transform .3s;
    -o-transition: transform .3s;
    transition: transform .3s;
}

.nav-bar.active {
    -webkit-transform: rotateZ(90deg) scale(0.8);
    -moz-transform: rotateZ(90deg) scale(0.8);
    -o-transform: rotateZ(90deg) scale(0.8);
    transform: rotateZ(90deg) scale(0.8);
}

.nav-bar span {
    position: absolute;
    left: 0;
    right: 0;
    margin: 24px auto;
    width: 25px;
    height: 2px;
    background: #aaa;
    border-radius: 25px;
}

.nav-bar span::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 0;
    width: 16px;
    height: 2px;
    background: #aaa;
    border-radius: 25px;
}

.nav-bar span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 16px;
    height: 2px;
    background: #aaa;
    border-radius: 25px;
}

/* 6.16 增加logo字体设置 */
p.logo {
    color: #ff7f00;
    font-size: x-large;
    display: grid;
    height: 60px;
    align-items: end;
}

.logo {
    display: inline-flex;
    justify-content: center;
    height: 55px;
    width: 220px;
    padding: 8px 0;
}

@media (max-width: 767px) {
    .logo {
        display: flex;
        margin-left: 1px;
        height: 48px;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .search-type, .search-main {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .search-type .title {
        padding: 4px 10px;
    }
}

@media (max-width: 767px) {
    .nav {
        flex-direction: column;
        position: fixed;
        top: 52px;
        right: 0;
        float: none;
        margin-left: 0;
        opacity: 0;
        visibility: hidden;
        text-align: right;
        z-index: 999;
        -webkit-transition: all .3s ease-in-out;
        -moz-transition: all .3s ease-in-out;
        -o-transition: all .3s ease-in-out;
        transition: all .3s ease-in-out;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
    }
}
.nav li {
    position: relative;
}

.nav.show li {
    -webkit-transform: translateX(-105%);
    -moz-transform: translateX(-105%);
    -o-transform: translateX(-105%);
    transform: translateX(-105%);
}

.nav.show li:nth-child(even) {
    transition-duration: .4s;
}

.nav li::after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    left: 50%;
    bottom: 0;
    background: #ff7f00;
    border-radius: 4px;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.nav li.active::after, .nav li:hover::after {
    width: 100%;
    margin-left: -50%;
}
@media (max-width: 767px) {
    .nav li {
        right: 0;
        -webkit-transition: all .3s ease-in-out;
        -moz-transition: all .3s ease-in-out;
        -o-transition: all .3s ease-in-out;
        transition: all .3s ease-in-out;
    }

    .nav li::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .nav li a {
        padding: 8px 8px 8px 15px;
        font-size: 14px;
        color: var(--text-color);
        height: auto;
        line-height: normal;
        margin: 3px 0;
        background: var(--nav-bg-color);
        box-shadow: 0 0 8px #ccc;
        border-radius: 25px 0 0 25px;
    }

    .nav li a:hover, .nav li a.active {
        color: #fff;
        background: #ff7f00;
        box-shadow: 0 0 8px #ff7f00;
    }
}

@media (min-width: 767px) {
    .transparent-mark {
        display: none;
    }
}

@media (max-width: 767px) {
    .banner {
        height: 280px;
        padding-top: 25px;
    }
}

@media (max-width: 480px) {
    .search-type li {
        padding: 4px 12px;
    }
}

@media (max-width: 480px) {
    .search-main .search-input {
        padding: 4px 12px;
        font-size: 14px;
    }
}

.search-main .search-btn {
    width: 100px;
    height: 45px;
    font-size: 15px;
    color: #fff;
    margin-left: -1px;
    border-radius: 0 4px 4px 0;
    background: rgba(255, 127, 0, 0.85);
    cursor: pointer;
}

@media (max-width: 480px) {
    .search-main .search-btn {
        height: 38px;
        width: 80px;
        font-size: 14px;
    }
}
/* 背景图片 */
.banner-video {
    position: absolute;
    width: 100%;
    overflow: hidden;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: -1;

}

.banner-video img {
    object-fit: cover;
    width: 100%;
    height: 100vh;
}

.top-cover {
    width: 100%;
    height: 50%;
    position: absolute;
    top: 0;
    z-index: 10;
    background-image: linear-gradient(var(--bg-color) 0%, rgba(255, 255, 255, 0) 15%);
}

.bottom-cover {
    width: 100%;
    height: 50%;
    position: absolute;
    bottom: -1px;
    z-index: 10;
    background-image: linear-gradient(rgba(255, 255, 255, 0) 0%, var(--bg-color) 90%, var(--bg-color) 90%);
}

/* 登录表单 */
.login-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--shadow-color);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
}

.btn:hover {
    background: #2980b9;
}

.alert {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}
/* 验证码 */
.form-group strong {
    letter-spacing: 3px;
    color: #2c3e50;
    font-size: 1.2em;
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 5px;
}