/* ================= 全局基础样式 ================= */
body {
    font-family: "Microsoft Yahei", Arial, sans-serif;
    background-color: #f5f5f5;
    background: #ffffff;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 102, 204, 0.02) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(204, 0, 102, 0.02) 0%, transparent 20%);
    color: #333333;
    line-height: 1.4;
}

/* 通用滚动容器样式 */
.scrollable-wrapper,
.friend-links-scroll,
.search-type-wrapper {
    -ms-overflow-style: auto;
    scrollbar-width: auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 5px;
}

/* 自定义滚动条样式 */
.scrollable-wrapper::-webkit-scrollbar,
.friend-links-scroll::-webkit-scrollbar,
.search-type-wrapper::-webkit-scrollbar {
    height: 6px;
}

.scrollable-wrapper::-webkit-scrollbar-track,
.friend-links-scroll::-webkit-scrollbar-track,
.search-type-wrapper::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.scrollable-wrapper::-webkit-scrollbar-thumb,
.friend-links-scroll::-webkit-scrollbar-thumb,
.search-type-wrapper::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 3px;
}

.scrollable-wrapper::-webkit-scrollbar-thumb:hover,
.friend-links-scroll::-webkit-scrollbar-thumb:hover,
.search-type-wrapper::-webkit-scrollbar-thumb:hover {
    background: #0066cc;
}

/* 通用文字颜色样式 */
.text-primary { color: #0066cc !important; }
.text-muted { color: #666666 !important; }
.text-warning { color: #ffc107 !important; }
.text-danger { color: #dc3545 !important; }
.text-success { color: #28a745 !important; }
.text-info { color: #17a2b8 !important; }
.hover\:text-primary:hover { color: #0066cc !important; }

/* 通用空状态样式 */
.empty-state, .empty-data {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 通用卡片样式 */
.cyber-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cyber-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #ea66da, #ff7e5f, #d6c96b, #67c23a, #0099ff, #ea66da);
    background-size: 400% 400%;
    animation: rainbowGlow 4s linear infinite;
}

.cyber-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #0066cc;
    box-shadow: 0 0 8px #0066cc, 0 0 15px rgba(0, 102, 204, 0.2), 0 2px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* ================= 头部导航样式 ================= */
.top-nav {
    width: 100%;
    background: linear-gradient(135deg, #0a0e17 0%, #141b2d 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
    position: sticky;
    top: 0;
    z-index: 999;
    height: 60px;
    position: relative;
}

/* 导航底部装饰线 */
.nav-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00f0ff, #7928ca, #ff0080);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    z-index: 1000;
}

/* 导航主容器 */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 100%;
}

/* Logo样式 */
.logo-wrapper {
    display: flex;
    align-items: center;
    height: 60px;
    position: relative;
    z-index: 1001;
}

.logo-glow {
    position: relative;
    display: inline-block;
    background: transparent;
    padding: 4px;
    border-radius: 10px;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    position: relative;
    z-index: 10;
}

.logo-2 {
    height: 32px !important;
    width: auto !important;
    vertical-align: middle;
    transition: all 0.5s ease;
    filter: none !important;
    position: relative;
    z-index: 10;
    display: block;
    background: transparent !important;
    border-radius: 8px;
    padding: 2px;
}

/* Logo流光效果 */
.logo-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #ea66da, #ff7e5f, #d6c96b, #67c23a, #0099ff, #ea66da);
    background-size: 400% 400%;
    border-radius: 10px;
    z-index: 1;
    animation: rainbowGlow 4s linear infinite;
    opacity: 0.8;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 2px;
}

.logo-glow::after {
    display: none;
}

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

.logo-glow:hover::before {
    opacity: 1;
    animation: rainbowGlow 2s linear infinite;
}

.logo-2:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255,255,255,0.8);
}

/* 桌面端一级导航 */
.nav-main {
    display: flex;
    list-style: none;
    flex: 1;
    justify-content: center;
    margin: 0 20px;
}

.nav-item {
    position: relative;
    height: 60px;
    line-height: 60px;
    margin: 0 5px;
}

.nav-link {
    display: block;
    padding: 0 15px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

/* 分类配色 */
.nav-item.home .nav-link:hover { background-color: rgba(255,255,255,0.15); color: #fff; }
.nav-item.website .nav-link:hover { background-color: rgba(103, 194, 58, 0.2); color: #fff; }
.nav-item.article .nav-link:hover { background-color: rgba(230, 162, 60, 0.2); color: #fff; }
.nav-item.tool .nav-link:hover { background-color: rgba(144, 147, 153, 0.2); color: #fff; }
.nav-item.more .nav-link:hover { background-color: rgba(245, 108, 108, 0.2); color: #fff; }

/* 下拉箭头 */
.dropdown-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid rgba(255,255,255,0.7);
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* 二级菜单 - 桌面端 */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    list-style: none;
    padding: 8px 0;
    display: none;
    z-index: 1000;
    border-top: 3px solid transparent;
}

.nav-item.website .nav-dropdown { border-top-color: #67c23a; }
.nav-item.article .nav-dropdown { border-top-color: #e6a23c; }
.nav-item.tool .nav-dropdown { border-top-color: #909399; }
.nav-item.more .nav-dropdown { border-top-color: #f56c6c; }

.nav-item:hover .nav-dropdown {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-item {
    height: auto;
    line-height: normal;
}

.dropdown-link {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    background-color: #f8f9fa;
    color: inherit;
}

.nav-item.website .dropdown-link:hover { color: #67c23a; }
.nav-item.article .dropdown-link:hover { color: #e6a23c; }
.nav-item.tool .dropdown-link:hover { color: #909399; }
.nav-item.more .dropdown-link:hover { color: #f56c6c; }

/* 圆形公告按钮样式 */
.notice-btn {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    padding: 0;
    background: linear-gradient(135deg, #0099ff 0%, #00ccff 100%);
    color: #fff !important;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 153, 255, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    z-index: 1001;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    white-space: nowrap;
}

.notice-btn:hover {
    background: linear-gradient(135deg, #0088ee 0%, #00bbff 100%);
    box-shadow: 0 6px 20px rgba(0, 153, 255, 0.4);
    transform: translateY(-2px) scale(1.05);
}

/* 公告下拉面板样式 */
.notice-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 350px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1002;
    padding: 15px;
    display: none;
    animation: fadeIn 0.3s ease;
    max-width: calc(100vw - 20px);
}

.notice-dropdown.active {
    display: block;
}

/* 公告幻灯片容器 */
.notice-slider {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.notice-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

/* 单条公告样式 */
.notice-slide-item {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.notice-slide-item i {
    color: #0099ff;
    margin-right: 10px;
    font-size: 18px;
}

.notice-slide-item span {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

/* 幻灯片控制按钮 */
.notice-control {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 8px;
}

.notice-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notice-dot.active {
    background: #0099ff;
    width: 20px;
    border-radius: 4px;
}

/* 提交按钮 - 桌面端 */
.submit-btn {
    display: inline-block;
    height: 40px;
    line-height: 40px;
    padding: 0 25px;
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    color: #fff !important;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    z-index: 1001;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #ff6b50 0%, #fea868 100%);
    box-shadow: 0 6px 20px rgba(255, 126, 95, 0.4);
    transform: translateY(-2px);
}

/* 统计徽章 */
.badge {
    display: inline-block;
    padding: 2px 6px;
    margin-left: 6px;
    font-size: 11px;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    background: #cc0066;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 8px;
    box-shadow: 0 0 6px #cc0066, 0 0 10px rgba(204, 0, 102, 0.2);
    transition: all 0.3s ease;
}

.badge:hover {
    background: #0066cc;
    box-shadow: 0 0 8px #0066cc, 0 0 15px rgba(0, 102, 204, 0.2);
    transform: scale(1.05);
}

.website-badge { background: linear-gradient(90deg, #52c41a 0%, #73d13d 100%); }
.article-badge { background: linear-gradient(90deg, #fa8c16 0%, #ffc53d 100%); }
.tool-badge { background: linear-gradient(90deg, #73767a 0%, #a6a8ad 100%); }
.more-badge { background: linear-gradient(90deg, #f5222d 0%, #ff4d4f 100%); }
.submit-badge { background: rgba(255,255,255,0.2); backdrop-filter: blur(5px); }
.notice-badge { background: rgba(255,255,255,0.2); backdrop-filter: blur(5px); }

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 汉堡菜单按钮 - 移动端显示 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 移动端导航菜单 - 初始隐藏 */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a1a 0%, #000 100%);
    z-index: 1000;
    padding-top: 80px;
    padding-left: 20px;
    padding-right: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-main {
    list-style: none;
}

.mobile-nav-item {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 0;
}

.mobile-dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #fff;
    transition: transform 0.3s ease;
}

.mobile-dropdown-arrow.active {
    transform: rotate(180deg);
}

/* 移动端二级菜单 - 初始隐藏 */
.mobile-nav-dropdown {
    list-style: none;
    margin-left: 15px;
    margin-top: 10px;
    display: none;
}

.mobile-nav-dropdown.active {
    display: block;
}

.mobile-dropdown-item {
    margin-bottom: 8px;
}

.mobile-dropdown-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    display: block;
}

.mobile-dropdown-link:hover {
    color: #fff;
}

/* 移动端提交按钮 */
.mobile-submit-btn {
    display: block;
    width: 100%;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    color: #fff !important;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 30px;
}

/* 遮罩层 - 移动端菜单打开时显示 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* ================= 首页内容样式 ================= */
.cyber-title {
    color: #0066cc;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
}

.cyber-title i {
    text-shadow: 0 0 8px #0066cc, 0 0 15px rgba(0, 102, 204, 0.2);
    font-size: 0.9rem;
}

/* 站点网格样式 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.site-link {
    display: flex;
    /* 关键修改：从纵向改为横向排列，垂直居中 */
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    color: #333333;
    padding: 6px 4px;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    /* 新增：让链接有最小高度，保证布局美观 */
    min-height: 32px;
}

.site-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
    transition: left 0.6s ease;
}

.site-link:hover::after {
    left: 100%;
}

.site-link:hover {
    border-color: #0066cc;
    box-shadow: 0 0 8px #0066cc, 0 0 15px rgba(0, 102, 204, 0.2);
    color: #0066cc;
    transform: translateY(-1px);
}

.site-icon {
    /* 关键修改：尺寸改为20×20像素 */
    width: 20px;
    height: 20px;
    border-radius: 6px;
    /* 调整间距：图标和文字之间的间距 */
    margin-right: 4px;
    /* 移除底部间距，改为右侧间距 */
    margin-bottom: 0;
    object-fit: cover;
    background: #ffffff;
    transition: all 0.3s ease;
    /* 新增：保证图标垂直对齐 */
    flex-shrink: 0;
}

.site-link:hover .site-icon {
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.3);
}

.site-name {
    font-size: 0.7rem;
    text-align: left; /* 文字左对齐 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* 文字占据剩余空间 */
    flex: 1;
}

/* 保留七彩闪烁样式（如果需要） */
.rainbow-blink {
    animation: rainbow 1.5s linear infinite, blink 1s step-end infinite;
}

@keyframes rainbow {
    0% { color: red; }
    14% { color: orange; }
    28% { color: yellow; }
    42% { color: green; }
    56% { color: blue; }
    70% { color: indigo; }
    84% { color: violet; }
    100% { color: red; }
}

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



/* 统一的文章条目样式 */
.article-item,
.random-article-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.article-item:last-child,
.random-article-item:last-child {
    margin-bottom: 0;
}

.article-item:hover,
.random-article-item:hover {
    border-color: #0066cc;
    box-shadow: 0 0 8px #0066cc, 0 0 15px rgba(0, 102, 204, 0.1);
    transform: translateY(-1px);
}

.article-item i,
.random-article-item i {
    color: #0066cc;
    margin-right: 8px;
    font-size: 0.7rem;
}

.article-item a,
.random-article-item a {
    color: #333333;
    text-decoration: none;
    font-size: 0.8rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-item a:hover,
.random-article-item a:hover {
    color: #0066cc;
}

/* 文章附加信息样式 */
.article-item .article-meta {
    color: #666666;
    font-size: 0.7rem;
    margin-left: 8px;
    white-space: nowrap;
}

.article-item .article-tag {
    color: #cc0066;
    font-size: 0.7rem;
    margin-left: 8px;
    white-space: nowrap;
}

/* 随机文章容器样式 */
.random-article-container {
    margin: 0 auto 20px;
    width: 100%;
}

.random-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* 七彩闪烁动画样式 */
@keyframes rainbowBlink {
    0% { color: #ff0000; text-shadow: 0 0 5px #ff0000; }
    14% { color: #ff7f00; text-shadow: 0 0 5px #ff7f00; }
    28% { color: #ffff00; text-shadow: 0 0 5px #ffff00; }
    42% { color: #00ff00; text-shadow: 0 0 5px #00ff00; }
    57% { color: #00ffff; text-shadow: 0 0 5px #00ffff; }
    71% { color: #0000ff; text-shadow: 0 0 5px #0000ff; }
    85% { color: #8b00ff; text-shadow: 0 0 5px #8b00ff; }
    100% { color: #ff0000; text-shadow: 0 0 5px #ff0000; }
}

.rainbow-blink {
    animation: rainbowBlink 1.5s infinite;
    font-weight: bold;
}

@keyframes pulse {
    0% { opacity: 1; }
    100% { opacity: 0.8; }
}

.rainbow-blink + .site-icon {
    animation: pulse 1.5s infinite alternate;
}

/* ================= 搜索区域样式 ================= */
.search-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-card:hover {
    border-color: #0066cc;
    box-shadow: 0 0 8px #0066cc, 0 0 15px rgba(0, 102, 204, 0.2), 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #0066cc;
}

.search-type {
    display: flex;
    list-style: none;
    gap: 6px;
    padding: 0;
    margin: 0;
    min-width: max-content;
}

.search-type li {
    padding: 6px 10px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.search-type li::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
    transition: left 0.6s ease;
}

.search-type li:hover::after {
    left: 100%;
}

.search-type li i {
    font-size: 0.8rem;
}

.search-type li.active {
    background: linear-gradient(135deg, #0066cc, #0088ee);
    color: white;
    border-color: #0066cc;
    box-shadow: 0 0 8px #0066cc, 0 0 15px rgba(0, 102, 204, 0.2);
    transform: translateY(-2px);
}

.search-type li:hover:not(.active) {
    border-color: #0066cc;
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.3);
    transform: translateY(-1px);
}

/* 搜索容器样式 */
.search-box-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
    margin-bottom: 8px;
}

/* 搜索输入框 */
.search-box-input {
    flex: 1;
    height: 46px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-family: inherit;
    font-size: 0.9rem;
    color: #333333;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-box-input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 8px #0066cc, 0 0 15px rgba(0, 102, 204, 0.2);
}

/* 搜索按钮 */
.search-box-button {
    height: 46px;
    padding: 0 20px;
    background: linear-gradient(135deg, #0066cc, #0088ee);
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-box-button:hover {
    box-shadow: 0 0 12px rgba(0, 102, 204, 0.4);
}

/* 清空按钮 */
.search-box-clear {
    height: 46px;
    padding: 0 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-radius: 0 4px 4px 0;
    color: #666666;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-box-clear:hover {
    border-color: #0066cc;
    color: #0066cc;
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.2);
}

/* 搜索标签容器 */
.search-tags-container {
    display: flex;
    width: 100%;
    gap: 10px;
    font-size: 0.8rem;
    box-sizing: border-box;
}

/* 搜索标签左右栏 */
.search-tags-left, .search-tags-right {
    width: 50%;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    box-sizing: border-box;
}

.search-tags-right {
    justify-content: flex-end;
}

/* 通用标签样式 */
.search-tag-section {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.tag-label {
    color: #666666;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.tag-label i {
    font-size: 0.75rem;
}

/* 标签链接容器 */
.tag-links-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
}

.tag-link {
    color: #333333;
    text-decoration: none;
    padding: 3px 8px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.tag-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
    transition: left 0.6s ease;
}

.tag-link:hover::after {
    left: 100%;
}

.tag-link:hover {
    border-color: #0066cc;
    color: #0066cc;
    text-decoration: none;
    box-shadow: 0 0 6px rgba(0, 102, 204, 0.2);
    transform: translateY(-1px);
}

/* 清空历史链接样式 */
.clear-history-link {
    color: #666666;
    font-size: 0.8rem;
    text-decoration: none;
    margin-left: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.clear-history-link:hover {
    color: #0066cc;
    text-decoration: underline;
}

/* ================= 友情链接样式 ================= */
.friend-links-container {
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
    min-width: max-content;
}

.friend-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333333;
    white-space: nowrap;
    padding: 6px 10px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
}

.friend-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
    transition: left 0.6s ease;
}

.friend-link:hover::after {
    left: 100%;
}

.friend-link:hover {
    border-color: #0066cc;
    color: #0066cc;
    box-shadow: 0 0 8px #0066cc, 0 0 15px rgba(0, 102, 204, 0.2);
    transform: translateY(-1px);
}

.friend-link img {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.friend-link:hover img {
    transform: scale(1.1);
    box-shadow: 0 0 3px rgba(0, 102, 204, 0.3);
}

/* ================= 广告样式 ================= */
.ad-container {
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}


.ad-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #0088ee);
}

.ad-container:hover {
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.2);
}

.zzggg {
    width: 100%;
    overflow: hidden;
    display: block;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
}

.zzggg a {
    width: 9.5%;
    float: left;
    border-radius: 10px;
    line-height: 35.35px;
    height: 35.35px;
    text-align: center;
    font-size: 15px;
    color: #fff;
    display: inline-block;
    background-color: rgb(255, 153, 159);
    margin: 2.7px;
    transition-duration: .3s;
}

.zzggg a:nth-child(1) {background-color: #840228;}
.zzggg a:nth-child(2) {background-color: #008792;}
.zzggg a:nth-child(3) {background-color: #28a745;}
.zzggg a:nth-child(4) {background-color: #008792;}
.zzggg a:nth-child(5) {background-color: #28a745;}
.zzggg a:nth-child(6) {background-color: #008792;}
.zzggg a:nth-child(7) {background-color: #28a745;}
.zzggg a:nth-child(8){background-color: #008792;}
.zzggg a:nth-child(9) {background-color: #28a745;}
.zzggg a:nth-child(10) {background-color: #008792;}
.zzggg a:hover {background:#FF2805;color:#FFF}

/* ================= 网址列表样式 ================= */
.site-name-compact a:hover,
.tool-list-group-item a:hover,
.category-title a:hover {
    color: #0066cc !important;
    opacity: 0.9;
}

/* 分页按钮悬停效果 */
.page-link-compact:not(.disabled):hover {
    border-color: #0066cc;
    box-shadow: 0 0 8px rgba(0, 102, 204, 0.2);
    transform: translateY(-1px);
}

/* 提交按钮悬停效果 */
.tool-nav-btn:hover {
    box-shadow: 0 0 12px rgba(0, 102, 204, 0.4);
    transform: translateY(-1px);
}

/* 列表项悬停效果 */
.tool-list-group-item:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

/* 排名样式细化 */
.rank-1 i { color: #ffd700 !important; text-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
.rank-2 i { color: #c0c0c0 !important; }
.rank-3 i { color: #cd7f32 !important; }
.rank-4-9 i { color: #666666 !important; }

/* 修复最后一个列表项无下边框 */
.tool-list-group-item:last-child {
    border-bottom: none !important;
}

/* ================= 网址内页样式 ================= */
.action-button:hover,
.query-tool-item:hover,
.keyword-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    border-color: #0066cc !important;
    color: #0066cc !important;
}



/* ================= 文章相关样式 ================= */
/* 文章首页样式 */
.main-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 文章列表页样式 */
.page-link-compact:hover:not(.disabled) {
    border-color: #0066cc !important;
    color: #0066cc !important;
}

/* 分页激活状态样式 */
.page-item-compact.active .page-link-compact {
    background: #0066cc !important;
    color: white !important;
    border-color: #0066cc !important;
}

/* 禁用状态样式 */
.page-item-compact.disabled .page-link-compact {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* 文章内容样式 */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content h2, .article-content h3, .article-content h4 {
    color: #333;
    margin: 20px 0 10px;
}

.share-btn:hover {
    border-color: #0066cc !important;
    color: #0066cc !important;
}

.related-item:last-child {
    border-bottom: none !important;
}



/* ================= 小黑屋页样式 ================= */
.black-site-card-small.cyber-card::before {
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
}

.black-site-card-small:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
}

.page-link:hover:not(.disabled) {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

.btn-success:hover {
    background: #218838 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 70, 0.2);
}

/* 分页激活状态样式 */
.page-item.active .page-link {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

/* 确保卡片等高 */
.black-site-card-small {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ================= 待审页样式 ================= */
.pending-site-card-small.cyber-card::before {
    background: linear-gradient(90deg, #ffc107, #ffdd70);
}

.pending-site-card-small:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.1);
}

.btn-primary:hover {
    background: #0056b3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.2);
}

/* 确保卡片等高 */
.pending-site-card-small {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ================= 收录页样式 ================= */
/* 表单元素样式优化 */
.form-control:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
    outline: none;
}

.btn-outline-secondary:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.1);
}

/* 提示框样式优化 */
.alert {
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 表单验证样式 */
.was-validated .form-control:invalid {
    border-color: #dc3545;
}

.was-validated .form-control:valid {
    border-color: #28a745;
}

/* ================= 关于我样式 ================= */
/* 链接样式优化 */
a:hover {
    color: #0056b3;
    text-decoration: none;
}

/* 统计列表最后一项去除边框 */
.stats-list li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

/* ================= 页脚样式 ================= */
#site-footer {
    background: linear-gradient(135deg, #0a0e17 0%, #141b2d 100%);
    color: #fff;
    padding: 30px 0 20px;
    position: relative;
    border-top: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 -5px 20px rgba(0, 240, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

/* 顶部装饰线 */
.footer-top-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00f0ff, #7928ca, #ff0080);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* 站点品牌区域 */
.footer-brand .brand-content {
    text-align: center;
    text-align: left;
    width: 100%;
}

.footer-brand h4,
.footer-brand p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.footer-brand h4 {
    margin: 0;
    font-weight: 700;
    color: #00f0ff;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    display: flex;
    align-items: center;
}

.footer-brand h4 i {
    color: #00f0ff;
}

.footer-brand p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* 联系方式区域 */
.footer-contact .contact-content {
    text-align: center;
    text-align: right;
}

.contact-icons {
    display: flex;
    justify-content: center;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 8px;
}

.contact-icon {
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
}

.qq-icon {
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.qq-icon i {
    color: #00f0ff;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.email-icon {
    border: 1px solid rgba(121, 40, 202, 0.3);
}

.email-icon i {
    color: #7928ca;
    text-shadow: 0 0 8px rgba(121, 40, 202, 0.5);
}

.wechat-icon {
    border: 1px solid rgba(255, 0, 128, 0.3);
}

.wechat-icon i {
    color: #ff0080;
    text-shadow: 0 0 8px rgba(255, 0, 128, 0.5);
}

.footer-contact p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

/* 分隔线样式 */
.divider-line-small {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
}

/* 版权信息样式 */
.footer-copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

.copyright-link {
    color: #00f0ff;
    text-decoration: none;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
}

/* 备案信息样式 */
.icp-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.icp-link i {
    color: #7928ca;
}

/* 免责声明样式 */
.disclaimer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    line-height: 1.3;
    margin: 0;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 0, 128, 0.05);
    border: 1px solid rgba(255, 0, 128, 0.1);
}

.disclaimer-text i {
    color: #ff0080;
    text-shadow: 0 0 5px rgba(255, 0, 128, 0.3);
}

.disclaimer-email {
    color: #00f0ff;
    text-decoration: none;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
}

/* 隐藏内容 */
.hidden-content {
    display: none;
}

/* 返回顶部按钮 */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
    background: linear-gradient(45deg, #00f0ff, #7928ca);
    border: 1px solid #00f0ff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    transition: all 0.3s ease;
    outline: none;
}

/* ================= 响应式适配 ================= */
@media (max-width: 992px) {
    /* 导航响应式 */
    .nav-main {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .top-nav {
        height: 60px;
    }
    
    .logo-wrapper {
        margin-right: 0;
    }
    
    .logo-2 {
        height: 28px !important;
    }
    
    .nav-right-btns {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .submit-btn {
        padding: 0 15px;
        font-size: 12px;
        height: 36px;
        line-height: 36px;
    }
    
    .notice-btn {
        width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    /* 通用响应式 */
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .site-icon {
        width: 20px;
        height: 20px;
    }
    
    .cyber-card {
        padding: 8px;
    }
    
    .search-card {
        padding: 12px;
    }
    
    .random-article-grid {
        grid-template-columns: 1fr;
    }
    
    /* 搜索标签响应式 */
    .search-tags-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-tags-left, 
    .search-tags-right {
        width: 100%;
    }
    
    .search-tags-right {
        justify-content: flex-start;
    }
    
    .search-box-input,
    .search-box-button,
    .search-box-clear {
        height: 40px;
    }
    
    .tag-link,
    .tag-label,
    .clear-history-link {
        font-size: 0.75rem;
    }
    
    /* 导航响应式 */
    .nav-container {
        padding: 0 15px;
    }
    
    .mobile-nav {
        width: 250px;
    }
    
    /* 网址列表响应式 */
    .site-grid-compact {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .pagination-compact {
        flex-wrap: wrap;
        gap: 4px !important;
        padding: 8px !important;
    }
    
    .page-link-compact {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.8rem !important;
    }
    
    .page-total-compact {
        width: 100%;
        text-align: center;
        margin-top: 8px !important;
        margin-left: 0 !important;
    }
    
    .tool-nav-btn {
        margin-bottom: 15px !important;
    }
    
    .tool-card-wrapper {
        margin-bottom: 15px !important;
    }
    
    .category-title {
        font-size: 1rem !important;
    }
    
    /* 网址内页响应式 */
    .site-info-grid {
        flex-direction: column !important;
        height: auto !important;
        gap: 15px !important;
    }
    
    .site-thumbnail {
        width: 100% !important;
        height: 200px !important;
    }

    .info-table-modern {
        height: auto !important;
        overflow-y: visible !important;
        padding-right: 0 !important;
    }
    
    .action-buttons-group {
        flex-direction: column !important;
    }
    
    .query-tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    }
    
    .modal-dialog {
        max-width: 90% !important;
    }
    
    .site-title-section h2 {
        font-size: 1.1rem !important;
    }
    
    /* 文章响应式 */
    .main-content-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
  
    /* 小黑屋响应式 */
    .row {
        margin-left: -8px !important;
        margin-right: -8px !important;
    }
    
    .col-md-4, .col-sm-6 {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .page-link {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.85rem !important;
    }
    
    .empty-state {
        padding: 20px 10px !important;
    }
    
    .icon-circle-medium {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* 收录页响应式 */
    .form-section {
        padding: 0 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100% !important;
    }
    
    .alert {
        min-width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
    
    .col-md-6 {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* 关于我响应式 */
    .info-item {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .info-item i {
        margin-bottom: 5px !important;
    }
    
    /* 页脚响应式 */
    .hide-on-mobile {
        display: none !important;
    }
    
    .footer-row-1 .footer-brand {
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    .footer-brand .brand-content {
        text-align: center !important;
    }
    
    .back-to-top-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    /* 广告响应式 */
    .zzggg a {
        width: 47.96%;
        float: left;
        border-radius: 2px;
        line-height: 35.35px;
        height: 35.35px;
        text-align: center;
        font-size: 14px;
        color: #fff;
        display: inline-block;
        background-color: rgb(255, 153, 159);
        margin: 2.5px;
        transition-duration: .3s;
    }
}
 .tp-ad-text1 {width:100%;padding-top:6px;box-sizing:border-box;overflow: hidden;background: rgba(255,255,255,.2);}
  .tp-ad-text1 a {color:#7fba00;font-size:14px;line-height:38px;text-align:center;border:1px dashed rgba(0,0,0,.2);padding:0 3px;box-sizing:border-box;float:left;width:11.5%;height:38px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 0.5% 6px;text-decoration:none;transition:all .6s;}
  .tp-ad-text1 a:hover {font-weight: bold;color:#fff!important;background:#7fba00;transition: all .6s;}
  .tp-ad-text1 a:nth-child(2n) {color:#f74e1e;}
  .tp-ad-text1 a:nth-child(2n):hover {background:#f74e1e;border-color: #f74e1e;}
  .tp-ad-text1 a:nth-child(3n) {color:#00a4ef;}
  .tp-ad-text1 a:nth-child(3n):hover {background:#00a4ef;border-color: #00a4ef;}
  .tp-ad-text1 a:nth-child(4n) {color:#0517c2;}
  .tp-ad-text1 a:nth-child(4n):hover {background:#0517c2;border-color: #0517c2;}
  .tp-ad-text1 a:nth-child(5n) {color:#601165;}
  .tp-ad-text1 a:nth-child(5n):hover {background:#601165;border-color: #601165;}
  .tp-ad-text1 a:nth-child(6n) {color:#ffb900;}
  .tp-ad-text1 a:nth-child(6n):hover {background:#ffb900;border-color: #ffb900;}
  .tp-ad-text1 a:nth-child(7n) {color:#0fc317;}
  .tp-ad-text1 a:nth-child(7n):hover {background:#0fc317;border-color: #0fc317;}
  .tp-ad-text1 a:nth-child(8n) {color:#601165;}
  .tp-ad-text1 a:nth-child(8n):hover {background:#601165;border-color: #601165;}
  .tp-ad-text1 a:nth-child(9n) {color:#fba78f;}
  .tp-ad-text1 a:nth-child(9n):hover {background:#fba78f;border-color: #fba78f;}
  .tp-ad-text1 a:nth-child(10n) {color:#13cf8f;}
  .tp-ad-text1 a:nth-child(10n):hover {background:#13cf8f;border-color: #13cf8f;}
  .tp-ad-text1 a:nth-child(11n) {color:#f74e1e;}
  .tp-ad-text1 a:nth-child(11n):hover {background:#f74e1e;border-color: #f74e1e;}
  .tp-ad-text1 a:nth-child(12n) {color:#ffb900;}
  .tp-ad-text1 a:nth-child(12n):hover {background:#ffb900;border-color: #ffb900;}
  .tp-ad-text1 a:nth-child(13n) {color:#fba78f;}
  .tp-ad-text1 a:nth-child(13n):hover {background:#fba78f;border-color: #fba78f;}
  .tp-ad-text1 a:nth-child(14n) {color:#f74e1e;}
  .tp-ad-text1 a:nth-child(14n):hover {background:#f74e1e;border-color: #f74e1e;}
  .tp-ad-text1 a:nth-child(15n) {color:#7fba00;}
  .tp-ad-text1 a:nth-child(15n):hover {background:#7fba00;border-color: #7fba00;}
  .tp-ad-text1 a:nth-child(16n) {color:#0fc317;}
  .tp-ad-text1 a:nth-child(16n):hover {background:#0fc317;border-color: #0fc317;}
  .tp-ad-text1 a:nth-child(17n) {color:#0517c2;}
  .tp-ad-text1 a:nth-child(17n):hover {background:#0517c2;border-color: #0517c2;}
  .tp-ad-text1 a:nth-child(18n) {color:#13cf8f;}
  .tp-ad-text1 a:nth-child(18n):hover {background:#13cf8f;border-color: #13cf8f;}
  .tp-ad-text1 a:nth-child(19n) {color:#ffb900;}
  .tp-ad-text1 a:nth-child(19n):hover {background:#ffb900;border-color: #ffb900;}
  .tp-ad-text1 a:nth-child(20n) {color:#f74e1e;}
  .tp-ad-text1 a:nth-child(20n):hover {background:#f74e1e;border-color: #f74e1e;}
@media screen and (max-width: 1198px){
    .tp-ad-text1 a{
      width: 24%;
    }
  }
@media (max-width: 576px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .site-name {
        font-size: 0.65rem;
    }
    
    .tool-random-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    /* 页脚响应式 */
    #site-footer {
        padding: 20px 0 15px;
    }
    
    .footer-brand h4 {
        font-size: 1.2rem;
    }
    
    .disclaimer-text {
        font-size: 0.7rem;
        padding: 8px;
    }
    
    .back-to-top-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
/* ================= 排行榜页样式 ================= */    
    .ranking {
      grid-template-columns: 1fr !important;
      gap: 10px !important;
    }
    
    .site-title-section {
      padding: 10px 15px !important;
    }
    
    h2 {
      font-size: 1.2rem !important;
    }
    
    .card-head {
      padding: 8px 15px !important;
    }
    
    h5 {
      font-size: 0.95rem !important;
    }
    
    /* 确保移动端文字大小适配 */
    .name {
      font-size: 0.9rem !important;
    }
    
    .view {
      font-size: 0.85rem !important;
    }    
    
}

/* ================= 排行榜页样式 ================= */
  /* 基础布局 - 解决ranking宽度问题 */
  .container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
  }
  
  .rrr {
    width: 100%;
    box-sizing: border-box;
  }
  
  /* 排行榜核心布局 - 响应式网格 */
  .ranking {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* 排行榜项统一样式 - 移动端和PC端保持一致比例 */
  .site-ranking {
    padding: 8px 10px !important;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
  }
  
  /* 排名标识 - 统一尺寸 */
  .rank {
    width: 20px !important;
    height: 20px !important;
    font-size: 0.85rem !important;
    margin-right: 10px !important;
    flex-shrink: 0; /* 防止排名圆形变形 */
  }
  
  /* 网站图标 - 统一尺寸 */
  .icon img {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0; /* 防止图标变形 */
  }
  
  /* 空数据样式 - 适配 */
  .empty-data {
    min-height: 180px !important;
    padding: 40px 10px !important;
    width: 100%;
    box-sizing: border-box;
  }
  
  .empty-data i {
    font-size: 2.5rem !important;
  }
  
  .site-ranking:hover {
      background-color: rgba(0, 102, 204, 0.05) !important;
      transform: translateX(2px);
  }

  /* 排行榜卡片等高显示 */
  .card {
      display: flex;
      flex-direction: column;
      width: 100%;
      box-sizing: border-box;
  }

  .card-body {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      width: 100%;
      box-sizing: border-box;
  }

  .empty-data {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
  }

  .site-ranking:last-child {
      border-bottom: none !important;
  }
  
  
 /* 页脚容器相对定位，让海浪画布可以绝对定位 */
#site-footer {
    position: relative;
    overflow: hidden;
    /* 确保页脚有足够高度，避免内容被挤压 */
    padding-bottom: 20px;
}

/* 海浪画布样式：铺满整个页脚 */
.wave-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* 高度改为100%，铺满页脚 */
    z-index: 0; /* 放在最底层 */
    opacity: 0.25; /* 适度提高透明度，突出多彩效果 */
}

/* 确保页脚内容在海浪之上 */
#site-footer .container {
    position: relative;
    z-index: 1;
} 