/* gallery/assets/gallery.css */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: #ffffff;
    color: #333333;
    min-height: 100vh;
}

/* 顶栏 */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #07c160;
}

/* 首页横幅图 */
.banner {
    display: block;
    width: 100%;
}

/* 广播通知栏 */
.notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #ffffff;
    color: #000000;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.notice svg { flex-shrink: 0; }
.notice-track {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}
.notice-track span {
    display: inline-block;
    padding-left: 100%;
    animation: notice-scroll 12s linear infinite;
}
@keyframes notice-scroll {
    to { transform: translateX(-100%); }
}

/* 开奖 iframe */
.v-lam {
    display: block;
    width: 100%;
}

/* 功能入口（生肖属性 / 挑码助手 / 资料导航） */
.entries {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}
.entries a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.entries img {
    width: 22px;
    margin-right: 8px;
}
.entries span {
    font-size: 15px;
    color: #000000;
    font-weight: bold;
}
.logo { font-size: 20px; letter-spacing: 2px; color: #ffffff; }

/* 状态提示 */
.status { text-align: center; padding: 40px 0; color: #999999; }
.status:empty { display: none; }

/* 图片网格 */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 16px 20px;
}
.card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
    cursor: zoom-in;
}
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
    display: block;
}
.card:hover img { transform: scale(1.06); }
.card .caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 18px 8px 6px;
    font-size: 12px;
    color: #ddd;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity .2s;
}
.card:hover .caption { opacity: 1; }

/* 灯箱 */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .9);
}
.lightbox[hidden] { display: none; }
.lightbox figure {
    max-width: 88vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.lightbox img {
    max-width: 88vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox figcaption {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #eee;
    flex-wrap: wrap;
    justify-content: center;
}
.lightbox figcaption button {
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 5px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
}
.lightbox figcaption button:hover { border-color: #5b8def; }
.lb-close, .lb-prev, .lb-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    padding: 10px 18px;
    opacity: .7;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: 10px; right: 14px; font-size: 34px; }
.lb-prev  { left: 6px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 6px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
    .grid { gap: 6px; padding: 10px; }
    .lb-prev, .lb-next { font-size: 30px; padding: 8px 10px; }
}
