body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}
.header {
    min-height: 64px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    color: #4e5358;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
    z-index: 1000;
}

.header_bar {
    display: flex;
    justify-content: space-between;
    top: 0;
    z-index: 1002;
    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;
    top: 5px;
}

.header_bar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.header_bar .keep{
    display: flex;
    align-items: center;
    flex-shrink: 0;
    flex-direction: column;
}

.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;
}

.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;
}

.keep {
    margin-right: 20px;
    text-decoration: none;
    font-size: 16px;
}

.layout {
    width: 70%;
    min-width: 500px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 1080px;
}
/* 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: #EFEFEF;
}

.channel-win {
    background-color: #EFEFEF;
}

.channel-mac {
    background-color: #EFEFEF;
}

.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: #EFEFEF;
    color: #61666D;
    text-decoration: none;
    text-align: center;
    transition: background-color .3s, color .3s;
    height: 36px;
    line-height: 36px;
    font-size: 15px;
    letter-spacing:2px;
}

.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 {
    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;
}

.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;
    transition-delay: 0.3s;
    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: 104%;
    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: #b8e4ff;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    margin-bottom: 3px;
}

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;
}

.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(https://imokla.oss-accelerate.aliyuncs.com/file/img/winicon.png);
}

span.Mac::before {
    background-image: url(https://imokla.oss-accelerate.aliyuncs.com/file/img/macicon.png);
}

.ph {
    height: 300px;
}

@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{
        display:none
    }
}
@media (max-width: 1279px){
    .layout{
        width: 96%;
    }
    .header_bar{
        width: 96%;
    }
    .channel{
        width: 96%;
    }
    
}

@media (max-width: 614px){
    .list {
        grid-template-columns: 1fr;
    }
    .channel-tags{
        display:none
    }
}

/* 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;
}

.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;
}