/* ============================================================
   淡蓝色主题（覆盖原深红配色）
   适用于 index.html / index1.html / index2.html / index3.html
   ============================================================ */

/* ---------- 基础 ---------- */
body {
    background-color: #f2f8ff !important;
    color: #24435f !important;
}

/* 主菜单页：背景图完整显示 */
body:has(.content-wrapper)::before {
    opacity: 1 !important;
    filter: none !important;
}

/* 游戏页：不叠加背景蒙版 */
body:has(.main-container)::before {
    background: transparent !important;
}

/* ---------- 主菜单页 ---------- */
.main-title {
    display: inline-block;
    max-width: 100%;
    line-height: 1.35;
    padding: 0.16em 0.2em 0.2em;
    position: relative;
    overflow: visible;
    color: #15579f !important;
    background-image: none !important;
    background-color: transparent !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: #15579f !important;
    -webkit-text-stroke: 0.035em rgba(255, 255, 255, 0.96) !important;
    paint-order: stroke fill;
    backdrop-filter: none !important;
    border: 0 !important;
    border-image: none !important;
    border-radius: 0 !important;
    clip-path: none !important;
    font-family: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
    font-style: normal !important;
    font-weight: 900 !important;
    font-synthesis-weight: none !important;
    text-rendering: optimizeLegibility !important;
    letter-spacing: 0 !important;
    margin-left: 0 !important;
    text-transform: none !important;
    text-shadow: 0 0.04em 0.08em rgba(18, 43, 74, 0.24),
                 0 0 0.14em rgba(255, 255, 255, 0.52) !important;
    text-wrap: balance;
    filter: none;
    box-shadow: none !important;
}

.main-title::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

.game-rules-container {
    background: rgba(235, 246, 255, 0.92) !important;
    border: 1px solid rgba(47, 127, 214, 0.35) !important;
    box-shadow: 0 10px 30px rgba(47, 127, 214, 0.18) !important;
}

.rules-title {
    color: #1d5fae !important;
    border-bottom-color: rgba(47, 127, 214, 0.35) !important;
}

.rules-content { color: #33526e !important; }
.header-section .rules-content { background: rgba(255, 255, 255, 0.55) !important; }
.rules-content b { color: #2f7fd6 !important; }
.warning-text {
    display: inline-block !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    margin-top: 4px !important;
    padding: 10px 18px !important;
    border: 1px solid rgba(197, 116, 0, 0.68) !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #fff7d9 0%, #ffe38a 100%) !important;
    color: #783c00 !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    letter-spacing: 0.04em !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) !important;
    box-shadow: 0 8px 22px rgba(197, 116, 0, 0.22) !important;
    text-wrap: balance;
}

.gallery-item {
    background-color: rgba(235, 246, 255, 0.85) !important;
    border: 1px solid rgba(47, 127, 214, 0.25) !important;
    box-shadow: 0 10px 26px rgba(47, 127, 214, 0.15) !important;
}

.gallery-item img { filter: brightness(1.02) saturate(1.03) !important; }

.gallery-item:hover {
    border-color: #2f7fd6 !important;
    box-shadow: 0 14px 34px rgba(47, 127, 214, 0.35) !important;
    background-color: rgba(222, 238, 252, 0.9) !important;
}

.gallery-item:hover img { filter: brightness(1.08) saturate(1.05) !important; }

.footer-logo {
    background: rgba(235, 246, 255, 0.95) !important;
    border: 1px solid rgba(47, 127, 214, 0.35) !important;
    box-shadow: 0 10px 28px rgba(47, 127, 214, 0.2) !important;
}

.footer-logo::before {
    background: linear-gradient(90deg, transparent 0%, #2f7fd6 20%, #5aa9ff 50%, #2f7fd6 80%, transparent 100%) !important;
}

.contact-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(222, 238, 252, 0.85)) !important;
    border: 1px solid rgba(47, 127, 214, 0.22) !important;
}

.contact-item:hover {
    background: linear-gradient(135deg, rgba(198, 224, 250, 0.85), rgba(222, 238, 252, 0.9)) !important;
    box-shadow: 0 5px 15px rgba(47, 127, 214, 0.25) !important;
    border-color: rgba(47, 127, 214, 0.45) !important;
}

.kook-item { color: #c98a00 !important; }
.wechat-item { color: #2f7fd6 !important; }

.wechat-tooltip {
    background: rgba(247, 251, 255, 0.97) !important;
    color: #24435f !important;
    border: 1px solid #2f7fd6 !important;
}

.wechat-tooltip::after { border-color: #2f7fd6 transparent transparent transparent !important; }

.minor-warning {
    bottom: 18px !important;
    right: 18px !important;
    max-width: calc(100vw - 36px) !important;
    z-index: 1200 !important;
}

.minor-warning-content {
    box-sizing: border-box !important;
    gap: 10px !important;
    padding: 14px 22px !important;
    border: 2px solid #ff8ba1 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #d91f3e 0%, #a20f28 100%) !important;
    color: #ffffff !important;
    font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
    font-size: 1.08rem !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.03em !important;
    white-space: nowrap !important;
    box-shadow: 0 12px 30px rgba(162, 15, 40, 0.38) !important;
    backdrop-filter: none !important;
    animation: none !important;
}

.warning-icon {
    font-size: 1.45em !important;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
}

/* ---------- 游戏页 ---------- */
h1 {
    color: #1d5fae !important;
    text-shadow: 0 0 12px rgba(47, 127, 214, 0.45), 0 2px 4px rgba(255, 255, 255, 0.7) !important;
}

.subtitle { color: #2f7fd6 !important; }

.left-rules-section {
    background: rgba(238, 246, 255, 0.93) !important;
    border: 1px dashed rgba(47, 127, 214, 0.45) !important;
    box-shadow: 0 8px 26px rgba(47, 127, 214, 0.2) !important;
}

.highlight-gold { color: #c98a00 !important; }

.controls-area {
    background: rgba(238, 246, 255, 0.88) !important;
    border: 1px solid rgba(47, 127, 214, 0.35) !important;
}

.mode-btn {
    background: linear-gradient(90deg, #ffffff, #eef6ff) !important;
    border: 1px solid rgba(47, 127, 214, 0.3) !important;
}

.txt-left { color: #24435f !important; text-shadow: none !important; }
.txt-price { color: #2f7fd6 !important; }
.txt-bao { color: #33526e !important; }
.txt-val { background: #5aa9ff !important; color: #ffffff !important; }

.mode-btn:hover {
    border-color: #2f7fd6 !important;
    background: #e3f0ff !important;
}

.mode-btn.active {
    background: linear-gradient(90deg, #2f7fd6, #5aa9ff) !important;
    border: 1px solid #1d5fae !important;
    box-shadow: 0 0 18px rgba(47, 127, 214, 0.45) !important;
}

.mode-btn.active .txt-price { color: #ffffff !important; }
.mode-btn.active .txt-val { background: #ffffff !important; color: #2f7fd6 !important; }

.grid-wrapper {
    background: #eef6ff !important;
    border: 2px solid rgba(47, 127, 214, 0.4) !important;
    box-shadow: 0 8px 26px rgba(47, 127, 214, 0.15) !important;
}

.cell {
    background-color: #f7fbff !important;
    border: 1px solid rgba(47, 127, 214, 0.22) !important;
}

.cell span.fallback-num { color: #2f7fd6 !important; }

.cell:hover {
    border-color: #a8d4ff !important;
    box-shadow: 0 0 10px rgba(90, 169, 255, 0.4) !important;
}

.cell.active {
    border: 2px solid #2f7fd6 !important;
    box-shadow: 0 0 15px rgba(47, 127, 214, 0.65),
                0 0 30px rgba(47, 127, 214, 0.35) inset,
                0 0 10px rgba(255, 255, 255, 0.6) !important;
}

.cell.active::after {
    color: #2f7fd6 !important;
    text-shadow: 0 0 10px #ffffff, 0 0 20px #a8d4ff, 0 0 30px #2f7fd6 !important;
}

.cell.active::before { border: 2px solid rgba(255, 255, 255, 0.9) !important; }

/* 同名动画重新着色（覆盖原 CSS 中的红色定义） */
@keyframes pulse {
    0% {
        text-shadow: 0 0 5px #ffffff, 0 0 10px #a8d4ff, 0 0 15px #2f7fd6;
        transform: translate(-50%, -50%) scale(1.5);
    }
    100% {
        text-shadow: 0 0 15px #ffffff, 0 0 25px #a8d4ff, 0 0 35px #2f7fd6;
        transform: translate(-50%, -50%) scale(1.7);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(47, 127, 214, 0.35);
    }
    50% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(47, 127, 214, 0.6), 0 0 30px rgba(47, 127, 214, 0.3);
    }
}

@keyframes winning-flash {
    0%, 100% {
        box-shadow: 0 0 15px rgba(47, 127, 214, 0.75), 0 0 30px rgba(47, 127, 214, 0.35) inset;
    }
    50% {
        box-shadow: 0 0 25px rgba(47, 127, 214, 1), 0 0 50px rgba(47, 127, 214, 0.6) inset, 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

@keyframes warningPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(230, 69, 96, 0.15);
        border-color: rgba(230, 69, 96, 0.35);
    }
    50% {
        box-shadow: 0 4px 20px rgba(230, 69, 96, 0.3);
        border-color: rgba(230, 69, 96, 0.5);
    }
}

/* ---------- 底部操作栏 ---------- */
.mini-tip { color: #5c7793 !important; }

#resetBtn {
    background: linear-gradient(90deg, #2f7fd6, #5aa9ff) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(47, 127, 214, 0.35) !important;
}

#resetBtn:hover { filter: brightness(1.05); }

.sys-btn {
    background: #ffffff !important;
    border: 1px solid rgba(47, 127, 214, 0.35) !important;
    color: #5c7793 !important;
}

.sys-btn:hover {
    color: #2f7fd6 !important;
    border-color: #2f7fd6 !important;
    background: #f0f7ff !important;
}

.sys-btn.file-op {
    border-color: rgba(47, 127, 214, 0.45) !important;
    color: #2f7fd6 !important;
}

.sys-btn.file-op:hover {
    background: #e3f0ff !important;
    color: #1d5fae !important;
    border-color: #1d5fae !important;
}

/* ---------- 弹窗 ---------- */
#modal { background: rgba(36, 67, 95, 0.35) !important; }

.modal-box {
    background: #f2f8ff !important;
    border: 2px solid #a8d4ff !important;
    box-shadow: 0 0 60px rgba(47, 127, 214, 0.4) !important;
}

.modal-text { color: #24435f !important; }
.modal-btn { background: #2f7fd6 !important; color: #ffffff !important; }

/* ---------- 历史记录面板 ---------- */
.history-toggle {
    background: linear-gradient(180deg, #5aa9ff, #2f7fd6) !important;
    border: 1px solid #1d5fae !important;
    box-shadow: -2px 0 10px rgba(47, 127, 214, 0.35) !important;
}

.history-toggle:hover { background: linear-gradient(180deg, #7cb9ff, #2f7fd6) !important; }
.history-toggle .badge { background: #1d5fae !important; color: #ffffff !important; }

.history-content {
    background: linear-gradient(180deg, #f5faff, #e8f3ff) !important;
    border: 1px solid rgba(47, 127, 214, 0.35) !important;
}

.history-header {
    border-bottom: 1px solid rgba(47, 127, 214, 0.25) !important;
    background: rgba(255, 255, 255, 0.6) !important;
}

.history-header h3 { color: #2f7fd6 !important; }

.history-clear {
    border: 1px solid rgba(47, 127, 214, 0.35) !important;
    color: #5c7793 !important;
}

.history-clear:hover {
    background: #e3f0ff !important;
    color: #2f7fd6 !important;
    border-color: #2f7fd6 !important;
}

.history-item {
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(47, 127, 214, 0.25) !important;
}

.history-item:hover {
    border-color: #a8d4ff !important;
    background: rgba(240, 247, 255, 0.85) !important;
}

.history-item.active {
    border-color: #2f7fd6 !important;
    background: rgba(224, 238, 252, 0.9) !important;
    box-shadow: 0 0 10px rgba(47, 127, 214, 0.2) !important;
}

.history-item .time { color: #84a0b8 !important; }
.history-item .info span { color: #33526e !important; }
.history-item .info .mode { background: #d6e9ff !important; color: #1d5fae !important; }
.history-item .preview { background: #e3f0ff !important; }
.history-item .preview-cell { background: #f7fbff !important; }
.history-item .preview-cell.marked { box-shadow: 0 0 0 2px #2f7fd6 inset !important; }
.history-item .preview-cell.marked::after { background: rgba(47, 127, 214, 0.35) !important; }
.history-empty { color: #84a0b8 !important; }

/* ---------- 右下角标识 ---------- */
.brand-info {
    background: rgba(247, 251, 255, 0.95) !important;
    border: 1px solid rgba(201, 138, 0, 0.4) !important;
    color: #33526e !important;
    box-shadow: 0 6px 18px rgba(47, 127, 214, 0.18) !important;
}

.brand-info .highlight { color: #c98a00 !important; }

.brand-info .weapp-btn {
    background: linear-gradient(135deg, #2f7fd6, #5aa9ff) !important;
    color: #ffffff !important;
    border: 1px solid #1d5fae !important;
    box-shadow: 0 3px 10px rgba(47, 127, 214, 0.3) !important;
}

.brand-info .weapp-btn:hover {
    background: linear-gradient(135deg, #5aa9ff, #7cb9ff) !important;
    border-color: #1d5fae !important;
    box-shadow: 0 5px 14px rgba(47, 127, 214, 0.4) !important;
}
