
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html {
            background: #0a0e27;
        }
        body {
            font-family: 'Microsoft YaHei', -apple-system, sans-serif;
            background: #0a0e27;
            color: #fff;
            min-height: 100vh;
            -webkit-tap-highlight-color: transparent;
            transition: opacity 0.12s ease;
        }
        body.page-bootstrap-loading {
            opacity: 0;
            pointer-events: none;
        }

        /* ===== Header ===== */
        .header {
            background: linear-gradient(135deg, #1a0a2e 0%, #3d1a78 40%, #c02040 100%);
            text-align: center;
            padding: 22px 16px 16px;
            position: relative;
            overflow: hidden;
        }
        .header::before {
            content: '';
            position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            pointer-events: none;
        }
        .header h1 {
            font-size: 28px;
            color: #ffd700;
            letter-spacing: 6px;
            font-weight: 900;
            text-shadow: 0 0 20px rgba(255,215,0,0.5), 0 2px 4px rgba(0,0,0,0.5);
            position: relative;
        }
        .header p {
            color: rgba(255,215,0,0.7);
            margin-top: 4px;
            font-size: 13px;
            letter-spacing: 2px;
            position: relative;
        }

        /* ===== Notice (滚动公告栏) ===== */
        #notice-bar {
            display: none;
            max-width: min(660px, calc(100vw - 24px));
            margin: 6px auto 0;
            padding: 0 12px;
            box-sizing: border-box;
            overflow: hidden;
            border-radius: 16px;
        }
        #notice-bar,
        .tabs-wrapper,
        .recommend-feed-zone {
            width: 100%;
        }
        #notice-bar .notice-inner {
            position: relative;
            display: flex;
            align-items: center;
            width: 100%;
            min-height: 40px;
            background: linear-gradient(135deg, rgba(255, 246, 201, 0.98), rgba(255, 235, 170, 0.98));
            color: #8a4a00;
            padding: 10px 12px 10px 42px;
            font-size: 14px;
            font-weight: 800;
            border: 1px solid rgba(187, 129, 26, 0.18);
            border-radius: 14px;
            box-shadow: 0 6px 16px rgba(187, 129, 26, 0.10);
            overflow: hidden;
            white-space: nowrap;
            box-sizing: border-box;
        }
        #notice-bar .notice-marquee {
            flex: 1 1 auto;
            min-width: 0;
            overflow: hidden;
        }
        #notice-bar .notice-inner::before {
            content: '🔔';
            position: absolute;
            left: 14px; top: 50%;
            transform: translateY(-50%);
            font-size: 18px;
            animation: notice-bell 1s ease-in-out infinite;
            z-index: 2;
            filter: saturate(0.9);
        }
        #notice-bar .notice-text {
            display: inline-flex;
            align-items: center;
            flex: 0 0 auto;
            min-width: 100%;
            width: max-content;
            padding-left: 0;
            padding-right: 8px;
            line-height: 1.2;
            animation: notice-scroll 18s linear infinite;
            will-change: transform;
        }
        #notice-bar:hover .notice-text { animation-play-state: paused; }
        #notice-bar .notice-close {
            flex: 0 0 auto;
            width: 30px;
            height: 30px;
            border: 0;
            border-radius: 50%;
            background: rgba(138, 74, 0, 0.12);
            color: #8a4a00;
            font-size: 20px;
            font-weight: 900;
            line-height: 1;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
        }
        #notice-bar .notice-close:hover {
            background: rgba(138, 74, 0, 0.20);
        }
        @keyframes notice-scroll {
            from { transform: translateX(100%); }
            to   { transform: translateX(-100%); }
        }
        @keyframes notice-bell {
            0%, 100% { transform: translateY(-50%) rotate(0); }
            25%      { transform: translateY(-50%) rotate(-15deg); }
            75%      { transform: translateY(-50%) rotate(15deg); }
        }

        /* ===== Tabs ===== */
        .draw-stage {
            position: sticky;
            top: 0;
            z-index: 18;
            max-width: 660px;
            margin: 0 auto;
            padding: 0 0 10px;
        }
        .tabs-wrapper {
            position: relative;
            top: auto;
            z-index: 10;
            background: transparent;
            max-width: 660px;
            margin: 6px auto 0;
            padding: 0 12px;
        }
        .tabs {
            display: flex;
            background: linear-gradient(180deg, #172043, #111936);
            border: 1px solid rgba(255, 215, 0, 0.10);
            border-bottom: 2px solid #ffd700;
            border-radius: 14px 14px 12px 12px;
            overflow: hidden;
            box-shadow: 0 10px 24px rgba(0,0,0,0.16);
        }
        .tab {
            flex: 1;
            text-align: center;
            padding: 14px 8px;
            font-size: 15px;
            color: #8888aa;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            transition: all 0.3s;
            font-weight: 600;
            letter-spacing: 1px;
            position: relative;
        }
        .tab:hover { color: #ffd700; }
        .tab.active {
            color: #ffd700;
            border-bottom-color: #ffd700;
            background: rgba(255,215,0,0.08);
            text-shadow: 0 0 10px rgba(255,215,0,0.3);
        }

        /* ===== Container ===== */
        .container { max-width: 660px; margin: 0 auto; padding: 6px 12px 0; }
        .tab-content { display: none; }
        .tab-content.active { display: block; }

        /* ===== Draw Card ===== */
        .draw-card {
            background: linear-gradient(145deg, #1a1f4a, #12163a);
            border: 1px solid rgba(255,215,0,0.15);
            border-radius: 14px;
            padding: 16px 18px;
            margin-bottom: 14px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
            position: relative;
            overflow: hidden;
        }
        .draw-card::before {
            content: '';
            position: absolute; top: 0; left: 0; right: 0; height: 2px;
            background: linear-gradient(90deg, transparent, #ffd700, transparent);
            opacity: 0.6;
        }
        .draw-card:first-child {
            border-color: rgba(255,215,0,0.35);
            box-shadow: 0 4px 30px rgba(255,215,0,0.1), 0 4px 20px rgba(0,0,0,0.4);
        }

        .card-topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
        .card-topbar .period-label {
            font-weight: bold;
            color: #ffd700;
            font-size: 16px;
            text-shadow: 0 0 8px rgba(255,215,0,0.3);
        }
        .card-topbar .countdown-wrap { color: #aaa; font-size: 13px; }
        .countdown-wrap .countdown {
            color: #ff4757;
            font-weight: bold;
            font-size: 16px;
            text-shadow: 0 0 8px rgba(255,71,87,0.4);
            font-family: 'Courier New', monospace;
        }
        .card-topbar .history-link {
            color: #ffd700;
            font-size: 13px;
            cursor: pointer;
            opacity: 0.8;
            transition: opacity 0.2s;
            white-space: nowrap;
        }
        .card-topbar .history-link:hover { opacity: 1; text-decoration: underline; }

        /* ===== Balls ===== */
        .balls-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex-wrap: nowrap;
        }
        .ball {
            width: 68px;
            height: 68px;
            border-radius: 50%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #fff;
            flex-shrink: 0;
            position: relative;
            animation: ball-appear 0.5s ease-out;
        }
        .ball.opening {
            animation: ball-appear 0.5s ease-out, draw-opening-pulse 1.4s ease-in-out infinite;
        }
        @keyframes ball-appear {
            from { transform: scale(0.3) rotateY(180deg); opacity: 0; }
            to   { transform: scale(1)   rotateY(0);      opacity: 1; }
        }
        @keyframes draw-opening-pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        .ball.red {
            background: radial-gradient(circle at 35% 25%, #ff9999, #e74c3c 40%, #8b0000 100%);
            box-shadow: 0 4px 15px rgba(231,76,60,0.5), inset 0 -3px 8px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.2);
        }
        .ball.blue {
            background: radial-gradient(circle at 35% 25%, #87ceeb, #3498db 40%, #1a5276 100%);
            box-shadow: 0 4px 15px rgba(52,152,219,0.5), inset 0 -3px 8px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.2);
        }
        .ball.green {
            background: radial-gradient(circle at 35% 25%, #90ee90, #27ae60 40%, #0d5a2e 100%);
            box-shadow: 0 4px 15px rgba(39,174,96,0.5), inset 0 -3px 8px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.2);
        }
        .ball .ball-num {
            font-size: 20px;
            font-weight: 900;
            line-height: 1;
            text-shadow: 0 1px 3px rgba(0,0,0,0.5);
            margin-bottom: 4px;
        }
        .ball .ball-info {
            font-size: 13px;
            font-weight: 700;
            line-height: 1;
            letter-spacing: 1px;
            opacity: 1;
            text-shadow: 0 1px 2px rgba(0,0,0,0.6);
        }
        .separator {
            font-size: 28px;
            color: #ffd700;
            font-weight: bold;
            align-self: center;
            flex-shrink: 0;
            padding: 0 4px;
            text-shadow: 0 0 10px rgba(255,215,0,0.5);
        }

        body[data-ball-style="reference"] .draw-card {
            display: none;
        }
        body[data-ball-style="reference"] .open-qiu-box {
            background: #fff;
            border: 1px solid #ddd;
            border-radius: .1rem;
            padding: 12px 12px 10px;
            margin-bottom: 14px;
            box-shadow: 0 0 .1rem rgba(0, 0, 0, 0.10);
            overflow: hidden;
        }
        body[data-ball-style="reference"] .open-qiu-box .head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 10px;
            flex-wrap: nowrap;
        }
        body[data-ball-style="reference"] .open-qiu-box .qishu {
            color: #07c160;
            font-size: 15px;
            font-weight: 900;
            line-height: 1.2;
            flex-shrink: 0;
            white-space: nowrap;
        }
        body[data-ball-style="reference"] .open-qiu-box .qishu span {
            font-size: 1.08em;
        }
        body[data-ball-style="reference"] .open-qiu-box .head-text {
            flex: 1 1 auto;
            min-width: 0;
            color: #475569;
            font-size: 12px;
            font-weight: 700;
            text-align: center;
            line-height: 1.2;
        }
        body[data-ball-style="reference"] .open-qiu-box .countdown {
            color: #dc2626;
            text-shadow: none;
            font-family: 'Courier New', monospace;
            font-weight: 900;
        }
        body[data-ball-style="reference"] .open-qiu-box .gd-log {
            flex-shrink: 0;
            color: #07c160;
            font-size: 12px;
            font-weight: 700;
            text-decoration: none;
            white-space: nowrap;
            padding: 4px 10px;
            border-radius: 999px;
            border: 1px solid rgba(7, 193, 96, 0.22);
            background: rgba(7, 193, 96, 0.06);
        }
        body[data-ball-style="reference"] .open-qiu-box .gd-log.placeholder {
            visibility: hidden;
        }
        body[data-ball-style="reference"] .open-qiu-box .open-num {
            display: flex;
            gap: 6px;
            align-items: stretch;
            justify-content: space-between;
            flex-wrap: nowrap;
        }
        body[data-ball-style="reference"] .open-qiu-box .box {
            display: flex;
            flex: 0 0 13.5%;
            width: 13.5%;
            min-width: 0;
            box-sizing: border-box;
            padding: .1rem 0 .1rem;
            border: solid 1px #ddd;
            border-radius: .1rem;
            box-shadow: 0 0 .1rem rgba(0, 0, 0, 0.10);
            background: linear-gradient(to top, #eee, #fff);
            align-items: center;
            flex-direction: column;
            position: relative;
        }
        body[data-ball-style="reference"] .open-qiu-box .box:nth-of-type(7) {
            border-color: #00f;
            box-shadow: 0 0 .1rem #00a0e9;
        }
        body[data-ball-style="reference"] .open-qiu-box .qiu {
            width: .7rem;
            height: .7rem;
            line-height: .7rem;
            border-radius: 50%;
            margin: 0 0 .04rem;
            font-size: .32rem;
            font-weight: 800;
            color: #fff;
            text-align: center;
            text-shadow: 0 1px 2px rgba(0,0,0,0.45);
            box-shadow: inset 0 -3px 8px rgba(0,0,0,0.22), 0 3px 8px rgba(0,0,0,0.10);
        }
        body[data-ball-style="reference"] .open-qiu-box .qiu.red,
        body[data-ball-style="reference"] .open-qiu-box .qiu.box-num-0,
        body[data-ball-style="reference"] .open-qiu-box .qiu.bg-amage-1 {
            background: radial-gradient(circle at 35% 25%, #ffd9d9 0%, #ff8e8e 32%, #ef4444 62%, #7f1d1d 100%);
        }
        body[data-ball-style="reference"] .open-qiu-box .qiu.blue,
        body[data-ball-style="reference"] .open-qiu-box .qiu.box-num-1,
        body[data-ball-style="reference"] .open-qiu-box .qiu.bg-amage-2 {
            background: radial-gradient(circle at 35% 25%, #d7f0ff 0%, #8fd2ff 32%, #3b82f6 62%, #1e3a8a 100%);
        }
        body[data-ball-style="reference"] .open-qiu-box .qiu.green,
        body[data-ball-style="reference"] .open-qiu-box .qiu.box-num-6,
        body[data-ball-style="reference"] .open-qiu-box .qiu.bg-amage-3 {
            background: radial-gradient(circle at 35% 25%, #ddfbe1 0%, #9ae7a4 32%, #22c55e 62%, #14532d 100%);
        }
        body[data-ball-style="reference"] .open-qiu-box .qiu.is-special {
            border: 1px solid rgba(0, 160, 233, 0.65);
            box-shadow: 0 0 .1rem rgba(0, 160, 233, 0.16);
        }
        body[data-ball-style="reference"] .open-qiu-box .qiu.opening {
            animation: draw-opening-pulse 1.4s ease-in-out infinite;
        }
        body[data-ball-style="reference"] .open-qiu-box .text {
            font-size: .27rem;
            line-height: 1.2;
            color: #000;
            text-shadow: none;
            letter-spacing: 0;
            text-align: center;
            margin-top: 0;
            min-height: 0;
            font-weight: 700;
        }
        body[data-ball-style="reference"] .open-qiu-box .foot {
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid rgba(15, 23, 42, 0.06);
            color: #64748b;
            font-size: 11px;
            text-align: center;
        }
        body[data-ball-style="reference"] .separator {
            display: none;
        }

        .card-bottom {
            margin-top: 14px;
            text-align: center;
            font-size: 13px;
            color: #666;
            border-top: 1px solid rgba(255,255,255,0.05);
            padding-top: 10px;
        }

        /* ===== Loading / Empty ===== */
        .loading {
            text-align: center;
            padding: 50px;
            color: #ffd700;
            font-size: 15px;
        }
        .loading::after {
            content: '';
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid #ffd700;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-left: 8px;
            vertical-align: middle;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        .no-data { text-align: center; padding: 50px 16px; color: #666; font-size: 15px; }

        /* ===== Footer ===== */
        #footer {
            text-align: center;
            max-width: 660px;
            margin: 8px auto 16px;
            padding: 12px 16px;
            color: rgba(255,255,255,0.62);
            font-size: 12px;
            border-top: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px;
            background: rgba(255,255,255,0.03);
        }
        .admin-link {
            position: fixed; bottom: 16px; right: 16px;
            background: rgba(255,215,0,0.1);
            color: #ffd700;
            padding: 6px 14px;
            border-radius: 16px;
            text-decoration: none;
            font-size: 12px;
            border: 1px solid rgba(255,215,0,0.2);
            opacity: 0.5;
            transition: all 0.3s;
        }
        .admin-link:hover { opacity: 1; background: rgba(255,215,0,0.2); color: #ffd700; }

        /* ===== Top Embed Module ===== */
        .top-embed-zone {
            max-width: 660px;
            margin: 8px auto 0;
            padding: 0 12px;
        }
        .top-embed-module {
            position: relative;
            overflow: hidden;
            border-radius: 18px;
            min-height: 132px;
            padding: 18px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            text-decoration: none;
            box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
            border: 1px solid rgba(255,255,255,0.18);
        }
        .top-embed-module::before,
        .top-embed-module::after {
            content: '';
            position: absolute;
            border-radius: 999px;
            background: rgba(255,255,255,0.16);
            filter: blur(1px);
        }
        .top-embed-module::before { width: 82px; height: 82px; left: 18px; top: 14px; opacity: 0.24; }
        .top-embed-module::after { width: 64px; height: 64px; right: 26px; top: 18px; opacity: 0.18; }
        .top-embed-module .top-embed-content {
            position: relative;
            z-index: 1;
            flex: 1;
            text-align: center;
        }
        .top-embed-module .top-embed-title {
            font-size: 30px;
            line-height: 1.15;
            font-weight: 900;
            letter-spacing: 2px;
            text-shadow: 0 2px 8px rgba(0,0,0,0.24);
        }
        .top-embed-module .top-embed-subtitle {
            margin-top: 8px;
            font-size: 14px;
            font-weight: 700;
            opacity: 0.92;
            letter-spacing: 1px;
        }
        .top-embed-module .top-embed-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 44px;
            height: 26px;
            padding: 0 10px;
            border-radius: 999px;
            background: rgba(255,255,255,0.22);
            color: #fff;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 1px;
            margin-bottom: 12px;
        }
        .top-embed-module .top-embed-art {
            position: relative;
            z-index: 1;
            width: 96px;
            height: 96px;
            border-radius: 26px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 44px;
            background: rgba(255,255,255,0.14);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
            flex-shrink: 0;
        }
        .top-embed-module .top-embed-dots {
            position: absolute;
            left: 50%;
            bottom: 10px;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 2;
        }
        .top-embed-module .top-embed-dots span {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255,255,255,0.45);
        }
        .top-embed-module .top-embed-dots span.active {
            width: 22px;
            border-radius: 999px;
            background: #ffd84d;
        }
        .top-embed-checkin {
            color: #fff;
            background: linear-gradient(90deg, #22c55e 0%, #84cc16 50%, #eab308 100%);
        }
        .top-embed-checkin::before { background: rgba(255,255,255,0.18); left: 10px; top: 20px; }
        .top-embed-checkin .top-embed-art { color: #ffd84d; }
        .top-embed-custom {
            color: #fff;
            background: linear-gradient(135deg, #1f2937 0%, #0f766e 42%, #14b8a6 100%);
        }
        .top-embed-custom .top-embed-art {
            background-size: cover;
            background-position: center;
            color: transparent;
            overflow: hidden;
        }
        .top-embed-hidden {
            min-height: 72px;
            justify-content: center;
            color: #64748b;
            background: linear-gradient(180deg, #f8fafc, #eef2ff);
            border-style: dashed;
            box-shadow: none;
        }
        .top-embed-hidden::before,
        .top-embed-hidden::after { display: none; }
        .top-embed-hidden .top-embed-content { text-align: center; }
        .top-embed-hidden .top-embed-title { font-size: 18px; color: #475569; }
        .top-embed-hidden .top-embed-subtitle { font-size: 12px; color: #64748b; }
        .top-embed-hidden .top-embed-art,
        .top-embed-hidden .top-embed-dots { display: none; }
        .top-embed-image-card {
            display: block;
            overflow: hidden;
            border-radius: 12px;
            background: #d80000;
            border: 2px solid #ffd700;
            box-shadow: 0 6px 16px rgba(0,0,0,.25);
            line-height: 0;
        }
        .top-embed-image-card img {
            display: block;
            width: 100%;
            height: auto;
        }

        /* ===== Ad Banner Box ===== */
        .ad-banner-box {
            max-width: 660px;
            margin: 6px auto 0;
            padding: 0;
        }
        .ad-banner-top-box {
            margin-top: 10px;
        }
        .ad-banner-grid {
            display: grid;
            gap: 8px;
        }
        .ad-banner-item {
            display: block;
            width: 100%;
            border: 1px solid transparent;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
            transition: transform 0.2s;
            cursor: pointer;
        }
        .ad-banner-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,215,0,0.3); }
        .ad-banner-item.no-link { cursor: default; }
        .ad-banner-item img {
            width: 100%;
            height: auto;
            display: block;
        }

        /* Side ad strips */
        .ad-strip {
            max-width: 660px;
            margin: 6px auto 0;
            padding: 0;
            display: grid;
            grid-template-columns: 1fr;
            gap: 8px;
        }
        .ad-item {
            display: block;
            width: 100%;
            height: 64px;
            border-radius: 8px;
            overflow: hidden;
            text-decoration: none;
            position: relative;
            cursor: pointer;
            transition: transform 0.2s;
        }
        .ad-item:hover {
            transform: scale(1.02);
        }
        .ad-item .ad-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: bold;
            color: #fff;
            text-shadow: 0 1px 4px rgba(0,0,0,0.4);
            letter-spacing: 2px;
        }
        .ad-item .ad-placeholder { position: relative; overflow: hidden; }
        .ad-item .ad-placeholder::before {
            content: '';
            position: absolute;
            inset: 0;
            background-size: cover;
            opacity: 0.25;
            z-index: 0;
        }
        .ad-item .ad-placeholder > * { position: relative; z-index: 1; }
        .ad-item .ad-icon { font-size: 26px; margin-bottom: 3px; }
        .ad-item.a1 .ad-placeholder {
            background: radial-gradient(circle at 20% 20%, #8b5cf6, #4c1d95 80%);
        }
        .ad-item.a1 .ad-placeholder::before {
            content: '★ ★ ★'; font-size: 60px; letter-spacing: 12px;
            display: flex; align-items: center; justify-content: center;
            opacity: 0.18;
        }
        .ad-item.a3 .ad-placeholder {
            background: radial-gradient(circle at 20% 20%, #0abfc2, #064e52 80%);
        }
        .ad-item.a3 .ad-placeholder::before {
            content: '📈 📊 📈'; font-size: 45px; letter-spacing: 14px;
            display: flex; align-items: center; justify-content: center;
            opacity: 0.2;
        }

        /* ===== Recommend Feed ===== */
        .recommend-feed-zone {
            max-width: 660px;
            margin: 8px auto 0;
            padding: 0 12px;
        }
        body.page-bootstrap-loading .recommend-feed-zone {
            visibility: hidden;
            opacity: 0;
        }
        body.page-bootstrap-loading .recommend-feed-zone {
            transition: opacity 0.18s ease;
        }
        .recommend-feed-empty {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 52px;
            padding: 10px 12px;
            border-radius: 14px;
            border: 1px dashed rgba(209, 0, 30, 0.16);
            background: rgba(255, 255, 255, 0.48);
            color: #7c2d12;
            font-size: 14px;
            font-weight: 800;
            letter-spacing: 0.4px;
        }
        .recommend-top-nav {
            max-width: 660px;
            margin: 6px auto 0;
            padding: 0 12px;
        }
        .recommend-top-nav-inner {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 5px;
        }
        .recommend-nav-card {
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-height: 50px;
            padding: 6px 8px;
            border-radius: 10px;
            text-decoration: none;
            color: #fff;
            box-shadow: 0 8px 16px rgba(170, 0, 18, 0.22);
            border: 1px solid rgba(255, 255, 255, 0.16);
            position: relative;
            overflow: hidden;
            isolation: isolate;
            text-align: center;
            background: linear-gradient(180deg, #ff2d2d 0%, #d80000 100%);
        }
        .recommend-nav-card,
        .recommend-nav-card *,
        .recommend-rule-group,
        .recommend-rule-group *,
        .recommend-rule-link,
        .recommend-rule-link * {
            text-decoration: none !important;
        }
        .recommend-nav-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(255,255,255,0.20), transparent 58%);
            pointer-events: none;
        }
        .recommend-nav-index {
            position: relative;
            z-index: 1;
            display: none;
        }
        .recommend-nav-title {
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 3px;
            font-size: 16px;
            line-height: 1.15;
            font-weight: 900;
            margin-top: 0;
            min-width: 0;
            overflow: hidden;
        }
        .recommend-nav-title-main {
            display: block;
            flex: 1 1 auto;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 1.08em;
            color: #fff;
        }
        .recommend-nav-title-suffix {
            display: block;
            flex: 0 0 auto;
            font-size: 0.78em;
            line-height: 1.1;
            color: rgba(255,255,255,0.92);
            white-space: nowrap;
        }
        .recommend-nav-title-separator {
            display: block;
            flex: 0 0 auto;
            font-size: 0.9em;
            line-height: 1;
            color: rgba(255,255,255,0.96);
            white-space: nowrap;
            transform: translateY(-1px);
        }
        .recommend-nav-sub {
            display: none;
        }
        .recommend-nav-card.nav-palette-0 { background: linear-gradient(180deg, #ff3939 0%, #e00000 100%); }
        .recommend-nav-card.nav-palette-1 { background: linear-gradient(180deg, #ff2f2f 0%, #c90000 100%); }
        .recommend-nav-card.nav-palette-2 { background: linear-gradient(180deg, #ff4444 0%, #d60000 100%); }
        .recommend-nav-card.nav-palette-3 { background: linear-gradient(180deg, #ff3b3b 0%, #cc0000 100%); }
        .recommend-nav-card.nav-palette-4 { background: linear-gradient(180deg, #ff2a2a 0%, #b80000 100%); }
        .recommend-nav-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 14px 26px rgba(0,0,0,0.24);
        }
        .recommend-feed-notice {
            display: none;
            margin-bottom: 10px;
            padding: 10px 12px;
            border-radius: 14px;
            background: linear-gradient(90deg, #fff6f6, #fff0f0);
            border: 1px solid rgba(204, 0, 0, 0.12);
            color: #c40018;
            font-size: 13px;
            font-weight: 700;
            white-space: nowrap;
            overflow: hidden;
            box-sizing: border-box;
        }
        .recommend-feed-notice.active { display: block; }
        .recommend-feed-notice .marquee {
            display: inline-block;
            min-width: 100%;
            width: max-content;
            padding-left: 100%;
            animation: recommend-scroll 24s linear infinite;
            will-change: transform;
        }
        .recommend-feed-notice:hover .marquee { animation-play-state: paused; }
        @keyframes recommend-scroll {
            from { transform: translateX(0); }
            to { transform: translateX(-100%); }
        }
        .recommend-feed-grid {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .recommend-module {
            border-radius: 16px;
            overflow: hidden;
            background: transparent;
            border: 1px solid rgba(209, 0, 30, 0.10);
            box-shadow: 0 10px 24px rgba(187, 132, 38, 0.08);
        }
        .recommend-module-front {
            border: 1px solid transparent;
            background:
                linear-gradient(180deg, rgba(255, 253, 248, 0.62) 0%, rgba(255, 248, 236, 0.62) 100%) padding-box,
                linear-gradient(135deg, #fff7c7 0%, #d8a63f 24%, #8d5a08 48%, #ffd36b 74%, #fff6ce 100%) border-box;
            box-shadow:
                0 12px 26px rgba(164, 118, 27, 0.12),
                0 0 0 1px rgba(255, 241, 180, 0.28) inset;
        }
        .recommend-module-head {
            padding: 8px 12px 7px;
            background: linear-gradient(135deg, #4a3604, #9a6a10 56%, #f1d36a);
            color: #fff;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        .recommend-module-front .recommend-module-head::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.12) 35%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0.12) 65%, transparent 85%);
            transform: translateX(-70%);
            animation: recommend-head-shine 3.2s linear infinite;
            pointer-events: none;
        }
        .recommend-module-front .recommend-card::before {
            display: none;
        }
        .recommend-module-front .recommend-module-domain {
            display: flex;
            width: 100%;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 2px 10px;
            background: #fff;
            border-bottom: 1px solid #eee;
            color: #4caf50;
            font-size: 16px;
            font-weight: 900;
        }
        .recommend-module-front .recommend-module-domain span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            border-radius: 0;
            background: transparent;
            color: #4caf50;
        }
        .recommend-module-front .recommend-module-domain strong {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
            border-radius: 4px;
            background: #d5ffd7;
            color: #4caf50;
            font-weight: 900;
        }
        .recommend-module-title {
            display: inline-block;
            font-size: 22px;
            line-height: 1.1;
            font-weight: 900;
            letter-spacing: 1px;
            color: #fff9db;
            text-shadow:
                0 0 6px rgba(255, 238, 169, 0.52),
                0 1px 3px rgba(0,0,0,0.30);
        }
        .recommend-module-front .recommend-module-title {
            animation: recommend-title-flicker 1.9s ease-in-out infinite, recommend-title-bounce 2.4s ease-in-out infinite;
            transform-origin: center bottom;
            font-size: 25px;
            color: #ff0;
        }
        .recommend-module-sub {
            margin-top: 6px;
            font-size: 13px;
            font-weight: 800;
            opacity: 0.95;
            letter-spacing: 0.6px;
        }
        .recommend-module-domain {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 4px 10px;
            background: transparent;
            border-bottom: 1px solid rgba(34, 197, 94, 0.12);
            color: #2f8f3a;
            font-size: 13px;
            font-weight: 900;
        }
        .recommend-module-domain span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 2px 10px;
            border-radius: 999px;
            background: #e9fbe8;
            color: #4cae50;
            font-weight: 900;
        }
        .recommend-module-items {
            padding: 3px 4px 4px;
            display: flex;
            flex-direction: column;
            gap: 4px;
            align-items: stretch;
        }
        .recommend-module-front .recommend-module-items {
            gap: 3px;
            padding: 2px 3px 3px;
            width: 100%;
            align-items: stretch;
        }
        .recommend-module-image {
            display: flex;
            flex-direction: column;
            gap: 0;
            background: transparent;
            border: 0;
            box-shadow: none;
            padding: 0;
        }
        .recommend-module-image .recommend-module-domain {
            font-size: 16px;
        }
        .recommend-module-image .recommend-module-items {
            gap: 0;
            padding: 0;
            width: 100%;
            align-items: stretch;
        }
        .recommend-card-image {
            display: block !important;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            padding: 0 !important;
            margin: 0 !important;
            border: none !important;
            background: transparent !important;
            box-shadow: none !important;
            overflow: visible !important;
            color: inherit !important;
        }
        .recommend-card-image .recommend-image-frame {
            position: relative;
            width: 100%;
            height: auto;
            overflow: visible;
            --recommend-image-scale: 1;
        }
        .recommend-card-image .recommend-image-template {
            display: block;
            width: 100%;
            height: auto;
            object-fit: contain;
            border-radius: 0;
        }
        .recommend-card-image .recommend-image-overlay {
            position: absolute;
            inset: 0;
            box-sizing: border-box;
            display: block;
            padding: 0;
            pointer-events: none;
            overflow: visible;
        }
        .recommend-card-image .recommend-image-slot {
            position: absolute;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            overflow: visible;
            box-sizing: border-box;
            padding: 0;
        }
        .recommend-card-image .recommend-image-slot-items {
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            gap: 4px 6px;
            align-items: center;
            justify-content: center;
        }
        .recommend-card-image .recommend-image-slot-item {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 0;
            padding: 1px 6px;
            border-radius: 999px;
            font-size: clamp(14px, 1.8vw, 24px);
            line-height: 1.1;
            font-weight: 900;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }
        .recommend-card-image .recommend-image-slot-text {
            position: relative;
            z-index: 1;
            width: 100%;
            text-align: center;
            font-size: clamp(16px, 2.2vw, 28px);
            line-height: 1.16;
            font-weight: 900;
            color: inherit;
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.88);
            word-break: break-word;
            overflow-wrap: anywhere;
            white-space: pre-wrap;
        }
        .recommend-card-image .recommend-image-slot.fill-issue-period .recommend-image-slot-text {
            color: inherit;
            font-size: clamp(15px, 2.0vw, 24px);
        }
        .recommend-card-image .recommend-image-slot.fill-code .recommend-image-slot-text,
        .recommend-card-image .recommend-image-slot.fill-zodiac .recommend-image-slot-text {
            letter-spacing: 0.5px;
        }
        .recommend-card-image .recommend-image-slot.fill-match .recommend-image-slot-text {
            color: inherit;
        }
        .recommend-card-image .recommend-image-slot.fill-wave .recommend-image-slot-text {
            color: inherit;
        }
        .recommend-card-image .recommend-image-slot.fill-text-embed .recommend-image-slot-item,
        .recommend-card-image .recommend-image-slot.fill-text-embed .recommend-image-slot-text {
            white-space: normal;
            word-break: break-word;
            overflow-wrap: anywhere;
            text-align: center;
        }
        .recommend-card-image [data-recommend-base-font] {
            font-size: var(--recommend-runtime-font-size) !important;
        }
        .recommend-card-image [data-recommend-base-pad-y] {
            padding: var(--recommend-runtime-pad-y, 0px) var(--recommend-runtime-pad-x, 0px) !important;
        }
        .recommend-card-image [data-recommend-base-min-width] {
            min-width: var(--recommend-runtime-min-width, 0px) !important;
        }
        .recommend-card-image [data-recommend-base-radius] {
            border-radius: var(--recommend-runtime-radius, 0px) !important;
        }
        .recommend-card-image .recommend-image-slot[data-reference-width] {
            transform-origin: 0 0;
            background: transparent !important;
            border: 0 !important;
            padding: 0 !important;
            box-shadow: none !important;
            width: 100% !important;
            min-width: 0 !important;
            max-width: none !important;
            height: 100% !important;
            min-height: 0 !important;
        }
        .recommend-card-image .recommend-image-slot-shell > .recommend-image-slot[data-reference-width] {
            height: 100% !important;
        }
        .recommend-card-image .recommend-image-slot-shell > .recommend-image-slot[data-reference-width] .recommend-image-slot-body {
            height: 100% !important;
            min-height: 0 !important;
        }
        .recommend-rule-group {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;
            gap: 10px;
            min-height: 64px;
            padding: 13px 16px;
            border-radius: 14px;
            color: #b40016;
            background: linear-gradient(90deg, #fff9e8, #fff0f3);
            border: 1px solid rgba(209, 0, 30, 0.10);
            font-size: 16px;
            font-weight: 900;
            scroll-margin-top: 128px;
        }
        .recommend-rule-stack {
            display: flex;
            flex-direction: row;
            align-items: center;
            flex-wrap: nowrap;
            gap: 6px 10px;
            min-width: 0;
            width: 100%;
            text-align: left;
            overflow: hidden;
        }
        .recommend-rule-name {
            display: inline-flex;
            align-items: center;
            flex: 1 1 auto;
            min-width: 0;
            font-size: 18px;
            line-height: 1.2;
            color: #b40016;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow-wrap: normal;
            word-break: normal;
        }
        .recommend-rule-sub {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            color: #7c2d12;
            font-size: 15px;
            font-weight: 800;
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            overflow-wrap: normal;
            word-break: normal;
        }
        .recommend-rule-actions {
            display: none;
        }
        .recommend-rule-cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 78px;
            height: 40px;
            padding: 0 16px;
            border-radius: 999px;
            background: linear-gradient(135deg, #d1001e, #ff6b6b);
            color: #fff;
            font-size: 21px;
            font-weight: 900;
            white-space: nowrap;
            position: relative;
            overflow: hidden;
            text-shadow: 0 0 8px rgba(255, 255, 255, 0.75);
            box-shadow:
                0 0 0 1px rgba(255, 255, 255, 0.18) inset,
                0 0 12px rgba(255, 125, 125, 0.38);
            animation: recommend-cta-pulse 1.8s ease-in-out infinite;
            flex: 0 0 auto;
        }
        .recommend-rule-cta::before {
            content: '';
            position: absolute;
            inset: -45% -30%;
            background: linear-gradient(
                120deg,
                transparent 20%,
                rgba(255, 255, 255, 0.10) 35%,
                rgba(255, 255, 255, 0.78) 50%,
                rgba(255, 255, 255, 0.10) 65%,
                transparent 80%
            );
            transform: translateX(-70%) rotate(12deg);
            animation: recommend-cta-sparkle 2.8s linear infinite;
            pointer-events: none;
        }
        .recommend-rule-cta::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            border: 1px solid rgba(255, 255, 255, 0.28);
            box-shadow:
                0 0 10px rgba(255, 255, 255, 0.24) inset,
                0 0 18px rgba(255, 185, 185, 0.28);
            pointer-events: none;
        }
        .recommend-card {
            display: inline-flex;
            flex-direction: column;
            align-items: stretch;
            gap: 4px;
            padding: 7px 10px 6px;
            min-height: 0;
            width: fit-content;
            max-width: 100%;
            align-self: flex-start;
            border-radius: 13px;
            text-decoration: none;
            color: #163a7a;
            border: 1px solid transparent;
            background:
                linear-gradient(180deg, #fff7f8 0%, #fff7de 100%) padding-box,
                linear-gradient(135deg, #fff3b0 0%, #cf9c31 22%, #8f5d08 50%, #ffd96a 74%, #fff2bf 100%) border-box;
            box-shadow:
                0 8px 20px rgba(187, 132, 38, 0.10),
                0 0 0 1px rgba(255, 238, 181, 0.24) inset;
            position: relative;
            overflow: hidden;
            transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
            scroll-margin-top: 128px;
        }
        .recommend-card-compact {
            display: inline-flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: flex-start;
            width: fit-content;
            max-width: 100%;
            padding: 2px 4px 2px;
            gap: 1px;
            border-radius: 12px;
        }
        .recommend-module-front .recommend-card-compact {
            width: 100% !important;
            min-height: 0;
            height: auto !important;
            flex: 0 0 auto !important;
            min-width: 0 !important;
            align-self: stretch;
            max-height: none;
            background: #fff;
            border: none;
            color: inherit !important;
            background-color: #fff !important;
            box-shadow: none;
            overflow: visible;
            align-self: flex-start;
            padding: 0;
            gap: 0;
        }
        .recommend-card-head-compact {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 4px;
        }
        .recommend-card-head-line-compact {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: flex-start;
            width: 100%;
            align-self: stretch;
            gap: 4px;
            padding: 0 4px 2px;
            min-width: 0;
            box-sizing: border-box;
        }
        .recommend-card-head-row-compact {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            min-width: 0;
            white-space: nowrap;
            flex-wrap: nowrap;
            box-sizing: border-box;
        }
        .recommend-card-head-line-compact > * {
            min-width: 0;
        }
        .recommend-card-head-row-compact > .recommend-card-period-inline {
            position: static;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 40%;
            flex-shrink: 0;
        }
        .recommend-card-head-line-compact > .recommend-card-body-line {
            display: block;
            width: 100%;
            box-sizing: border-box;
            padding: 0 8px;
            text-align: center;
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: break-word;
            margin: 0;
            min-width: 0;
            flex: 0 0 auto;
        }
        .recommend-module-front .recommend-card-body-line.recommend-card-body-line-wrapped,
        .recommend-module-front .recommend-card-compact.recommend-card-body-wrapped .recommend-card-body-line {
            text-align: left;
        }
        .recommend-card-head-row-compact > .recommend-card-open-inline {
            position: static;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 40%;
            flex-shrink: 0;
            margin-left: 0;
        }
        .recommend-card-content-compact {
            display: none;
        }
        .recommend-card-body-line {
            display: block;
            flex: 1 1 auto;
            min-width: 0;
            width: auto;
            max-width: 100%;
            text-align: center;
            font-size: 17px;
            font-weight: 900;
            line-height: 1.05;
            color: #0e4a88;
            white-space: pre-line;
            overflow-wrap: anywhere;
            word-break: break-word;
            padding: 0 4px;
            margin: 0;
            border-radius: 0;
            background: transparent;
            border: none;
            max-height: none;
            overflow: visible;
        }
        .recommend-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 26px rgba(187, 132, 38, 0.14);
            filter: saturate(1.02);
        }
        .recommend-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; height: 2px;
            background: linear-gradient(90deg, transparent, #e0b24f, transparent);
            opacity: 0.75;
            pointer-events: none;
        }
        .recommend-card-main {
            position: relative;
            z-index: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .recommend-card-head {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 4px;
        }
        .recommend-card-head-line {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 4px;
            min-width: 0;
        }
        .recommend-card-target {
            scroll-margin-top: 0;
        }
        .recommend-card-head-left {
            display: inline-flex;
            align-items: baseline;
            gap: 6px;
            min-width: 0;
            flex: 1 1 auto;
        }
        .recommend-card-head-line > * { flex-shrink: 0; }
        .recommend-card-title {
            font-size: 15px;
            font-weight: 900;
            line-height: 1.18;
            color: #d1001e;
            text-shadow: none;
        }
        .recommend-card-title-wrap {
            display: flex;
            flex-direction: row;
            align-items: baseline;
            gap: 3px;
            min-width: 0;
            overflow: hidden;
        }
        .recommend-card-title-main {
            display: block;
            flex: 1 1 auto;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 1.05em;
        }
        .recommend-card-title-suffix {
            display: block;
            flex: 0 0 auto;
            font-size: 0.84em;
            line-height: 1.15;
            color: #c40018;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }
        .recommend-card-title-separator {
            display: block;
            flex: 0 0 auto;
            font-size: 1.02em;
            line-height: 1;
            color: #d1001e;
            white-space: nowrap;
            transform: translateY(-1px);
        }
        .recommend-card-period-inline,
        .recommend-card-open-inline {
            display: inline-flex;
            align-items: baseline;
            gap: 4px;
            font-size: 16px;
            font-weight: 900;
            line-height: 1.1;
            color: #d1001e;
            white-space: nowrap;
            padding: 0;
            border: none;
            background: transparent;
            border-radius: 0;
        }
        .recommend-card-period-inline {
            color: #4caf50;
        }
        .recommend-card-open-inline {
            margin-left: auto;
            justify-content: flex-end;
            flex: 0 0 auto;
            font-size: 15px;
        }
        .recommend-card-period {
            flex-shrink: 0;
            padding: 5px 10px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.68);
            color: #173c7f;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 1px;
            border: 1px solid rgba(23, 60, 127, 0.12);
        }
        .recommend-card-open {
            display: none;
            align-items: flex-start;
            gap: 8px;
            padding: 8px 10px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.64);
            border: 1px solid rgba(23, 60, 127, 0.10);
            color: #173c7f;
            font-weight: 800;
            line-height: 1.5;
            flex-wrap: wrap;
        }
        .recommend-card-open-label {
            flex-shrink: 0;
            color: #173c7f;
        }
        .recommend-card-open-value {
            color: #d1001e;
            word-break: break-word;
            font-size: 1.15em;
        }
        .recommend-card-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(183, 131, 27, 0.18), transparent);
            margin: 1px 0 0;
        }
        .recommend-card-content {
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            justify-content: flex-start;
            gap: 0;
            flex-wrap: wrap;
            color: #173c7f;
            padding: 5px 7px;
            border-radius: 11px;
            background: linear-gradient(180deg, #fff8fb 0%, #fff5ea 100%);
            border: 1px solid rgba(209, 0, 30, 0.08);
        }
        .recommend-card-items {
            display: inline;
        }
        .recommend-item-wrap {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            gap: 4px;
            width: 100%;
            min-width: 0;
        }
        .recommend-item-text {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 24px;
            padding: 0 6px;
            font-size: 13px;
            font-weight: 900;
            color: #1f4f9b;
            letter-spacing: 0.5px;
            white-space: nowrap;
            width: auto;
            min-width: 32px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.58);
            border: 1px solid rgba(23, 60, 127, 0.10);
        }
        .recommend-item-sep {
            display: none;
        }
        .recommend-chip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 38px;
            height: 26px;
            padding: 0 8px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.72);
            border: 1px solid rgba(23, 60, 127, 0.12);
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.5px;
            color: #173c7f;
        }
        .recommend-chip-sep {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 10px;
            height: 26px;
            color: #b7831b;
            font-size: 12px;
            font-weight: 900;
            line-height: 1;
        }
        .recommend-item-wrap-match {
            gap: 6px 8px;
            min-width: 0;
        }
        .recommend-item-wrap-zodiac-code {
            display: flex;
            flex-direction: column;
            gap: 6px;
            width: 100%;
            min-width: 0;
        }
        .recommend-zodiac-code-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
            min-width: 0;
            padding: 8px 10px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.36);
            border: 1px solid rgba(23, 60, 127, 0.08);
        }
        .recommend-zodiac-code-line {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            min-width: 0;
        }
        .recommend-zodiac-code-line + .recommend-zodiac-code-line {
            padding-top: 6px;
            border-top: 1px dashed rgba(23, 60, 127, 0.10);
        }
        .recommend-zodiac-code-label {
            flex: 0 0 auto;
            min-width: 52px;
            font-size: 12px;
            font-weight: 900;
            line-height: 1.4;
            white-space: nowrap;
            color: #173c7f;
        }
        .recommend-zodiac-code-value {
            flex: 1 1 auto;
            min-width: 0;
            font-size: 14px;
            font-weight: 900;
            line-height: 1.45;
            word-break: break-word;
            overflow-wrap: anywhere;
            white-space: normal;
            color: inherit;
        }
        .recommend-item-wrap-fixed-group {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 4px;
            min-width: 0;
            width: 100%;
        }
        .recommend-fixed-group-line {
            display: block;
            width: 100%;
            min-width: 0;
            padding: 4px 2px;
            font-size: 13px;
            font-weight: 900;
            line-height: 1.45;
            color: #0f3b7b;
            white-space: pre-line;
            overflow-wrap: anywhere;
            word-break: break-word;
            text-align: left;
        }
        .recommend-item-wrap-wave {
            gap: 6px;
            min-width: 0;
        }
        .recommend-match-group {
            display: inline-flex;
            align-items: center;
            flex-wrap: nowrap;
            max-width: 100%;
            min-width: 0;
            padding: 0 2px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.28);
        }
        .recommend-match-zodiac,
        .recommend-match-number {
            display: inline-flex;
            align-items: center;
            min-height: 26px;
            white-space: nowrap;
            font-size: 13px;
            font-weight: 900;
            color: #1f4f9b;
        }
        .recommend-match-zodiac {
            color: #0f3b7b;
            padding-left: 2px;
        }
        .recommend-match-number {
            padding-right: 2px;
        }
        .recommend-match-sep {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 8px;
            min-height: 26px;
            padding: 0 2px;
            font-size: 12px;
            font-weight: 900;
            color: #b7831b;
            line-height: 1;
            white-space: nowrap;
        }
        .recommend-wave-line {
            display: block;
            width: 100%;
            min-width: 0;
            padding: 2px 2px 3px;
            font-size: 13px;
            font-weight: 900;
            line-height: 1.45;
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: break-word;
        }
        .recommend-card.type-code,
        .recommend-card.type-zodiac,
        .recommend-card.type-match,
        .recommend-card.type-wave,
        .recommend-card.type-wave-color { background: linear-gradient(180deg, #fff2f6 0%, #fff0d6 100%); }
        @keyframes recommend-head-shine {
            0% { transform: translateX(-70%); opacity: 0.0; }
            12% { opacity: 0.7; }
            50% { opacity: 0.95; }
            100% { transform: translateX(70%); opacity: 0.0; }
        }
        @keyframes recommend-title-flicker {
            0%, 100% {
                opacity: 1;
                text-shadow:
                    0 0 6px rgba(255, 238, 169, 0.52),
                    0 1px 3px rgba(0,0,0,0.30);
            }
            18% {
                opacity: 0.88;
                text-shadow:
                    0 0 10px rgba(255, 247, 205, 0.72),
                    0 0 18px rgba(255, 208, 92, 0.58),
                    0 1px 3px rgba(0,0,0,0.26);
            }
            36% {
                opacity: 1;
            }
            54% {
                opacity: 0.82;
                text-shadow:
                    0 0 12px rgba(255, 244, 183, 0.78),
                    0 0 20px rgba(255, 189, 52, 0.62),
                    0 1px 3px rgba(0,0,0,0.22);
            }
            72% {
                opacity: 0.96;
            }
        }
        @keyframes recommend-title-bounce {
            0%, 100% { transform: translateY(0); }
            25% { transform: translateY(-2px); }
            50% { transform: translateY(0); }
            75% { transform: translateY(-1px); }
        }
        @media (max-width: 980px) {
            .recommend-card { width: 100%; }
            .recommend-top-nav-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        }
        @media (max-width: 640px) {
            .container { padding: 6px 6px 0; }
            .tabs-wrapper { padding: 0 6px; }
            .recommend-feed-zone,
            .recommend-top-nav { padding: 0 6px; }
            .recommend-card { padding: 13px 12px 12px; }
            .recommend-module-image { padding: 0; gap: 0; }
            .recommend-card-image .recommend-image-slot-text {
                font-size: 15px;
                line-height: 1.12;
                padding: 0 4px;
            }
            .recommend-card-image .recommend-image-slot.fill-issue-period .recommend-image-slot-text {
                font-size: 14px;
            }
            .recommend-module-front .recommend-card-compact { padding: 0; gap: 0; max-height: none; }
            .recommend-module-front .recommend-module-items { gap: 2px; padding: 2px 2px 3px; align-items: stretch; }
            .recommend-card-head-line-compact { gap: 3px; padding: 0 2px 2px; }
            .recommend-card-head-row-compact { gap: 8px; }
            .recommend-card-head-line-compact > .recommend-card-body-line { font-size: 16px; line-height: 1.1; padding: 0 6px; }
            .recommend-card-content-compact { display: none; }
            .recommend-rule-group { min-height: 56px; padding: 10px 11px; gap: 6px; }
            .recommend-rule-name { font-size: 16px; }
            .recommend-rule-sub { font-size: 13px; }
            .recommend-rule-cta { min-width: 70px; height: 34px; font-size: 19px; padding: 0 14px; }
            .recommend-card-title { font-size: 16px; }
            .recommend-card-open { font-size: 14px; }
            .recommend-card-open-inline { font-size: 15px; }
            .recommend-card-open-value { font-size: 1.15em; }
            .recommend-module-title { font-size: 23px; }
            .recommend-module-sub { font-size: 12px; }
            .recommend-module-domain { font-size: 13px; gap: 6px; }
            .recommend-module-image .recommend-module-domain { font-size: 16px; }
            .recommend-item-wrap { gap: 4px; }
            .recommend-item-text {
                min-height: 26px;
                padding: 0 6px;
                font-size: 13px;
                width: auto;
                border-radius: 10px;
            }
            .recommend-item-sep { display: none; }
            .recommend-top-nav-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
            .recommend-nav-card { min-height: 38px; padding: 2px 3px; border-radius: 8px; }
            .recommend-nav-title { font-size: 10px; line-height: 1.05; gap: 2px; }
            .recommend-nav-title-main { font-size: 0.94em; }
            .recommend-nav-title-suffix { font-size: 0.62em; }
            .recommend-nav-title-separator { font-size: 0.62em; }
        }
        @media (max-width: 390px) {
            .recommend-feed-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
            .recommend-top-nav-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
            .recommend-nav-card { min-height: 36px; padding: 2px; }
            .recommend-rule-group { min-height: 48px; padding: 9px 9px; }
            .recommend-rule-stack { gap: 4px 8px; }
            .recommend-module-head { padding: 9px 10px 7px; }
            .recommend-module-title { font-size: 18px; }
            .recommend-module-items { padding: 2px; }
            .recommend-card-head-line-compact { gap: 3px; padding: 0 1px 2px; }
            .recommend-card-head-row-compact { gap: 6px; }
            .recommend-card-image .recommend-image-slot-text { font-size: 14px; }
            .recommend-rule-name { font-size: 15px; }
            .recommend-rule-sub { font-size: 12px; }
            .recommend-rule-cta { min-width: 62px; height: 32px; font-size: 17px; padding: 0 12px; }
        }
        @keyframes recommend-cta-pulse {
            0%, 100% {
                transform: translateY(0);
                box-shadow:
                    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
                    0 0 12px rgba(255, 125, 125, 0.32);
            }
            50% {
                transform: translateY(-1px);
                box-shadow:
                    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
                    0 0 18px rgba(255, 210, 210, 0.55),
                    0 0 26px rgba(255, 140, 140, 0.28);
            }
        }
        @keyframes recommend-cta-sparkle {
            0% { transform: translateX(-75%) rotate(12deg); opacity: 0; }
            18% { opacity: 1; }
            55% { opacity: 0.95; }
            100% { transform: translateX(75%) rotate(12deg); opacity: 0; }
        }

        /* ===== Theme: Red (喜庆红金) ===== */
        body[data-theme="red"] { background: #3a0008; }
        body[data-theme="red"] .header { background: linear-gradient(135deg, #8b0000 0%, #c41e3a 50%, #ff6b35 100%); }
        body[data-theme="red"] .tabs-wrapper { background: #3a0008; }
        body[data-theme="red"] .tabs { background: linear-gradient(180deg, #5b0a18, #8b0000); }
        body[data-theme="red"] .draw-card {
            background: linear-gradient(145deg, #5b0a18, #3a0008);
            border-color: rgba(255,215,0,0.25);
        }
        body[data-theme="red"] .draw-card:first-child {
            border-color: rgba(255,215,0,0.5);
            box-shadow: 0 4px 30px rgba(255,215,0,0.15), 0 4px 20px rgba(0,0,0,0.4);
        }
        body[data-theme="red"] .tabs-wrapper { background: #3a0008; }
        body[data-theme="red"] .card-bottom { color: #9a5050; border-top-color: rgba(255,255,255,0.08); }
        body[data-theme="red"] #footer { color: #6a2030; border-top-color: rgba(255,255,255,0.08); }

        /* ===== Theme: Light (清新简约) ===== */
        body[data-theme="light"] { background: #f5f5f7; color: #2c3e50; }
        body[data-theme="light"] .header {
            background: linear-gradient(135deg, #1976d2 0%, #1565c0 50%, #0d47a1 100%);
        }
        body[data-theme="light"] .header h1 {
            color: #ffca28;
            text-shadow: 0 2px 8px rgba(0,0,0,0.3);
        }
        body[data-theme="light"] .header p { color: rgba(255,255,255,0.85); }
        body[data-theme="light"] #notice-bar { background: transparent; color: #0d47a1; }
        body[data-theme="light"] .tabs-wrapper { background: #f5f5f7; }
        body[data-theme="light"] .tabs {
            background: #fff;
            border-bottom: 2px solid #1976d2;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        body[data-theme="light"] .tab { color: #78909c; }
        body[data-theme="light"] .tab:hover { color: #1976d2; }
        body[data-theme="light"] .tab.active {
            color: #1976d2;
            border-bottom-color: #1976d2;
            background: rgba(25,118,210,0.06);
            text-shadow: none;
        }
        body[data-theme="light"] .draw-card {
            background: #fff;
            border: 1px solid #e0e0e0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.06);
        }
        body[data-theme="light"] .draw-card:first-child {
            border-color: #1976d2;
            box-shadow: 0 4px 16px rgba(25,118,210,0.15);
        }
        body[data-theme="light"] .draw-card::before { background: linear-gradient(90deg, transparent, #1976d2, transparent); }
        body[data-theme="light"] .card-topbar .period-label { color: #d32f2f; text-shadow: none; }
        body[data-theme="light"] .countdown-wrap { color: #546e7a; }
        body[data-theme="light"] .countdown-wrap .countdown { color: #d32f2f; text-shadow: none; }
        body[data-theme="light"] .card-topbar .history-link { color: #1976d2; }
        body[data-theme="light"] .separator { color: #d32f2f; text-shadow: none; }
        body[data-theme="light"] .card-bottom { color: #90a4ae; border-top-color: #eee; }
        body[data-theme="light"] #footer { color: #90a4ae; border-top-color: #eee; }
        body[data-theme="light"] .loading { color: #1976d2; }
        body[data-theme="light"] .loading::after { border-color: #1976d2; border-top-color: transparent; }

        /* ===== Theme: Ocean (海洋蓝绿) ===== */
        body[data-theme="ocean"] { background: linear-gradient(180deg, #03111f 0%, #081b2c 48%, #02070d 100%); color: #e6fbff; }
        body[data-theme="ocean"] .header {
            background: linear-gradient(135deg, #003459 0%, #0077b6 45%, #00b4d8 100%);
        }
        body[data-theme="ocean"] .tabs-wrapper { background: #03111f; }
        body[data-theme="ocean"] .tabs {
            background: linear-gradient(180deg, #062743, #0b3558);
            border-bottom: 2px solid #7df9ff;
        }
        body[data-theme="ocean"] .tab { color: #94d2ff; }
        body[data-theme="ocean"] .tab:hover { color: #7df9ff; }
        body[data-theme="ocean"] .tab.active {
            color: #7df9ff;
            border-bottom-color: #7df9ff;
            background: rgba(125,249,255,0.12);
            text-shadow: 0 0 10px rgba(125,249,255,0.25);
        }
        body[data-theme="ocean"] #notice-bar .notice-inner {
            background: linear-gradient(90deg, #7df9ff, #00b4d8, #7df9ff);
            color: #00111a;
        }
        body[data-theme="ocean"] .draw-card {
            background: linear-gradient(145deg, #08263f, #051624);
            border-color: rgba(125,249,255,0.18);
            box-shadow: 0 4px 20px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.04);
        }
        body[data-theme="ocean"] .draw-card:first-child {
            border-color: rgba(125,249,255,0.45);
            box-shadow: 0 4px 30px rgba(125,249,255,0.10), 0 4px 20px rgba(0,0,0,0.42);
        }
        body[data-theme="ocean"] .draw-card::before { background: linear-gradient(90deg, transparent, #7df9ff, transparent); }
        body[data-theme="ocean"] .recommend-inner { border-color: rgba(125,249,255,0.20); }
        body[data-theme="ocean"] .rec-table { background: #081523; }
        body[data-theme="ocean"] .card-topbar .period-label { color: #7df9ff; text-shadow: 0 0 8px rgba(125,249,255,0.18); }
        body[data-theme="ocean"] .countdown-wrap { color: #9dbbd9; }
        body[data-theme="ocean"] .countdown-wrap .countdown { color: #ff7b54; text-shadow: 0 0 8px rgba(255,123,84,0.22); }
        body[data-theme="ocean"] .card-topbar .history-link { color: #7df9ff; }
        body[data-theme="ocean"] .separator { color: #7df9ff; text-shadow: 0 0 10px rgba(125,249,255,0.35); }
        body[data-theme="ocean"] .card-bottom { color: #7ca6bd; border-top-color: rgba(255,255,255,0.08); }
        body[data-theme="ocean"] #footer { color: #8ed6e6; border-top-color: rgba(255,255,255,0.08); }
        body[data-theme="ocean"] .loading { color: #7df9ff; }
        body[data-theme="ocean"] .loading::after { border-color: #7df9ff; border-top-color: transparent; }

        /* ===== Theme: Emerald (翡翠绿金) ===== */
        body[data-theme="emerald"] { background: linear-gradient(180deg, #03140d 0%, #072517 48%, #02110b 100%); color: #ecfff4; }
        body[data-theme="emerald"] .header {
            background: linear-gradient(135deg, #064420 0%, #0f8b4c 50%, #31c48d 100%);
        }
        body[data-theme="emerald"] .tabs-wrapper { background: #03140d; }
        body[data-theme="emerald"] .tabs {
            background: linear-gradient(180deg, #06311e, #0a472c);
            border-bottom: 2px solid #9cffcb;
        }
        body[data-theme="emerald"] .tab { color: #a4f4cc; }
        body[data-theme="emerald"] .tab:hover { color: #d5ffe9; }
        body[data-theme="emerald"] .tab.active {
            color: #d5ffe9;
            border-bottom-color: #9cffcb;
            background: rgba(156,255,203,0.12);
            text-shadow: 0 0 10px rgba(156,255,203,0.22);
        }
        body[data-theme="emerald"] #notice-bar .notice-inner {
            background: linear-gradient(90deg, #9cffcb, #31c48d, #9cffcb);
            color: #032011;
        }
        body[data-theme="emerald"] .draw-card {
            background: linear-gradient(145deg, #0b2f1f, #061d13);
            border-color: rgba(156,255,203,0.18);
        }
        body[data-theme="emerald"] .draw-card:first-child {
            border-color: rgba(156,255,203,0.45);
            box-shadow: 0 4px 30px rgba(156,255,203,0.08), 0 4px 20px rgba(0,0,0,0.42);
        }
        body[data-theme="emerald"] .draw-card::before { background: linear-gradient(90deg, transparent, #9cffcb, transparent); }
        body[data-theme="emerald"] .recommend-inner { border-color: rgba(156,255,203,0.20); }
        body[data-theme="emerald"] .rec-table { background: #081b12; }
        body[data-theme="emerald"] .card-topbar .period-label { color: #9cffcb; }
        body[data-theme="emerald"] .countdown-wrap { color: #acd8bf; }
        body[data-theme="emerald"] .countdown-wrap .countdown { color: #ffd166; }
        body[data-theme="emerald"] .card-topbar .history-link { color: #9cffcb; }
        body[data-theme="emerald"] .separator { color: #9cffcb; }
        body[data-theme="emerald"] .card-bottom { color: #86b89e; border-top-color: rgba(255,255,255,0.08); }
        body[data-theme="emerald"] #footer { color: #9ff0c5; border-top-color: rgba(255,255,255,0.08); }
        body[data-theme="emerald"] .loading { color: #9cffcb; }
        body[data-theme="emerald"] .loading::after { border-color: #9cffcb; border-top-color: transparent; }

        /* ===== Theme: Sunset (霞光橙紫) ===== */
        body[data-theme="sunset"] { background: linear-gradient(180deg, #1c0813 0%, #32113b 48%, #0e0711 100%); color: #fff4f0; }
        body[data-theme="sunset"] .header {
            background: linear-gradient(135deg, #d81b60 0%, #ff6f61 45%, #ff8f00 100%);
        }
        body[data-theme="sunset"] .tabs-wrapper { background: #1c0813; }
        body[data-theme="sunset"] .tabs {
            background: linear-gradient(180deg, #3d1237, #5a1b4d);
            border-bottom: 2px solid #ffd166;
        }
        body[data-theme="sunset"] .tab { color: #ffc6e4; }
        body[data-theme="sunset"] .tab:hover { color: #fff0a8; }
        body[data-theme="sunset"] .tab.active {
            color: #fff0a8;
            border-bottom-color: #ffd166;
            background: rgba(255,209,102,0.10);
            text-shadow: 0 0 10px rgba(255,209,102,0.25);
        }
        body[data-theme="sunset"] #notice-bar .notice-inner {
            background: linear-gradient(90deg, #ffd166, #ff8f00, #ff4fd8);
            color: #331100;
        }
        body[data-theme="sunset"] .draw-card {
            background: linear-gradient(145deg, #351a3b, #1d0d23);
            border-color: rgba(255,209,102,0.16);
        }
        body[data-theme="sunset"] .draw-card:first-child {
            border-color: rgba(255,209,102,0.42);
            box-shadow: 0 4px 30px rgba(255,209,102,0.08), 0 4px 20px rgba(0,0,0,0.42);
        }
        body[data-theme="sunset"] .draw-card::before { background: linear-gradient(90deg, transparent, #ff8f00, transparent); }
        body[data-theme="sunset"] .recommend-inner { border-color: rgba(255,209,102,0.20); }
        body[data-theme="sunset"] .rec-table { background: #1d0d23; }
        body[data-theme="sunset"] .card-topbar .period-label { color: #ffd166; }
        body[data-theme="sunset"] .countdown-wrap { color: #ffc6e4; }
        body[data-theme="sunset"] .countdown-wrap .countdown { color: #ff8f00; }
        body[data-theme="sunset"] .card-topbar .history-link { color: #ffd166; }
        body[data-theme="sunset"] .separator { color: #ffd166; }
        body[data-theme="sunset"] .card-bottom { color: #c28fa0; border-top-color: rgba(255,255,255,0.08); }
        body[data-theme="sunset"] #footer { color: #d19bb0; border-top-color: rgba(255,255,255,0.08); }
        body[data-theme="sunset"] .loading { color: #ffd166; }
        body[data-theme="sunset"] .loading::after { border-color: #ffd166; border-top-color: transparent; }

        /* ===== Theme: Violet (星河紫金) ===== */
        body[data-theme="violet"] { background: linear-gradient(180deg, #15081f 0%, #24103f 48%, #09050f 100%); color: #f5ecff; }
        body[data-theme="violet"] .header {
            background: linear-gradient(135deg, #5b2cff 0%, #8e2de2 45%, #ff4fd8 100%);
        }
        body[data-theme="violet"] .tabs-wrapper { background: #15081f; }
        body[data-theme="violet"] .tabs {
            background: linear-gradient(180deg, #2d0f4a, #40146a);
            border-bottom: 2px solid #c77dff;
        }
        body[data-theme="violet"] .tab { color: #e0c7ff; }
        body[data-theme="violet"] .tab:hover { color: #ffd6ff; }
        body[data-theme="violet"] .tab.active {
            color: #ffd6ff;
            border-bottom-color: #c77dff;
            background: rgba(199,125,255,0.11);
            text-shadow: 0 0 10px rgba(199,125,255,0.24);
        }
        body[data-theme="violet"] #notice-bar .notice-inner {
            background: linear-gradient(90deg, #c77dff, #8e2de2, #ff4fd8);
            color: #1d0728;
        }
        body[data-theme="violet"] .draw-card {
            background: linear-gradient(145deg, #2a1145, #16081f);
            border-color: rgba(199,125,255,0.18);
        }
        body[data-theme="violet"] .draw-card:first-child {
            border-color: rgba(199,125,255,0.45);
            box-shadow: 0 4px 30px rgba(199,125,255,0.08), 0 4px 20px rgba(0,0,0,0.42);
        }
        body[data-theme="violet"] .draw-card::before { background: linear-gradient(90deg, transparent, #c77dff, transparent); }
        body[data-theme="violet"] .recommend-inner { border-color: rgba(199,125,255,0.20); }
        body[data-theme="violet"] .rec-table { background: #16081f; }
        body[data-theme="violet"] .card-topbar .period-label { color: #ffd6ff; }
        body[data-theme="violet"] .countdown-wrap { color: #d7c1f3; }
        body[data-theme="violet"] .countdown-wrap .countdown { color: #ff4fd8; }
        body[data-theme="violet"] .card-topbar .history-link { color: #c77dff; }
        body[data-theme="violet"] .separator { color: #c77dff; }
        body[data-theme="violet"] .card-bottom { color: #ab8fbf; border-top-color: rgba(255,255,255,0.08); }
        body[data-theme="violet"] #footer { color: #cbb3e8; border-top-color: rgba(255,255,255,0.08); }
        body[data-theme="violet"] .loading { color: #c77dff; }
        body[data-theme="violet"] .loading::after { border-color: #c77dff; border-top-color: transparent; }

        body.horse-popup-open {
            overflow: hidden;
        }

        .horse-popup-overlay {
            position: fixed;
            inset: 0;
            z-index: 99999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 10px;
            background: rgba(6, 8, 18, 0.76);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .horse-popup-overlay.is-open {
            display: flex;
        }

        .horse-popup-card {
            position: relative;
            width: min(88vw, 360px);
            overflow: hidden;
            border-radius: 24px;
            border: 1px solid rgba(255, 209, 102, 0.42);
            background:
                radial-gradient(circle at 50% 8%, rgba(255, 187, 51, 0.22), transparent 32%),
                radial-gradient(circle at 50% 18%, rgba(255, 113, 0, 0.28), transparent 40%),
                linear-gradient(180deg, #0b0502 0%, #1a0b04 46%, #070402 100%);
            box-shadow:
                0 30px 90px rgba(0, 0, 0, 0.46),
                0 0 0 1px rgba(255, 255, 255, 0.32) inset;
            transform-origin: center;
            animation: horse-popup-in 0.34s ease-out;
        }

        .horse-popup-card::before,
        .horse-popup-card::after {
            content: "";
            position: absolute;
            inset: -18% auto auto -12%;
            width: 220px;
            height: 220px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255, 180, 0, 0.26), transparent 66%);
            pointer-events: none;
            z-index: 0;
        }

        .horse-popup-card::after {
            inset: auto -26% -34% auto;
            width: 240px;
            height: 240px;
            background: radial-gradient(circle, rgba(255, 123, 0, 0.18), transparent 68%);
        }

        .horse-popup-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 38px;
            height: 38px;
            border: 0;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.86);
            color: #9a5a00;
            font-size: 24px;
            line-height: 1;
            cursor: pointer;
            box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
            z-index: 3;
            pointer-events: auto;
        }

        .horse-popup-close:hover {
            background: #fff;
            color: #d97706;
        }

        .horse-popup-body {
            position: relative;
            padding: 20px 16px 16px;
            text-align: center;
            z-index: 1;
        }

        @keyframes horse-popup-in {
            from {
                opacity: 0;
                transform: scale(0.92) translateY(16px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .horse-popup-card {
            width: min(92vw, 420px);
            border-radius: 8px;
            border: 1px solid rgba(210, 25, 25, 0.3);
            background: #fff;
            color: #1f1f1f;
            box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
        }

        .horse-popup-card::before,
        .horse-popup-card::after {
            display: none;
        }

        .horse-popup-titlebar {
            min-height: 42px;
            padding: 10px 48px 10px 16px;
            background: #d80000;
            color: #fff;
            font-size: 18px;
            font-weight: 900;
            line-height: 22px;
            text-align: center;
            letter-spacing: 0;
        }

        .horse-popup-close {
            top: 7px;
            right: 8px;
            width: 28px;
            height: 28px;
            background: rgba(255, 255, 255, 0.18);
            color: #fff;
            font-size: 22px;
            box-shadow: none;
        }

        .horse-popup-close:hover {
            background: rgba(255, 255, 255, 0.28);
            color: #fff;
        }

        .horse-popup-body {
            padding: 10px;
            text-align: left;
            background: #fff;
            max-height: min(70vh, 560px);
            overflow-y: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .horse-popup-body::-webkit-scrollbar {
            display: none;
        }

        .horse-popup-release {
            display: flex;
            flex-direction: column;
            gap: 8px;
            width: 100%;
            box-sizing: border-box;
        }

        .horse-popup-release + .horse-popup-release {
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid #f0d0d0;
        }

        .horse-popup-release-title {
            display: block;
            width: 100%;
            box-sizing: border-box;
            padding: 8px 10px;
            border-radius: 6px 6px 0 0;
            border: 1px solid #1aa64a;
            border-bottom: none;
            background: linear-gradient(180deg, #36d45d 0%, #16b84a 100%);
            color: #ffe58a;
            font-size: 16px;
            font-weight: 900;
            line-height: 1.35;
            text-align: center;
            text-shadow: 0 1px 0 rgba(0, 82, 27, 0.65);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
        }

        .horse-popup-release-meta {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: nowrap;
            width: 100%;
            color: #5f5f5f;
            font-size: 13px;
            font-weight: 800;
            line-height: 1.35;
            text-align: center;
        }

        .horse-popup-release-content {
            padding: 8px;
            border: 1px solid #eeeeee;
            border-radius: 6px;
            background: #fffdfd;
            color: #d80000;
            font-size: 17px;
            font-weight: 900;
            line-height: 1.65;
            text-align: center;
            word-break: break-word;
        }

        .horse-popup-release-content .recommend-item-wrap {
            justify-content: center;
        }

        .horse-popup-empty {
            padding: 16px 10px;
            color: #777;
            font-size: 14px;
            font-weight: 700;
            text-align: center;
        }

        /* ===== Responsive ===== */
        @media (max-width: 600px) {
            body {
                padding: 8px;
                background:
                    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 26%),
                    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 22%),
                    linear-gradient(180deg, #0f1638 0%, #0a1027 100%);
            }
            .top-embed-zone {
                margin-top: 6px;
                padding: 0;
                max-width: none;
                width: calc(100% + 16px);
                margin-left: -8px;
                margin-right: -8px;
            }
            .top-embed-module { min-height: 108px; padding: 14px 14px 18px; border-radius: 14px; }
            .top-embed-module .top-embed-title { font-size: 20px; letter-spacing: 1px; }
            .top-embed-module .top-embed-subtitle { font-size: 11px; margin-top: 6px; }
            .top-embed-module .top-embed-badge { min-width: 36px; height: 22px; font-size: 10px; margin-bottom: 8px; }
            .top-embed-module .top-embed-art { width: 56px; height: 56px; font-size: 28px; border-radius: 18px; }
            .top-embed-image-card {
                width: 100%;
                max-width: 100%;
                height: auto;
                border-radius: 0;
                border: 0;
                box-shadow: none;
            }
            .top-embed-image-card img {
                width: 100%;
                height: auto;
                display: block;
            }
            .ad-item { height: 68px; }
            .ad-item .ad-placeholder { font-size: 12px; }
            .ad-item .ad-icon { font-size: 20px; margin-bottom: 1px; }
            .header h1 { font-size: 22px; letter-spacing: 3px; }
            .header { padding: 16px 12px 12px; }
            .tab { font-size: 14px; padding: 12px 4px; }
            .draw-card {
                padding: 12px 10px;
                border-radius: 18px;
                background: linear-gradient(180deg, rgba(24, 31, 74, 0.98), rgba(13, 18, 42, 0.98));
                border-color: rgba(255,215,0,0.16);
                box-shadow: 0 12px 26px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.04);
            }
            .draw-card:first-child { box-shadow: 0 14px 28px rgba(255,215,0,0.08), 0 12px 26px rgba(0,0,0,0.28); }
            .card-topbar {
                font-size: 11px;
                flex-wrap: nowrap;
                justify-content: space-between;
                align-items: center;
                gap: 3px;
                margin-bottom: 10px;
            }
            .card-topbar .period-label {
                font-size: 11px;
                padding: 4px 7px;
                border-radius: 999px;
                background: rgba(255,215,0,0.12);
                white-space: nowrap;
                flex: 0 0 auto;
            }
            .card-topbar .countdown-wrap {
                flex: 1 1 auto;
                min-width: 0;
                font-size: 10px;
                display: inline-flex;
                align-items: center;
                gap: 4px;
                padding: 4px 7px;
                border-radius: 999px;
                background: rgba(255,255,255,0.06);
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .card-topbar .history-link {
                display: inline-flex;
                align-items: center;
                padding: 4px 7px;
                border-radius: 999px;
                background: rgba(255,215,0,0.08);
                border: 1px solid rgba(255,215,0,0.12);
                white-space: nowrap;
                flex: 0 0 auto;
            }
            body[data-ball-style="reference"] .open-qiu-box {
                padding: 10px 10px 8px;
                border-radius: 16px;
            }
            body[data-ball-style="reference"] .open-qiu-box .head {
                gap: 6px;
                margin-bottom: 8px;
            }
            body[data-ball-style="reference"] .open-qiu-box .qishu {
                font-size: 12px;
            }
            body[data-ball-style="reference"] .open-qiu-box .head-text {
                font-size: 10px;
            }
            body[data-ball-style="reference"] .open-qiu-box .gd-log {
                font-size: 10px;
                padding: 3px 8px;
            }
            body[data-ball-style="reference"] .open-qiu-box .open-num { gap: 4px; }
            body[data-ball-style="reference"] .open-qiu-box .box {
                flex-basis: 13.2%;
                width: 13.2%;
                min-height: 82px;
                padding: 6px 0 5px;
                justify-content: center !important;
            }
            body[data-ball-style="reference"] .open-qiu-box .qiu {
                width: 30px;
                height: 30px;
                line-height: 30px;
                margin: 3px 0 3px;
                font-size: 14px;
            }
            body[data-ball-style="reference"] .open-qiu-box .text {
                font-size: 8px;
                min-height: 18px;
            }
            .balls-container { gap: 4px; justify-content: center; }
            .ball {
                width: 42px;
                height: 42px;
                box-shadow: 0 4px 14px rgba(0,0,0,0.26);
            }
            .ball .ball-num { font-size: 15px; margin-bottom: 1px; }
            .ball .ball-info { font-size: 8px; letter-spacing: 0; }
            .separator { font-size: 18px; padding: 0 1px; }
            .card-bottom {
                margin-top: 12px;
                padding: 8px 10px;
                border-top: none;
                border-radius: 999px;
                background: rgba(255,255,255,0.05);
                color: rgba(255,255,255,0.58);
                font-size: 11px;
            }
            .horse-popup-body {
                padding: 18px 14px 14px;
            }
        }
        @media (max-width: 400px) {
            .top-embed-zone {
                padding: 0;
                width: calc(100% + 16px);
                margin-left: -8px;
                margin-right: -8px;
            }
            .top-embed-module { min-height: 98px; padding: 12px 12px 16px; }
            .top-embed-module .top-embed-title { font-size: 18px; }
            .top-embed-module .top-embed-art { width: 48px; height: 48px; font-size: 24px; }
            .top-embed-image-card {
                height: auto;
                border-radius: 0;
            }
            .draw-card { padding: 10px 8px; border-radius: 16px; }
            body[data-ball-style="reference"] .open-qiu-box {
                padding: 8px 8px 7px;
                border-radius: 14px;
            }
            body[data-ball-style="reference"] .open-qiu-box .head {
                gap: 4px;
                margin-bottom: 7px;
            }
            body[data-ball-style="reference"] .open-qiu-box .qishu {
                font-size: 11px;
            }
            body[data-ball-style="reference"] .open-qiu-box .head-text {
                font-size: 9px;
            }
            body[data-ball-style="reference"] .open-qiu-box .gd-log {
                font-size: 9px;
                padding: 2px 7px;
            }
            body[data-ball-style="reference"] .open-qiu-box .open-num {
                gap: 3px;
            }
            body[data-ball-style="reference"] .open-qiu-box .box {
                flex-basis: 13.2%;
                width: 13.2%;
                min-height: 74px;
                padding: 5px 0 4px;
            }
            body[data-ball-style="reference"] .open-qiu-box .qiu {
                width: 24px;
                height: 24px;
                line-height: 24px;
                margin: 2px 0 2px;
                font-size: 12px;
            }
            body[data-ball-style="reference"] .open-qiu-box .text {
                font-size: 7px;
                min-height: 16px;
            }
            .balls-container { gap: 3px; }
            .ball { width: 34px; height: 34px; }
            .ball .ball-num { font-size: 12px; margin-bottom: 0; }
            .ball .ball-info { font-size: 7px; letter-spacing: 0; }
            .separator { font-size: 14px; padding: 0; }
            body[data-ball-style="reference"] .separator { display: none; }
            .card-topbar .period-label,
            .card-topbar .countdown-wrap,
            .card-topbar .history-link {
                padding: 4px 8px;
                font-size: 10px;
            }
            .card-bottom { font-size: 10px; padding: 6px 8px; }
            .horse-popup-card {
                width: 96vw;
                border-radius: 22px;
            }
            .horse-popup-body {
                padding: 16px 12px 12px;
            }
        }

        /* ===== Reference Draw Framework (68567888.top style) ===== */
        .reference-draw-stage {
            display: none;
        }
        body[data-ball-style="reference"] .draw-stage {
            display: none;
        }
        body[data-ball-style="reference"] {
            overflow-x: hidden;
        }
        body[data-ball-style="reference"] .reference-draw-stage {
            display: block;
            width: 100%;
            max-width: 660px;
            padding: 0 12px;
            margin: 6px auto 10px;
            position: sticky;
            top: 0;
            z-index: 18;
            box-sizing: border-box;
        }
        .reference-ui-tab {
            background: #fff;
            border-radius: 10px;
            margin: 0 auto;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        }
        .reference-ui-tab .bui-tab-head {
            background: #fff;
            border-radius: 10px 10px 0 0;
            overflow: hidden;
        }
        .reference-ui-tab .reference-tabs {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            list-style: none;
            margin: 0;
            padding: 0;
            border-bottom: 1px solid #e7e7e7;
        }
        .reference-ui-tab .reference-tab {
            min-width: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 44px;
            padding: 10px 4px 9px;
            color: #333;
            font-size: 15px;
            font-weight: 700;
            line-height: 1.2;
            text-align: center;
            cursor: pointer;
            user-select: none;
            border-right: 1px solid #f0f0f0;
            transition: background-color .2s ease, color .2s ease;
        }
        .reference-ui-tab .reference-tab:last-child {
            border-right: 0;
        }
        .reference-ui-tab .reference-tab.active {
            background: #07c160;
            color: #fff;
        }
        .reference-ui-tab .reference-panel {
            display: none;
        }
        .reference-ui-tab .reference-panel.active {
            display: block;
        }
        .reference-draw-stage .open-qiu-box {
            margin: 0 !important;
            padding: 10px !important;
            background: #fff !important;
            border: 1px solid #07c160 !important;
            border-top: 0 !important;
            border-radius: 0 0 10px 10px !important;
            box-shadow: none !important;
            overflow: hidden;
        }
        .reference-draw-stage .open-qiu-box .head {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            gap: 8px !important;
            margin: 0 !important;
            padding: 0 !important;
            font-size: 14px !important;
            line-height: 1.2 !important;
            flex-wrap: nowrap !important;
        }
        .reference-draw-stage .open-qiu-box .qishu {
            flex: 0 0 auto !important;
            color: #111 !important;
            font-size: 14px !important;
            font-weight: 700 !important;
            white-space: nowrap !important;
        }
        .reference-draw-stage .open-qiu-box .qishu span {
            color: #07c160 !important;
            font-weight: 800 !important;
        }
        .reference-draw-stage .open-qiu-box .countdown-wrap {
            flex: 1 1 auto !important;
            min-width: 0 !important;
            color: #475569 !important;
            font-size: 13px !important;
            font-weight: 700 !important;
            text-align: center !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }
        .reference-draw-stage .open-qiu-box .countdown {
            color: red !important;
            font-family: Arial, sans-serif !important;
            font-weight: 800 !important;
            text-shadow: none !important;
        }
        .reference-draw-stage .open-qiu-box .history-link {
            flex: 0 0 auto !important;
            color: #07c160 !important;
            font-size: 12px !important;
            font-weight: 700 !important;
            text-decoration: none !important;
            white-space: nowrap !important;
        }
        .reference-draw-stage .open-qiu-box .gd-log {
            flex: 0 0 auto !important;
            padding: 0 !important;
            border: 0 !important;
            border-radius: 0 !important;
            background: transparent !important;
            color: #07c160 !important;
            font-size: 14px !important;
            font-weight: 700 !important;
            text-decoration: none !important;
            white-space: nowrap !important;
        }
        .reference-draw-stage .open-qiu-box .gd-log.placeholder {
            visibility: hidden !important;
        }
        .reference-draw-stage .open-qiu-box .history-link.placeholder {
            visibility: hidden !important;
        }
        .reference-draw-stage .open-qiu-box .open-num {
            display: flex !important;
            justify-content: space-between !important;
            align-items: stretch !important;
            gap: 0 !important;
            width: 100% !important;
            padding-top: 10px !important;
            flex-wrap: nowrap !important;
        }
        .reference-draw-stage .open-qiu-box .box {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: flex-start !important;
            flex: 0 0 13.5% !important;
            width: 13.5% !important;
            min-width: 0 !important;
            min-height: 72px !important;
            padding: 5px 0 4px !important;
            box-sizing: border-box !important;
            border: 1px solid #ddd !important;
            border-radius: 5px !important;
            box-shadow: 0 0 5px rgba(0, 0, 0, .10) !important;
            background: linear-gradient(to top, #eee, #fff) !important;
        }
        .reference-draw-stage .open-qiu-box .box:nth-of-type(7) {
            border-color: #00f !important;
            box-shadow: 0 0 5px #00a0e9 !important;
        }
        .reference-draw-stage .open-qiu-box .qiu {
            position: relative !important;
            width: 37px !important;
            height: 37px !important;
            line-height: 37px !important;
            margin: 0 0 2px !important;
            border-radius: 50% !important;
            color: #000 !important;
            font-size: 17px !important;
            font-weight: 800 !important;
            text-align: center !important;
            text-shadow: none !important;
            overflow: hidden !important;
            box-shadow: inset -4px -6px 10px rgba(0, 0, 0, .18), inset 4px 5px 9px rgba(255, 255, 255, .72), 0 1px 2px rgba(0, 0, 0, .16) !important;
        }
        .reference-draw-stage .open-qiu-box .qiu::after {
            content: '';
            position: absolute;
            left: 9px;
            top: 6px;
            width: 12px;
            height: 8px;
            border-radius: 999px;
            background: rgba(255, 255, 255, .72);
            transform: rotate(-28deg);
            pointer-events: none;
        }
        .reference-draw-stage .open-qiu-box .qiu.red,
        .reference-draw-stage .open-qiu-box .qiu.box-num-0,
        .reference-draw-stage .open-qiu-box .qiu.bg-amage-1 {
            background: radial-gradient(circle at 34% 28%, #fff 0 9%, #ffd6d6 10% 26%, #ff5858 45%, #f22525 68%, #b60404 100%) !important;
        }
        .reference-draw-stage .open-qiu-box .qiu.blue,
        .reference-draw-stage .open-qiu-box .qiu.box-num-1,
        .reference-draw-stage .open-qiu-box .qiu.bg-amage-2 {
            background: radial-gradient(circle at 34% 28%, #fff 0 9%, #d8f0ff 10% 26%, #57b8ff 45%, #1789ef 68%, #0056bc 100%) !important;
        }
        .reference-draw-stage .open-qiu-box .qiu.green,
        .reference-draw-stage .open-qiu-box .qiu.box-num-6,
        .reference-draw-stage .open-qiu-box .qiu.bg-amage-3 {
            background: radial-gradient(circle at 34% 28%, #fff 0 9%, #dcffd9 10% 26%, #6bdf72 45%, #28b33e 68%, #08772b 100%) !important;
        }
        .reference-draw-stage .open-qiu-box .text {
            width: 100% !important;
            min-height: 17px !important;
            color: #000 !important;
            font-size: 13px !important;
            font-weight: 700 !important;
            line-height: 1.1 !important;
            text-align: center !important;
            letter-spacing: 0 !important;
            text-shadow: none !important;
        }
        .reference-draw-stage .open-qiu-box .foot {
            display: block !important;
            margin: 0 !important;
            padding-top: 8px !important;
            border: 0 !important;
            color: red !important;
            font-size: 13px !important;
            font-weight: 700 !important;
            line-height: 1.2 !important;
            text-align: center !important;
        }
        @media (max-width: 430px) {
            body[data-ball-style="reference"] .reference-draw-stage {
                width: 100%;
                max-width: 100%;
                padding: 0 4px;
                margin-top: 4px;
            }
            .reference-ui-tab {
                border-radius: 6px;
            }
            .reference-ui-tab .reference-tab {
                min-height: 38px;
                padding: 8px 2px 7px;
                font-size: 13px;
                line-height: 1.15;
            }
            .reference-draw-stage .open-qiu-box {
                padding: 8px 5px 7px !important;
                border-radius: 0 0 6px 6px !important;
            }
            .reference-draw-stage .open-qiu-box .head {
                gap: 4px !important;
            }
            .reference-draw-stage .open-qiu-box .qishu,
            .reference-draw-stage .open-qiu-box .gd-log {
                font-size: 11px !important;
            }
            .reference-draw-stage .open-qiu-box .countdown-wrap {
                font-size: 10px !important;
                text-align: center !important;
            }
            .reference-draw-stage .open-qiu-box .history-link {
                font-size: 10px !important;
            }
            .reference-draw-stage .open-qiu-box .open-num {
                padding-top: 8px !important;
            }
            .reference-draw-stage .open-qiu-box .box {
                flex-basis: 13% !important;
                width: 13% !important;
                min-height: 62px !important;
                padding: 4px 0 3px !important;
                justify-content: center !important;
            }
            .reference-draw-stage .open-qiu-box .qiu {
                width: 31px !important;
                height: 31px !important;
                line-height: 31px !important;
                font-size: 14px !important;
            }
            .reference-draw-stage .open-qiu-box .qiu::after {
                left: 8px;
                top: 5px;
                width: 10px;
                height: 6px;
            }
            .reference-draw-stage .open-qiu-box .text {
                font-size: 9px !important;
                min-height: 14px !important;
            }
            .reference-draw-stage .open-qiu-box .foot {
                padding-top: 7px !important;
                font-size: 11px !important;
            }
        }
    
