/* TikTok出海小工具顶部Banner样式 */
.acf-tools {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    margin-bottom: 30px;
    overflow: hidden;
    z-index: 1;
}

.acf-tools::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: -1;
}

.acf-tools .header-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.acf-tools h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    animation: fadeInDown 1s ease-out;
}

.acf-tools p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

/* 夜间模式适配 */
.io-black-mode .acf-tools::before {
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .acf-tools {
        padding: 50px 0;
    }
    
    .acf-tools h1 {
        font-size: 2rem;
    }
    
    .acf-tools p {
        font-size: 1rem;
    }
}
/* 工具卡片样式优化 */
.url-body.default {
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.io-black-mode .url-body.default {
    background-color: #2a2a2a;
    box-shadow: 0 1px 8px rgba(0,0,0,0.1);
}

.url-body.default:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.url-body.default .card {
    border: none;
    box-shadow: none;
    margin-bottom: 0 !important;
    flex: 1;
    background-color: transparent;
}

.url-body.default .url-img {
    width: 40px;
    height: 40px;
    min-width: 40px;
    overflow: hidden;
    border: 1px solid rgba(136, 136, 136, 0.1);
}

.url-body.default .url-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.url-body.default .url-footer {
    padding: 8px 12px;
    border-top: 1px solid rgba(136, 136, 136, 0.1);
    font-size: 12px;
}

.io-black-mode .url-body.default .url-footer {
    border-color: rgba(255, 255, 255, 0.05);
}

.url-body.default .url-meta {
    color: #8c8c8c;
    font-size: 12px;
}

.url-body.default .btn-rounded {
    border-radius: 50px;
    padding: 0.2rem 0.8rem;
    font-size: 12px;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid #f1f1f1;
}

.url-body.default .btn-rounded:hover {
    background-color: #f1404b;
    color: #fff;
    border-color: #f1404b;
}

.url-body.default .url-goto {
    border-top: 1px dashed rgba(136, 136, 136, 0.1);
}

.io-black-mode .url-body.default .url-goto {
    border-color: rgba(255, 255, 255, 0.05);
}

.url-body.default .tag-container {
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.url-body.default .tag-container::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

.url-body.default .tga a {
    color: #8c8c8c;
    background-color: rgba(136, 136, 136, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 4px;
    text-decoration: none;
}

.url-body.default .tga a:hover {
    color: #fff;
    background-color: #f1404b;
    text-decoration: none;
}

.io-black-mode .url-body.default .tga a {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 箭头图标样式 */
.iconfont.icon-arrow-r-m {
    font-size: 12px;
    position: relative;
    top: 0;
}

.btn-move {
    display: inline-flex;
    align-items: center;
    color: #8c8c8c;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-move:hover {
    color: #f1404b;
    text-decoration: none;
}

/* 文本溢出控制 */
.overflowClip_1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
    text-overflow: ellipsis;
}

.overflowClip_2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
    text-overflow: ellipsis;
    max-height: 2.8em;
}

/* 侧边栏样式优化 */
.sidebar-tools .card {
    border: none;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 20px;
}

.io-black-mode .sidebar-tools .card {
    background-color: #2a2a2a;
    box-shadow: 0 1px 8px rgba(0,0,0,0.1);
}

.sidebar-tools .widget-header {
    border-bottom: 1px solid rgba(136, 136, 136, 0.1);
    padding: 0.75rem 1rem;
    background-color: #fff;
}

.io-black-mode .sidebar-tools .widget-header {
    border-color: rgba(255, 255, 255, 0.05);
    background-color: #2a2a2a;
}

.sidebar-tools .list-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(136, 136, 136, 0.1);
    transition: all 0.3s ease;
}

.sidebar-tools .list-item:hover {
    background-color: rgba(0,0,0,0.02);
}

.io-black-mode .sidebar-tools .list-item:hover {
    background-color: rgba(255,255,255,0.02);
}

.io-black-mode .sidebar-tools .list-item {
    border-color: rgba(255, 255, 255, 0.05);
}

.sidebar-tools .list-item:last-child {
    border-bottom: none;
}

.sidebar-tools .media-content {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 66.7%;
    overflow: hidden;
    border-radius: 4px;
}

.sidebar-tools .media-content img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-tools .media-content:hover img {
    transform: scale(1.05);
}

.sidebar-tools .list-title {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
    height: 2.8em;
    transition: color 0.3s ease;
}

.sidebar-tools .list-title:hover {
    color: #f1404b;
}

/* 分类标题样式 */
.cat_list h4 {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.cat_list .site-tag {
    color: #f1404b;
}

/* 懒加载图片样式 */
img.lazy {
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

img.lazy.loaded {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .url-body.default .url-img {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    
    .url-body.default .text-sm {
        font-size: 13px;
    }
    
    .url-body.default .text-xs {
        font-size: 12px;
    }
    
    .sidebar-tools {
        margin-top: 20px;
    }
    
    .url-body.default .btn-rounded {
        padding: 0.15rem 0.6rem;
        font-size: 11px;
    }
    
    .url-body.default .url-footer {
        padding: 6px 10px;
    }
    
    .url-body.default .tga a {
        padding: 1px 6px;
        font-size: 11px;
    }
}