/* 49图库 - 移动端站点样式 */
:root {
    --green: #07c160;
    --green-dark: #06a552;
    --green-light: #e9f9ef;
    --red: #e5483b;
    --orange: #ff8a1f;
    --blue: #2f7cf6;
    --purple: #7b61ff;
    --ink: #333333;
    --text: #444444;
    --muted: #999999;
    --line: #eeeeee;
    --bg: #f5f5f5;
    --card: #ffffff;
    --radius: 10px;
    --shadow: 0 2px 8px rgba(0, 0, 0, .04);
    --tabbar-h: 58px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: #e6ece8;
    line-height: 1.45;
}

body.sheet-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    border: 0;
    background: none;
    cursor: pointer;
}

input,
select {
    font: inherit;
}

img,
svg {
    display: block;
}

/* 图标统一使用描边，避免 <use> 继承默认黑色填充 */
svg use {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

.app {
    position: relative;
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--bg);
    padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 22px);
    box-shadow: 0 0 40px rgba(20, 60, 40, .08);
    overflow-x: hidden;
}

/* ---------- 公共头部 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 5px 10px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header-ad {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    width: 78px;
    min-height: 42px;
    padding: 4px 5px;
    border-radius: 7px;
    color: #fff;
    text-align: center;
    line-height: 1.2;
    background: linear-gradient(135deg, #20d497, #07c160);
}

.header-ad b {
    font-size: 11px;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.header-ad span {
    margin-top: 2px;
    font-size: 9px;
    opacity: .92;
}

.site-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .5px;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 40px;
    padding: 2px 0;
    color: #333;
    font-size: 10px;
}

.header-action svg {
    width: 21px;
    height: 21px;
}

.header-action span {
    line-height: 1.1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.brand-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -.5px;
    background: linear-gradient(145deg, #2ec27a, #0a7f47);
    box-shadow: 0 6px 14px rgba(12, 130, 74, .28);
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 8px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-sub {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: .5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #3d4842;
    transition: background .15s ease;
}

.icon-btn:active {
    background: #eef3f0;
}

.icon-btn svg {
    width: 21px;
    height: 21px;
}

/* 内页头部 */
.sub-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.sub-header .icon-btn {
    flex: 0 0 auto;
}

.sub-header h1 {
    position: absolute;
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .5px;
    white-space: nowrap;
}

.sub-header .header-actions {
    margin-left: auto;
}

/* ---------- 公告 ---------- */
.notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border-bottom: 1px solid #f6f8f7;
    font-size: 12px;
    color: #6b7670;
    overflow: hidden;
}

.notice-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    color: var(--red);
    font-weight: 700;
}

.notice-tag svg {
    width: 15px;
    height: 15px;
}

.marquee {
    position: relative;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
    display: inline-flex;
    animation: marquee 22s linear infinite;
}

.marquee-track span {
    flex: 0 0 auto;
    padding-right: 42px;
}

.notice:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---------- 首页横幅 ---------- */
.promo {
    position: relative;
    margin: 0;
    padding: 18px 14px 14px;
    border-radius: 0;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 20%, rgba(255, 255, 255, .9) 0 2px, transparent 3px),
        radial-gradient(circle at 92% 76%, rgba(255, 255, 255, .9) 0 2px, transparent 3px),
        linear-gradient(135deg, #f2fff8 0%, #d9f9e8 46%, #c9f4de 100%);
    border-bottom: 1px solid #d7efe1;
}

.promo::before,
.promo::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .75), transparent 68%);
    pointer-events: none;
}

.promo::before {
    top: -38px;
    left: -24px;
}

.promo::after {
    right: -26px;
    bottom: -44px;
}

.promo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #51806a;
}

.promo-kicker::before,
.promo-kicker::after {
    content: "";
    width: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8fc7a9);
}

.promo-kicker::after {
    background: linear-gradient(90deg, #8fc7a9, transparent);
}

.promo-title {
    margin: 2px 0 8px;
    font-size: clamp(32px, 10.5vw, 42px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(180deg, #2cc27c 0%, #058a4b 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 6px 14px rgba(9, 130, 72, .12);
}

.promo-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 14px rgba(20, 100, 60, .1);
    font-size: 12px;
    color: #4f5b55;
}

.promo-pill b {
    color: var(--green-dark);
    letter-spacing: .3px;
}

.promo-foot {
    margin-top: 8px;
    font-size: 10.5px;
    color: #7f9188;
    letter-spacing: .3px;
}

/* ---------- 澳彩 / 港彩 切换 ---------- */
.draw-wrap {
    margin: 10px 12px 12px;
}

.draw-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.draw-tab {
    position: relative;
    padding: 9px 6px 8px;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    background: #fff;
    transition: all .2s ease;
}

.draw-tab small {
    display: block;
    margin-top: 1px;
    font-size: 11px;
    font-weight: 400;
    color: #999;
}

.draw-tab.is-active {
    color: #fff;
    background: var(--green);
    box-shadow: none;
}

.draw-tab.is-active small {
    color: rgba(255, 255, 255, .86);
}

.live-open {
    position: relative;
    z-index: 1;
    display: block;
    width: 118px;
    height: 24px;
    margin: 2px auto -2px;
    clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
    background: var(--green);
    color: #fff;
    font-size: 12px;
    line-height: 24px;
    text-align: center;
}

.draw-card {
    position: relative;
    padding: 10px 8px 10px;
    background: #fff;
    border: 2px solid var(--green);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 5px #eee;
}

.draw-top {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    white-space: nowrap;
}

.draw-issue {
    color: var(--green);
    font-weight: 800;
    font-size: 12px;
}

.draw-count-label {
    color: #77827c;
}

.draw-count {
    color: var(--red);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: .3px;
}

.draw-history {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    margin-left: auto;
    color: var(--green);
    font-weight: 600;
    font-size: 11.5px;
}

.draw-history svg {
    width: 13px;
    height: 13px;
}

.balls {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 12px 0 2px;
    padding-bottom: 14px;
}

.ball {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    min-width: 0;
    max-width: 56px;
    margin-bottom: 16px;
    border: 0;
    border-radius: 50%;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    font-variant-numeric: tabular-nums;
}

.ball b {
    font-size: clamp(15px, 5.2vw, 20.8px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.5px;
    color: #666;
    text-shadow: none;
}

.ball i {
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
    font-style: normal;
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
    color: #555;
}

.ball.red {
    background-image: url("/assets/uploads/balls/red.png");
}

.ball.blue {
    background-image: url("/assets/uploads/balls/blue.png");
}

.ball.green {
    background-image: url("/assets/uploads/balls/green.png");
}

.ball-sep {
    flex: 0 0 10px;
    display: grid;
    place-items: center;
    color: #b3bdb7;
    font-size: 17px;
    font-weight: 300;
}

.ball.small {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    max-width: 30px;
    margin-bottom: 0;
    border-width: 0;
    font-size: 12px;
}

.ball.small b {
    font-size: 12.5px;
}

.ball.small i {
    display: none;
}

.next-line {
    text-align: center;
    font-size: 11.5px;
    color: #d63f33;
    letter-spacing: .2px;
}

/* ---------- 导航宫格 ---------- */
.link-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0 12px 12px;
    padding: 8px;
    background: #fff;
    border-radius: 4px;
    box-shadow: none;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 6px 2px;
    border-radius: 4px;
    background: #f8f8f8;
    font-size: 14px;
    color: #444;
    text-align: center;
    transition: background .15s ease;
}

.link-item:active {
    background: #e8e8e8;
}

/* ---------- 快捷入口 ---------- */
.quick-card {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin: 0 0 8px;
    padding: 10px 4px;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
}

.quick-card-extra {
    margin-top: 0;
}

/* ---------- 首页彩图区 ---------- */
.home-gallery {
    margin: 0 0 8px;
    padding: 12px;
    background: #fff;
}

.year-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.year-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    font-size: 12.5px;
    color: #333;
    text-align: center;
}

.year-thumb {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #d9d9d9;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.year-thumb svg {
    width: 20px;
    height: 20px;
}

.year-tab.is-active .year-thumb {
    border-color: transparent;
    box-shadow: none;
    background: #20d497;
}

.series-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.series-chips::-webkit-scrollbar {
    display: none;
}

.series-chip {
    flex: 0 0 auto;
    padding: 7px 15px;
    border-radius: 4px;
    border: 1px solid var(--green);
    background: var(--green);
    color: #fff;
    font-size: 13px;
}

.series-chip.is-more {
    border-color: #ddd;
    background: #fff;
    color: #666;
}

.picture-grid {
    display: block;
    column-count: 2;
    column-gap: 10px;
}

.picture-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
    break-inside: avoid;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.picture-card-head {
    padding: 7px 8px;
    background: #f5f8f6;
    color: #2b352f;
    font-size: 11.5px;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.picture-card-img {
    position: relative;
    background: #eef3f0;
    overflow: hidden;
}

.picture-card-img img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.picture-card-img.is-fallback {
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 4;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.picture-card-img.img-failed {
    aspect-ratio: 3 / 4;
}

.picture-card-img.img-failed::after {
    content: attr(data-label);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.picture-card-title {
    padding: 8px 6px;
    background: #fff;
    color: #333;
    font-size: 13px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.load-more {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    color: var(--green);
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 2px;
    border-radius: 10px;
    font-size: 12.5px;
    color: #333;
    text-align: center;
    transition: transform .15s ease;
}

.quick-item:active {
    transform: scale(.94);
}

.quick-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
}

.quick-icon svg {
    width: 24px;
    height: 24px;
}

.tone-green {
    background: linear-gradient(140deg, #35c985, #0f9a58);
}

.tone-blue {
    background: linear-gradient(140deg, #58a1ff, #2568dd);
}

.tone-orange {
    background: linear-gradient(140deg, #ffb04d, #f07b0c);
}

.tone-teal {
    background: linear-gradient(140deg, #35d3c2, #0b9f97);
}

.tone-purple {
    background: linear-gradient(140deg, #a58bff, #6e50ee);
}

.tone-red {
    background: linear-gradient(140deg, #ff8a80, #e04437);
}

/* ---------- 通用区块 ---------- */
.section {
    margin: 0 12px 14px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 2px 8px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .3px;
}

.section-title::before {
    content: "";
    width: 4px;
    height: 15px;
    border-radius: 3px;
    background: linear-gradient(180deg, #2cc27c, #0b854a);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 12px;
    color: var(--muted);
}

.section-more svg {
    width: 14px;
    height: 14px;
}

.card {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-pad {
    padding: 14px;
}

/* ---------- 列表 / 资讯 ---------- */
.article {
    display: flex;
    gap: 11px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.article:last-child {
    border-bottom: 0;
}

.article:active {
    background: #fafcfb;
}

.thumb {
    position: relative;
    flex: 0 0 96px;
    width: 96px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

.thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .4), transparent 42%);
}

.thumb span {
    position: relative;
    z-index: 1;
}

.thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t-green {
    background: linear-gradient(135deg, #34c985, #0a7e47);
}

.t-blue {
    background: linear-gradient(135deg, #66a6ff, #245fce);
}

.t-orange {
    background: linear-gradient(135deg, #ffb257, #e87506);
}

.t-purple {
    background: linear-gradient(135deg, #a68bff, #6444e6);
}

.t-red {
    background: linear-gradient(135deg, #ff8d82, #d63a2f);
}

.t-teal {
    background: linear-gradient(135deg, #3fd6c5, #078f86);
}

.article-body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.article-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.38;
    color: #26312b;
}

.article-desc {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 11.5px;
    color: var(--muted);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: 10.5px;
    color: #a0aaa4;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    color: var(--green-dark);
    background: var(--green-light);
}

/* ---------- 筛选 chips ---------- */
.chips {
    display: flex;
    gap: 8px;
    margin: 0 0 10px;
    padding: 2px 2px 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.chips::-webkit-scrollbar {
    display: none;
}

.chip {
    flex: 0 0 auto;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid #e4eae6;
    background: #fff;
    font-size: 12px;
    color: #5d6863;
    transition: all .15s ease;
}

.chip.is-active {
    color: #fff;
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 5px 12px rgba(16, 140, 80, .2);
}

/* ---------- 开奖现场 ---------- */
.live-hero {
    position: relative;
    margin: 12px;
    padding: 16px 14px;
    border-radius: 18px;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% -10%, rgba(255, 255, 255, .28), transparent 46%),
        linear-gradient(145deg, #1fb56c 0%, #0b8048 62%, #086b3c 100%);
    box-shadow: 0 12px 24px rgba(8, 110, 60, .22);
}

.live-hero::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -56px;
    width: 160px;
    height: 160px;
    border: 22px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.live-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    opacity: .95;
}

.live-badge {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: 10.5px;
    letter-spacing: .5px;
}

.live-hero .balls {
    position: relative;
    z-index: 1;
    margin: 16px 0 6px;
    padding-bottom: 14px;
}

.live-hero .ball {
    background-color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .12);
}

.live-hero .ball.red,
.live-hero .ball.blue,
.live-hero .ball.green {
    color: #fff;
}

.live-hero .ball i {
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.live-hero .ball i {
    color: #7d8a83;
}

.live-foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    opacity: .92;
}

.live-foot .time {
    font-variant-numeric: tabular-nums;
}

.live-toggle {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
}

.live-toggle button {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .9);
}

.live-toggle button.is-active {
    background: #fff;
    color: var(--green-dark);
    font-weight: 700;
}

.list-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.list-row:last-child {
    border-bottom: 0;
}

.list-main {
    min-width: 0;
    flex: 1;
}

.list-title {
    font-size: 13px;
    font-weight: 600;
    color: #2b352f;
}

.list-sub {
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted);
}

.mini-balls {
    display: flex;
    align-items: center;
    gap: 3px;
}

.mini-ball {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    color: #666;
    font-size: 11.5px;
    font-weight: 700;
    text-shadow: none;
    font-variant-numeric: tabular-nums;
}

.mini-ball.red {
    background-image: url("/assets/uploads/balls/red.png");
}

.mini-ball.blue {
    background-image: url("/assets/uploads/balls/blue.png");
}

.mini-ball.green {
    background-image: url("/assets/uploads/balls/green.png");
}

.mini-plus {
    color: #b3bdb7;
    font-size: 12px;
}

/* ---------- 统计 ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 12px;
}

.stat-box {
    padding: 13px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.stat-label {
    font-size: 11.5px;
    color: var(--muted);
}

.stat-value {
    margin-top: 3px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.stat-value small {
    margin-left: 2px;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
    font-size: 10.5px;
    color: var(--green);
}

.stat-trend svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
}

.stat-trend.down {
    color: var(--red);
}

.bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 150px;
    padding: 8px 6px 0;
}

.bar {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    height: 100%;
}

.bar-fill {
    width: 100%;
    max-width: 20px;
    height: var(--h, 40%);
    border-radius: 7px 7px 3px 3px;
    background: linear-gradient(180deg, #4bd28d, #12a15e);
    box-shadow: 0 4px 8px rgba(18, 161, 94, .18);
    transition: height .6s ease;
}

.bar:nth-child(3n) .bar-fill {
    background: linear-gradient(180deg, #7cb8ff, #2f7cf6);
    box-shadow: 0 4px 8px rgba(47, 124, 246, .16);
}

.bar:nth-child(4n) .bar-fill {
    background: linear-gradient(180deg, #ffc06b, #f5860c);
    box-shadow: 0 4px 8px rgba(245, 134, 12, .16);
}

.bar-name {
    font-size: 10.5px;
    color: var(--muted);
}

.stat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
}

.stat-table th {
    padding: 9px 5px;
    color: var(--muted);
    font-weight: 500;
    background: #fafcfb;
}

.stat-table td {
    padding: 10px 5px;
    text-align: center;
    border-top: 1px solid var(--line);
    color: #3c4741;
    font-variant-numeric: tabular-nums;
}

.stat-table td:first-child {
    color: var(--green-dark);
    font-weight: 600;
}

/* ---------- 查询助手 ---------- */
.tool-form {
    display: flex;
    gap: 8px;
    padding: 12px;
}

.field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    height: 42px;
    padding: 0 12px;
    border-radius: 11px;
    background: #f6f9f7;
    border: 1px solid #e9efeb;
}

.field svg {
    width: 17px;
    height: 17px;
    color: var(--muted);
    flex: 0 0 auto;
}

.field input,
.field select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
    color: var(--ink);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 42px;
    padding: 0 18px;
    border-radius: 11px;
    background: linear-gradient(135deg, #22b56d, #0b854a);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 7px 14px rgba(16, 140, 80, .22);
}

.btn-primary:active {
    filter: brightness(.96);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #dfe7e2;
    background: #fff;
    font-size: 12px;
    color: #4d5852;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 4px 12px 14px;
}

.tool-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px;
    border-radius: 12px;
    background: #f7faf8;
    font-size: 11px;
    color: #4b5650;
}

.tool-tile svg {
    width: 22px;
    height: 22px;
    color: var(--green);
}

.result-card {
    margin: 0 12px 12px;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.result-title {
    font-size: 13.5px;
    font-weight: 700;
}

.result-badge {
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 10.5px;
}

.result-empty {
    padding: 26px 10px;
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
}

.result-empty svg {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    color: #c9d4ce;
}

/* ---------- 图库 ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0 12px 14px;
}

.tile {
    border-radius: 13px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}

.tile-art {
    position: relative;
    display: grid;
    place-items: center;
    height: 124px;
    color: rgba(255, 255, 255, .95);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 3px;
    overflow: hidden;
}

.tile-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, .42), transparent 38%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 10px, transparent 10px 20px);
}

.tile-art span {
    position: relative;
    z-index: 1;
}

.tile-body {
    padding: 8px 10px 10px;
}

.tile-title {
    font-size: 12.5px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tile-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 10.5px;
    color: var(--muted);
}

.tile-tag {
    color: var(--green-dark);
}

/* ---------- 发现 / 动态 ---------- */
.feed-item {
    padding: 13px;
    border-bottom: 1px solid var(--line);
}

.feed-item:last-child {
    border-bottom: 0;
}

.feed-head {
    display: flex;
    align-items: center;
    gap: 9px;
}

.avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex: 0 0 auto;
}

.feed-user {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.3;
}

.feed-name {
    font-size: 12.5px;
    font-weight: 600;
}

.feed-time {
    font-size: 10.5px;
    color: var(--muted);
}

.feed-text {
    margin-top: 9px;
    font-size: 13px;
    line-height: 1.55;
    color: #3b463f;
}

.feed-media {
    display: flex;
    gap: 6px;
    margin-top: 9px;
}

.feed-media span {
    display: grid;
    place-items: center;
    flex: 1;
    height: 74px;
    border-radius: 10px;
    color: rgba(255, 255, 255, .92);
    font-size: 15px;
    font-weight: 800;
}

.feed-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    font-size: 11.5px;
    color: var(--muted);
}

.feed-actions button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.feed-actions svg {
    width: 15px;
    height: 15px;
}

.feed-actions .is-liked {
    color: var(--red);
}

/* ---------- 高手之家 ---------- */
.expert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.expert:last-child {
    border-bottom: 0;
}

.rank {
    display: grid;
    place-items: center;
    width: 22px;
    flex: 0 0 22px;
    font-size: 13px;
    font-weight: 800;
    color: #a5b0aa;
    font-variant-numeric: tabular-nums;
}

.rank.top {
    color: #fff;
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffbe4d, #f0860a);
    box-shadow: 0 4px 8px rgba(240, 134, 10, .28);
}

.rank.top2 {
    background: linear-gradient(135deg, #b9c6cf, #7d8f9b);
    box-shadow: 0 4px 8px rgba(125, 143, 155, .26);
}

.rank.top3 {
    background: linear-gradient(135deg, #e5a97c, #b97745);
    box-shadow: 0 4px 8px rgba(185, 119, 69, .26);
}

.expert-main {
    flex: 1;
    min-width: 0;
}

.expert-name {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
}

.badge {
    padding: 1px 6px;
    border-radius: 5px;
    background: #fff3dc;
    color: #c47a08;
    font-size: 9.5px;
    font-weight: 500;
}

.expert-stat {
    margin-top: 3px;
    font-size: 10.5px;
    color: var(--muted);
}

.expert-stat b {
    color: var(--red);
    font-weight: 700;
}

.follow-btn {
    flex: 0 0 auto;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid var(--green);
    color: var(--green);
    font-size: 11.5px;
}

.follow-btn.is-followed {
    border-color: #e2e8e4;
    background: #f4f7f5;
    color: var(--muted);
}

/* ---------- 我的 ---------- */
.profile {
    position: relative;
    margin: 12px;
    padding: 18px 16px;
    border-radius: 18px;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 10%, rgba(255, 255, 255, .25), transparent 42%),
        linear-gradient(140deg, #22b56d, #0a7c45 70%, #076238);
    box-shadow: 0 12px 24px rgba(8, 110, 60, .2);
}

.profile-head {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    border: 2px solid rgba(255, 255, 255, .55);
    font-size: 22px;
    font-weight: 800;
}

.profile-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .3px;
}

.profile-id {
    margin-top: 3px;
    font-size: 11px;
    opacity: .82;
}

.profile-login {
    margin-left: auto;
    padding: 7px 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 700;
}

.profile-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.profile-stats div {
    text-align: center;
}

.profile-stats b {
    display: block;
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.profile-stats span {
    font-size: 10.5px;
    opacity: .8;
}

.menu-list {
    margin: 0 12px 14px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 13px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.menu-item:last-child {
    border-bottom: 0;
}

.menu-item:active {
    background: #fafcfb;
}

.menu-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #f2f8f4;
    color: var(--green);
    flex: 0 0 auto;
}

.menu-icon svg {
    width: 17px;
    height: 17px;
}

.menu-item .chevron {
    margin-left: auto;
    color: #c3ccc7;
}

.menu-item .chevron svg {
    width: 16px;
    height: 16px;
}

.menu-note {
    margin-left: auto;
    font-size: 11px;
    color: var(--muted);
}

/* ---------- 底部导航 ---------- */
.tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: 40;
    width: 100%;
    max-width: 480px;
    padding: 5px 4px calc(5px + var(--safe-bottom));
    transform: translateX(-50%);
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(14px);
    border-top: 1px solid #e7ede9;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    box-shadow: 0 -6px 18px rgba(20, 70, 45, .04);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 3px 0;
    font-size: 11px;
    color: #999;
    transition: color .15s ease;
}

.tab-icon {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
}

.tab-icon svg {
    width: 22px;
    height: 22px;
}

.tab-item.is-active {
    color: var(--green);
    font-weight: 600;
}

.tab-center {
    position: relative;
}

.tab-center .tab-icon {
    position: relative;
    width: 46px;
    height: 46px;
    margin-top: -21px;
    margin-bottom: 2px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}

.tab-center .tab-icon::after {
    content: "热";
    position: absolute;
    top: -4px;
    right: -4px;
    padding: 0 4px;
    border: 1px solid #fff;
    border-radius: 8px;
    background: #ff3b30;
    color: #fff;
    font-size: 8px;
    line-height: 12px;
    font-weight: 400;
}

.tab-center .tab-icon svg {
    width: 23px;
    height: 23px;
}

.tab-center.is-active .tab-icon {
    background: var(--green);
}

.tab-center.is-active {
    color: var(--green);
}

/* 悬浮按钮 */
.fab {
    position: fixed;
    right: max(14px, calc((100vw - 480px) / 2 + 14px));
    bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 18px);
    z-index: 35;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(140deg, #3ed3c0, #0a9c93);
    box-shadow: 0 8px 18px rgba(10, 156, 147, .32);
    opacity: 0;
    transform: translateY(10px) scale(.92);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.fab.is-show {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.fab:active {
    transform: scale(.92);
}

.fab svg {
    width: 22px;
    height: 22px;
}

/* ---------- 弹层 / 提示 ---------- */
.sheet-mask {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(12, 24, 18, .38);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.sheet-mask.is-open {
    opacity: 1;
    pointer-events: auto;
}

.sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: 70;
    width: 100%;
    max-width: 480px;
    max-height: 82vh;
    padding: 16px 16px calc(18px + var(--safe-bottom));
    border-radius: 20px 20px 0 0;
    background: #fff;
    transform: translate(-50%, 102%);
    transition: transform .24s cubic-bezier(.32, .72, .28, 1);
    overflow-y: auto;
}

.sheet.is-open {
    transform: translate(-50%, 0);
}

.sheet-handle {
    width: 38px;
    height: 4px;
    margin: -6px auto 12px;
    border-radius: 4px;
    background: #e4eae6;
}

.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sheet-head h3 {
    font-size: 16px;
    font-weight: 800;
}

.sheet-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f6f4;
    color: #6b7670;
}

.sheet-close svg {
    width: 17px;
    height: 17px;
}

.sheet-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 4px;
}

.sheet-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 13px 4px;
    border-radius: 13px;
    background: #f7faf8;
    font-size: 11.5px;
    color: #46514b;
}

.sheet-action svg {
    width: 23px;
    height: 23px;
    color: var(--green);
}

.search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.search-form .field {
    flex: 1;
}

.search-results {
    max-height: 52vh;
    overflow-y: auto;
}

.search-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.search-result:last-child {
    border-bottom: 0;
}

.search-result .sr-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #f2f8f4;
    color: var(--green);
    flex: 0 0 auto;
}

.search-result .sr-icon svg {
    width: 16px;
    height: 16px;
}

.search-result .sr-sub {
    font-size: 10.5px;
    color: var(--muted);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 34px);
    z-index: 90;
    max-width: 80vw;
    padding: 10px 17px;
    border-radius: 999px;
    background: rgba(20, 30, 25, .9);
    color: #fff;
    font-size: 12.5px;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, 8px);
    pointer-events: none;
    transition: all .2s ease;
}

.toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.empty {
    padding: 34px 16px;
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
}

/* ---------- 小工具 ---------- */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 481px) {
    body {
        padding: 18px 0;
    }

    .app {
        min-height: calc(100vh - 36px);
        border-radius: 20px;
        overflow: hidden;
    }

    .site-header,
    .sub-header {
        border-radius: 0;
    }

    .tabbar {
        bottom: 18px;
        border-radius: 0 0 20px 20px;
    }

    .fab {
        bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 36px);
    }
}

/* ---------- 页面补充组件 ---------- */
.site-note {
    margin: 2px 16px 8px;
    font-size: 10.5px;
    line-height: 1.6;
    color: #a3aea8;
    text-align: center;
}

.chips-page {
    margin: 12px 12px 0;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud .chip {
    padding: 6px 12px;
}

.section-more {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.live-head .live-date {
    margin-left: auto;
    font-size: 11px;
    opacity: .85;
}

/* 副页面横幅 */
.sub-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px;
    padding: 17px 16px;
    border-radius: 18px;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 0%, rgba(255, 255, 255, .25), transparent 45%),
        linear-gradient(135deg, #1fb56c, #0a7c45 72%, #076238);
    box-shadow: 0 10px 22px rgba(8, 110, 60, .2);
}

.sub-hero::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -52px;
    width: 130px;
    height: 130px;
    border: 18px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.sub-hero-tag {
    font-size: 9.5px;
    letter-spacing: 1.6px;
    opacity: .72;
}

.sub-hero h2 {
    margin-top: 3px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .5px;
}

.sub-hero p {
    margin-top: 4px;
    font-size: 11.5px;
    opacity: .85;
}

.sub-hero-mark {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 1px;
    opacity: .26;
}

.master-hero {
    background:
        radial-gradient(circle at 88% 0%, rgba(255, 255, 255, .25), transparent 45%),
        linear-gradient(135deg, #6d55e8, #3b2bb0);
    box-shadow: 0 10px 22px rgba(59, 43, 176, .22);
}

.treasure-hero {
    background:
        radial-gradient(circle at 88% 0%, rgba(255, 255, 255, .28), transparent 45%),
        linear-gradient(135deg, #ffab35, #e46f05);
    box-shadow: 0 10px 22px rgba(228, 111, 5, .2);
}

/* 榜单切换 */
.segmented {
    display: flex;
    gap: 4px;
    margin: 0 12px 12px;
    padding: 4px;
    border-radius: 12px;
    background: #e7eeea;
}

.segmented button {
    flex: 1;
    padding: 8px;
    border-radius: 9px;
    font-size: 12.5px;
    color: #5e6963;
    transition: all .15s ease;
}

.segmented button.is-active {
    background: #fff;
    color: var(--green-dark);
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(20, 80, 50, .08);
}

/* 寻宝分类 */
.treasure-cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0 12px 14px;
}

.treasure-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 12px 2px 10px;
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow);
    font-size: 11px;
    color: #444f49;
}

.treasure-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 6px 12px rgba(20, 100, 60, .16);
}

.treasure-icon svg {
    width: 22px;
    height: 22px;
}

/* 专家头像 */
.expert .avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    font-size: 14px;
}

/* 文章详情弹层 */
.article-detail h2,
.detail-title {
    margin-bottom: 4px;
    font-size: 17px;
    line-height: 1.45;
    color: #222d27;
}

.detail-art {
    display: grid;
    place-items: center;
    height: 120px;
    margin-bottom: 13px;
    border-radius: 14px;
    overflow: hidden;
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, .16);
}

.detail-art.tall {
    height: 230px;
    font-size: 46px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 6px 0 12px;
    font-size: 11px;
    color: var(--muted);
}

.article-detail p {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.75;
    color: #4a554f;
}

.detail-fav {
    width: 100%;
    margin-top: 8px;
}

.detail-fav svg {
    width: 16px;
    height: 16px;
}

.detail-fav.is-faved {
    background: linear-gradient(135deg, #8a9690, #5f6b65);
    box-shadow: none;
}

.article-loading {
    color: var(--muted);
    font-size: 12.5px;
}

.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 8px auto;
    border-radius: 10px;
}

.comment-context {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f6f9f7;
    color: #5b6660;
    font-size: 12.5px;
    line-height: 1.6;
}

.comment-box {
    width: 100%;
    margin-bottom: 12px;
    padding: 11px 12px;
    border: 1px solid #e3eae5;
    border-radius: 12px;
    outline: 0;
    resize: vertical;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink);
    background: #fbfdfc;
}

.comment-box:focus {
    border-color: var(--green);
}

/* 查询结果 */
.result-note {
    margin-top: 10px;
    font-size: 11.5px;
    line-height: 1.65;
    color: var(--muted);
}

.number-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 4px;
}

.number-cloud .ball {
    flex: 0 0 42px;
    width: 42px;
    max-width: 42px;
}

.number-detail {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 4px 4px;
}

.number-detail .ball {
    flex: 0 0 66px;
    width: 66px;
    max-width: 66px;
}

.number-detail .ball b {
    font-size: 27px;
}

.number-facts p {
    margin: 3px 0;
    font-size: 12.5px;
    color: #4b5650;
}

/* 查询表单 */
.field-select {
    flex: 0 0 94px;
    padding: 0 10px;
}

.tool-form .btn-primary {
    flex: 0 0 auto;
    padding: 0 15px;
}

/* 搜索结果 */
.search-result > span:nth-child(2) {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
}

.search-result > svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    color: #c3ccc7;
}

@media (max-width: 360px) {
    .draw-count-label {
        display: none;
    }

    .draw-top,
    .draw-history {
        font-size: 11px;
    }

    .mini-balls {
        gap: 2px;
    }

    .mini-ball {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .quick-icon {
        width: 42px;
        height: 42px;
    }

    .quick-item {
        font-size: 10.5px;
    }

    .link-item {
        font-size: 12px;
    }

    .ball {
        border-width: 1.5px;
    }

    .ball i {
        font-size: 7.5px;
    }
}


/* ---------- 原站字体校准 ---------- */
body {
    font-family: PingFangSC-Regular, "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif;
    font-size: 14.56px;
    color: #333;
}

.site-title {
    font-size: 16px;
    font-weight: 500;
}

.link-item {
    font-size: 14.56px;
    font-weight: 400;
}

.quick-item {
    font-size: 14.56px;
    color: #555;
}

.draw-tab {
    font-size: 13.52px;
}

.draw-tab small {
    font-size: 12.48px;
}

.draw-issue {
    font-size: 14.56px;
}

.draw-count-label,
.draw-count,
.draw-history {
    font-size: 14px;
}

.next-line {
    font-size: 12.48px;
}

.ball i {
    font-size: 12.48px;
    color: #333;
}

.picture-card-title,
.article-title,
.list-title {
    font-size: 14.56px;
}

.tab-item {
    font-size: 12px;
}

.notice {
    font-size: 12.48px;
}

.section-title {
    font-size: 16px;
}

.list-sub {
    font-size: 12.48px;
}


@media (max-width: 360px) {
    .draw-issue {
        font-size: 12.5px;
    }

    .draw-count-label {
        display: none;
    }

    .draw-count {
        font-size: 12.5px;
    }

    .draw-history {
        font-size: 11.5px;
    }

    .link-item {
        font-size: 13px;
    }

    .quick-item {
        font-size: 12px;
    }

    .ball i {
        font-size: 11px;
    }

    .picture-card-title,
    .article-title,
    .list-title {
        font-size: 13px;
    }

    .site-title {
        font-size: 15px;
    }
}


/* ---------- 开奖头部精确对齐原站 ---------- */
.draw-top {
    line-height: 1.15;
}

.draw-issue {
    color: #333;
    font-size: 14.56px;
    font-weight: 400;
}

.draw-issue b {
    color: #07c160;
    font-weight: 400;
}

.draw-count-label,
.draw-count {
    color: #f00;
    font-size: 14.56px;
    font-weight: 400;
}

.draw-history {
    color: #333;
    font-size: 14.56px;
    font-weight: 400;
}

.draw-history svg {
    color: #333;
}

.next-line {
    color: #e71607;
    font-size: 12.48px;
    font-weight: 400;
}

@media (max-width: 360px) {
    .draw-issue,
    .draw-count-label,
    .draw-count,
    .draw-history {
        font-size: 12.5px;
    }

    .draw-count-label {
        display: none;
    }
}


/* ---------- 合作站点 ---------- */
.partner-note {
    margin: 10px 12px;
    color: #666;
    font-size: 12.48px;
    line-height: 1.65;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0 12px 14px;
}

.partner-card {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.partner-shot {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eef3f0;
}

.partner-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.partner-info {
    padding: 8px;
}

.partner-name {
    color: #333;
    font-size: 14.56px;
    font-weight: 600;
}

.partner-host {
    margin-top: 2px;
    overflow: hidden;
    color: #999;
    font-size: 10.5px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.partner-desc {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    color: #666;
    font-size: 11.5px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.partner-card.is-error {
    padding: 12px;
    background: #fff7f6;
}

.partner-entry {
    margin: 0 0 10px;
    text-align: center;
}

.partner-entry a {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid #07c160;
    border-radius: 999px;
    color: #07c160;
    font-size: 12.48px;
}


/* ---------- 开奖现场 / 推荐页 ---------- */
.live-top {
    padding: 10px 12px 0;
    background: #fff;
}

.live-tip {
    margin: 8px 2px 2px;
    color: #666;
    font-size: 12.48px;
    line-height: 1.6;
}

.live-actions {
    position: relative;
    height: 30px;
    margin-top: 4px;
}

.live-refresh {
    position: absolute;
    top: 6px;
    left: 2px;
    color: #666;
    font-size: 12.48px;
}

.live-open-btn {
    position: absolute;
    top: 4px;
    left: 50%;
    width: 118px;
    height: 24px;
    margin: 0;
    transform: translateX(-50%);
}

.live-draw {
    margin: 0;
    border-radius: 0 0 6px 6px;
}

.live-draw .draw-top {
    padding-bottom: 2px;
}

.live-draw .balls {
    margin-top: 12px;
}

.live-replay {
    margin-top: 14px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.video-card {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #dbe6f2;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    transform: translate(-50%, -50%);
}

.video-play svg {
    width: 20px;
    height: 20px;
}

.video-title {
    padding: 8px 6px;
    color: #333;
    font-size: 12.48px;
    text-align: center;
}

.live-recommend {
    margin-top: 12px;
}

.recommend-item {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.recommend-item:nth-child(odd) {
    background: #f7fbff;
}

.recommend-title {
    margin-bottom: 6px;
    color: #333;
    font-size: 14.56px;
}

.recommend-title b {
    color: #07c160;
    font-weight: 400;
}

.recommend-row {
    position: relative;
    display: flex;
    gap: 6px;
    min-height: 24px;
    color: #555;
    font-size: 12.48px;
    line-height: 1.9;
}

.recommend-row strong {
    flex: 0 0 42px;
    color: #333;
    font-weight: 400;
}

.recommend-row span {
    flex: 1;
}

.hit-badge {
    flex: 0 0 auto;
    height: 18px;
    padding: 0 6px;
    border-radius: 2px;
    background: #f52c3e;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    line-height: 18px;
}

.video-empty {
    grid-column: 1 / -1;
    padding: 24px 8px;
    color: #999;
    font-size: 12.5px;
    text-align: center;
}

/* ---------- 开奖现场精修（对齐原站 /recommend） ---------- */
.live-top {
    padding: 10px 12px 0;
    background: #fff;
}

.live-player {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 240px;
    margin: 10px -12px 0;
    padding: 0 18px;
    background: #000;
}

.live-player.is-open {
    display: flex;
}

.live-player .live-tip {
    max-width: 420px;
    margin: 0;
    color: #f00;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.live-player .live-refresh {
    position: static;
    height: 35px;
    margin-top: 20px;
    padding: 0 12px;
    border: 1px solid #e00;
    border-radius: 4px;
    background: transparent;
    color: #e00;
    font-size: 14px;
}

.live-open-btn {
    position: relative;
    top: auto;
    left: auto;
    z-index: 2;
    width: 118px;
    margin: 6px auto -1px;
    transform: none;
}

.live-draw {
    margin: 0;
    padding: 12px 10px;
    border: 1px solid #07c160;
    border-radius: 4px;
    box-shadow: none;
}

.live-draw .draw-top {
    align-items: center;
    padding-bottom: 0;
}

.live-draw .draw-issue {
    color: #07c160;
    font-size: 20.8px;
    font-weight: 400;
}

.live-draw .draw-history {
    color: #07c160;
    font-size: 16px;
    font-weight: 400;
}

.live-draw .draw-history svg {
    width: 16px;
    height: 16px;
    color: #07c160;
}

.live-draw .balls {
    gap: 4px;
    margin: 14px 0 4px;
    padding-bottom: 16px;
}

.live-draw .ball {
    max-width: 52px;
    margin-bottom: 18px;
}

.live-draw .ball b {
    color: #333;
    font-size: clamp(17px, 5.8vw, 24px);
}

.live-draw .ball i {
    top: calc(100% + 5px);
    color: #333;
    font-size: 14px;
}

.live-draw .ball-sep {
    color: #333;
    font-size: 24px;
}

.live-draw .next-line {
    margin-top: 4px;
    color: #e71607;
    font-size: 14.56px;
    text-align: center;
}

.live-replay .section-title {
    color: #333;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
}

.live-replay .section-title::before {
    display: none;
}

.live-replay .section-more {
    color: #07c160;
    font-size: 14.56px;
}

.live-replay .video-grid {
    gap: 10px;
}

.live-replay .video-card {
    border-radius: 2px;
    box-shadow: none;
    text-align: left;
}

.live-replay .video-thumb {
    aspect-ratio: 4 / 3;
}

.live-replay .video-title {
    padding: 10px 6px;
    color: #333;
    font-size: 14.56px;
}

.live-replay .video-play {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, .85);
    background: rgba(0, 0, 0, .35);
}

.live-replay .video-play svg {
    width: 22px;
    height: 22px;
}

.live-recommend {
    margin: 12px 0 0;
}

.recommend-item {
    padding: 10px 12px 12px;
    border-bottom: 0;
    background: #fff;
}

.recommend-item:nth-child(odd) {
    background: #fff;
}

.recommend-item.is-alt {
    background: #f2f8ff;
}

.recommend-title {
    margin-bottom: 4px;
    color: #333;
    font-size: 16px;
    font-weight: 400;
}

.recommend-title span {
    color: #666;
}

.recommend-title b {
    color: #07c160;
    font-weight: 600;
}

.recommend-row {
    gap: 0;
    min-height: 24px;
    color: #333;
    font-size: 14.56px;
    line-height: 1.9;
}

.recommend-row strong {
    flex: 0 0 auto;
    min-width: 44px;
    color: #333;
    font-weight: 400;
}

.rec-vals {
    flex: 1;
}

.rec-vals i {
    display: inline-block;
    margin-right: 8px;
    font-style: normal;
}

.rec-vals.is-code i {
    color: #07c160;
}

.recommend-row .hit-badge {
    flex: 0 0 auto;
    height: 22px;
    margin-left: 8px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f52c3e;
    color: #fff;
    font-size: 12px;
    font-style: normal;
    line-height: 22px;
}

.recommend-empty {
    padding: 30px 12px;
    background: #fff;
    color: #999;
    font-size: 14px;
    text-align: center;
}

.video-sheet {
    padding: 4px 12px 18px;
}

.video-sheet video {
    display: block;
    width: 100%;
    max-height: 70vh;
    border-radius: 6px;
    background: #000;
}

.video-sheet-title {
    margin-top: 10px;
    color: #333;
    font-size: 14.56px;
    text-align: center;
}

@media (max-width: 360px) {
    .live-draw .draw-issue {
        font-size: 18px;
    }

    .live-draw .draw-history {
        font-size: 13px;
    }

    .live-draw .ball i {
        font-size: 12px;
    }

    .live-draw .next-line,
    .recommend-row,
    .rec-vals i {
        font-size: 12.5px;
    }
}

/* 回放卡片：button/span 需要块级布局才能正确裁切与叠放 */
.live-replay .video-card {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.live-replay .video-thumb {
    display: block;
    aspect-ratio: 320 / 224;
}

.live-replay .video-title {
    display: block;
}

/* ---------- 首页开奖区背景对齐原站 .block-lottery ---------- */
.draw-wrap {
    margin: 10px 0 12px;
}

.draw-wrap .draw-switch {
    gap: 2px;
    padding: 5px 8px 0;
    background: #f5f5f5;
}

.draw-wrap .draw-tab {
    height: 45px;
    padding: 6px 6px 5px;
    border-radius: 8px 8px 0 0;
    background: #fff;
    color: #333;
    font-size: 13.52px;
    font-weight: 700;
}

.draw-wrap .draw-tab small {
    margin-top: 2px;
    color: #999;
    font-size: 12.48px;
}

.draw-wrap .draw-tab.is-active {
    background: #07c160;
    color: #fff;
}

.draw-wrap .draw-tab.is-active small {
    color: #fff;
}

.live-open-hide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    background: #fff;
}

.live-open-hide .live-open {
    width: 108px;
    margin: 0;
}

.draw-wrap .draw-card {
    margin: 0 8px;
    border-width: 1px;
    border-radius: 0 0 3px 3px;
}

/* ---------- 首页垂直间隙统一为 10px ---------- */
.draw-wrap {
    margin: 10px 0 10px;
}

.link-card {
    gap: 10px;
    margin: 0 12px 10px;
}

.quick-card {
    margin-bottom: 10px;
}

/* ---------- 导航宫格间隙对齐原站 ---------- */
.link-card {
    gap: 15px 10px;
    padding: 6px;
}

.link-item {
    min-height: 32px;
    padding: 0 2px;
}

/* “展开直播”与上方标签之间留出呼吸空间 */
.draw-wrap .live-open-hide {
    margin-top: 10px;
}

/* “展开直播”上方的间距也使用白色背景 */
.draw-wrap .live-open-hide {
    height: 34px;
    margin-top: 0;
    padding-top: 10px;
    background: #fff;
    box-sizing: border-box;
}

/* 开奖号码之间的加号：与原站一致的灰色描边 SVG */
.ball-sep {
    flex: 0 0 13px;
    color: #999;
    font-size: inherit;
}

.live-draw .ball-sep {
    flex: 0 0 13px;
    color: #999;
    font-size: inherit;
}

/* 三个彩种：澳彩 / 港彩 / 新港彩 */
.draw-wrap .draw-switch,
.live-top .draw-switch {
    grid-template-columns: repeat(3, 1fr);
}

/* 首页彩图颜色筛选 */
.color-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.color-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 13px;
}

.color-tab.is-active {
    border-color: #07c160;
    background: #effbf4;
    color: #07c160;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #07c160;
}

.color-tab[data-color="HB"] .color-dot {
    background: #333;
}

.series-chip.is-active {
    border-color: #059b4d;
    background: #059b4d;
}

.gallery-note {
    margin: 0 0 8px;
    color: #999;
    font-size: 12px;
}

.gallery-note[hidden] {
    display: none;
}

/* 天线宝宝图库 */
.txbb-grid {
    margin: 0 12px 12px;
}

.txbb-grid + .load-more {
    width: calc(100% - 24px);
    margin: 0 12px 14px;
}

.picture-sheet {
    padding: 4px 12px 18px;
    text-align: center;
}

.picture-sheet img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.picture-sheet p {
    margin-top: 10px;
    color: #333;
    font-size: 14.56px;
}

.txbb-grid .picture-card {
    display: block;
}
