/* 使用独特的根前缀，彻底隔离样式 */
.z-custom-container {
    background: #ffffff !important;
    border-radius: 12px;
    padding: 15px;
    box-sizing: border-box;
}

/* 头部样式隔离 */
.z-card-header {
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
}

.z-card-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #333 !important;
}

/* Tab 选项卡自定义 */
.z-card-tabs {
    display: flex;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 10px;
}

.z-tab-item {
    padding: 6px 16px;
    font-size: 14px;
    border-radius: 20px;
    cursor: pointer;
    background: #f5f6f7;
    color: #666;
    transition: 0.3s;
    white-space: nowrap;
}

.z-tab-item.active {
    background: #007bff !important;
    color: #fff !important;
}

/* 网格布局：使用 Grid 替代 Row，防止 Bootstrap 负外边距对冲 */
.z-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding-top: 20px;
}

/* 文章卡片重写 */
.z-post-item {
    display: flex !important;
    border: 1px solid #eee !important;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease-in-out;
}

.z-post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
}

/* 左侧图片 */
.z-post-thumb {
    width: 120px;
    min-width: 120px;
    height: 100px;
}

.z-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右侧内容 */
.z-post-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.z-post-title {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin: 0 0 8px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 强制两行截断 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.z-post-title a {
    color: #333 !important;
    text-decoration: none !important;
}

.z-post-title a:hover {
    color: #007bff !important;
}

/* 标签与元数据 */
.z-tag {
    font-size: 11px;
    background: #f0f2f5;
    color: #777;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 4px;
}

.z-post-meta {
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
}

/* 移动端适配 */
@media (max-width: 576px) {
    .z-post-item {
        flex-direction: row; /* 如果想在手机上图片在上，改为 column */
    }
    .z-post-thumb {
        width: 100px;
        min-width: 100px;
    }
}
/* 卡片整体微调 */
.io-exchange-section .sites-item {
    padding: 8px; /* 给卡片之间留出呼吸感 */
}

.io-card-inner {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    height: 100%;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid rgba(0,0,0,0.05);
}

.io-card-inner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: #f0b90b; /* 悬停时显示类似交易所的金黄色边框 */
}

/* 图标背景模糊效果优化 */
.blur-img-bg {
    filter: blur(10px);
    opacity: 0.15;
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    z-index: 0;
}

/* 直达按钮样式 */
.togo {
    width: 24px;
    height: 24px;
    background: #f1f3f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: all 0.2s;
}

.togo:hover {
    background: #007bff;
    color: #fff !important;
}

/* 容器隔离 */
.custom-scope-nav {
    --card-bg: #ffffff;
    --text-main: #333;
    --text-muted: #777;
    --accent-color: #f0b90b; /* 币安黄示例 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 头部样式隔离 */
.custom-scope-nav .card-header-bar {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
        padding: 10px 5px;
    background-color: #f6cd29;
    border-radius: 8px;
}

.custom-scope-nav .title-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-main);
    margin: 0;
}

.custom-scope-nav .spacer { flex: 1; }

.custom-scope-nav .more-link {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
}

/* 网格布局隔离 - 响应式 */
.custom-scope-nav .card-grid-container {
    display: grid;
    gap: 15px;
    /* 默认移动端 2 列，平板 3 列，桌面 5 列 */
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) { .custom-scope-nav .card-grid-container { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .custom-scope-nav .card-grid-container { grid-template-columns: repeat(5, 1fr); } }

/* 单个卡片隔离 */
.custom-scope-nav .site-item-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.custom-scope-nav .site-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* 内部元素隔离 */
.custom-scope-nav .card-main-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    margin-bottom: 10px;
}

.custom-scope-nav .card-icon-box {
    width: 48px;
    height: 48px;
    margin-right: 12px;
    flex-shrink: 0;
}

.custom-scope-nav .card-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.custom-scope-nav .card-title {
    font-size: 14px;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-scope-nav .card-desc {
    font-size: 12px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.custom-scope-nav .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #eee;
    padding-top: 8px;
    margin-top: auto;
}

.custom-scope-nav .tag-badge {
    font-size: 10px;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    color: #888;
    margin-right: 4px;
}

.diy_bg{
    background: #f4f4f4;
}

