@charset "UTF-8";

* { box-sizing: border-box; }
html { min-height: 100%; background-color: #563474; background-repeat: repeat; background-position: top center; background-attachment: fixed; }
body { margin: 0; min-height: 100%; color: #000; font: 14px/1.8 "Microsoft YaHei", Arial, Helvetica, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; border: 0; }
button, input, select, textarea { font: inherit; }
.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; }

.site-shell { position: relative; width: 720px; max-width: 100%; min-height: 100vh; margin: 0 auto; padding-bottom: 86px; background: #fff; box-shadow: 0 0 2px rgba(0,0,0,.25); }
.hero-ad { width: 100%; overflow: hidden; background: #fff; }
.hero-ad img { width: 100%; height: auto; }
.top-nav { position: sticky; top: 0; z-index: 1000; display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px 8px; width: calc(100% + 8px); margin-left: -4px; padding: 8px 10px; background: rgba(255,255,255,.98); box-shadow: 0 2px 4px rgba(0,0,0,.16); }
.top-nav a { height: 28px; line-height: 28px; overflow: hidden; color: #fff; font-size: 15px; text-align: center; white-space: nowrap; background: #5b1881; border-radius: 18px; }
.top-nav a.hot { background: #ed7545; }
.top-nav a:hover { filter: brightness(1.12); }
.site-intro { padding: 4px 12px; color: #222; line-height: 25px; text-align: center; background: #fff; border-bottom: 1px solid #ddd; }
.notice-ad { display: block; max-height: 164px; overflow: hidden; background: #000; }
.notice-ad img { width: 100%; }
.domain-strip { height: 29px; line-height: 29px; overflow: hidden; color: #751616; font-size: 17px; font-weight: 700; text-align: center; border-bottom: 1px solid #ddd; background: #fff; }

.result-panel > h2 { height: 40px; margin: 0; color: #fff; font-size: 20px; line-height: 40px; text-align: center; background: #3598eb; }
.game-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 10px 2px; }
.game-tabs button { height: 28px; padding: 0 4px; color: #111; font-size: 17px; font-weight: 700; border: 0; border-radius: 5px; background: #ededed; cursor: pointer; }
.game-tabs button.active { color: #fff; background: #12bd27; }
.draw-card { display: none; padding: 0 9px 9px; min-height: 153px; }
.draw-card.active { display: block; }
.draw-heading { display: flex; align-items: center; justify-content: center; gap: 18px; height: 38px; font-size: 20px; font-weight: 700; }
.draw-heading strong { color: #050ae8; }
.draw-heading b, .draw-heading a { color: #ed1919; }
.ball-line { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 80px; }
.ball-line [hidden] { display: none !important; }
.ball { position: relative; flex: 0 0 88px; width: 88px; height: 79px; overflow: hidden; color: #111; text-align: center; border: 4px solid #333; border-radius: 5px; background: #fff; }
.ball strong { display: block; height: 45px; color: #fff; font-size: 37px; line-height: 45px; }
.ball small { display: block; height: 30px; color: #111; font-size: 23px; font-weight: 700; line-height: 30px; white-space: nowrap; }
.ball.waiting strong { color: #fff; background: #333; }
.ball.waiting small { color: #333; background: #fff; }
.ball.red strong { background: #e62a2d; }
.ball.blue strong { background: #278fe1; }
.ball.green strong { background: #14a931; }
.ball.red small { color: #d31115; }
.ball.blue small { color: #116fd0; }
.ball.green small { color: #098c20; }
.plus { width: 18px; font-size: 34px; font-weight: 900; text-align: center; }
.next-draw { height: 34px; color: #111; font-size: 18px; font-weight: 700; line-height: 34px; text-align: center; }
.next-draw b, .next-draw span { color: #e71010; }
.next-draw button { margin-left: 10px; padding: 2px 8px; color: #fff; line-height: 22px; border: 0; background: #f1a000; cursor: pointer; }
.empty-draw { padding: 35px 15px; color: #777; font-size: 16px; text-align: center; }

.data-section { margin: 0; background: #fff; border-left: 1px solid #a58180; border-right: 1px solid #a58180; }
.data-section h2, .experts > h2 { height: 40px; margin: 0; overflow: hidden; color: #8ef4e9; font-size: 17px; font-weight: 700; line-height: 40px; text-align: center; white-space: nowrap; border: 1px solid #6e526d; background: #9d806e url('../images/mau.jpg') repeat-x center; }
.data-section h2 span { color: #4ce7d9; }
.prediction-row { min-height: 28px; padding: 1px 8px; color: #111; font-size: 15px; font-weight: 700; line-height: 25px; text-align: center; border-bottom: 1px solid #d9a3db; background: #fac8fa; }
.prediction-row .prediction-meta, .prediction-row .prediction-outcome { white-space: nowrap; }
.prediction-row .prediction-content { color: #008419; overflow-wrap: anywhere; }
.prediction-row .prediction-content mark { padding: 0 2px; color: #f00000; background: #fff000; }
.prediction-row.hit { color: #bd1010; }
.prediction-row.miss { color: #555; }
.prediction-history { background: #fac8fa; }
.source-period-heading { height: 34px; margin: 0; overflow: hidden; color: #8ef4e9; font-size: 15px; line-height: 34px; text-align: center; white-space: nowrap; border: 1px solid #6e526d; background: #9d806e url('../images/mau.jpg') repeat-x center; }
.source-image-period { height: 31px; color: #8b0000; font-weight: 700; line-height: 31px; text-align: center; background: #fff8c7; border-bottom: 1px solid #ddd; }
.source-material-image { width: 100%; height: auto; background: #fff; }
.section-note { padding: 6px 12px; font-size: 15px; text-align: center; border-bottom: 1px solid #ddd; background: #fff; }
.code-table { width: 100%; border-collapse: collapse; font-size: 15px; font-weight: 700; line-height: 24px; text-align: center; table-layout: fixed; }
.code-table td { padding: 2px 5px; border: 1px solid #ccc; }
.code-table td:first-child { width: 24%; color: #7c0000; background: #fff5cc; }
.code-table td:nth-child(2) { color: #0a7600; background: #fff; }
.code-table td:nth-child(2) mark { padding: 0 2px; color: #f00000; background: #fff000; }
.code-table td:last-child { width: 24%; color: #d00; background: #fff5cc; }
.wide-ad { display: block; overflow: hidden; border: 1px solid #ddd; }
.wide-ad img { width: 100%; max-height: 84px; object-fit: cover; }
.square-ad { display: flex; align-items: center; justify-content: center; min-height: 210px; padding: 5px; background: #fff; border: 1px solid #ddd; }
.square-ad img { width: 200px; height: 200px; object-fit: cover; }
.anchor-target { display: block; position: relative; top: -82px; visibility: hidden; }

.experts { border: 1px solid #9a7171; background: #fff; }
.expert-list { display: grid; grid-template-columns: 1fr 1fr; }
.expert-list a { position: relative; min-height: 66px; padding: 7px 8px; border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.expert-list a:nth-child(even) { border-right: 0; }
.expert-list .author { display: inline-block; color: #444; font-size: 14px; }
.expert-list .badge { float: right; padding: 0 5px; color: #fff; line-height: 19px; background: #f13232; border-radius: 3px; }
.expert-list strong { display: block; margin-top: 3px; color: #1021bd; font-size: 15px; line-height: 23px; }
.property-chart { padding: 8px; background: #fff; }
.property-chart img { width: 100%; }

.site-footer { padding: 18px 10px 8px; color: #777; font-size: 13px; text-align: center; background: #fff; }
.floating-ad { position: fixed; z-index: 1200; right: max(12px, calc(50% - 470px)); top: 47%; width: 100px; transform: translateY(-50%); }
.floating-ad button { display: block; width: 100%; height: 24px; padding: 0; color: #fff; line-height: 24px; border: 0; background: rgba(0,0,0,.75); cursor: pointer; }
.floating-ad img { width: 100px; max-height: 245px; object-fit: cover; }
.bottom-nav { position: fixed; z-index: 1100; right: 0; bottom: 0; left: 0; display: flex; width: 720px; max-width: 100%; height: 62px; margin: auto; border-top: 1px solid #ddd; background: rgba(255,255,255,.97); box-shadow: 0 -2px 7px rgba(0,0,0,.18); }
.bottom-nav > a, .bottom-nav > button { position: relative; flex: 1; min-width: 0; padding: 0; color: #666; font: inherit; text-align: center; border: 0; background: transparent; cursor: pointer; }
.bottom-nav .nav-icon { display: block; height: 35px; color: #d2647f; font-size: 27px; line-height: 36px; }
.bottom-nav em { display: block; font-style: normal; font-size: 15px; line-height: 24px; }
.bottom-nav .more span { position: absolute; left: 50%; bottom: 5px; width: 60px; height: 60px; margin-left: -30px; color: #fff; line-height: 60px; background: #2ab9e8 url('../images/cfl-more.png') center/cover no-repeat; border-radius: 50%; text-indent: -9999px; box-shadow: 0 0 6px rgba(0,0,0,.25); }
.bottom-more-menu { position: fixed; z-index: 1090; right: 0; bottom: 62px; left: 0; width: 720px; max-width: 100%; margin: auto; overflow: hidden; pointer-events: none; opacity: 0; transform: translateY(14px); transition: opacity .2s, transform .2s; box-shadow: 0 -3px 12px rgba(0,0,0,.18); }
.bottom-more-menu.open { pointer-events: auto; opacity: 1; transform: translateY(0); }
.more-menu-link { display: block; height: 43px; color: #fff; font-size: 17px; font-weight: 700; line-height: 43px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.7); }
.more-menu-link.color-green { background: #2ca944; }
.more-menu-link.color-red { background: #e3483e; }
.more-menu-link.color-blue { background: #288dcc; }
.more-menu-link.color-orange { background: #ed872f; }
.more-menu-link.color-navy { background: #334b76; }
.modal-open { overflow: hidden; }
.property-modal { position: fixed; z-index: 3000; inset: 0; display: flex; align-items: center; justify-content: center; padding: 48px 16px 20px; visibility: hidden; background: rgba(0,0,0,.84); opacity: 0; transition: opacity .2s, visibility .2s; }
.property-modal.open { visibility: visible; opacity: 1; }
.property-modal-close { position: absolute; z-index: 1; top: 12px; right: max(16px, calc(50% - 340px)); padding: 7px 13px; color: #fff; font-size: 15px; border: 1px solid rgba(255,255,255,.7); background: rgba(0,0,0,.55); cursor: pointer; }
.property-modal-stage { width: 680px; max-width: 100%; max-height: calc(100vh - 80px); overflow: auto; background: #fff; box-shadow: 0 10px 45px rgba(0,0,0,.65); }
.property-modal-stage img { display: block; width: 100%; height: auto; }

.history-body { min-height: 100vh; margin: 0; color: #333; background: #e6e6e6; font: 16px/normal "Microsoft YaHei", sans-serif; }
.history-shell { position: relative; width: 750px; max-width: 100%; min-height: 100vh; margin: auto; overflow: hidden; background: #fff; }
.history-topbar { position: sticky; z-index: 20; top: 0; height: 44px; color: #fff; background: #07c160; }
.history-topbar h1 { margin: 0; font-size: 16px; font-weight: 700; line-height: 44px; text-align: center; }
.history-back { position: absolute; top: 0; left: 0; display: grid; width: 40px; height: 44px; place-items: center; }
.history-back span { display: block; width: 11px; height: 11px; margin-left: 4px; border-bottom: 2px solid rgba(255,255,255,.8); border-left: 2px solid rgba(255,255,255,.8); transform: rotate(45deg); }
.history-toolbar { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 43px; padding: 0 2%; background: #eee; }
.history-toolbar > strong { overflow: hidden; color: #333; font-size: 14.4px; font-weight: 400; white-space: nowrap; }
.history-tool-button, .history-year-picker select { height: 23px; padding: 0 6px; color: #333; font-size: 11.2px; line-height: 23px; border: 0; border-radius: 5px; outline: 0; background: #fff; cursor: pointer; }
.history-tool-button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(7,193,96,.2); }
.history-year-picker { display: block; height: 23px; }
.history-year-picker select { width: 46px; padding: 0 4px; appearance: none; text-align: center; }
.history-list { padding-top: 10px; }
.history-item { height: 139px; margin: 0 0 10px; padding: 0; background: #fff; }
.history-item-heading { display: flex; align-items: center; justify-content: space-between; width: 96%; height: 14px; margin: 0 auto 10px; line-height: 14.4px; }
.history-item-heading h2 { margin: 0; color: #333; font-size: 14.4px; font-weight: 400; line-height: 14.4px; }
.history-item-heading time { color: #999; font-size: 12.8px; line-height: 14.4px; }
.history-balls { --history-ball-size: 45px; display: flex; align-items: flex-start; width: 96%; height: 94px; margin: 0 auto; padding: 10px 0 0 10px; overflow: hidden; text-align: center; border: 1px solid #07c160; border-radius: 10px; }
.history-ball { flex: 0 0 var(--history-ball-size); width: var(--history-ball-size); min-width: 0; color: #666; font-weight: 700; text-align: center; }
.history-ball strong { display: block; width: var(--history-ball-size); height: var(--history-ball-size); color: #666; font-size: 20px; font-weight: 700; line-height: var(--history-ball-size); background-position: center; background-repeat: no-repeat; background-size: 100% 100%; }
.history-ball.red strong { background-image: url('../images/jx-template/ball-red.png'); }
.history-ball.blue strong { background-image: url('../images/jx-template/ball-blue.png'); }
.history-ball.green strong { background-image: url('../images/jx-template/ball-green.png'); }
.history-ball small { display: block; height: 17px; overflow: visible; color: #666; font-size: 12.8px; font-weight: 700; line-height: 17px; white-space: nowrap; }
.history-plus { flex: 0 0 16px; width: 16px; height: var(--history-ball-size); color: #333; font-size: 20px; font-weight: 700; line-height: var(--history-ball-size); text-align: center; }
.history-elements-off .history-element { display: none; }
.history-empty { padding: 70px 20px; color: #999; font-size: 14px; text-align: center; }

@media (max-width: 355px) {
    .history-toolbar { padding-right: 7px; padding-left: 7px; }
    .history-toolbar > strong { font-size: 13px; }
    .history-balls { --history-ball-size: calc((100vw - 38px) / 7); padding-left: 5px; }
    .history-ball strong { font-size: 18px; }
    .history-ball small { font-size: 11.5px; }
}

.picker-body { min-height: 100vh; margin: 0; background: #e9e9e9; }
.picker-shell { width: 720px; max-width: 100%; min-height: 100vh; margin: auto; background: #f6f6f6; box-shadow: 0 0 10px rgba(0,0,0,.18); }
.picker-topbar { position: relative; display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 13px; color: #fff; background: #ee851e; }
.picker-topbar h1 { position: absolute; right: 90px; left: 90px; margin: 0; font-size: 20px; text-align: center; }
.picker-topbar button, .picker-topbar a { padding: 6px 9px; color: #fff; font-size: 15px; border: 1px solid rgba(255,255,255,.75); border-radius: 3px; background: rgba(181,83,0,.24); cursor: pointer; }
.picker-result { min-height: 138px; padding: 13px 10px 7px; text-align: center; border-bottom: 1px solid #ddd; background: #fff; }
.picker-result-placeholder { padding: 34px 8px 18px; color: #999; font-size: 14px; }
.picker-result-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.picker-number { width: 48px; overflow: hidden; text-align: center; border: 1px solid #ddd; border-radius: 3px; background: #fff; }
.picker-number b { display: block; height: 31px; color: #fff; font-size: 20px; line-height: 31px; }
.picker-number small { display: block; height: 20px; color: #444; font-size: 12px; line-height: 20px; }
.picker-number.red b { background: #e62a2d; }
.picker-number.blue b { background: #278fe1; }
.picker-number.green b { background: #14a931; }
.picker-result p { margin: 7px 0 0; color: #777; font-size: 13px; }
.picker-result p b { color: #e77312; }
.picker-controls { padding: 7px 8px 14px; }
.picker-group { display: flex; align-items: stretch; margin-bottom: 6px; border: 1px solid #ddd; background: #fff; }
.picker-group h2 { display: flex; flex: 0 0 76px; align-items: center; justify-content: center; margin: 0; padding: 5px; color: #a6570b; font-size: 14px; text-align: center; border-right: 1px solid #ead2b9; background: #fff3e5; }
.picker-options { display: grid; flex: 1; grid-template-columns: repeat(6, 1fr); gap: 5px; padding: 6px; }
.picker-options.dense { grid-template-columns: repeat(6, 1fr); }
.picker-options button { min-height: 32px; padding: 2px; color: #555; font-size: 14px; border: 1px solid #ccc; border-radius: 3px; background: linear-gradient(#fff,#f2f2f2); cursor: pointer; }
.picker-options button.active { color: #fff; border-color: #e67e16; background: #ee851e; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.picker-note { padding: 0 10px 22px; color: #999; font-size: 12px; text-align: center; }

.post-page { background: #fff; }
.post-page > header h1 { height: 56px; margin: 0; color: #fff; font-size: 24px; line-height: 56px; text-align: center; background: #278ed5; }
.post-page > h2 { margin: 0; padding: 14px 8px; color: #9b0000; font-size: 21px; text-align: center; border-bottom: 1px solid #ddd; }
.post-meta { display: flex; justify-content: space-between; padding: 8px 16px; font-size: 15px; border-bottom: 1px solid #ddd; }
.stars { color: #e60012; }
.warm-tip { padding: 8px; color: #dc0000; font-weight: 700; text-align: center; background: #fff4c0; border-bottom: 1px solid #e3bd4e; }
.post-page blockquote { min-height: 420px; margin: 0; padding: 20px 24px; color: #111; font-size: 17px; font-weight: 700; line-height: 2.1; background: #fff; }
.back-home { display: block; width: 150px; margin: 12px auto 25px; color: #fff; line-height: 38px; text-align: center; background: #2d8ccd; border-radius: 4px; }
.expert-prediction-history { min-height: 360px; padding: 16px 18px; background: #fff; }
.expert-prediction-row { position: relative; padding: 10px 8px; color: #222; font-size: 17px; font-weight: 700; line-height: 1.8; border-bottom: 1px dashed #d5d5d5; }
.prediction-issue { color: #151515; }
.prediction-category { margin: 0 7px; color: #333; }
.prediction-values { color: #d22d2d; overflow-wrap: anywhere; }
.prediction-values mark { padding: 1px 3px; color: #bb1010; background: #fff200; }
.prediction-result { margin-left: 7px; white-space: nowrap; }
.result-hit .prediction-result { color: #008b2e; }
.result-miss .prediction-result { color: #d21919; }
.result-pending .prediction-result { color: #d21919; }
.corrected-badge { display: inline-block; margin-left: 6px; padding: 1px 5px; color: #9b6310; font-size: 10px; line-height: 17px; border: 1px solid #edce91; background: #fff8dc; vertical-align: 2px; }
.post-commitment { margin: 0 18px 15px; padding: 13px; color: #555; font-size: 14px; line-height: 1.7; text-align: center; border: 1px solid #e4e4e4; background: #fafafa; }

@media (max-width: 900px) {
    html { background: #fff !important; }
    .floating-ad { display: none; }
}

@media (max-width: 600px) {
    html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
    .site-shell { width: 100%; overflow-x: clip; box-shadow: none; }
    .hero-ad img { width: 100%; }
    .top-nav { width: 100%; margin-left: 0; gap: 5px; padding: 6px 5px; }
    .top-nav a { font-size: 13px; }
    .site-intro { font-size: 12px; line-height: 21px; }
    .domain-strip { font-size: 14px; }
    .game-tabs { gap: 4px; padding: 7px 5px 2px; }
    .game-tabs button { font-size: 13px; }
    .draw-heading { gap: 8px; height: 34px; font-size: 15px; }
    .ball-line { gap: 2px; }
    .ball { flex-basis: calc((100vw - 48px) / 7); width: calc((100vw - 48px) / 7); height: 60px; border-width: 2px; }
    .ball strong { height: 36px; font-size: 26px; line-height: 36px; }
    .ball small { height: 22px; font-size: 13px; line-height: 22px; }
    .plus { width: 12px; font-size: 23px; }
    .next-draw { height: auto; min-height: 32px; font-size: 12px; line-height: 23px; white-space: nowrap; }
    .next-draw button { margin-left: 2px; padding: 0 4px; line-height: 20px; }
    .data-section h2, .experts > h2 { font-size: 14px; }
    .prediction-row { min-height: 26px; padding: 1px 5px; font-size: 13px; line-height: 23px; }
    .prediction-row.long-content { padding-top: 3px; padding-bottom: 3px; }
    .prediction-row.long-content .prediction-meta,
    .prediction-row.long-content .prediction-content,
    .prediction-row.long-content .prediction-outcome { display: block; }
    .prediction-row.long-content .prediction-meta,
    .prediction-row.long-content .prediction-outcome { line-height: 21px; }
    .prediction-row.long-content .prediction-content { width: 100%; font-size: clamp(11px, 2.9vw, 12px); line-height: 18px; letter-spacing: -.1px; word-break: break-all; }
    .code-table { font-size: 13px; line-height: 21px; }
    .code-table td { padding: 2px 3px; }
    .code-table td:first-child { width: 24%; }
    .code-table td:last-child { width: 23%; }
    .expert-list { grid-template-columns: 1fr; }
    .expert-list a { border-right: 0; }
    .picker-group { display: block; }
    .picker-group h2 { min-height: 27px; padding: 3px; border-right: 0; border-bottom: 1px solid #ead2b9; }
    .picker-options, .picker-options.dense { grid-template-columns: repeat(6, 1fr); padding: 5px; }
    .picker-options button { font-size: 13px; }
    .expert-prediction-history { padding: 10px 8px; }
    .expert-prediction-row { padding: 9px 4px; font-size: 14px; }
    .prediction-category { margin: 0 3px; }
    .prediction-result { margin-left: 3px; }
}

/* Green mobile gallery frontend, matched to the approved reference layout. */
@font-face { font-family: "jx-uniicons"; src: url('../images/jx-template/uniicons.ttf') format('truetype'); font-display: block; }
:root { --gallery-green: #07c160; --gallery-deep: #099b51; --gallery-red: #f04444; --gallery-orange: #ff8b20; --gallery-line: #e8e8e8; }
.green-body { min-height: 100vh; margin: 0; color: rgba(0,0,0,.9); background: #f2f2f2; font: 16px/normal "Microsoft YaHei", sans-serif; }
.green-body button, .green-body input { font-family: inherit; }
.green-shell { width: 500px; max-width: 100%; min-height: 100vh; padding: 0 0 122px; overflow: visible; background: #fff; box-shadow: none; }
.green-inner-shell { padding-bottom: 25px; }
.green-topbar { position: sticky; z-index: 1200; top: 0; display: block; height: 60px; color: #fff; background: var(--gallery-green); }
.green-topbar h1 { position: absolute; top: 0; right: 60px; left: 60px; height: 50px; margin: 0; overflow: hidden; font-size: 23px; font-weight: 400; line-height: 46px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.green-topbar-action { position: absolute; top: 0; width: 48px; height: 50px; padding: 0; color: #fff; border: 0; background: transparent; cursor: pointer; }
.green-chat-action { left: 10px; }
.green-chat-action img { position: absolute; top: 7px; left: 0; width: 40px; height: 37.5px; object-fit: fill; }
.green-download-action { right: 14px; width: 48px; }
.green-download-action img { position: absolute; top: 7px; left: 0; width: 48px; height: 45px; object-fit: fill; }
.green-promo-section { display: flow-root; background: #f2f2f2; }
.green-hero { position: relative; display: block; width: 96%; aspect-ratio: 1166 / 373; margin: 5px auto 0; overflow: hidden; border-radius: 15px; background: #f3f3f3; }
.green-hero img { display: block; width: 100%; height: 100%; object-fit: contain; }
.green-notice { display: flex; align-items: center; width: 96%; height: 32px; margin: 5px auto 0; overflow: hidden; color: #333; font-size: 12px; line-height: 32px; border-radius: 18px; background: #fff; }
.green-notice strong { box-sizing: border-box; display: flex; flex: 0 0 76px; align-items: center; height: 32px; padding: 0 9px; color: #ff5c00; font-size: 14px; line-height: 32px; }
.green-notice strong svg { flex: 0 0 16px; width: 16px; height: 16px; margin-right: 4px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.green-notice strong span { position: static; line-height: 32px; animation: none; }
.green-notice div { position: relative; flex: 1; height: 32px; overflow: hidden; }
.green-notice div > span { position: absolute; top: 0; left: 100%; line-height: 32px; white-space: nowrap; animation: green-marquee 30.5s linear infinite; }
@keyframes green-marquee { to { transform: translateX(calc(-100% - 500px)); } }
.green-draw-section { margin-top: 10px; padding: 0 0 5px; background: #f2f2f2; }
.green-game-tabs { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .8fr)); gap: 0; height: 61px; background: transparent; }
.green-game-tabs button { position: relative; min-width: 0; padding: 10px 0; color: #333; text-align: center; border: 0; border-radius: 8px 8px 0 0; background: #fff; cursor: pointer; }
.green-game-tabs button::after { display: none; }
.green-game-tabs button strong, .green-game-tabs button small { display: block; }
.green-game-tabs button strong { overflow: hidden; font-size: 19.2px; line-height: 19.2px; text-overflow: ellipsis; white-space: nowrap; }
.green-game-tabs button:not(:first-child) strong { font-size: 16px; }
.green-game-tabs button small { margin-top: 4px; color: #999; font-size: 12px; line-height: 18px; }
.green-game-tabs button.active { color: #fff; background: var(--gallery-green); }
.green-game-tabs button.active small { color: rgba(255,255,255,.9); }
.green-draw-card { height: 155px; min-height: 0; padding: 0; border: 1px solid var(--gallery-green); border-radius: 0 0 8px 8px; background: #fff; }
.green-draw-heading { display: flex; align-items: center; justify-content: space-between; width: 96%; height: 21px; margin: 10px auto 0; padding: 0; color: #666; font-size: 16px; border: 0; }
.green-draw-heading b { color: var(--gallery-green); font-weight: 700; }
.green-draw-heading a { color: #07a653; font-size: 16px; }
.green-ball-line { display: flex; align-items: flex-start; justify-content: space-between; width: 96%; height: 62px; min-height: 0; margin: 15px auto 0; padding: 0; overflow: visible; }
.green-ball-line .ball { flex: 0 0 35px; width: 35px; height: 62px; overflow: visible; color: #666; text-align: center; border: 0; border-radius: 0; background: transparent; }
.green-ball-line .ball strong { box-sizing: border-box; display: block; width: 45px; height: 45px; margin: 0 auto; color: #666; font-size: 20px; font-weight: 700; line-height: 45px; border: 0; border-radius: 0; background: center/100% 100% no-repeat; box-shadow: none; }
.green-ball-line .ball.red strong { color: #666; background-image: url('../images/jx-template/ball-red.png'); }
.green-ball-line .ball.blue strong { color: #666; background-image: url('../images/jx-template/ball-blue.png'); }
.green-ball-line .ball.green strong { color: #666; background-image: url('../images/jx-template/ball-green.png'); }
.green-ball-line .ball.waiting strong { color: #888; background: #eee; border-radius: 50%; }
.green-ball-line .ball small { display: block; height: 17px; color: #666; font-size: 12.8px; line-height: 17px; white-space: nowrap; }
.green-ball-line .plus { flex: 0 0 35px; width: 35px; height: 45px; margin: 0; color: #999; font-size: 22px; font-weight: 700; line-height: 45px; text-align: center; }
.green-next-draw { display: flex; align-items: center; justify-content: space-between; width: 96%; min-height: 19px; margin: 15px auto 0; padding: 0; border: 0; }
.green-next-draw div span, .green-next-draw div strong { display: inline; }
.green-next-draw div span { color: #666; font-size: 15px; line-height: 19px; }
.green-next-draw div strong { color: #f04444; font-size: 15px; font-weight: 400; line-height: 19px; }
.green-next-draw p { margin: 0; color: #666; font-size: 15px; white-space: nowrap; }
.green-next-draw p b { color: var(--gallery-red); font-size: 15px; font-weight: 400; }
.green-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; height: 124px; margin: 0; padding: 6px 1px 0; background: #f2f2f2; border: 0; }
.green-quick-grid a, .green-quick-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; margin-bottom: 1px; padding: 14px 0; color: #333; font-size: 18px; line-height: normal; border: 0; background: #fff; cursor: pointer; }
.green-quick-grid em { overflow: hidden; font-style: normal; white-space: nowrap; }
.quick-icon { display: block; width: 61px; height: 61px; object-fit: contain; }
.green-gallery { padding: 0 0 10px; background: #fff; }
.green-year-tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 96%; height: 50px; margin: 0 auto; border: 0; background: #fff; }
.green-year-tabs a { color: #333; font-size: 18px; line-height: 50px; text-align: center; }
.green-year-tabs a .green-year-icon { display: inline-block; width: 24px; height: 22px; margin-right: 0; color: #fff; font: 700 20px/18px "jx-uniicons"; text-align: center; vertical-align: -4px; border-radius: 5px; background: #eb5252; }
.green-year-tabs a .green-year-icon::before { content: "\e670"; }
.green-year-tabs a:not(.active) .green-year-icon { color: #eb5252; background: transparent; }
.green-year-tabs a.active { color: #333; font-weight: 700; }
.green-waterfall { display: grid; grid-template-columns: 49% 49%; align-items: start; justify-content: space-between; gap: 0; width: 96%; margin: 0 auto; }
.green-waterfall-column { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.green-gallery-card { position: relative; display: block; overflow: hidden; margin-top: 10px; color: #333; border: 0; border-top: 1px solid #bbb; border-radius: 4px; background: #fff; box-shadow: 0 0 2px #ccc; }
.green-gallery-card img { display: block; width: 100%; height: auto; min-height: 90px; background: #f2f2f2; }
.green-gallery-card strong { display: block; height: 30px; overflow: hidden; padding: 0 5px; font-size: 14px; font-weight: 400; line-height: 30px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.green-gallery-empty { padding: 70px 20px; color: #999; text-align: center; background: #fff; }
.green-lottery-switch { position: fixed; z-index: 1080; right: 0; bottom: 50px; left: 0; display: grid; grid-template-columns: repeat(3, 1fr); width: 500px; max-width: 100%; height: 40px; margin: auto; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; background: rgba(255,255,255,.97); }
.green-lottery-switch button { color: #555; font-size: 13px; border: 0; border-right: 1px solid #e5e5e5; background: transparent; cursor: pointer; }
.green-lottery-switch button:last-child { border-right: 0; }
.green-lottery-switch button { border: 1px solid currentColor; border-radius: 4px; }
.green-lottery-switch button:first-child { color: #fff; border-color: #b44df0; background: #b44df0; }
.green-lottery-switch button:nth-child(2) { color: var(--gallery-green); border-color: var(--gallery-green); }
.green-lottery-switch button:nth-child(3) { color: #d84c4c; border-color: #d84c4c; }
.green-lottery-switch button.active:not(:first-child) { color: #fff; background: var(--gallery-green); }
.green-footer { min-height: 36px; padding: 15px 8px; color: #aaa; font-size: 11px; text-align: center; background: #fff; }
.green-bottom-nav { position: fixed; z-index: 1100; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); width: 500px; max-width: 100%; height: 50px; margin: auto; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #dedede; background: #fff; box-shadow: none; }
.green-bottom-nav a, .green-bottom-nav button { min-width: 0; padding: 8.5px 0 0; color: #646566; text-align: center; border: 0; background: transparent; cursor: pointer; }
.green-bottom-nav img, .green-bottom-nav em { display: block; }
.green-bottom-nav img { width: 24px; height: 24px; margin: 0 auto; object-fit: fill; }
.green-bottom-nav em { font-style: normal; font-size: 10px; line-height: 14px; }
.green-bottom-nav .active { color: var(--gallery-green); }
.unavailable-modal { position: fixed; z-index: 5000; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; background: rgba(0,0,0,.46); opacity: 0; transition: opacity .18s, visibility .18s; }
.unavailable-modal.open { visibility: visible; opacity: 1; }
.unavailable-dialog { width: 285px; padding: 23px 20px 18px; text-align: center; border-radius: 10px; background: #fff; box-shadow: 0 14px 45px rgba(0,0,0,.2); }
.unavailable-icon { width: 42px; height: 42px; margin: 0 auto 9px; color: #fff; font-size: 26px; line-height: 42px; border-radius: 50%; background: var(--gallery-green); }
.unavailable-dialog h2 { margin: 0; font-size: 18px; }
.unavailable-dialog p { margin: 9px 0 18px; color: #888; font-size: 13px; }
.unavailable-dialog button { width: 100%; height: 38px; color: #fff; font-size: 14px; border: 0; border-radius: 4px; background: var(--gallery-green); cursor: pointer; }
.green-page-title { position: relative; display: flex; align-items: center; justify-content: flex-end; height: 46px; color: #fff; background: var(--gallery-green); }
.green-page-title h1 { position: absolute; right: 70px; left: 52px; margin: 0; overflow: hidden; font-size: 18px; font-weight: 500; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.green-page-title > a { position: absolute; left: 0; width: 48px; height: 46px; color: #fff; font-size: 31px; line-height: 42px; text-align: center; }
.green-page-title > button { height: 46px; padding: 0 10px; color: #fff; font-size: 12px; border: 0; background: transparent; cursor: pointer; }
.gallery-search { padding: 9px 11px; background: #f5f5f5; }
.gallery-search label { display: flex; align-items: center; height: 34px; overflow: hidden; border-radius: 4px; background: #fff; }
.gallery-search label span { width: 38px; color: #999; font-size: 22px; text-align: center; }
.gallery-search input { flex: 1; min-width: 0; height: 34px; padding: 0 10px 0 0; border: 0; outline: 0; }
.gallery-index h2 { height: 27px; margin: 0; padding: 0 13px; color: #777; font-size: 12px; font-weight: 500; line-height: 27px; background: #f4f4f4; }
.gallery-index a { display: block; height: 43px; padding: 0 16px; color: #333; font-size: 14px; line-height: 43px; border-bottom: 1px solid #eee; background: #fff; }
.gallery-index a[hidden] { display: none; }
.gallery-index h2.empty-group { display: none; }
.gallery-detail-years { display: flex; justify-content: center; gap: 0; min-height: 42px; overflow-x: auto; border-bottom: 1px solid #eee; background: #fff; }
.gallery-detail-years a { flex: 0 0 auto; min-width: 82px; padding: 0 12px; color: #666; font-size: 14px; line-height: 42px; text-align: center; border-bottom: 2px solid transparent; }
.gallery-detail-years a.active { color: var(--gallery-green); border-bottom-color: var(--gallery-green); }
.gallery-issue-tabs { display: flex; align-items: center; width: 96%; height: 48px; margin: 0 auto; overflow: hidden; background: #fff; }
.gallery-issue-tabs > div { display: flex; flex: 1; gap: 3px; min-width: 0; padding: 5px 0; overflow-x: auto; scrollbar-width: thin; }
.gallery-issue-tabs a { flex: 0 0 auto; height: 32px; padding: 0 14px; color: #999; font-size: 13px; line-height: 32px; border-radius: 4px; background: #f6f6f6; }
.gallery-issue-tabs a.active { color: #fff; background: var(--gallery-green); }
.gallery-issue-tabs > button { flex: 0 0 auto; height: 28px; margin-left: 8px; padding: 0 12px; color: #fff; font-size: 12px; border: 0; border-radius: 16px; background: var(--gallery-green); }
.gallery-issue-list a { display: block; height: 43px; padding: 0 14px; color: #444; line-height: 43px; border-bottom: 1px solid #eee; }
.gallery-issue-list a::after { float: right; color: #bbb; content: ">"; }
.gallery-picture-detail > h2 { margin: 0; padding: 10px; color: #555; font-size: 15px; font-weight: 500; text-align: center; }
.gallery-image-frame { position: relative; width: 100%; overflow: hidden; }
.gallery-detail-image { display: block; width: 100%; height: auto; background: #f5f5f5; }
.gallery-category-picture { width: 96%; margin: 0 auto; background: #effff6; }
.gallery-social-bar { display: grid; grid-template-columns: repeat(3, 1fr); height: 45px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.gallery-social-bar button { color: #888; border: 0; border-right: 1px solid #eee; background: #fff; cursor: pointer; }
.gallery-social-bar button:last-child { border-right: 0; }
.gallery-vote, .gallery-comments { padding: 12px; background: #fff; border-bottom: 10px solid #f4f4f4; }
.gallery-vote h3, .gallery-comments h3 { margin: 0 0 10px; font-size: 15px; font-weight: 500; }
.gallery-vote > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery-vote > div button { padding: 5px; color: #555; border: 1px solid #eee; border-radius: 3px; background: #fafafa; }
.gallery-vote > div strong, .gallery-vote > div small { display: block; }
.gallery-vote > div small { color: #999; font-size: 10px; }
.gallery-vote-submit, .gallery-comments > button { width: 100%; height: 36px; margin-top: 10px; color: #fff; border: 0; border-radius: 4px; background: var(--gallery-green); }
.gallery-comments h3 small { float: right; color: #999; font-weight: 400; }
.gallery-comments p { color: #aaa; text-align: center; }
.corpus-list a { position: relative; display: block; min-height: 62px; padding: 8px 80px 8px 14px; color: #333; border-bottom: 1px solid #eee; background: #fff; }
.corpus-list a span, .corpus-list a strong, .corpus-list a small { display: block; }
.corpus-list a span { color: var(--gallery-green); font-size: 11px; }
.corpus-list a strong { overflow: hidden; font-size: 14px; font-weight: 500; line-height: 24px; text-overflow: ellipsis; white-space: nowrap; }
.corpus-list a small { position: absolute; top: 22px; right: 14px; color: #999; }
.corpus-list a[hidden] { display: none; }
.corpus-detail > h2 { margin: 0; padding: 12px 8px; color: #8d311b; font-size: 17px; text-align: center; border-bottom: 1px solid #eee; }
.corpus-detail > p { margin: 0; padding: 6px; text-align: center; }
.corpus-detail > img { display: block; width: 100%; height: auto; }
.corpus-record { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; min-height: 44px; padding: 5px 10px; border-bottom: 1px solid #eee; }
.corpus-record span { color: #666; font-size: 12px; }
.corpus-record strong { color: #d02a2a; font-size: 14px; text-align: center; overflow-wrap: anywhere; }
.corpus-record strong mark { color: #c11; background: #fff000; }
.corpus-record em { color: #888; font-size: 12px; font-style: normal; }
.corpus-note { padding: 12px; color: #777; line-height: 1.8; }

/* Existing functional subpages use the same green mobile frame. */
.picker-shell { width: 500px; box-shadow: none; }
.picker-topbar { background: var(--gallery-green); }
.picker-options button.active { border-color: var(--gallery-green); background: var(--gallery-green); }
.picker-group h2 { color: #078c49; border-color: #ccebdc; background: #edfff6; }
.post-page > header h1, .back-home { background: var(--gallery-green); }

@media (max-width: 500px) {
    .green-body { background: #fff; }
    .green-topbar { height: 50px; }
    .green-topbar h1 { font-size: 18px; }
    .green-topbar-action { height: 50px; }
    .green-chat-action img { width: 32px; height: 31px; }
    .green-download-action { right: 10px; width: 38px; }
    .green-download-action img { width: 38px; height: 35px; }
    .green-game-tabs button strong { font-size: 16px; line-height: 19px; }
    .green-game-tabs button:not(:first-child) strong { font-size: 14px; }
    .green-draw-card { height: 154px; }
    .green-draw-heading { font-size: 13px; }
    .green-draw-heading a { font-size: 13px; }
    .green-ball-line .ball { flex-basis: min(50px, calc((100vw - 48px) / 8)); width: min(50px, calc((100vw - 48px) / 8)); }
    .green-ball-line .ball small { font-size: 12px; }
    .green-next-draw { margin-top: 12px; }
    .green-next-draw div span, .green-next-draw div strong, .green-next-draw p, .green-next-draw p b { font-size: 12px; line-height: 16px; }
    .quick-icon { width: 50px; height: 50px; }
    .green-quick-grid a, .green-quick-grid button { font-size: 16px; }
}

@media (max-width: 420px) {
    .green-year-tabs a { font-size: 12px; }
}

@media (max-width: 400px) {
    .green-quick-grid a, .green-quick-grid button { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .green-notice div > span { animation: none; left: 8px; }
    .unavailable-modal { transition: none; }
}

/* Tool box: mirrors the five-tab utility page of the reference site. */
.toolbox-body { min-height: 100vh; margin: 0; color: #333; background: #e9e9e9; font: 14px/normal "Microsoft YaHei", sans-serif; }
.toolbox-body button, .toolbox-body input, .toolbox-body select, .toolbox-body textarea { font-family: inherit; }
.toolbox-shell { position: relative; width: 500px; max-width: 100%; min-height: 100vh; margin: 0 auto; background: #fff; }
.toolbox-header { position: relative; height: 44px; color: #fff; background: #07c160; }
.toolbox-header h1 { height: 44px; margin: 0; font-size: 18px; font-weight: 500; line-height: 44px; text-align: center; }
.toolbox-header a { position: absolute; z-index: 2; top: 0; left: 0; width: 44px; height: 44px; color: #fff; font-size: 34px; font-weight: 300; line-height: 39px; text-align: center; }
.toolbox-tabs { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: repeat(5, 1fr); height: 34px; background: #fff; }
.toolbox-tabs button { position: relative; min-width: 0; padding: 0 2px; color: #333; font-size: 14px; line-height: 33px; white-space: nowrap; border: 0; border-right: 1px solid #b9b9b9; border-bottom: 1px solid #b9b9b9; background: #fff; cursor: pointer; }
.toolbox-tabs button:last-child { border-right: 0; }
.toolbox-tabs button.active { color: #f00; background: #fff500; }
.toolbox-tabs button.active::after { position: absolute; right: 2px; bottom: 1px; color: #e02b2b; font-size: 10px; line-height: 10px; content: "✓"; }
.toolbox-pane { display: none; }
.toolbox-pane.active { display: block; }
.picker-table { width: 100%; border-collapse: collapse; }
.picker-table-row { display: grid; grid-template-columns: 52px 1fr; min-height: 69px; border-bottom: 1px solid #b5b0b0; background: #fff; }
.picker-table-row h2 { display: flex; align-items: center; justify-content: center; margin: 0; padding: 8px 11px; color: #fff; font-size: 15px; font-weight: 700; line-height: 19px; text-align: center; border-right: 1px solid #b5b0b0; background: #0bad13; }
.picker-table-row > div { display: flex; align-content: center; align-items: center; flex-wrap: wrap; gap: 10px 5px; padding: 12px 14px; }
.picker-table-row button { position: relative; min-width: 41px; height: 47px; padding: 0 12px; color: #333; font-size: 14px; line-height: 45px; border: 1px solid #d9d9d9; background: #ebebeb; cursor: pointer; }
.picker-table-row button i { position: absolute; right: 1px; bottom: 0; display: none; color: #d90000; font-size: 10px; font-style: normal; line-height: 10px; }
.picker-table-row button.active { color: #f00; background: #fff500; }
.picker-table-row button.active i { display: block; }
.picker-spacer { height: 142px; }
.toolbox-selection { position: fixed; z-index: 30; right: 0; bottom: 36px; left: 0; width: 500px; max-width: 100%; min-height: 36px; max-height: 115px; margin: auto; padding: 5px; overflow-y: auto; border: 1px solid #dedede; border-bottom: 0; background: #f8f8f8; }
.toolbox-selection p { margin: 0 0 4px; font-size: 13px; }
.toolbox-selection > div { display: flex; flex-wrap: wrap; gap: 2px; }
.toolbox-selection span { width: 30px; height: 30px; color: #222; font-weight: 700; line-height: 30px; text-align: center; border: 2px solid #e64340; border-radius: 50%; background: #fff; }
.toolbox-selection span.blue { border-color: #2d9ad0; }
.toolbox-selection span.green { border-color: #21b447; }
.toolbox-fixed-actions { position: fixed; z-index: 31; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3, 1fr); width: 500px; max-width: 100%; height: 36px; margin: auto; border-top: 1px solid #a8a8a8; background: #ebebeb; }
.toolbox-fixed-actions button { height: 36px; padding: 0; color: #333; font-size: 14px; border: 0; border-right: 1px solid #a8a8a8; background: transparent; cursor: pointer; }
.toolbox-fixed-actions button:last-child { border-right: 0; }
.toolbox-fixed-actions i { color: red; font-style: normal; }
.machine-table { width: 96%; margin: 16px auto 0; text-align: center; border: 1px solid #333; border-collapse: collapse; table-layout: fixed; }
.machine-table th { height: 46px; color: #f0fcf0; font-size: 16px; border: 1px solid #a3a3a3; background: #09a71b; }
.machine-table td { height: 36px; border: 1px solid #ddd; }
.machine-table td b { display: block; width: 38px; height: 38px; margin: auto; line-height: 38px; border: 3px solid #ddd; border-radius: 50%; }
.machine-table td b.red { border-color: #e64340; }.machine-table td b.blue { border-color: #2d9ad0; }.machine-table td b.green { border-color: #21b447; }
.machine-start { display: block; width: 90%; height: 48px; margin: 13px auto; color: #fff; font-size: 18px; border: 0; border-radius: 6px; background: #47ae04; cursor: pointer; }
.lucky-pane, .wheel-pane { min-height: calc(100vh - 78px); padding: 16px; background: #ffc325; }
.lucky-form { padding: 17px 8px; color: #d10b14; font-size: 16px; background: #fff0c8; }
.lucky-form p { margin: 0 0 8px; }
.lucky-form input { font-size: 16px; }
.lucky-start { width: 100%; height: 56px; margin: 16px 0 20px; color: #fff; font-size: 26px; border: 1px solid #d10b14; background: linear-gradient(#2ce33b,#08bb1a); }
.lucky-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 40px; padding: 14px 26px 20px; border: 2px solid #333; background: #f12832 url('../images/jx-template/tool-zodiac-bg.jpg') center/cover no-repeat; }
.lucky-grid span { width: 54px; height: 54px; color: #fff; font-size: 24px; line-height: 48px; text-align: center; text-shadow: 1px 1px 2px #333; border: 3px solid #eee; border-radius: 50%; background: linear-gradient(#ffca2f,#ee821c); box-shadow: 0 2px 2px #333; }
.lucky-grid span.lucky { color: #ffef00; border-color: #ffef00; box-shadow: 0 0 15px #fff; transform: scale(1.08); }
.wheel-pane { position: relative; overflow: hidden; background: #ffc325 url('../images/jx-template/tool-wheel-bg.jpg') center top/cover round; }
.wheel-settings { padding: 9px 7px; color: #e11; font-size: 19px; font-weight: 700; line-height: 32px; background: rgba(255,255,255,.55); }
.wheel-settings label { display: block; }
.wheel-settings select { font-size: 17px; }
.fortune-wheel { position: relative; width: 300px; height: 300px; margin: 150px auto 20px; border: 0; border-radius: 50%; background: center/cover round url('../images/jx-template/tool-wheel-colors.png'); box-shadow: none; transition: transform 2.2s cubic-bezier(.14,.7,.13,1); }
.fortune-wheel[data-wheel-kind="五行"] { background-image: url('../images/jx-template/tool-wheel-elements.png'); }
.fortune-wheel[data-wheel-kind="生肖"] { background-image: url('../images/jx-template/tool-wheel-zodiac.png'); }
.fortune-wheel button { position: absolute; z-index: 2; top: 50%; left: 50%; width: 62px; height: 62px; color: #222; font-size: 20px; border: 1px solid #333; border-radius: 50%; background: #fff500; transform: translate(-50%,-50%); }
.fortune-wheel [data-wheel-labels] span { position: absolute; top: 18px; left: 50%; width: 36px; height: 130px; margin-left: -18px; font-size: 23px; text-align: center; text-shadow: 1px 1px #fff; transform-origin: 18px 132px; }
.fortune-wheel [data-wheel-labels] span:nth-child(2) { transform: rotate(60deg); }.fortune-wheel [data-wheel-labels] span:nth-child(3) { transform: rotate(120deg); }.fortune-wheel [data-wheel-labels] span:nth-child(4) { transform: rotate(180deg); }.fortune-wheel [data-wheel-labels] span:nth-child(5) { transform: rotate(240deg); }.fortune-wheel [data-wheel-labels] span:nth-child(6) { transform: rotate(300deg); }
.wheel-result { visibility: hidden; color: #b30c0c; font-size: 18px; font-weight: 700; text-align: center; }
.wheel-result.has-result { visibility: visible; }
.combo-pane { min-height: calc(100vh - 78px); padding: 8px 10px 30px; background: #eee; }
.combo-number-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.combo-number-grid button { width: 31px; height: 31px; padding: 0; color: #111; font-size: 15px; font-weight: 700; line-height: 27px; border: 3px solid #e64340; border-radius: 50%; background: #fff; }
.combo-number-grid button.blue { border-color: #2d9ad0; }.combo-number-grid button.green { border-color: #21b447; }.combo-number-grid button.active { color: #fff; background: #f08d22; }
.combo-pane > p { margin: 4px 0; font-size: 12px; }
.combo-pane textarea { width: 100%; height: 60px; resize: none; }
.combo-actions { display: flex; justify-content: flex-end; gap: 18px; margin: 4px 10px 8px; }
.combo-actions button { padding: 6px 16px; color: #fff; font-size: 16px; border: 0; border-radius: 5px; background: #f29325; box-shadow: 0 1px 2px #999; }
.combo-results { padding: 5px 8px; background: #fff; }
.combo-results h2 { margin: 5px 0 3px; padding: 7px 0; color: #e48d25; font-size: 17px; font-weight: 500; border-top: 2px solid #eee; }
.combo-results h2:first-child { border-top: 0; }
.combo-results p { margin: 0; padding: 6px 0; font-size: 16px; border-bottom: 1px solid #bbb; }
.combo-results p i { color: red; font-style: normal; }.combo-results p span { float: right; color: #ef7f17; }
.combo-results p span::after { display: inline-block; margin-left: 5px; border-top: 10px solid #ff981c; border-right: 9px solid transparent; border-left: 9px solid transparent; content: ""; }
.combo-win-row { display: flex; justify-content: space-around; padding: 3px 0 10px; }
.combo-win-row span { text-align: center; }.combo-win-row b { display: block; margin-top: 12px; color: red; font-weight: 400; }
.toolbox-toast { position: fixed; z-index: 100; top: 50%; left: 50%; display: none; padding: 9px 18px; color: #fff; border-radius: 4px; background: rgba(0,0,0,.72); transform: translate(-50%,-50%); }
.toolbox-toast.show { display: block; }

@media (max-width: 420px) {
    .toolbox-tabs button { font-size: 12px; }
    .picker-table-row { grid-template-columns: 44px 1fr; }
    .picker-table-row h2 { padding: 6px; font-size: 14px; }
    .picker-table-row > div { gap: 6px 4px; padding: 10px; }
    .picker-table-row button { height: 42px; padding: 0 11px; line-height: 40px; }
    .lucky-grid { gap: 25px 22px; padding-right: 16px; padding-left: 16px; }
    .fortune-wheel { width: 280px; height: 280px; }
    .combo-number-grid { gap: 3px; }
    .combo-number-grid button { width: 28px; height: 28px; font-size: 13px; line-height: 23px; }
}
