/* 图标广告容器 */
.adhidden {
    display: none !important;
}
.telegrambd{
    text-align: center;padding: 5px;
    color: #fff;
}
.icon-ads,
.remaining-ads {
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    justify-content: center; /* 水平居中 */
    gap: 10px; /* 子元素之间的间距 */
    padding: 5px;
    max-width: 1320px;
    margin: 0 auto;
}
.icon-ad {
    width: calc(20% - 10px); /* 每行显示 5 个广告 */
    text-align: center;
    display: flex;
    flex-direction: column; /* 子元素纵向排列 */
    align-items: center; /* 子元素水平居中 */
    overflow: visible; /* 确保子元素不会被裁剪 */
}

.icon-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* 保证正方形比例 */
    overflow: hidden; /* 保持图片裁剪 */
    border-radius: 10px;
    background-color: #000; /* 确保图片容器背景色 */
    flex-shrink: 0; /* 确保图片容器不会被压缩 */
}


.icon-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 图片按比例裁剪填充 */
}

.icon-title {
    font-size: 14px; /* 字体大小 */
    line-height: 1; /* 设置行高 */
    margin-top: 5px; /* 图片与标题之间的间距 */
    max-width: calc(4em); /* 1 个字宽度约等于 1em */
    overflow: hidden; /* 超出部分隐藏 */
    text-overflow: ellipsis; /* 显示省略号 */
    white-space: nowrap; /* 禁止换行 */
    text-align: center; /* 标题居中 */
    color: #fff; /* 设置文字颜色 */
}


/* 按钮容器样式，用于居中整个页面 */
.toggle-button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.toggle-button {
    flex: 0 0 calc(100%);
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.toggle-button:hover {
    background-color: #0056b3;
}

/* PC端调整按钮宽度 */
@media (min-width: 1024px) {
    .toggle-button {
        flex: 0 0 calc(25% - 10px);
    }
    .icon-ad {
        width: calc(10% - 10px); /* 在PC端时一行10个图标 */
        height: 60px;
    }
}

/* 默认隐藏广告 */
.mobile-only {
    display: none;
}

/* 移动设备显示广告 */
@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}
.footer-links {
    color: #000;
    text-align: center;
    padding: 20px 0; /* 给上方和下方留出一些内边距 */
    margin-top: 30px; /* 给 footer 上方留一些外边距，避免和内容紧挨着 */
}

/* 设置链接样式 */
.footer-links a {
    color: #000;
    text-decoration: none;
    margin: 10px 15px; /* 上下 10px，左右 15px */
    font-size: 14px;

    /* 添加以下属性隐藏多余文字 */
    display: inline-block; /* 确保 text-overflow 生效 */
    max-width: 100px; /* 设置一个最大宽度，根据需要调整 */
    overflow: hidden; /* 超出部分隐藏 */
    text-overflow: ellipsis; /* 用省略号表示被隐藏的文字 */
    white-space: nowrap; /* 禁止换行 */
    text-align: center; /* 居中对齐文字 */
}

/* 让链接在鼠标悬停时显示高亮 */
.footer-links a:hover {
    text-decoration: underline;
    color: #ff6600;
}

/* 响应式设计：调整链接布局为网格布局，每行显示 4 个 */
@media (max-width: 768px) {
    .footer-links {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 每行 4 列 */
        gap: 15px 10px; /* 增加上下和左右的网格间距 */
        justify-items: center; /* 水平居中 */
        padding: 15px 0; /* 减少内边距 */
    }

    .footer-links a {
        margin: 0; /* 移除单独的外边距，使用网格间距 */
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    /* 在更小屏幕上保持 1 行 4 个链接，但字体更大 */
    .footer-links a {
        font-size: 12px; /* 更大的字体 */
    }

    .footer-links {
        gap: 20px 10px; /* 为小屏幕增加更多的间隔 */
    }
}
.googlelink{
    position: absolute;
    opacity: 0;
}

#banner_foot{
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    justify-content: center; /* 水平居中 */
    gap: 10px; /* 子元素之间的间距 */
    padding: 5px;
    max-width: 1320px;
    margin: 0 auto;
}
/* Chigua promotion area: charcoal surfaces with the template's teal accent. */
.chigua-banner-slot,
.chigua-promo-hub,
.chigua-footer-links {
    width: min(100% - 30px, 92rem);
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
}

.chigua-banner-slot { margin-top: 14px; margin-bottom: 14px; }
.chigua-banner-slot--foot { margin-top: 28px; }
.chigua-banner-slot .streamer-container2 { width: 100%; padding: 0; overflow: hidden; }
.chigua-banner-slot .streamer-box2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.chigua-banner-slot .streamer-box2 li { width: 100%; min-width: 0; max-width: none; margin: 0; }
.chigua-banner-slot .streamer-box2 a,
.chigua-banner-slot .streamer-box2 img { display: block; width: 100%; border-radius: 8px; }
.chigua-banner-slot .streamer-box2 a {
    overflow: hidden;
    border: 1px solid rgba(26, 188, 156, .2);
    background: #1e1d1d;
}
.chigua-banner-slot .streamer-box2 img { height: auto; max-height: none; object-fit: contain; }

.chigua-promo-hub {
    margin-top: 16px;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: #252323;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}
.chigua-promo-hub #ads-tubiao .mobile-only { display: block; }
.chigua-promo-hub #ads-tubiao .container-outer,
.chigua-promo-hub #ads-tubiao .container-inner { width: 100%; }
.chigua-promo-hub #ads-tubiao .icon-ads,
.chigua-promo-hub #ads-tubiao .remaining-ads {
    display: grid !important;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 14px 10px;
    max-width: none;
    margin: 0;
    padding: 0;
}
.chigua-promo-hub #ads-tubiao .remaining-ads:not(:empty) { margin-top: 14px; }
.chigua-promo-hub #ads-tubiao .icon-ad { display: block; width: 100%; min-width: 0; height: auto; margin: 0; }
.chigua-promo-hub #ads-tubiao .icon-image-container,
.chigua-promo-hub #ads-tubiao .icon-image { width: 100%; height: auto; aspect-ratio: 1; border-radius: 9px; }
.chigua-promo-hub #ads-tubiao .icon-image {
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .1);
    transition: border-color .18s ease, transform .18s ease;
}
.chigua-promo-hub #ads-tubiao .ad-link:hover .icon-image,
.chigua-promo-hub #ads-tubiao .ad-link:focus-visible .icon-image {
    border-color: rgba(26, 188, 156, .72);
    transform: translateY(-2px);
}
.chigua-promo-hub #ads-tubiao .icon-title {
    width: 100%;
    max-width: none;
    margin: 6px 0 0;
    overflow: hidden;
    color: #d3d0d0;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chigua-promo-hub #ads-tubiao .telegrambd {
    margin: 14px 0 0;
    padding: 8px 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .07);
    color: #1abc9c;
}
.chigua-promo-hub #ads-tubiao .telegrambd a { color: inherit; }

.chigua-partners[hidden], .chigua-footer-links[hidden] { display: none; }
.chigua-partners { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
.chigua-section-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.chigua-section-heading h2 { margin: 0; color: #f4f2f2; font-size: 17px; font-weight: 600; line-height: 1.4; }
.chigua-section-heading__mark {
    width: 4px;
    height: 18px;
    border-radius: 4px;
    background: #1abc9c;
    box-shadow: 0 0 12px rgba(26, 188, 156, .3);
}
.chigua-partners__grid,
.chigua-footer-links .footer-links { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.chigua-partners__link,
.chigua-footer-links .footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 42px;
    max-width: none;
    margin: 0;
    padding: 8px 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 7px;
    color: #c9c6c6;
    background: rgba(255, 255, 255, .025);
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.chigua-partners__link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chigua-partners__link:hover,
.chigua-partners__link:focus-visible,
.chigua-footer-links .footer-links a:hover,
.chigua-footer-links .footer-links a:focus-visible {
    border-color: rgba(26, 188, 156, .58);
    color: #fff;
    background: rgba(26, 188, 156, .1);
    outline: none;
}
.chigua-footer-links {
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.chigua-footer-links .footer-links {
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
    gap: 9px;
    justify-items: stretch;
    margin: 0;
    padding: 14px;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    background: linear-gradient(135deg, #242323, #1c1b1b);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.chigua-footer-links .footer-links a {
    justify-content: center;
    width: 100%;
    min-height: 40px;
    max-width: none;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 7px;
    color: #d4d1d1;
    background: rgba(255, 255, 255, .035);
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    box-sizing: border-box;
}
.chigua-footer-links .footer-links a:hover,
.chigua-footer-links .footer-links a:focus-visible {
    border-color: rgba(26, 188, 156, .58);
    color: #fff;
    background: rgba(26, 188, 156, .1);
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    .chigua-banner-slot, .chigua-promo-hub, .chigua-footer-links { width: calc(100% - 20px); }
    .chigua-banner-slot { margin-top: 10px; margin-bottom: 10px; }
    .chigua-banner-slot .streamer-box2 { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .chigua-banner-slot .streamer-box2 a,
    .chigua-banner-slot .streamer-box2 img { border-radius: 6px; }
    .chigua-promo-hub { margin-top: 12px; margin-bottom: 20px; padding: 12px 10px; border-radius: 10px; }
    .chigua-promo-hub #ads-tubiao .icon-ads,
    .chigua-promo-hub #ads-tubiao .remaining-ads,
    .chigua-partners__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px 7px; }
    .chigua-promo-hub #ads-tubiao .icon-title { font-size: clamp(10px, 2.8vw, 12px); }
    .chigua-partners { margin-top: 16px; padding-top: 15px; }
    .chigua-section-heading h2 { font-size: 16px; }
    .chigua-partners__link,
    .chigua-footer-links .footer-links a { min-height: 44px; padding: 7px 3px; font-size: 11px; }
    .chigua-footer-links {
        width: calc(100% - 20px);
        margin-top: 18px;
        margin-bottom: 18px;
        padding: 16px 0 0;
    }
    .chigua-footer-links .chigua-section-heading { margin-bottom: 11px; padding: 0; }
    .chigua-footer-links .footer-links {
        grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
        gap: 5px;
        padding: 9px;
        border-radius: 10px;
    }
    .chigua-footer-links .footer-links a {
        min-height: 38px;
        padding: 7px 3px;
        color: #d4d1d1;
        font-size: 10px;
    }
}

#video {
    width: 100%;
    height: 682px; /* 默认 PC 端高度 */
}

@media (max-width: 768px) {
    #video {
        height: 235px; /* 移动端高度，使用视口高度 */
    }
}
a {
    color: #000; /* 修改为你想要的颜色 */
    text-decoration: none; /* 可选，去掉下划线 */
}

a:hover {
    color: #ff0000; /* 悬停时的颜色 */
}
