/* 子站导航（开奖区下方）。主题站在 body.theme-<id> 下覆盖 --xsn-* 变量即可 */
.xsn-sites {
    --xsn-bd: #e6b85c;
    --xsn-bg: #ffffff;
    --xsn-line: #ececec;
    --xsn-text: #333333;
    --xsn-cur-bg: rgba(255, 193, 7, 0.16);
    --xsn-cur-bd: #f5a623;
    --xsn-logo-radius: 13px;
    --xsn-radius: 6px;
    box-sizing: border-box;
    width: 100%;
    margin: 8px 0;
    overflow: hidden;
    background: var(--xsn-bg);
    border: 2px solid var(--xsn-bd);
    border-radius: var(--xsn-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.xsn-sites *,
.xsn-sites *::before,
.xsn-sites *::after {
    box-sizing: border-box;
}

.xsn-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    border-left: 1px solid var(--xsn-line);
}

.xsn-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 10px 2px 8px;
    border-right: 1px solid var(--xsn-line);
    border-bottom: 1px solid var(--xsn-line);
    font-size: 14px;
    line-height: 1.3;
    color: var(--xsn-text);
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.xsn-card:hover {
    background: var(--xsn-cur-bg);
}

.xsn-card.is-current {
    background: var(--xsn-cur-bg);
    box-shadow: inset 0 0 0 2px var(--xsn-cur-bd);
}

.xsn-logo {
    display: block;
    width: 58px;
    height: 58px;
    border-radius: var(--xsn-logo-radius);
    background: #f1f2f4;
    object-fit: cover;
}

.xsn-name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.xsn-card.is-current .xsn-name {
    color: var(--xsn-cur-bd);
}

@media (max-width: 480px) {
    .xsn-logo {
        width: 52px;
        height: 52px;
    }

    .xsn-name {
        font-size: 13px;
    }
}

.xsn-logo.xsn-txt {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
