:root {
    --bg: #fff;
    --text: #222;
    --muted: #666;
    --bd: #e5e7eb;
    --bd2: #f1f3f5;
    --tab: #1bcb82;
    --pill: #f5f5f5;
    --seg: #f3f4f6;
    --segActive: #1bcb82;
    --segText: #111827;
    --segTextActive: #fff;
}

* {
    box-sizing: border-box
}

a {
    text-decoration: none;
}

body {
    margin: 0;
    background: #fafafa;
    color: var(--text);
    font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", Segoe UI, Roboto, Arial
}

main {
    max-width: 600px !important;
    margin: 12px auto;
    padding: 0 1.5% 24px;

}


.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto 10px;
    background: var(--tab);
    padding: 1%;
    position: sticky;
    top: 0;
    z-index: 999;
    max-width: 600px !important;
}



.topbar .app {
    border: 1px solid var(--bd);
    background: #e5f1c5;
    padding: 3% 2%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8a8a;
    border-radius: 10px;
}

.topbar .app img {
    width: 20px;
    margin-right: 2px;
}


.title img {
    width: 75%;

}

.seg {

    background: var(--seg);
    border: 1px solid var(--bd);
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    margin: 3% 0;
}

.seg button {
    width: 50%;
    border: 0;
    background: transparent;
    padding: 2% 14px;
    cursor: pointer;
    color: var(--segText);
    white-space: nowrap;
    font-size: 17px;
}

.seg button.active {
    background: var(--segActive);
    color: var(--segTextActive)
}

.section-title {
    margin: 8px 0 2px 0;
    font-weight: 700;
    color: #333
}

.section-title img {
    width: 100%;
}

.box {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #f8dfa0;
}


.tabs {
    display: flex;
    gap: 0px;
    background: #e5f1c5;
    padding: 0 1%;
}

.tabs .more-link{
    margin-left:auto;            /* 关键：把它推到最右 */
    font-size:12px;
    color:#232427;
    text-decoration:none;
    padding: 10px 0;           /* 和下边框对齐一点点 */
  }
  .tabs .more-link:hover{ text-decoration:underline }

.tab {
    padding: 8px 15px 8px 0;
    border-bottom: 2px solid transparent;
    color: #444;
    cursor: pointer;
    white-space: nowrap
}

.tab.active {
    color: var(--tab);
    border-color: var(--tab);
    font-weight: 700
}

.list {
    /* border: 1px solid var(--bd); */
    border-radius: 10px;
    overflow: hidden
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #f8dfa0;
    cursor: pointer;
    background: #fff
    
    
}

.row:last-child {
    border-bottom: none
}


.right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0
}

.pill {
    background: var(--pill);
    border: 1px solid var(--bd);
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 14px;
    color: #333
}

.muted {
    color: var(--muted);
    font-size: 12px;
    padding: 1%
}




/* ==== 开奖结果组件样式（独立的 kj- 前缀，避免影响别处） ==== */
:root {
    --kj-ball: 56px;
    --kj-gap: 10px;
    --kj-green: #2dbb4f;
    --kj-red: #ff4d4f;
    --kj-blue: #1677ff;
    --kj-shadow: 0 2px 6px rgba(0, 0, 0, .10), inset 0 0 0 3px rgba(255, 255, 255, .5);
    --kj-accent: #12b886;
}

.kj-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
}

.kj-topline {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.kj-issue {
    color: #666
}

.kj-countdown {
    font-weight: 600
}

.kj-link a {
    color: #2a7cff;
    text-decoration: none
}

.kj-link a:hover {
    text-decoration: underline
}

.kj-balls {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: var(--kj-gap);
    flex-wrap: nowrap;
    overflow: visible
}

.kj-item {
    display: grid;
    place-items: center;
    margin-bottom: 2px;
    flex: 0 0 auto
}

.kj-ball {
    width: var(--kj-ball);
    height: var(--kj-ball);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: calc(var(--kj-ball)*.36);
    position: relative;
    flex-shrink: 0;
}

.kj-ball::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: var(--kj-shadow)
}

.kj-ball.green {
    background: radial-gradient(circle at 30% 30%, #53d86e, var(--kj-green))
}

.kj-ball.red {
    background: radial-gradient(circle at 30% 30%, #ff7a7c, var(--kj-red))
}

.kj-ball.blue {
    background: radial-gradient(circle at 30% 30%, #5aa2ff, var(--kj-blue))
}

.kj-num {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .25)
}

.kj-meta {
    width: var(--kj-ball);
    text-align: center;
    font-size: calc(var(--kj-ball)*.26);
    line-height: 1.2;
    color: #555;
    white-space: nowrap
}

.kj-plus {
    font-size: calc(var(--kj-ball)*.44);
    color: #999;
    margin: 0 2px;
    flex: 0 0 auto
}

.kj-foot {
    margin-top: 8px;
    text-align: center;
    font-size: 14px;
    color: var(--kj-accent);
    font-weight: 600
}
.kj-ball.pending{ background:#9aa0a6; border-color:#9aa0a6; }
.kj-meta.pending{ color:#9ca3af; }

@media (max-width:520px) {
    .kj-topline {
        grid-template-columns: 1fr auto auto;
    }

    .kj-issue,
    .kj-countdown,
    .kj-link {
        white-space: nowrap;
    }
}


