/* ============================================================
   static/css/index.css - 全新设计
   风格：浅色渐变背景 + 亮色卡片 + 主题色点缀
   ============================================================ */

/* ---------- 全局基础 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color, #e0f7fa);
    background-image: var(--bg-image, none);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    font-family: "Microsoft Yahei", PingFang SC, Helvetica Neue, sans-serif;
    color: #1a1a2e;
    line-height: 1.7;
    padding: 24px 0;
    min-height: 100vh;
}

.container-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ---------- 区块卡片 ---------- */
.block-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    padding: 20px 24px 15px 24px;
    margin-bottom: 5px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.block-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 103, 0, 0.3);
}

/* ---------- 区块标题（居中） ---------- */
.block-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    padding: 5px 10px;
    margin-top: -20px;
    margin-bottom: 10px;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 5px;
    display: inline-block !important;
    width: 100% !important;
    border-radius: 10px;
    border: none !important;
    background: var(--theme-color, #d9b877)  !important;
}

.block-title::before {
    content: '▌';
    margin-right: 12px;
    color: #e65100;
    font-weight: 300;
    opacity: 0.8;
}

.block-title::after {
    content: '▐';
    margin-left: 12px;
    color: #e65100;
    font-weight: 300;
    opacity: 0.8;
}

/* ============================================================
   导航栏
   ============================================================ */
.nav-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 12px;
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.nav-bar a {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 18px 24px;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    border-radius: 14px;
    text-decoration: none;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.nav-bar a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.nav-bar a:hover::after {
    left: 100%;
}

.nav-bar a .nav-icon {
    font-size: 22px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.nav-bar a:nth-child(1) { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.nav-bar a:nth-child(2) { background: linear-gradient(135deg, #2e7d32, #66bb6a); }
.nav-bar a:nth-child(3) { background: linear-gradient(135deg, #c62828, #ef5350); }
.nav-bar a:nth-child(4) { background: linear-gradient(135deg, #ff6700, #ff9a44); }
.nav-bar a:nth-child(5) { background: linear-gradient(135deg, #6a1b9a, #ab47bc); }
.nav-bar a:nth-child(6) { background: linear-gradient(135deg, #00695c, #26a69a); }
.nav-bar a:nth-child(7) { background: linear-gradient(135deg, #ad1457, #ec407a); }
.nav-bar a:nth-child(8) { background: linear-gradient(135deg, #f57f17, #fbc02d); }

.nav-bar a:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.nav-bar a.active {
    color: #1a1a2e !important;
    background: linear-gradient(135deg, #ffd700, #ffb300) !important;
    box-shadow: 0 4px 30px rgba(255, 215, 0, 0.5) !important;
    transform: translateY(-3px) scale(1.04) !important;
    border: none !important;
}

.nav-bar a.active .nav-icon {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* ---------- 开奖结果 ---------- */
#lottery_box {
    background: linear-gradient(135deg, #fff9f2 0%, #fff3e0 100%);
    padding: 10px 14px;
    border-radius: 14px;
    border: 2px solid #ffd4b3;
    font-family: Consolas, monospace;
    color: #c44500;
    font-size: 14px;
    word-break: break-all;
    max-width: 100%;
    overflow-y: auto;
}

#lottery_box pre {
    margin: 0;
    color: #c44500;
}

/* ============================================================
   ✅ 内容列表样式（模式1 本地内容）
   ============================================================ */
.content-item {
    padding: 4px 18px;
    border-radius: 12px;
    background: #f8f9fc;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.content-item:last-child {
    margin-bottom: 0;
}

.content-item:hover {
    background: #fff5ed;
    border-left-color: #ff6700;
    transform: translateX(4px);
}

.content-item strong {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    display: block;
}

.content-item a {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-item a:hover {
    color: #ff6700;
}

.content-item .content-detail {
    color: #555;
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.8;
    padding: 4px 0;
}

.content-item .content-detail p {
    margin-bottom: 0px;
}

.content-item .content-detail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ============================================================
   ✅ 远程内容样式（模式4 缓存内容）
   ============================================================ */
.php-url-content {
    padding: 5px 0;
}

.php-url-content table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse;
}

.php-url-content td,
.php-url-content th {
    padding: 6px 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.php-url-content img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   ✅ 远程采集缓存样式（模式2）
   ============================================================ */
.remote-cache-content {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px;
    background: #fafafa;
    overflow: auto;
}

.remote-cache-content table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse;
}

.remote-cache-content td,
.remote-cache-content th {
    padding: 6px 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.remote-cache-content img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   ✅ iframe 容器
   ============================================================ */
.remote-iframe-container {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #f8f9fc;
}

.remote-iframe {
    width: 100%;
    min-height: 500px;
    border: none;
    border-radius: 14px;
    background: #fff;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.remote-iframe.loaded {
    opacity: 1;
}

.iframe-embed-container iframe {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* ============================================================
   ✅ 远程JS 样式
   ============================================================ */
.remote-js-container {
    width: 100%;
    min-height: 80px;
}

.remote-js-container table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.remote-js-container table td {
    padding: 10px 14px;
    border: 1px solid #e8ecf1;
    text-align: center;
    font-size: 14px;
    transition: background 0.3s ease;
    color: #1a1a2e;
}

.remote-js-container table tr:hover td {
    background: #fff5ed !important;
}

.remote-js-container table a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
}

.remote-js-container table a:hover {
    color: #ff6700;
    background: rgba(255, 103, 0, 0.10);
}

.remote-js-container table td[bgcolor="#F0D19F"],
.remote-js-container table td[bgcolor="#f0d19f"] {
    background: linear-gradient(135deg, #f0d19f, #e8c48a) !important;
    font-weight: 700;
    color: #1a1a2e;
}

.remote-js-container table td span[style*="background-color"] {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.js-content-wrapper {
    padding: 8px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.js-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ---------- 加载占位 ---------- */
.js-loading-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.js-loading-placeholder .spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6700;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================
   广告位
   ============================================================ */
.ad-box {
    width: 100%;
    max-width: 100% !important;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.ad-box .block-title {
    padding: 10px 12px;
    font-size: 15px;
    text-align: center;
    background: #f8f8f8;
    margin: 0;
}

.ad-box.block-item {
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 0px;
}

.ad-box .ad-container {
    padding: 0;
    margin: 0;
}

.ad-box .ad-container a {
    display: block;
    width: 100%;
}

.ad-box .ad-container img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.ad-box .ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    padding: 0;
}

.ad-box .ad-grid .ad-item {
    background: #fff;
    border: none;
    border-radius: 0;
    overflow: hidden;
}

.ad-box .ad-grid .ad-item a {
    display: block;
}

.ad-box .ad-grid .ad-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================================
   友情链接
   ============================================================ */
.link-box {
    padding: 15px 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    margin-bottom: 10px;
}

.link-box .block-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: 3px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(100px, 150px));
    row-gap: 20px; /* 专门控制上下行距离，数值越小越近，越大越远 */
    column-gap: 60px; /* 保持原有的左右间距 */
    justify-content: center;
    margin: 0 auto;
}

.link-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 4px 2px;
    background-color: var(--theme-color, #d9b877) ;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.link-item:hover {
    border-color: #ff6700;
    background: #fffaf5;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 103, 0, 0.12);
}

.link-item .link-logo {
    width: 100%;
    max-width: 130px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e9ecef;
    padding: 2px;
    margin-bottom: 8px;
    transition: all 0.25s ease;
}

.link-item:hover .link-logo {
    border-color: #ff6700;
}

.link-item .link-logo-placeholder {
    width: 100%;
    max-width: 130px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: #f0f0f0;
    border-radius: 12px;
    margin-bottom: 8px;
}

.link-item .link-name {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #000;
    line-height: 1.4;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 2px 2px 4px;
    position: relative;
    transition: color 0.3s ease;
}

.link-item:hover .link-name {
    color: #ff6700;
}

.link-item .link-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, #0c00ff, #564ef2);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.link-item:hover .link-name::after {
    transform: translateX(-50%) scaleX(1);
}

/* ---------- 底部信息 ---------- */
.footer-info {
    text-align: center;
    padding: 30px 0 10px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 103, 0, 0.4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6700;
}

/* ---------- 告警样式 ---------- */
.alert {
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 14px;
}

.alert-warning {
    background: #fff8e1;
    border: 1px solid #ffd54f;
    color: #795548;
}

.alert-danger {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
}

.alert-info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #0d47a1;
}

/* ---------- 白色卡片中的文字颜色修正 ---------- */
.block-item .text-muted {
    color: #888 !important;
}

.remote-js-container .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ================================================================
   响应式
   ================================================================ */

@media screen and (max-width: 768px) {
    body {
        padding: 12px 0;
    }
    .nav-bar {
        gap: 8px;
        margin-top: 5px;
        margin-bottom: 5px;
    }
    .nav-bar a {
        padding: 12px 10px;
        font-size: 15px;
        min-width: 70px;
        border-radius: 10px;
        gap: 6px;
    }
    .nav-bar a .nav-icon {
        font-size: 18px;
    }
    .nav-bar a.active {
        border-width: 2px !important;
    }

    .block-item {
        padding: 12px 14px 10px 14px;
        margin-bottom: 14px;
        border-radius: 14px;
    }

    .block-title {
        font-size: 17px;
        padding: 4px 8px;
        margin-top: -15px;
        margin-bottom: 12px;
    }

    .block-title::after {
        display: none;
    }

    .link-grid {
        grid-template-columns: repeat(3, minmax(100px, 150px));
        gap: 16px;
    }
    .link-item .link-logo,
    .link-item .link-logo-placeholder {
        max-width: 130px;
    }
    .link-item .link-logo-placeholder {
        font-size: 24px;
    }

    .remote-iframe {
        min-height: 350px;
    }

    .remote-js-container table td {
        padding: 4px 6px;
        font-size: 11px;
    }
    .remote-js-container table a {
        font-size: 11px;
        padding: 1px 4px;
    }

    .content-item {
        padding: 10px 12px;
    }
    .content-item strong {
        font-size: 14px;
    }
    .content-item a {
        font-size: 14px;
    }

    .ad-box .block-title {
        font-size: 15px;
        padding: 8px 12px;
    }
    .ad-box .ad-container {
        padding: 0;
    }
    .ad-box .ad-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
        padding: 0px 0 0 0;
    }
    .ad-box.block-item {
        border-radius: 10px;
        padding: 0px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 8px 0;
    }
    .nav-bar {
        gap: 8px;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .block-item {
        padding: 2px 4px 2px 4px;
        margin-bottom: 2px;
        border-radius: 10px;
    }

    .block-title {
        font-size: 14px !important;
        padding: 3px 6px;
        margin-top: -1px;
        margin-bottom: 4px;
        letter-spacing: 1px;
    } 

    .link-grid {
        grid-template-columns: repeat(3, minmax(100px, 150px));
        gap: 16px;
    }
    .link-item {
        border-radius: 8px;
    }
    .link-item .link-logo,
    .link-item .link-logo-placeholder {
        width: 100%;
        max-width: 130px;
        border-radius: 10px;
        padding: 2px;
    }
    .link-item .link-logo-placeholder {
        font-size: 16px;
    }
    .link-item .link-name {
        font-size: 14px;
    }

    .ad-box .block-title {
        font-size: 13px;
        padding: 6px 8px;
        letter-spacing: 1px;
    }
    .ad-box .ad-container {
        padding: 0;
    }
    .ad-box .ad-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0px 0 0 0;
    }
    .ad-box.block-item {
        border-radius: 8px;
        padding: 0px;

    }


    .remote-js-container table td {
        padding: 2px 4px;
        font-size: 10px;
    }

    .content-item {
        padding: 8px 10px;
    }
    .content-item strong {
        font-size: 13px;
    }
    .content-item a {
        font-size: 13px;
    }
}

.remote-js-container .js-content-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.remote-js-container .js-content-wrapper table {
    min-width: 300px;
}

/* ================================================================
   ✅ 模块卡片（图片效果：主题色标题栏 + 无竖线记录表格）
   必须放在 index.css 最后，才能覆盖上面的 .block-item / .block-title
   ================================================================ */

/* 1) 模块外框：白底 + 主题色边框 + 小圆角 */
.block-item.module-card {
    background: #ffffff !important;
    border: 1px solid var(--theme-color, #d9b877) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    padding: 0 !important;
    margin: 13px auto !important;
    overflow: hidden !important;
    transform: none !important;
    transition: none !important;
    backdrop-filter: none !important;
}
.block-item.module-card:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    border-color: var(--theme-color, #d9b877) !important;
}

/* 2) 主题色标题栏：显示模块名称 */
.module-card .block-title {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    background: var(--theme-color-light, #f7e8b5) !important;
    border: none !important;
    border-bottom: 1px solid var(--theme-color, #d9b877) !important;
    border-radius: 0 !important;
    color: #000 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-align: center !important;
    letter-spacing: 1px !important;
    line-height: 1.4 !important;
}
/* 去掉橙色 ▌▐ 装饰 */
.module-card .block-title::before,
.module-card .block-title::after {
    content: none !important;
    display: none !important;
}

/* 3) 内容区：去掉卡片内边距和蓝色/灰色底 */
.module-card .content-item {
    background: transparent !important;
    border-left: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}
.module-card .content-item:hover {
    background: transparent !important;
    transform: none !important;
}

/* 4) 隐藏模板名称（记录不显示 title） */
.module-card .content-item > strong {
    display: none !important;
}

/* 5) 记录表格：只有横线，没有竖线 */
.module-card .content-detail {
    padding: 0 !important;
    background: transparent !important;
}
.module-card .content-detail table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}
.module-card .content-detail td,
.module-card .content-detail th {
    border: none !important;
    border: 1px solid var(--theme-color-soft, #eadfc0) !important;
    padding: 10px 12px !important;
    text-align: center !important;
    vertical-align: middle !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #1a1a2e !important;
//    background: transparent !important;//绝杀专区表头行背景

}
.module-card .content-detail tr:last-child td {
    border-bottom: none !important;
}

/* 6) 记录里的红色生肖 */
.module-card .content-detail .red,
.module-card .content-detail font[color="red"],
.module-card .content-detail span[style*="color:red"],
.module-card .content-detail span[style*="color: red"],
.module-card .content-detail span[style*="color:#f00"],
.module-card .content-detail span[style*="color: #f00"] {
    color: #e60000 !important;
    font-weight: 700 !important;
}

/* ================================================================
   ✅ 轮播Banner 区域：有背景色 + 下边框（跟随主题色）
   ================================================================ */
.banner-box {
    padding: 0 !important;
    background: var(--theme-color-light, #f7e8b5) !important;
    border: 1px solid var(--theme-color, #d9b877) !important;
    border-radius: 10px !important;
    margin-bottom: 8px !important;
    min-height: 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transform: none !important;
    transition: none !important;
    backdrop-filter: none !important;
    position: relative;
    overflow: hidden;
    height: 100px;
    min-height: auto;
}
.banner-box::-webkit-scrollbar {
    display: none;
}

.banner-box .banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000;
    min-height: 60px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
    z-index: 1;
}
.banner-box .banner-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}


.banner-box img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    pointer-events: none;
    user-select: none;
}

.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.banner-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: background 0.3s, width 0.3s;
}
.banner-dots .dot.active {
    background: var(--theme-color, #d9b877);
    width: 18px;
    border-radius: 4px;
}

/* 7) 移动端适配 */
@media (max-width: 768px) {
    .module-card .block-title {
        font-size: 16px !important;
        padding: 10px 12px !important;
    }
    .block-item.module-card {
        margin: 8px auto !important;
    }
    .module-card .content-detail td {
        padding: 8px 6px !important;
        font-size: 14px !important;
    }
    .banner-box .banner-text {
       height: 66px;
       min-height: auto;
        font-size: 16px;
        padding: 14px 16px;
    }
}
@media (max-width: 480px) {
    .module-card .block-title {
        font-size: 14px !important;
        padding: 0px !important;
    }
    .block-item.module-card {
        margin: 5px auto !important;
    }
    .module-card .content-detail td {
        padding: 6px 4px !important;
        font-size: 12px !important;
    }
    .banner-box .banner-text {
        font-size: 14px;
        padding: 0px;
    }
    .banner-box {
       height: 66px;
       min-height: auto;
        padding: 0 !important;
        margin-top: 5px !important;
        margin-bottom: 5px !important;
    }
}
/* ============================================================
   ✅ 关键：清掉 .content-item 上多余的内外间距
   ============================================================ */
.module-card .content-item {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* 同时把里层的 .content-detail 也清零 */
.module-card .content-item .content-detail {
    padding: 0 !important;
    margin: 0 !important;
}

/* 每条记录本身保留 padding */
.module-card .content-item .content-detail > div,
.module-card .content-item .content-detail > p {
    padding: 4px 6px !important;
    margin: 0 !important;
    text-align: center !important;
    border-top: 1px solid var(--theme-color-soft, #eadfc0) !important;
    box-sizing: border-box !important;
}

/* 第一条不画线 */
.module-card .content-item:first-child .content-detail > div,
.module-card .content-item:first-child .content-detail > p {
    border-top: none !important;
}
/* ============================================================
   ✅ 精算㉚码：期号行上方一条横线，号码行无横线
   ============================================================ */

/* 1) 所有 <p> 默认：居中、无边框、统一行高 */
.module-card .content-detail > p {
    text-align: center !important;
    padding: 3px 0 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    border: none !important;                    /* 默认全部无边框 */
    box-sizing: border-box !important;
}

/* 2) 期号行：上方画一条横线（写在 border:none 之后，才能覆盖） */
.module-card .content-detail > p.issue-row {
    border-top: 1px solid var(--theme-color-soft, #eadfc0) !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    margin-top: 8px !important;
    padding-top: 10px !important;
    padding-bottom: 4px !important;
}

/* 3) 页面上第一条期号行不画线 */
.module-card .content-detail > p.issue-row:first-child {
    border-top: 1px solid var(--theme-color-soft, #eadfc0) !important;
    margin-top: 0 !important;
    padding-top: 3px !important;
}

/* 4) 号码行：绝对无边框 */
.module-card .content-detail > p.number-row {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    padding: 2px 0 !important;
    line-height: 1.4 !important;
}

/* 5) 内容区左右清零，横线贯通整行 */
.module-card .content-item,
.module-card .content-item .content-detail {
    padding: 0 !important;
    margin: 0 !important;
}
/* ============================================================
   ✅ 顶部 Logo 区域（左图 + 文字 + 右图，方案 B）
   ============================================================ */
.site-logo-box {
    padding: 2px 2px !important;
    text-align: left;
    background: var(--theme-color, #d9b877) !important;
    border: 1px solid var(--theme-color, #d9b877) !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transform: none !important;
    transition: none !important;
    backdrop-filter: none !important;
}
.site-logo-box:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--theme-color, #d9b877) !important;
}

.site-logo-link {
    display: block;          /* 占满整行 */
    text-decoration: none;
    color: #fff;
    line-height: 0;          /* 消除图片底部基线空隙 */
}

/* 横向容器：左图 | 文字 | 右图 */
.site-logo-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;   /* 从左往右排列 */
    gap: 12px;                     /* 元素间距 */
    padding: 6px 10px;
}

/* LOGO 图片：左右通用 */
.site-logo-img {
    display: block;
    margin: 0;
    max-height: 60px;      /* 高度上限 */
    height: auto;          /* 保持宽高比 */
    width: auto;           /* 不拉伸 */
    max-width: 100%;       /* 不超出容器宽度 */
    object-fit: contain;   /* 按比例缩放 */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
    flex-shrink: 0;        /* 防止图片被压缩 */
}

/* 右侧图片：用 margin-left:auto 推到最右（方案 B 关键） */
.site-logo-img-right {
    margin-left: auto;
}

/* 中间文字块：内部垂直排列，左对齐 */
.site-logo-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;   /* 文字左对齐 */
    justify-content: center;
    gap: 2px;

}

.site-logo-text .site-logo-name {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 4px;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.site-logo-text .site-logo-domain {
    font-size: 15px;
    margin-top:3px;
    margin-left:60px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .site-logo-box {
        padding: 2px 2px !important;
        margin-bottom: 12px !important;
    }
    .site-logo-img {
        max-height: 55px;
    }
    .site-logo-text {
        gap: 2px;
        padding: 2px 2px;
    }
    .site-logo-text .site-logo-name {
        font-size: 22px;
        letter-spacing: 3px;
    }
    .site-logo-text .site-logo-domain {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .site-logo-box {
        padding: 2px 2px !important;
        margin-bottom: 10px !important;
    }
    .site-logo-img {
        max-height: 45px;
    }
    /* 小屏可隐藏右图，避免太挤；不需要可删掉这段 */
    .site-logo-text {
        gap: 2px;
        padding: 2px 2px;
    }
    .site-logo-text .site-logo-name {
        font-size: 18px;
        letter-spacing: 2px;
    }
    .site-logo-text .site-logo-domain {
        font-size: 11px;
        margin-left:30px;
    }
}

/* ================================================================
   ✅ 网址公告条（跟随主题色）
   ================================================================ */
.notice-bar {
    background: linear-gradient(135deg,
        var(--theme-color-light, #f7e8b5) 0%,
        var(--theme-color-soft, #eadfc0) 100%) !important;
    border: 1px solid var(--theme-color, #d9b877) !important;
    border-radius: 10px !important;
    padding: 12px 16px 14px !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    text-align: center;
    transform: none !important;
    transition: none !important;
    backdrop-filter: none !important;
}
.notice-bar:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

.notice-tag {
    display: inline-block;
    padding: 4px 22px;
    border-radius: 999px;
    background: #fffbe6;
    border: 2px solid var(--theme-color, #d9b877);
    color: #d32f2f;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.notice-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    line-height: 1.2;
    margin-bottom: 4px;
}

.notice-label {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000,
                 1px -1px 0 #000, -1px 1px 0 #000,
                 2px 2px 4px rgba(0,0,0,0.35);
    letter-spacing: 1px;
    margin-right: 4px;
}

.notice-url-red,
.notice-url-blue,
.notice-url-black {
    font-size: 30px;
    font-weight: 900;
    font-family: "Arial Black", "Microsoft YaHei", sans-serif;
    line-height: 1;
    display: inline-block;
}
.notice-url-red   { color: #ff0000;
    text-shadow: 1px 1px 0 #fff,-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff; }
.notice-url-blue  { color: #0000ff;
    text-shadow: 1px 1px 0 #fff,-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff; }
.notice-url-black { color: #000000;
    text-shadow: 1px 1px 0 #fff,-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff; }

.notice-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    text-shadow: 1px 1px 0 #fff,-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .notice-bar { padding: 10px 10px 12px !important; }
    .notice-tag { font-size: 14px; padding: 3px 16px; }
    .notice-label { font-size: 18px; }
    .notice-url-red, .notice-url-blue, .notice-url-black { font-size: 24px; }
    .notice-subtitle { font-size: 13px; }
}
@media (max-width: 480px) {
    .notice-tag { font-size: 12px; padding: 2px 12px; }
    .notice-label { font-size: 16px; }
    .notice-url-red, .notice-url-blue, .notice-url-black { font-size: 20px; }
    .notice-subtitle { font-size: 12px; }
    .notice-bar { margin-top: 5px !important;margin-bottom: 5px !important;}
}

/* ================================================================
   ✅ 模块下方备注
   ================================================================ */
.module-card .module-note {
    padding: 8px 14px;
    background: #fafafa;
    border-top: 1px dashed var(--theme-color-soft, #eadfc0);
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    text-align: center;
}
.module-card .module-note a {
    color: var(--theme-color, #d9b877);
    text-decoration: none;
}
.module-card .module-note a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .module-card .module-note { padding: 6px 10px; font-size: 12px; }
}
@media (max-width: 480px) {
    .module-card .module-note { padding: 5px 8px; font-size: 11px; }
}
/* ================================================================
   ✅ 万年历
   ================================================================ */
.lunar-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
    padding: 5px 8px;
    margin-bottom:8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lunar-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    color: #333;
    font-weight: 500;
}

.lunar-date {
    color: #e53935;   /* 日期：红色 */
    font-weight: 700;
}

.lunar-week {
    color: #1a1aff;   /* 星期：蓝色 */
}

.lunar-lunar {
    color: #333;
}

.lunar-suisha {
    color: #e8622c;   /* 煞：橙色 */
}

.lunar-chong {
    color: #6a1b9a;   /* 冲：紫色 */
}

.lunar-error {
    color: #d9534f;
    text-align: center;
    width: 100%;
    font-size: 13px;
}

/* 7) 移动端适配 */
@media (max-width: 768px) {
.lunar-box {margin-bottom:8px; font-size: 10px;}
}
@media (max-width: 480px) {
.lunar-box {margin-bottom:5px; font-size: 10px;}


}