@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; }

.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; }
.ball.is-dropping strong { animation: draw-ball-drop .58s cubic-bezier(.2,.8,.25,1.18) both; }
.ball.is-dropping small { animation: draw-ball-drop .52s .06s cubic-bezier(.2,.8,.25,1.12) both; }
.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; }

@keyframes draw-ball-drop {
    0% { opacity: 0; transform: translateY(-42px) scale(.86); }
    68% { opacity: 1; transform: translateY(4px) scale(1.04); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .ball.is-dropping strong,
    .ball.is-dropping small { animation: none; }
}

.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; background: #e6e6e6; }
.history-shell { position: relative; width: 720px; max-width: 100%; min-height: 100vh; margin: auto; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.22); }
.history-topbar { position: relative; z-index: 20; height: 44px; color: #fff; background: #168800; }
.history-topbar h1 { margin: 0; font-size: 18px; font-weight: 500; line-height: 44px; text-align: center; }
.history-back, .history-menu-button { position: absolute; top: 0; width: 46px; height: 44px; padding: 0; color: #fff; font-size: 28px; line-height: 42px; text-align: center; border: 0; background: transparent; cursor: pointer; }
.history-back { left: 0; }
.history-menu-button { right: 0; font-size: 22px; }
.history-quick-menu { position: absolute; top: 44px; right: 6px; display: none; width: 155px; padding: 5px 0; background: rgba(33,33,33,.96); box-shadow: 0 5px 18px rgba(0,0,0,.35); }
.history-quick-menu.open { display: block; }
.history-quick-menu a, .history-quick-menu button { display: block; width: 100%; height: 38px; padding: 0 17px; color: #fff; font: inherit; line-height: 38px; text-align: left; border: 0; background: transparent; cursor: pointer; }
.history-quick-menu a:hover, .history-quick-menu button:hover { background: #168800; }
.history-game-tabs { display: grid; grid-template-columns: repeat(3, 1fr); height: 31px; border-bottom: 1px solid #168800; background: #f5f5f5; }
.history-game-tabs a { overflow: hidden; font-size: 13px; line-height: 30px; text-align: center; white-space: nowrap; border-right: 1px solid #ddd; }
.history-game-tabs a:last-child { border-right: 0; }
.history-game-tabs a.active { color: #fff; font-weight: 700; background: #168800; }
.history-year-tabs { display: flex; justify-content: center; min-height: 27px; background: #f2f2f2; border-bottom: 1px solid #ddd; }
.history-year-tabs a { padding: 0 16px; color: #555; line-height: 27px; }
.history-year-tabs a.active { color: #168800; font-weight: 700; }
.history-filter-panel { padding: 4px; background: #ffffcc; border-bottom: 1px solid #d8cf83; }
.history-filter-row { display: flex; align-items: flex-start; margin-bottom: 3px; }
.history-filter-row:last-child { margin-bottom: 0; }
.history-filter-row > strong { flex: 0 0 10%; padding-top: 2px; color: #d40000; font-size: 13px; line-height: 24px; text-align: center; }
.history-filter-options { display: grid; flex: 1; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.history-filter-options.animal-options { grid-template-columns: repeat(8, 1fr); }
.history-filter-options button { height: 25px; padding: 0; color: #333; font-size: 12px; border: 1px solid #ccc; border-radius: 0; background: #fff; cursor: pointer; }
.history-filter-options button.active { color: #fff; border-color: #ec6337; background: #ec6337; }
.history-filter-options button.reset { color: #fff; border-color: #41b45f; background: #41b45f; }
.history-item { margin: 3px; padding: 0 3px 3px; border: 0; background: #fafafa; }
.history-item h2 { height: 22px; margin: 0; padding-left: 3px; color: #666; font-size: 13px; font-weight: 500; line-height: 22px; }
.history-item h2 small { color: #777; font-size: 11px; }
.history-balls { display: flex; align-items: center; justify-content: space-between; gap: 0; text-align: center; }
.history-ball { flex: 1; max-width: none; min-width: 0; text-align: center; transition: opacity .2s; }
.history-ball strong { display: block; width: 96%; height: 22px; margin: auto; font-size: 15px; font-weight: 700; line-height: 21px; border: 1px solid #ddd; border-radius: 0; background: #fff; }
.history-ball.red strong { color: #e62a2d; background: #fff; }
.history-ball.blue strong { color: #278fe1; background: #fff; }
.history-ball.green strong { color: #14a931; background: #fff; }
.history-ball small { display: block; height: 15px; color: #333; font-size: 12px; line-height: 15px; }
.history-ball.dimmed { opacity: .1; }
.special-label { flex: 0 0 8%; margin: 0; color: #333; font-size: 13px; font-weight: 700; text-align: center; }
.history-empty { padding: 70px 20px; color: #777; text-align: center; }

.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: 13px; line-height: 23px; }
    .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; }
    .history-game-tabs a { font-size: 11px; }
    .history-item { padding-right: 3px; padding-left: 3px; }
    .history-filter-panel { padding-right: 4px; padding-left: 4px; }
    .history-filter-row { display: flex; }
    .history-filter-row > strong { display: block; padding: 2px 0 0; }
    .history-filter-options { grid-template-columns: repeat(8, 1fr); }
    .history-filter-options.animal-options { grid-template-columns: repeat(8, 1fr); }
    .history-ball strong { height: 22px; font-size: 15px; line-height: 21px; }
    .history-ball small { font-size: 12px; }
    .special-label { margin: 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; }
}
