/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 字体设置 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', Roboto, sans-serif;
    line-height: 1;
    color: #333;
    background: #f5f7fa;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 添加漂浮粒子 - 改回紫色 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
ul,li{list-style: none; }
a{color: #333;text-decoration: none;outline: none;}
a:hover{color: #c11b25;text-decoration: underline;}
/* logo  */
.logo-box {
    width: 1300px;
    display: flex;
    overflow: hidden;
    margin: 0 auto;
    align-items: center;
    margin-bottom: 0px;
}
.logo-left {
    position: relative;
    width: 198px;
    height: 70px;
    cursor: pointer;
}
.logo-left img {display: block;margin:8px auto 0 auto;width: 198px;height: 60px;}
.logo-right {
    width: 100%;
    color: rgba(0, 0, 0, 1);
    height: 70px;
    text-align: right;
    padding-top: 22px;
    vertical-align: middle;
}
.logo-right img{width: 20px; height: 20px; margin:-5px 3px 0 0;vertical-align: middle;}
.logo-right a{padding: 5px 5px 5px 5px;font-size: 16px;color: #333;text-decoration: none;border-radius:2px;background:#fff;}
.logo-right a:hover{color: #c11b25;text-decoration: underline;}
/* logo end  */
.website-wrap {width: 1300px;margin: 0 auto;padding-top: 15px;position: relative}
.website-wrap .preset-list {height: 95px;overflow: hidden;}
.website-wrap .preset-list li {float: left;margin-left: 10.5px;box-shadow: 0 0 5px rgb(0 0 0 / 10%);}
.website-wrap .preset-list li a {display: block; width: 71px;height: 90px;background-color: #fff;border: 2px solid #fff;border-radius: 2px;}
.website-wrap .preset-list li a:hover {border-color: #c11b25;}
.website-wrap .preset-list li a .pic {display: block;width: 55px;height: 55px;margin: 7px auto 0;border-radius: 12px;}
.website-wrap .preset-list li a .title {display: block;width: 100%;height: 18px;font-size: 12px;text-align: center;margin-top: 6px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}

.category-top {width: 100%;margin:1rem 0;position: relative;border-radius:4px;border: 1px solid #e8ebf9; background-color: rgba(255, 255, 255, 0.7);overflow: hidden;}
.category-top a{color: #FF0000; font-size: 0.98rem;overflow: hidden;}
.category-top a:hover{color: #c11b25;text-decoration: underline;}
.category-top ul{white-space: nowrap;overflow: hidden;overflow: hidden;}
.category-top li{display: block;float: left;line-height: 2.3rem;margin:0 5px 0 5px;overflow: hidden;}
.category-top ul li img{width: 20px; height: 20px; margin:-5px 5px 0 0;vertical-align: middle;}

/* 主容器 */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* 主要内容区域 */
.main {
    display: grid;
    margin-bottom: 0rem;
    padding-bottom: 0rem;
    flex: 1;
}

/* 分类卡片样式 - 移除流动边框特效 */
.category-card {
    border-radius: 3px;
    padding: 0.5rem 0 0 0.5rem 0rem;;
    margin-bottom: 0.8rem;
    position: relative;
    overflow: hidden;
}

/* 发光效果 - 改回紫色 */


/* 分类头部 */
.category-header {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8ebf9;
}
.category-header .more{position: absolute;top: 15px;right: 6px;font-size: 0.8rem;color: #333;}
.category-header .more:hover{color: #c11b25;}

.category-icon img {
    width: 20px; height: 20px; 
    font-size: 1rem;
    margin-right: 0.75rem;
    display: inline-block;
    color: #333;
}


.category-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    position: relative;
    margin-right: 1.5rem;
}

/* 链接网格 */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(216.6px, 1fr));
    gap: 0rem;
}
.links-griddh {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    gap: 0rem;
}
/* 导航链接样式 */
.nav-linkdh {
    color: #fff;
    display: flex;
    padding: 0.6rem 0.3rem 0.6rem 0.6rem;
    margin: 0.3rem 0.3rem 0.3rem 0.3rem;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    background:#c11b25;
}


.nav-linkdh:hover::before {text-align: center;line-height: 28px;}

.nav-linkdh:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px #ccc;
}

.nav-link {
    display: flex;
    align-items: center; 
    padding: 0.6rem 0.3rem 0.6rem 0.5rem;
    margin: 0.3rem;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    background:#fff;
}


.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #c11b25;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px #ccc;
    
}

/* 图标样式 */
.link-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.2rem;
    display: inline-block;
    transition: all 0.3s ease;
    opacity: 1;
    position: relative;
    z-index: 1;
}

/* 网站favicon图标样式 */
.site-favicon {
    width: 20px;
    height: 20px;
    margin-right: 0.2rem;
    border-radius: 3px;
    transition: all 0.3s ease;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.nav-link:hover .link-icon,
.nav-link:hover .site-favicon {
background: rgba(196, 181, 253, 0.25);
}

/* 底部样式 */
.footer {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #e8ebf9;
    margin-top: auto;
    position: relative;
    line-height: 1.5rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
}

.footer p {
    font-size: 0.875rem;
    color: #333;
}
.footer p a {margin: 0 0.2rem;}
#rfloat {position: fixed;right: 0;opacity: .8;bottom: 50px;color: rgb(40, 43, 53);box-shadow: 0 0 10px rgb(0 0 0 / 23%); border-radius: 5px 0 0 5px;z-index: 99;}
#rfloat ul {width: 55px;margin: 0;padding: 0;text-align: center;z-index: 99;opacity: 1;background: #fff; border-radius: 5px 0 0 5px;}
#rfloat ul li {margin: 0;}
#rfloat ul li a {padding: 5px 0px;color: #333;display: block;font-size: 0.94rem;}
#rfloat ul li a:hover {opacity: 0.6;}
.shang {border-top: 1px solid #ccc;}
/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0.2rem;
    }
    
.logo-box {
    width: 100%;
    display: flex;
    overflow: hidden;
    margin: 0 auto;
    align-items: center;
    height: 60px;
    margin-bottom: 0.8rem;
}
.logo-left {
    position: relative;
    width: 157px;
    height: 50px;
    cursor: pointer;
}
.logo-left img {display: block;margin:5px auto;width: 157px;height: 50px;}
.logo-right {
    width: 100%;
    color: rgba(0, 0, 0, 1);
    vertical-align: middle;
}
.logo-right img{width: 0.5rem; height: 0.5rem; margin:0;vertical-align: middle;}
.logo-right a{font-size: 0.5rem;color: #333;margin:0;padding: 0;text-decoration: none;}
.logo-right a:hover{color: #c11b25;text-decoration: underline;}

.website-wrap {display:none;}
.category-top li{display:none;}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0rem;
}
.links-griddh {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0rem;
}
.nav-linkdh {
    color: #fff;
    display: flex;
    padding: 0.5rem 0.3rem 0.5rem 0.5rem;
    margin: 0.3rem 0.3rem 0.3rem 0.3rem;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    background:#c11b25;
}
.footer p {font-size: 0.6rem;}

}

@media (max-width: 480px) {
    .title {
        font-size: 1.5rem;
    }
    
.logo-box {
    width: 100%;
    display: flex;
    overflow: hidden;
    margin: 0 auto;
    align-items: center;
    height: 60px;
    margin-bottom: 0.8rem;
}
.logo-left {
    position: relative;
    width: 157px;
    height: 50px;
    cursor: pointer;
}
.logo-left img {display: block;margin:5px auto;width: 157px;height: 50px;}
.logo-right {
    width: 100%;
    color: rgba(0, 0, 0, 1);
    vertical-align: middle;
}
.logo-right img{width: 0.5rem; height: 0.5rem; margin:0;vertical-align: middle;}
.logo-right a{font-size: 0.5rem;color: #333;margin:0;padding: 0;text-decoration: none;}
.logo-right a:hover{color: #c11b25;text-decoration: underline;}

.website-wrap {display:none;}
.category-top li{display:none;}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0rem;}
.links-griddh {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0rem;
}
.nav-linkdh {
    color: #fff;
    display: flex;
    padding: 0.5rem 0.3rem 0.5rem 0.5rem;
    margin: 0.3rem 0.3rem 0.3rem 0.3rem;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    background:#c11b25;
}

.footer p {font-size: 0.6rem;}
}
/* 自定义动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes backgroundPulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.05);
    }
}

@keyframes particleFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

@keyframes subtleFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes titleGlow {
    0%, 100% { 
        opacity: 0.3; 
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.6; 
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes subtitlePulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

@keyframes footerGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes adGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.category-card {
    animation: fadeInUp 0.8s ease forwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }

