* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #f5f6fa; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #333; }

/* 顶部导航 */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: linear-gradient(135deg, #1a73e8, #1557b0); height: 60px; box-shadow: 0 2px 12px rgba(26,115,232,.3); }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; height: 60px; padding: 0 24px; }
.logo { font-size: 22px; font-weight: 700; }
.logo a { color: #fff; text-decoration: none; letter-spacing: 1px; }
.nav { flex: 1; margin-left: 32px; }
.nav a { color: rgba(255,255,255,.8); text-decoration: none; padding: 8px 18px; border-radius: 6px; font-size: 14px; transition: .2s; }
.nav a.active, .nav a:hover { color: #fff; background: rgba(255,255,255,.15); }
.user-area { display: flex; align-items: center; gap: 10px; }
.coin-badge { background: rgba(255,255,255,.2); color: #fff; padding: 3px 12px; border-radius: 14px; font-size: 13px; backdrop-filter: blur(4px); display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.user-area .layui-btn-primary { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.user-area .layui-btn-primary:hover { background: rgba(255,255,255,.35); color: #fff; }
.username { font-size: 14px; color: #fff; margin: 0 10px; }

/* 公告栏 */
.top-notice { background: #e8f0fe; border-bottom: 1px solid #d2e3fc; margin-top: 60px; padding: 6px 0; }
.notice-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; padding: 0 24px; gap: 10px; }
.notice-label { font-size: 14px; font-weight: 700; color: #1a73e8; white-space: nowrap; flex-shrink: 0; background: #fff; padding: 4px 12px; border-radius: 5px; }
.notice-scroll { overflow: hidden; flex: 1; height: 30px; display: flex; }
.notice-list { white-space: nowrap; display: inline-block; animation: noticeScroll 20s linear infinite; }
.notice-item { color: #555; font-size: 15px; margin-right: 40px; text-decoration: none; line-height: 30px; }
.notice-item:hover { color: #1a73e8; }

@keyframes noticeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 主内容区 */
.main-container { max-width: 1200px; margin: 12px auto; display: flex; gap: 24px; padding: 0 24px; }
.content-area { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; }

/* 工具栏 */
.toolbar { background: #fff; border-radius: 10px; padding: 8px 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.search-box { flex: 1; min-width: 200px; }
.search-box .layui-input { border-radius: 8px; border: 1px solid #e0e0e0; height: 38px; padding-left: 36px; background: #f8f9fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") 10px center no-repeat; background-size: 18px; transition: .2s; }
.search-box .layui-input:focus { background: #fff; border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26,115,232,.1); }

/* 侧边栏 */
.sidebar-card { background: #fff; border-radius: 12px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); overflow: hidden; }
.sidebar-title { padding: 14px 18px; border-bottom: 1px solid #f0f0f0; font-weight: 700; font-size: 14px; color: #1a1a1a; }
.sidebar-title::before { content: ''; display: inline-block; width: 3px; height: 14px; background: #1a73e8; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.sidebar-body { padding: 14px 18px; font-size: 13px; color: #666; line-height: 1.8; }

/* 底部公告 */
.bottom-notice { background: #f8f9fa; border-top: 1px solid #e8e8e8; padding: 10px 0; }
.bottom-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; font-size: 12px; color: #999; }
.bottom-notice-item { cursor: pointer; }
.bottom-notice-item:hover { color: #1a73e8; }

/* 页脚 */
.footer { text-align: center; padding: 32px 20px; color: #bbb; font-size: 13px; background: #fff; border-top: 1px solid #f0f0f0; margin-top: 20px; }

/* 退出按钮 */
.logout-x { color: rgba(255,255,255,.6); text-decoration: none; font-size: 16px; padding: 4px 10px; cursor: pointer; transition: .2s; }
.logout-x:hover { color: #fff; }

/* 开奖结果区 */
/* ===== 广告位（前台） ===== */
.ad-banner {
    position: relative;
    background: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 14px;
    text-align: center;
    color: #333;
    font-size: 14px;
    line-height: 1.8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.ad-banner:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #ffffff;
}
.draw-section { background: linear-gradient(135deg, #e8f0fe, #f0f4ff); padding: 14px 18px; border-radius: 12px; margin-bottom: 6px; overflow-x: auto; }
.draw-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: nowrap; min-width: 0; }
.draw-label { color: #1a73e8; font-size: 14px; font-weight: 700; white-space: nowrap; }
.draw-period { color: #666; font-size: 12px; white-space: nowrap; }
.draw-date { color: #999; font-size: 11px; white-space: nowrap; }
.draw-body { display: flex; align-items: center; overflow-x: auto; padding-bottom: 2px; }
.draw-numbers { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.draw-ball { display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0; }
.draw-ball-circle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.draw-ball-info { font-size: 13px; color: #555; font-weight: 600; white-space: nowrap; }
.draw-ball-attr { font-size: 12px; color: #666; font-weight: 500; }
.draw-ball-special .draw-ball-circle { width: 38px; height: 38px; font-size: 15px; border: 2px solid #e74c3c; animation: glow 2s ease-in-out infinite; }
.draw-plus { color: #e74c3c; font-size: 16px; font-weight: 700; margin: 0 4px; flex-shrink: 0; align-self: center; margin-bottom: 24px; }
.draw-history-link { color: #666; font-size: 12px; text-decoration: none; margin-left: auto; padding: 3px 10px; border: 1px solid #d0d0d0; border-radius: 4px; transition: .2s; white-space: nowrap; flex-shrink: 0; }
.draw-history-link:hover { color: #1a73e8; border-color: #1a73e8; }

@keyframes glow {
    0%, 100% { box-shadow: 0 2px 6px rgba(0,0,0,.3), 0 0 6px rgba(231,76,60,.3), inset 0 -2px 3px rgba(0,0,0,.2), inset 0 2px 3px rgba(255,255,255,.3); }
    50% { box-shadow: 0 2px 6px rgba(0,0,0,.3), 0 0 12px rgba(231,76,60,.5), inset 0 -2px 3px rgba(0,0,0,.2), inset 0 2px 3px rgba(255,255,255,.3); }
}

/* 帖子类型标签闪动效果 - 闪耀流光 */
@keyframes typeGlow {
    0%, 100% {
        filter: brightness(1.1);
        box-shadow:
            0 0 4px rgba(255,255,255,.15);
        transform: scale(1);
    }
    20% {
        filter: brightness(2);
        box-shadow:
            0 0 10px rgba(255,255,255,.6),
            0 0 25px rgba(255,255,255,.35),
            0 0 50px rgba(255,255,255,.15);
        transform: scale(1.1);
    }
    40% {
        filter: brightness(1.2);
        box-shadow:
            0 0 6px rgba(255,255,255,.25),
            0 0 15px rgba(255,255,255,.15);
        transform: scale(1.02);
    }
    55% {
        filter: brightness(1.8);
        box-shadow:
            0 0 10px rgba(255,255,255,.5),
            0 0 22px rgba(255,255,255,.3),
            0 0 45px rgba(255,255,255,.12);
        transform: scale(1.08);
    }
    75% {
        filter: brightness(1.15);
        box-shadow:
            0 0 5px rgba(255,255,255,.2);
        transform: scale(1);
    }
}

/* 开奖历史页 */
.draw-history-page { max-width: 900px; margin: 0 auto; padding: 24px; }
.draw-history-page h2 { font-size: 20px; margin-bottom: 20px; color: #1a1a1a; }
.draw-history-card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.draw-history-card .draw-header { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.draw-history-card .draw-header .type { font-weight: 700; color: #e74c3c; font-size: 15px; }
.draw-history-card .draw-header .period { color: #666; font-size: 13px; }
.draw-history-card .draw-header .date { color: #999; font-size: 12px; margin-left: auto; }
.draw-history-card .draw-nums { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.draw-history-card .draw-ball-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.draw-history-card .draw-plus-divider { color: #e74c3c; font-size: 14px; font-weight: 700; margin: 0 3px; flex-shrink: 0; }
.draw-history-card .num-info { font-size: 12px; color: #555; font-weight: 600; text-align: center; margin-top: 3px; line-height: 1.4; }
.draw-history-card .draw-ball-circle.gold-border { border: 2px solid #f1c40f; }

/* 登录注册 */
.login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.login-box { background: #fff; padding: 40px; border-radius: 16px; width: 400px; box-shadow: 0 10px 40px rgba(0,0,0,.15); }
.login-box h2 { text-align: center; font-size: 26px; margin-bottom: 4px; color: #1a1a1a; }
.login-desc { text-align: center; color: #999; margin-bottom: 28px; font-size: 14px; }
.login-box .layui-input { height: 44px; border-radius: 8px; border: 1px solid #e0e0e0; transition: .2s; }
.login-box .layui-input:focus { border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26,115,232,.1); }
.login-box .link-area { display: flex; justify-content: space-between; font-size: 13px; margin-top: 8px; }
.login-box .link-area a { color: #667eea; }

/* 帖子详情 */
.post-detail { background: #fff; border-radius: 12px; padding: 36px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.post-title { font-size: 24px; margin-bottom: 14px; color: #1a1a1a; }
.post-detail .post-meta { color: #999; font-size: 13px; margin-bottom: 28px; display: flex; gap: 20px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.post-detail .post-meta::-webkit-scrollbar { display: none; }
.post-detail .meta-author { flex-shrink: 0; font-weight: 600; color: #1a73e8; }
.post-content { line-height: 2; font-size: 16px; color: #1a1a1a; }
.post-content br { content: ''; display: block; margin-bottom: 6px; }
.ht-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 13px; font-weight: 700; color: #fff; margin: 0 2px; vertical-align: middle; }
.ht-badge.ht-码 { background: #1a73e8; }
.ht-badge.ht-肖 { background: #27ae60; }
.ht-badge.ht-平特 { background: #e67e22; }
.ht-badge.ht-其他 { background: #e67e22; }
.ht-badge.ht-五行 { background: #16a085; }
.pred-num { color: #e74c3c; font-weight: 700; font-size: 15px; }
.open-num { color: #e74c3c; font-weight: 700; font-size: 15px; }
.open-zodiac { color: #888; font-size: 12px; margin-left: 2px; }
.main-six { color: #555; font-size: 14px; }
.post-content .unlock-bar p { font-size: 15px; }
.preview-content { color: #333; border-left: 3px solid #1a73e8; padding: 14px 18px; margin-bottom: 24px; border-radius: 0 6px 6px 0; line-height: 1.9; font-size: 15px; }
.unlock-bar { text-align: center; padding: 50px; background: linear-gradient(135deg, #fffbe6, #fff8d6); border-radius: 12px; border: 1px dashed #ffd666; }
.unlock-bar p { margin-bottom: 18px; font-size: 16px; }

/* 个人中心 */
.user-center { max-width: 720px; }
.uc-card { background: #fff; border-radius: 12px; padding: 28px; margin-bottom: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.uc-card h3 { font-size: 16px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; color: #1a1a1a; }

/* ---- 分类帖子列表（参考49图库） ---- */
.category-posts { display: flex; flex-direction: column; gap: 14px; }

.section-title {
    padding: 12px 16px; text-align:center; font-size:17px; font-weight:700; color:#fff;
    background:linear-gradient(135deg, #1a73e8, #1557b0);
    border-radius: 8px 8px 0 0;
}
.section-content {
    background:#fff; border:1px solid #e8e8e8; border-top:none; border-radius:0 0 8px 8px; padding:6px 0;
}

.post-item {
    display:flex; justify-content:space-between; align-items:center; margin:6px 12px; padding:10px 12px;
    background:linear-gradient(135deg,#fff 0,#f0f7ff 100%);
    border:1px solid #ddecff; border-radius:6px; cursor:pointer; transition:.2s;
}
.post-item:hover { border-color:#1890ff; box-shadow:0 1px 4px rgba(24,144,255,.15); }
.p-left { display:flex; align-items:center; flex:1; min-width:0; }
.p-type-badge { display:inline-block; font-size:11px; padding:2px 8px; border-radius:3px; margin-right:6px; flex-shrink:0; color:#fff; font-weight:700; animation: typeGlow 2s ease-in-out infinite; }
.p-period { background:#2fbb40; color:#fff; font-size:10px; padding:1px 4px; border-radius:3px; margin-right:6px; flex-shrink:0; }
.p-text { font-size:14px; color:#333; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.p-right { flex-shrink:0; margin-left:8px; color:#666; font-size:14px; white-space:nowrap; }

/* 生肖属性表 */
.zodiac-ref { padding:14px 16px; background:#fff; border-radius:8px; margin-top:8px; border:1px solid #e8e8e8; }

/* 响应式 */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .search-box { min-width: auto; }
    .main-container { padding: 0 12px; }
    .header-inner { padding: 0 10px; gap: 4px; }
    .logo { font-size: 16px; white-space: nowrap; }
    .logo a { letter-spacing: 0; }
    .nav { margin-left: 6px; }
    .nav a { padding: 4px 8px; font-size: 16px; }
    .user-area { gap: 4px; }
    .user-area .layui-btn { font-size: 12px; padding: 0 8px; height: 28px; line-height: 28px; }
    .coin-badge { font-size: 11px; padding: 1px 6px; }
    .username { font-size: 12px; margin: 0 4px; }
    .post-detail { padding: 18px; }
    .p-text, .p-right { font-size: 13px; }
    .post-item { padding: 10px 12px; }
    .p-left { flex-wrap: wrap; gap: 2px; }
    .p-text { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.5; }
    .p-period { font-size: 11px; }
    .p-type-badge { font-size: 10px; padding: 1px 5px; margin-right: 3px; }
}

/* 悬浮签到按钮 */
.float-checkin-btn {
    position: fixed;
    right: 20px;
    bottom: 120px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(245, 87, 108, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    user-select: none;
}
.float-checkin-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}
.float-checkin-icon {
    font-size: 20px;
    line-height: 1;
}
.float-checkin-text {
    font-size: 10px;
    margin-top: 2px;
    line-height: 1;
}

/* 侧边栏签到卡片 */
#sidebarCheckin .sidebar-body {
    padding: 12px;
}

/* ===== 充值模块闪闪发光版 ===== */
@keyframes rechargeGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(255, 107, 53, 0.4), 0 0 16px rgba(255, 107, 53, 0.2);
        border-color: #ff9a3e;
    }
    50% {
        box-shadow: 0 0 16px rgba(255, 107, 53, 0.7), 0 0 32px rgba(255, 107, 53, 0.4), 0 0 48px rgba(255, 165, 0, 0.2);
        border-color: #ff6b35;
    }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes coinBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.recharge-module {
    margin-top: 12px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #ff9a3e;
    animation: rechargeGlow 2s ease-in-out infinite;
}

.recharge-header-glow {
    background: linear-gradient(135deg, #ff6b35, #f7931e, #ffb347, #f7931e);
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
    padding: 12px 16px;
    text-align: center;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
}

.recharge-coin-icon {
    display: inline-block;
    animation: coinBounce 1.2s ease-in-out infinite;
}

.recharge-body {
    background: linear-gradient(180deg, #fff8f0, #fff3e0);
    padding: 14px;
}

.recharge-tier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff8f0, #fff3e0);
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.recharge-tier-item:hover {
    border-color: #ff9a3e;
    box-shadow: 0 2px 8px rgba(255, 154, 62, 0.3);
    transform: translateX(3px);
}

.recharge-amount {
    font-weight: 700;
    font-size: 16px;
    color: #e74c3c;
}

.recharge-arrow {
    color: #999;
    font-size: 14px;
}

.recharge-coin {
    color: #e74c3c;
    font-weight: 700;
    font-size: 14px;
}
.recharge-coin strong {
    font-size: 17px;
}

.recharge-contact-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    flex-wrap: wrap;
}

.recharge-contact-label {
    font-size: 13px;
    color: #2e7d32;
    font-weight: 700;
}

.recharge-contact-value {
    font-size: 15px;
    color: #1b5e20;
    font-weight: 700;
}

.recharge-copy-btn {
    padding: 5px 14px;
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}
.recharge-copy-btn:hover {
    background: linear-gradient(135deg, #388e3c, #1b5e20);
    transform: scale(1.05);
}
.recharge-copy-btn:active {
    transform: scale(0.95);
}

.recharge-qr-img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    border: 2px solid #ffe0b2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .recharge-module {
        margin-left: 0;
        margin-right: 0;
    }
    .recharge-tier-item {
        padding: 8px 10px;
    }
    .recharge-contact-row {
        flex-direction: column;
        gap: 6px;
    }
    .recharge-qr-img {
        max-width: 120px;
        max-height: 120px;
    }
}
