body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: rgb(248, 249, 252);
    background-image: radial-gradient(70% 55% at 5% 25%, rgba(165, 210, 255, 0.35) 0%, transparent 50%), radial-gradient(55% 45% at 95% 85%, rgba(196, 181, 253, 0.2) 0%, transparent 45%);
    min-width: 600px;
}
.header {
    min-height: 64px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    color: #4e5358;
    background-color: #ffffff;
    box-shadow: 0 0 1px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .1);
    z-index: 997;
    border-radius: 8px;
}

.header_bar {
    display: flex;
    justify-content: space-between;
    top: 0;
    z-index: 998;
    align-items: center;
    width: 70%;
    min-width: 500px;
    max-width: 1280px;
    margin: auto;
    padding: 10px 20px;
    flex-direction: column;
    box-shadow: inset 0 -1px 0 #E3E5E7 !important;
    gap:10px;
    position: relative;
}

.head-gif-link {
    position: absolute;
    right: 20px;
    display: inline-block;
    display: flex;
    flex-direction: row-reverse;
}

.header_bar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.header_bar .keep {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.keep-left {
    position: absolute;
    left: 0;
    width: 15%;
    padding-right: 5%;
}

.keep-mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 68%;
}

.keep-right {
    position: absolute;
    right: 0;
    width: 15%;
    max-width: 140px;
    padding-left: 5%;
}

.header_bar p {
    margin: 0;
}

.header #h1{
    position: relative; 
    font-size: 26px;
    font-weight: 600;

    margin-bottom: 3px;
    padding-bottom: 10px;
}

.header #h2{
    font-size: 18px;
    font-weight: 600;
}

.header #h1::before{
    left: 0;
    right: 0;
    margin: auto;
    transform-origin: center;
    position: absolute;
    content: '';
    width: 90px;
    height: 4px;
    background: #47bfff;
    transition: .4s;
    bottom: 3px;
    border-radius: 5px;
    box-shadow: 1px 1px 3px -1px var(--theme-color);
}

.header #h1:hover:before{
    width: 168px;
}

.blink {
    animation: colorfulFlash 0.5s infinite;
}

@keyframes colorfulFlash {
    0%   { color: #a14fe9; }  /* ç´«è‰² */
    25%  { color: #4917ff; }  /* ç²‰è‰² */
    50%  { color: #a14fe9; }  /* ç²‰è‰² */
    75%  { color: #ff17b2; }  /* ç²‰è‰² */
    100% { color: #a14fe9; }  /* å›žåˆ°ç´«è‰² */
}

.float {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* li.ad 元素宽度与上层 keep 元素相同，内部左对齐 */
.float li.ad {
    width: 100%;
    min-width: 500px;
    max-width: 1280px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
}

/* 字体大小自适应为一行显示 */
.float li.ad p {
    font-size: clamp(10px, 2.5vw, 16px);
    line-height: 1.4;
    text-align: center;
}

.keep {
    margin-right: 20px;
    text-decoration: none;
    font-size: 16px;
}

/* 限免资源邀请码卡片样式 */
.keep-left ul {
    background: linear-gradient(135deg, #f8fcff 0%, #f0f7ff 100%);
    border-radius: 8px;
    border: 0.1em solid #182f4d38;
    padding: 4px 14px;
    text-align: center;
    min-width: 156px;
}

.keep-left ul li {
    color: #4e5358;
    line-height: 1.2;
    padding: 2px 0;
}

.keep-left ul li:first-child {
    font-weight: 600;
    color: #333;
    margin: 5px;
    font-size: 15px;
}

.keep-left ul li:last-child {
    font-weight: 700;
    color: #47bfff;
    letter-spacing: 0.5px;
    border: 1px solid #cbced1;
    border-radius: 8px;
    background-color: white;
    font-size: 20px;
}

.layout {
    width: 70%;
    min-width: 380px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 20px;
    background-color: white;
    box-shadow: 0 0 1px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .1);
    min-height: calc(100vh - 310px);
    border-radius: 8px;
}
/* Header 滚动效果 */
.header {
    transition: all 0.3s ease;
}

.header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: 92px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled .float {
    display: none;
}

.channel {
    display: flex;
    width: 70%;
    min-width: 500px;
    max-width: 1280px;
    margin: 10px auto;
    align-items: center;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
}

.channel-icons {
    display: flex;
    align-items: center;
}

/* channel-icons 下的 a 圆形图标样式 */
.channel-icons > a {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #47bfff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.channel-icons > a:hover {
    background-color: #47bfff !important;
    color: #ffffff;
}

/* 高亮状态 */
.channel-icons > a.active {
    background-color: #47bfff !important;
    color: #ffffff;
}

.channel-all {
    background-color: #f1eef9;
}

.channel-win {
    background-color: #f1eef9;
}

.channel-mac {
    background-color: #f1eef9;
}

.channel-tags-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 1px;
    white-space: nowrap;
    user-select: none;
    background-color: #47bfff;
}

.channel-tags {
    display: grid;
    width: 100%;
    grid-auto-flow: column;
    grid-column: span 4;
    grid-gap: 5px;
    border-right: 1px solid var(--line_regular);
}

.channel-tags a{
    display: inline-block;
    box-sizing: content-box;
    border-radius: 6px;
    background-color: #f1eef9;
    color: #61666D;
    text-decoration: none;
    text-align: center;
    transition: background-color .3s, color .3s;
    height: 36px;
    line-height: 36px;
    font-size: 14px;
    letter-spacing:2px;
    min-width: 35px;
}

.channel-tags a:hover{
    background-color: #47bfff;
    color: #282a2c;
    text-decoration: none;
    transition: background-color .3s, color .3s;
    color: #ffffff;
}

/* searcher 搜索框样式 */
.searcher {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 8px 16px;
    border: 2px solid #E3E5E7;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background-color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    border-color: #47bfff;
    box-shadow: 0 0 0 3px rgba(71, 191, 255, 0.1);
}

.search-button {
    padding: 8px 24px;
    background-color: #47bfff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 76px;
}

.search-button:hover {
    background-color: #3aa3d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(71, 191, 255, 0.3);
}

.search-button:active {
    transform: translateY(0);
}

/* layout 顶部对齐浏览器上边缘，移除 margin-top */
.layout {
    margin-top: 260px;
}

.classify {
    background: radial-gradient(circle at 5% 190%, #6895ff 0%, transparent 30%), radial-gradient(circle at 55% -350%, #8ae8f7 0%, transparent 35%), radial-gradient(circle at 92% -180%, #d1efff 0%, transparent 15%), #47bfff;
    padding: 12px 16px 10px 16px;
    border-radius: 8px;
    margin: 20px 0 8px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.classify p {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

.list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 15px;
    max-width: 1280px;
    margin: 0 5px;
    padding: 10px 0;
}

.software.plat-filtered-hidden,
.list_group.plat-filtered-hidden {
    display: none;
}

.software {
    background: radial-gradient(circle at 0% 90%, #e2f1ff 0%, transparent 20%), radial-gradient(circle at 80% 10%, #ebf6ff 0%, transparent 40%), #f8fcff;
    min-width: 272px;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    transition: box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    display: inline-block;
    cursor: pointer;
    box-sizing: border-box;
    border: 0.1em solid #182f4d38;
    text-decoration: none; /* 移除 a 标签下划线 */
    color: inherit; /* 继承文字颜色 */
}

.software:hover {
    transform: none;
    background: radial-gradient(circle at 0% 90%, #f0eefd 0%, transparent 20%), radial-gradient(circle at 80% 10%, #f5f4ff 0%, transparent 40%), #ffffff;
    box-shadow: 0 4px 10px rgba(46, 6, 156, 0.3);
}

.software:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    z-index: 1003;
}

.software:hover .title p {
    color: #ff2dc0;
    text-shadow: 0 0 4px #fff, 0 0 8px #fff, 0 0 12px #fff; /* 白色外发光 */
}

.software .tooltiptext {
    visibility: hidden;
    width: 100%;
    box-sizing: border-box;
    background-color: rgb(14 3 35 / 79%);
    color: #ebf7ff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 15px;
    text-align: left;
    border: 1px dashed #8C75FF;
    line-height: 1.4;
    position: absolute;
    z-index: 10;
    bottom: 106%;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

l {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 5px 0 3px;
    color: inherit;
    font-size: 15px;
    line-height: 1.4;
    position: relative;
    color: #FFDC80;
    font-weight: 600;
    border-bottom: 1px dashed #ffffff;
    margin-bottom: 4px;
}

g {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 4px 0;
    color: #ffc417;
    font-size: 15px;
    line-height: 1.5;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    margin-bottom: 3px;
    font-weight: 600;
}

g:last-child {
    border-bottom: none;
}

.software P{
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.card_top {
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: flex-start; /* 左对齐 */
    gap: 10px; /* 图标与文字之间间距 */
}

.card_top .icon {
    flex-shrink: 0; /* 防止图标被压缩 */
    width: 40px;
    height: 40px;
}

.card_top .icon.icon-file {
    object-fit: contain;
    display: block;
    background: none;
}

.Introduction {
    flex: 1;
    min-width: 0; /* 允许 flex 子项收缩 */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    overflow: hidden; /* 隐藏超出内容 */
}

.Introduction .title,
.Introduction .title p,
.Introduction .explain,
.Introduction .explain p {
    white-space: nowrap; /* 文字不换行 */
    overflow: hidden; /* 隐藏超出内容 */
    text-overflow: ellipsis; /* 超出部分显示省略号 */
}

.title p {
    font-size: 16px;
    font-weight: 600;
    color: #4e5358;
    margin: 0;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.Introduction {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.explain p {
    font-size: 14px;
    color: #666;
    margin: 2px 0 0 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.explain span {
    display: inline-flex;
    align-items: center;
}

.explain span.win::before,
.explain span.Mac::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 4px;       /* 图标与文字间距 */
}

.explain span.win, .explain span.Mac {
    margin-top: 2px;
    margin-right: 4px;
    border: 1px dashed #2CB1F8;
    border-radius: 6px;
    padding: 0 5px;
}

span.win::before {
    background-image: url(/img/winicon.png);
}

span.Mac::before {
    background-image: url(/img/macicon.png);
}

.ph {
    min-height: calc(100vh - 600px);
}

@media (min-width: 1634px) {
    .list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1633px) and (min-width: 926px) {
    .list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 925px) and (min-width: 615px) {
    .list {
        grid-template-columns: repeat(2, 1fr);
    }
    .channel-tags-title{
        display:none
    }
    .channel-tags{
        display:none
    }
}
@media (max-width: 1279px)and (min-width: 615px){
    .layout{
        width: 96%;
    }
    .header_bar{
        width: 96%;
    }
    .channel{ 
        width: 96%;
    }
    .index-nav{
        display: none !important;
    }
}

@media (max-width: 614px){
    .list {
        grid-template-columns: 1fr;
    }
    .index_nav{
        display: block !important;
    }
    .layout{
        width: 68%;
        margin-right: 1%;
    }
    .channel-tags-title{
        display:none
    }
    .channel-tags{
        display:none
    }
    .header_bar{
        width: 96%;
    }
    .keep-left ul{
        display: none;
    }
    .channel{
        width: 96%;
        margin: 0 20px;
    }
}

/* Footer 样式 */
.footer {
    background-color: #1f272b;
    padding: 10px 20px 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
    gap: 30px;
    min-height: 100px;
}

.footer-section {
    min-width: 200px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #47bfff;
    margin: 10px 0;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #bdc3c7;
    margin: 5px 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #47bfff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #34495e;
}

.footer-bottom p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

.index-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: 0; /* JS 可以动态调整 */
  z-index: 1100;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 0 1px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .1);
  padding: 0;
  box-sizing: border-box;
}

.index-nav ul {
  margin: 0;
  padding: 10px 0;
  list-style: none;
  width: 100%; /* ul 撑满侧边栏 */
}

.index-nav li {
  width: 100%;   /* li 撑满 ul */
  margin: 6px 0;
}

.index-nav a {
  display: flex;       /* 图标+文字水平排列 */
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  border-radius: 2px;
  box-sizing: border-box;
  transition: background 0.2s, color 0.2s;
}

.index-nav a:hover {
  background: #E5F0FF;
  color: #2568FC;
}

.index-nav a.active {
    background-color: #E5F0FF; /* 高亮底色 */
    color: #2568FC;               /* 文字高亮颜色 */
    font-weight: 600;
}

.nav_ico {
  width: 24px;
  flex-shrink: 0;
  text-align: center;
}

.nav_text {
  flex: 1;
  text-align: left;
}

#indexNav .vip-link {
    background: linear-gradient(90deg, #fbb6ff, #ffde7a);
    color: #51430d !important;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 0 -5px;
}

/* ===== 搜索结果页样式 ===== */

/* 搜索结果标题栏 */
.search-result-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 0 10px;
    border-bottom: 2px solid #E3E5E7;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.search-result-title {
    font-size: 15px;
    color: #888;
}

.search-result-keyword {
    font-size: 18px;
    font-weight: 700;
    color: #47bfff;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-count {
    font-size: 13px;
    color: #aaa;
    margin-left: auto;
}

.search-result-count b {
    color: #47bfff;
}

/* 搜索无结果 / 提示空态 */
.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 12px;
    color: #888;
    font-size: 15px;
}

.search-empty-icon {
    font-size: 48px;
    line-height: 1;
}

.search-empty p {
    margin: 0;
    text-align: center;
    line-height: 1.6;
}

.search-empty-tip {
    font-size: 13px;
    color: #bbb;
}

.search-empty-tip a {
    color: #47bfff;
    text-decoration: none;
}

.search-empty-tip a:hover {
    text-decoration: underline;
}
