/* ============================================
   香港3D福彩 - 主样式表
   ============================================ */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
}

ul, ol {
    list-style: none;
    padding-inline-start: 0;
}

li {
    padding-inline-start: 0;
}

/* ============================================
   顶部导航
   ============================================ */
.appHeader {
    background: linear-gradient(135deg, #d80011, #b3000e);
    color: white;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.appHeader .logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.appHeader .logo .date {
    margin-left: 15px;
    font-size: 14px;
    white-space: nowrap;
}

.appHeader ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.appHeader li {
    margin: 0 8px;
}

.appHeader a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 3px;
    transition: background 0.3s;
    white-space: nowrap;
    font-size: 15px;
}

.appHeader a:hover {
    background: rgba(255,255,255,0.2);
}

.appHeader a.active {
    background: rgba(255,255,255,0.3);
}

/* ============================================
   手机端底部导航
   ============================================ */
.mobile-nav-bottom {
    display: none;
    background: #d80011;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 5px 0;
}

.mobile-nav-bottom ul {
    display: flex;
    justify-content: space-around;
    margin: 0;
    padding: 0;
}

.mobile-nav-bottom li {
    flex: 1;
    text-align: center;
}

.mobile-nav-bottom a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 8px 5px;
    font-size: 12px;
    transition: background 0.3s;
    min-height: 50px;
    justify-content: center;
}

.mobile-nav-bottom a:hover,
.mobile-nav-bottom a.active {
    background: rgba(255,255,255,0.2);
}

.mobile-nav-bottom .mobile-nav-icon {
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: bold;
}

.mobile-nav-bottom span {
    font-size: 12px;
    line-height: 1.2;
}

/* ============================================
   内容区
   ============================================ */
.content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 5px;
}

/* ============================================
   页脚
   ============================================ */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* ============================================
   号码球
   ============================================ */
.balls {
    display: inline-flex;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin: 0 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    background-size: cover;
    background-position: center;
}

.red { background-image: url('../images/red.png'); }
.yellow { background-image: url('../images/yellow.png'); }
.blue { background-image: url('../images/blue.png'); }

/* ============================================
   首页 - 轮播图
   ============================================ */
.LotteryIndex {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0;
}

.lotteryHall {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.swiper-container {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.swiper-wrapper {
    height: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f8f8f8;
}

/* ============================================
   首页 - 主开奖区域
   ============================================ */
.mainLottery {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.lotteryTitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.lotteryTitle .title {
    font-size: 28px;
    font-weight: bold;
    color: #d80011;
}

.lotteryTitle .nextTime {
    font-size: 16px;
    color: #666;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.lotteryTitle .nextTime .leftTime {
    margin-right: 15px;
}

.lotteryNum {
    text-align: center;
    margin: 30px 0;
}

.lastTitle {
    margin-bottom: 25px;
}

.lotteryName {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.lotteryIssue {
    font-size: 18px;
    color: #666;
}

.balls-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* ============================================
   倒计时样式
   ============================================ */
.leftTime {
    display: flex;
    align-items: center;
    font-size: 0;
}

.num {
    display: inline-block;
    width: 30px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #333;
    color: white;
    margin: 0 2px;
    border-radius: 3px;
    font-size: 18px;
    font-weight: bold;
}

.dot {
    margin: 0 5px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.period-info {
    margin-right: 10px;
}

/* ============================================
   首页 - 底部按钮
   ============================================ */
.lotteryTime {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.check .video {
    background: #d80011;
    padding: 12px 25px;
    border-radius: 5px;
    text-align: center;
    transition: background 0.3s;
}

.check .video:hover {
    background: #b3000e;
}

.check .video a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.history a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: bold;
    transition: color 0.3s;
}

.history a:hover {
    color: #d80011;
}

/* ============================================
   首页 - 近期开奖列表
   ============================================ */
.postLottery {
    background: white;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #eee;
}

.postHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 20px 15px;
    border-bottom: 1px solid #eee;
}

.postHeader .left {
    font-size: 20px;
    font-weight: bold;
    color: #d80011;
}

.postHeader .right a {
    color: #d80011;
    text-decoration: none;
    font-weight: bold;
}

.postLottery ul {
    padding: 0 20px;
}

.postLottery li {
    border: 1px solid #eee;
    margin: 12px 0;
    padding: 15px;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.postLottery li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.historyIssue {
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.historyNum {
    text-align: center;
}

.lhcHisCode {
    display: inline-block;
    margin: 0 0;
}

/* 手机端历史号码球 */
.mobile-history-ball {
    display: inline-flex;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin: 0 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    background-size: cover;
    background-position: center;
}

/* 展开按钮 */
.expand-toggle {
    display: none;
    text-align: center;
    padding: 12px;
    background: #f8f8f8;
    color: #d80011;
    font-weight: bold;
    border-top: 1px solid #eee;
    cursor: pointer;
    border-radius: 0 0 10px 10px;
}

.expand-toggle:hover {
    background: #f0f0f0;
}

.expand-toggle::after {
    content: "▼";
    margin-left: 5px;
    font-size: 12px;
}

.postLottery.expanded .expand-toggle::after {
    content: "▲";
}

/* ============================================
   开奖历史页 - 直播区
   ============================================ */
.live-draw-box {
    background: linear-gradient(135deg, #d80011, #ff4757);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.live-draw-box::before {
    display: none;
}

.draw-info {
    font-size: 18px;
    margin-bottom: 15px;
}

.countdown-timer {
    font-size: 46px;
    font-weight: bold;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

.live-status {
    font-size: 16px;
    margin-bottom: 10px;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    display: inline-block;
}

/* ============================================
   开奖历史页 - 结果列表
   ============================================ */
.result-item {
    border: 1px solid #ddd;
    margin: 15px 0;
    padding: 15px;
    border-radius: 5px;
    background: white;
    position: relative;
}

.result-item h3 {
    color: #d80011;
    margin-bottom: 5px;
}

.result-item .numbers {
    text-align: center;
    margin: 15px 0;
}

.video-btn {
    background: #d80011;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    font-weight: bold;
    transition: background 0.3s;
}

.video-btn:hover:not(:disabled) {
    background: #b3000e;
    transform: translateY(-2px);
}

.video-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ============================================
   开奖历史页 - 分页
   ============================================ */
.pagination {
    text-align: center;
    margin-top: 20px;
    padding: 0 10px;
    overflow-x: auto;
    white-space: nowrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    margin: 2px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    min-width: 40px;
    font-size: 14px;
}

.pagination span.current {
    background: #d80011;
    color: white;
    border-color: #d80011;
}

.pagination a:hover {
    background: #f5f5f5;
}

/* ============================================
   开奖历史页 - 视频弹窗
   ============================================ */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.video-content {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.video-title {
    padding: 15px 20px;
    background: #d80011;
    color: white;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.video-player {
    width: 100%;
    height: auto;
    max-height: 70vh;
    background: #000;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: white;
    background: rgba(0,0,0,0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.video-loading,
.checking-video,
.video-error {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1002;
}

.video-loading { background: rgba(0,0,0,0.7); }
.checking-video { background: rgba(0,123,255,0.8); }
.video-error { background: rgba(216,0,17,0.8); }

.live-video-container {
    margin-top: 20px;
    display: none;
    position: relative;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.live-video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background: #000;
    display: block;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none !important;
    -webkit-user-drag: none;
}

.live-video::-webkit-media-controls { display: none !important; }
.live-video::-webkit-media-controls-panel { display: none !important; }
.live-video::-webkit-media-controls-play-button { display: none !important; }
.live-video::-webkit-media-controls-timeline { display: none !important; }
.live-video::-webkit-media-controls-current-time-display { display: none !important; }
.live-video::-webkit-media-controls-time-remaining-display { display: none !important; }
.live-video::-webkit-media-controls-volume-slider { display: none !important; }
.live-video::-webkit-media-controls-mute-button { display: none !important; }
.live-video::-webkit-media-controls-fullscreen-button { display: none !important; }
.live-video::-webkit-media-controls-enclosure { display: none !important; }
.live-video::-webkit-media-controls-overlay-play-button { display: none !important; }

.volume-control {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 30px;
    transition: all 0.3s;
}

.volume-control:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
}

.live-loading,
.network-delay,
.checking-prediction {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 50;
    color: white;
    border-radius: 8px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.refresh-countdown {
    font-size: 14px;
    margin-top: 10px;
    color: rgba(255,255,255,0.8);
}

/* ============================================
   内页通用样式
   ============================================ */
.page-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 5px;
    min-height: 400px;
}

.page-title {
    text-align: center;
    color: #d80011;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.page-content {
    line-height: 1.8;
    color: #333;
    font-size: 15px;
}

.page-content p {
    margin-bottom: 15px;
}

.page-content .contact-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.page-content .contact-info div {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.page-content .contact-info div:last-child {
    border-bottom: none;
}

/* ============================================
   响应式 - 移动端
   ============================================ */
@media (max-width: 768px) {
    .appHeader {
        padding: 10px;
    }

    .appHeader ul {
        gap: 5px;
        display: none;
    }

    .appHeader li {
        margin: 2px;
    }

    .appHeader a {
        padding: 6px 10px;
        font-size: 14px;
    }

    .mobile-nav-bottom {
        display: block;
    }

    body {
        padding-bottom: 70px;
    }

    .content {
        margin: 0;
        padding: 0;
        background: #fff;
        border-radius: 0;
        max-width: 100%;
    }

    .LotteryIndex {
        margin: 0;
        padding: 10px;
        max-width: 100%;
    }

    .lotteryHall {
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .mainLottery {
        padding: 12px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #eee;
        margin-bottom: 0;
    }

    .swiper-container {
        height: 100px;
        border-radius: 0;
        margin-bottom: 0;
    }

    footer {
        display: none;
    }
.lotteryTitle {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .lotteryTitle .title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .lotteryTitle .nextTime {
        flex-direction: column;
        align-items: flex-start;
        font-size: 14px;
    }

    .lotteryTitle .nextTime .leftTime {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .lotteryNum {
        display: none;
    }

    .balls-container {
        margin: 15px 0;
    }

    .balls {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin: 0 5px;
    }

    .num {
        width: 25px;
        height: 35px;
        line-height: 35px;
        font-size: 16px;
    }

    .dot {
        margin: 0 3px;
        font-size: 18px;
    }

    .lotteryTime {
        flex-direction: row;
        gap: 15px;
        text-align: center;
        margin-top: -15px;
        padding-top: 15px;
        justify-content: space-between;
    }

    .check .video {
        padding: 10px 20px;
    }

    .check .video a {
        font-size: 14px;
    }

    .history a {
        font-size: 14px;
    }

    .postLottery {
        background: white;
        padding: 0;
        border-radius: 10px;
        border: 1px solid #eee;
        margin-top: 20px;
    }

    .postHeader {
        display: none;
    }

    .postLottery ul {
        padding: 0;
    }

    .postLottery li {
        border: none;
        margin: 0;
        padding: 15px;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
        transition: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .postLottery li:last-child {
        border-bottom: none;
    }

    .postLottery li:hover {
        transform: none;
        box-shadow: none;
        background-color: #f9f9f9;
    }

    .postLottery li.hidden-record {
        display: none;
    }

    .postLottery.expanded li.hidden-record {
        display: flex;
    }

    .historyIssue {
        margin-bottom: 0;
        font-weight: bold;
        color: #333;
        font-size: 16px;
        flex: 1;
    }

    .historyNum {
        text-align: right;
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }

    .expand-toggle {
        display: block;
    }

    /* 开奖历史页响应式 */

    .result-item {
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 0;
        margin: 0 0;
        position: relative;
    }

    .result-item h3 {
        margin: 0 0 5px;
        font-size: 16px;
        color: #d80011;
        width: calc(100% - 50px);
    }

    .result-item p {
        margin: 0 0 8px;
        font-size: 14px;
        color: #666;
        width: calc(100% - 50px);
    }

    .result-item .numbers {
        order: 3;
        text-align: left;
        margin: 0 !important;
        width: 100%;
    }

    .result-item .balls {
        width: 30px;
        height: 30px;
        font-size: 18px;
        margin: 0 5px 0 0;
    }

    .result-item .video-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        font-size: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 0;
    }

    .result-item .video-btn::after {
        content: "📺";
        font-size: 18px;
    }

    .live-video {
        max-height: 50vh;
    }

    .pagination {
        padding: 10px 5px;
        white-space: nowrap;
        overflow-x: auto;
        margin: 15px -5px;
    }

    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 35px;
    }

    .volume-control {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .page-container {
        margin: 10px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .appHeader ul {
        flex-direction: column;
        align-items: center;
        display: none;
    }

    .appHeader li {
        margin: 5px 0;
    }

    .mobile-nav-bottom a {
        padding: 6px 3px;
    }

    .mobile-nav-bottom span {
        font-size: 11px;
    }

    .result-item .balls {
        width: 35px;
        height: 40px;
        font-size: 16px;
    }

    .volume-control {
        width: 21px;
        height: 21px;
        font-size: 13px;
        bottom: 6px;
        right: 6px;
    }

    .live-video {
        max-height: 40vh;
    }
}

/* ============================================
   桌面端球显示控制
   ============================================ */
@media (max-width: 768px) {
    .desktop-ball {
        display: none !important;
        visibility: hidden !important;
    }
    .mobile-ball {
        display: inline-flex !important;
        visibility: visible !important;
    }
}

@media (min-width: 769px) {
    .desktop-ball {
        display: inline-flex !important;
        visibility: visible !important;
    }
    .mobile-ball {
        display: none !important;
        visibility: hidden !important;
    }
}
    .result-video{text-align: center;}
    .qishu{color:red}
    .result-header{    font-weight: bold;}