/*全局样式*/
html, body {
    height: 100%;
}
body {
    background: #eee;
    color: #444;
    display: flex;
    flex-direction: column;
}
.cms-clear {
    clear: both;
}
.cms-body {
    margin-top: 65px;
    flex: 1 0 auto; /* 关键：占据剩余空间 */
}
.cms-container {
    margin: 0 10px;
    position: relative;
}

.cms-main {
    width: 100%;
    position: relative;
}

.cms-main > .cms-main-left {
    width: 100%;
    float: left;
}

.cms-main > .cms-main-right {
    width: 100%;
    float: right;
}

/* 小屏幕（平板，大于等于 768px） */
@media (min-width: 768px) {
    .cms-container {
        width: 738px;
        margin: 0 auto;
    }

    .cms-main > .cms-main-right > .cms-module {
        width: 45%;
        margin-bottom: 15px;
    }

    .cms-main > .cms-main-right > .cms-module:nth-child(odd) {
        float: left;
        clear: left;
    }

    .cms-main > .cms-main-right > .cms-module:nth-child(odd).cms-module:last-child {
        width: auto;
        float: none;
        clear: both;
    }

    .cms-main > .cms-main-right > .cms-module:nth-child(even) {
        float: right;
        clear: right;
    }
    #banner { height: 150px; }
}

/* 中等屏幕（桌面显示器，大于等于 992px） */
@media (min-width: 992px) {
    .cms-container {
        width: 962px;
    }
    .cms-main > .cms-main-left {
        width: 100%;
    }
    .cms-main > .cms-main-right {
        width: 29%;
    }
    .cms-main > .cms-main-right > .cms-module {
        width: auto;
        float: none !important;
    }
    /* 修改父容器为 flex 布局 */
    .cms-main {
        width: 100%;
        position: relative;
        display: flex; /* 新增 */
        gap: 10px; /* 可选：添加间距 */
    }
    /* 右侧侧边栏 */
    .cms-main-right {
        align-self: flex-start; /* 避免被拉伸 */
        position: sticky;
        top: 70px; /* 根据实际导航栏高度调整 */
    }
}

/* 大屏幕（大桌面显示器，大于等于 1200px） */
@media (min-width: 1200px) {
    .cms-container {
        width: 962px;
    }
    /* 修改父容器为 flex 布局 */
    .cms-main {
        width: 100%;
        position: relative;
        display: flex; /* 新增 */
        gap: 10px; /* 可选：添加间距 */
    }
    /* 右侧侧边栏 */
    .cms-main-right {
        align-self: flex-start; /* 避免被拉伸 */
        position: sticky;
        top: 70px; /* 根据实际导航栏高度调整 */
    }
}
/*全局样式END*/

/*面包屑导航*/
.sitemap {
    background: 0 0;
    padding: 0 8px;
    opacity: .6;
    margin-bottom: 12px;
}
.sitemap > li {
    display: inline-block;
}
.sitemap > li >a:hover {
    color: #1e9fff;
}
.sitemap > li+ li:before {
    padding: 0 0 0 6px;
    opacity: .6;
}
.sitemap > li + li:before {
    padding: 0 5px;
    color: #ccc;
    content: "/\00a0";
}
/*面包屑导航END*/

/*顶部导航*/
.cms-nav {
    width: 100%;
    height: 64px;
    position: fixed;
    top: 0;
    -webkit-backdrop-filter: saturate(180%) blur(6px);
    backdrop-filter: saturate(180%) blur(6px);
    background: rgba(255, 255, 255, 0.55);
}

.cms-nav .layui-nav {
    position: absolute;
    top: 0;
    left: 16%;
    background: none;
    display: none;
    text-align: center;
}

.cms-nav .layui-nav .layui-nav-item {
    line-height: 64px;
}

.cms-nav .layui-nav .layui-nav-item a {
    padding: 0 10px;
    color: #646464eb;
}
.cms-nav .layui-nav .layui-this a {
    color: #1e9fff;
}
.cms-nav .layui-nav .layui-nav-item a:hover {
    color: #1e9fff;
}
.cms-user {
    display: flex;
    align-items: center;  /* 垂直居中 */
    gap: 10px;           /* 元素间距 */
    flex-wrap: nowrap;   /* 禁止换行 */
    line-height: 64px;
    position: absolute;
    z-index: 10;
}
.cms-user .layui-btn {
    height: 30px;
    line-height: 30px;
    padding: 0 15px;
    color: #fff5f5e6;
}

/* 按钮组适配 */
.cms-user .layui-btn {
    flex-shrink: 0;     /* 禁止按钮收缩 */
    white-space: nowrap;/* 禁止文字换行 */
}

.cms-navicon {
    display: none;
}

@media (max-width: 991px){
    .cms-user {
        display: none !important;
    }
    .cms-navicon {
        display: block;
    }
    .cms-bgimg {
        display: none !important;
    }
}

/* Logo图片样式 */
.cms-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo-image {
    height: 40px; /* 默认高度 */
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* 响应式调整 */
@media (min-width: 992px) {
    /* PC端样式 */
    .cms-logo {
        position: absolute;
        top: 0px;
        left: 25%;
        width: 50%;
        margin: 0 auto;
        line-height: 64px;
        z-index: 10;
    }

    .logo-image {
        height: 44px; /* PC端稍大 */
    }
}

@media (max-width: 991px) {
    /* 平板和手机端 */
    .cms-logo {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        height: 100%;
    }

    .logo-image {
        height: 36px; /* 移动端稍小 */
    }
}

@media (max-width: 768px) {
    /* 小屏幕手机 */
    .logo-image {
        height: 32px;
        max-width: 160px;
    }
}

.cms-nav .cms-logo {
    position: absolute;
    top: 0px;
    /*left: 25%;*/
    width: 50%;
    color: #00000099;
    text-align: center;
    margin: 0 auto;
    line-height: 64px;
    font-size: 30px;
    /*color: white;*/
    font-weight: bold;
    font-family: KaiTi;
    display: inline-block;
    z-index: 10;
}

.cms-nav .cms-navicon a:first-child {
    position: absolute;
    left: 0;
    padding: 10px 12px;
    margin-top: 13px;
}
.cms-nav .cms-navicon a:last-child {
    position: absolute;
    right: 0;
    padding: 10px 12px;
    margin-top: 13px;
}

@media (min-width: 992px) {
    .cms-nav .layui-nav {
        display: block;
    }
    .cms-nav .cms-user {
        right: 0;
    }

    .cms-nav .cms-logo {
        position: absolute;
        left: -3%;
        width: auto;
    }
    .cms-nav .cms-user a:nth-child(2),.cms-nav .cms-user a:nth-child(3) {
        display: inline-block;
    }

    .cms-nav-left {
        display: none !important;
    }
}

.layui-nav {
    position: relative;
}

.layui-nav-item ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 120px;
    background: #fff;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(10px);
    z-index: 999;
}

.layui-nav-item:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.layui-nav-item ul li {
    padding: 0 15px;
    line-height: 32px;
    font-size: 13px;
    color: #646464eb;
    transition: background 0.2s;
}

.layui-nav-item ul li:hover {
    background: #f8f8f8;
}
.cms-nav-two > ul > li > a {
    color: #646464eb !important;
}
.cms-nav-two > a:after {
    content: "\e61a";
    font-family: layui-icon;
    margin-left: 6px;
    font-size: 14px;
    transition: 0.3s;
    display: inline-block;
    vertical-align: middle;
}

.cms-nav-two:hover > a:after {
    content: "\e603";
}
/* 顶部导航End */

/*侧边导航*/
.cms-nav-left {
    z-index: 900;
    width: 45%;
    background: #fff;
    position: fixed;
    top: 0;
    bottom: 0;
    padding: 70px 20px;
}
.cms-nav-left-moon {
    color: #646464eb;
    float: right;
    margin: 12px;
    background: rgba(50, 50, 50, 0.06);
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border-radius: 100%;
}
.cms-nav-left-theme {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    padding: 8px;
}
.cms-nav-left-theme li {
    display: block;
    padding: 8px 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.cms-nav-left-theme li:not(.cms-nav-left-this) a {
    color: #646464eb;
}
.cms-nav-left-this {
    color: #2d8cf0 !important;
}

.cms-nav-left-theme:hover .cms-nav-left-this:not(:hover) a {
    color: #646464eb !important;
}
.cms-nav-left-theme li a[href]:active,
.cms-nav-left-theme li a[href]:focus {
    color: #2d8cf0 !important;
}
.cms-nav-left-zi {
    display: flex;         /* 启用弹性布局 */
    flex-wrap: wrap;       /* 允许换行 */
    gap: 4px;             /* 元素间距 */
    width: 100%;          /* 确保占满父容器 */
}
.cms-nav-left-zi li {
    flex: 0 0 calc(50% - 2px); /* 每行两个，留出间隙 */
    box-sizing: border-box;    /* 包含内边距 */
    padding: 8px 3px 0 0;
}
.cms-nav-left-zi li > a {
    display: block;
    background: rgba(50, 50, 50, 0.06);
    padding: 5px 5px;
    border-radius: 3px;
    font-size: 0.8em;
    text-align: center;
}
.cms-nav-left-zi li > a:hover {
    color: #2d8cf0;
}
.cms-nav-left-user {
    display: flex;
    justify-content: space-around; /* 均匀分布三个元素 */
    gap: 10px; /* 元素间间距 */
}
.cms-nav-left-user a {
    display: flex;
    flex-direction: column;  /* 垂直排列 */
    align-items: center;     /* 水平居中 */
    padding: 10px;
    text-decoration: none;   /* 移除下划线 */
    transition: all 0.3s;    /* 添加过渡效果 */
}
.cms-nav-left-user a i {
    width: 36px;
    height: 36px;
    font-size: 18px;         /* 放大图标 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;      /* 图标和文字间距 */
    border-radius: 17px;
    background: rgba(50, 50, 50, 0.06);
}
/* 文字样式 */
.cms-nav-left-user a cite {
    font-size: 12px;
    color: #666;            /* 文字颜色 */
    font-style: normal;      /* 移除斜体 */
}
/* 悬停效果 */
.cms-nav-left-user a:hover {
    transform: translateY(-3px);
    color: #2d8cf0;         /* 主色调 */
}

.leftIn {
    -moz-animation: leftIn 0.3s;
    -o-animation: leftIn 0.3s;
    -webkit-animation: leftIn 0.3s;
    animation: leftIn 0.3s;
}

.leftOut {
    -moz-animation: leftOut 0.3s;
    -o-animation: leftOut 0.3s;
    -webkit-animation: leftOut 0.3s;
    animation: leftOut 0.3s;
}

@media (min-width: 992px) {
    .cms-nav-left {
        display: none !important;
    }
}
/* 手机端搜索样式 */
.wap-search {
    position: fixed;
    top: 204px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    max-width: 500px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1200;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    padding: 20px;
    display: none;
    flex-direction: column;
    align-items: center; /* 水平居中 */
    gap: 15px; /* 元素间距 */
}
.wap-search h3 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}
.wap-search input {
    width: 90%;  /* 控制输入框宽度 */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.wap-search button {
    width: 50%;  /* 控制按钮宽度 */
    padding: 10px;
    background: #2d8cf0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.wap-search.active {
    display: flex; /* 保持flex布局 */
    opacity: 1;
}
/*侧边导航END*/

/*侧边导航遮罩*/
.cms-mask {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(24, 25, 27, .8);
    z-index: 800;
    -webkit-backdrop-filter: saturate(180%) blur(6px);
    backdrop-filter: saturate(180%) blur(6px);
}

.maskIn {
    -moz-animation: maskFadeIn 0.5s;
    -o-animation: maskFadeIn 0.5s;
    -webkit-animation: maskFadeIn 0.5s;
    animation: maskFadeIn 0.5s;
}

.maskOut {
    -moz-animation: maskFadeOut 0.5s;
    -o-animation: maskFadeOut 0.5s;
    -webkit-animation: maskFadeOut 0.5s;
    animation: maskFadeOut 0.5s;
}


@media (min-width: 992px) {
    .cms-mask {
        display: none;
    }
}
/*侧边导航遮罩END*/

/* 官方公告 */
.cms-notice {
    display: flex;
    gap: 12px;
    align-items: stretch;
    padding: 5px 0;
}
.cms-notice .img {
    flex: 0 0 40%;
    overflow: hidden;
    position: relative;
    border-radius: 5px;
    transition: transform 0.3s ease;
}
.cms-notice .img:hover {
    transform: translateZ(0);
}
.cms-notice .img:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}
.cms-notice .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
}
.cms-notice .title {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.cms-notice .title a {
    font-size: 15px;
    line-height: 1.4;
    color: #646464eb;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-height: 42px;
}
.cms-notice .title a:hover {
    color: #1e9fff;
}
.cms-notice .title span {
    color: #bfbfbff2;
    font-size: 12px;
    margin-top: auto;
    transition: opacity 0.3s ease;
}
.cms-notice li:hover .title span {
    opacity: 0.8;
}
.cms-notice .title span read {
    float: right;
    transition: transform 0.3s ease;
}
.cms-notice li:hover .title span read {
    transform: translateX(5px);
    color: #1e9fff;
}
.cms-notice li {
    display: flow-root;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
}
.cms-notice li:hover {
    border-color: rgba(30, 159, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* 随机文章 */
.cms-random {
    line-height: 22px;
    color: #bfbfbff2;
}
.cms-random ul li {
    list-style-type: disc;
    list-style-position: inside;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding-bottom: 10px;
}
.cms-random ul li a {
    color: #646464eb;
}
.cms-random ul li a:hover {
    color: #1e9fff;
}

/* 最新评论 */
.cms-comment-item {
    padding-bottom: 10px;
}
.cms-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cms-comment-views {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.cms-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.cms-comment-meta {
    flex: 1;
    min-width: 0;
}
.cms-comment-name {
    font-weight: 500;
    color: #646464eb;
    font-size: 14px;
    line-height: 1.4;
}
.cms-comment-date {
    color: #999;
    font-size: 12px;
    display: block;
}
.cms-comment-content {
    background: #f2f6fc;
    border-radius: 10px;
    padding: 5px 10px;
    margin-top: 8px;
}
.cms-comment-link {
    color: #a3a3a3;
    font-size: 13px;
    line-height: 1.6;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cms-comment-link:hover {
    color: #1e9fff;
}

/* 友情链接 */
.cms-link li {
    width: auto;
    margin-right: 20px;
    height: 28px;
    line-height: 28px;
    font-size: 14px;
    float: left;
}
.cms-link li a {
    color: #646464eb;
}
.cms-link li a:hover {
    color: #1e9fff;
}
.cms-link::after {
    content: "";
    display: table;
    clear: both;
}

/* 网站底部 - 简洁版 */
.cms-footer {
    background: #ffffff;
    padding: 15px 0;
    border-top: 1px solid #eaeaea;
    font-size: 14px;
    color: #666;
}

.cms-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-row {
    margin-bottom: 8px;
    text-align: center;
}

.disclaimer {
    color: #6c757d;
    margin: 0;
    padding: 0 10px;
}

.copyright {
    color: #495057;
    margin: 0;
}

.cms-contact-item {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.cms-contact-qrcode {
    text-align: center;
}
.cms-contact-qrcode img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
.cms-contact-qrcode img:hover {
    transform: translateY(-5px);
}
.cms-contact-qrcode span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
}
@media (max-width: 768px) {
    .cms-footer-grid {
        grid-template-columns: 1fr;
    }
    .cms-footer-col {
        text-align: center;
    }
    .cms-footer-nav {
        justify-content: center;
    }
}

/* 轮播图 */
#banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
    min-height: 150px;
}
#banner .carousel-item a img {
    width: 100%;
    height: 100%;
}
@media (min-width: 992px) {
    #banner { height: 200px; }
}
@media (min-width: 1200px) {
    #banner { height: 300px; }
}
.cms-banner-carousel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 3%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.cms-banner-carousel h3 {
    font-size: 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    color: #ffffffd1;
}
.cms-banner-carousel p {
    font-size: 14px;
    opacity: 0.9;
    color: #c0c4cc;
}
@media (max-width: 768px) {
    .cms-banner-carousel {
        padding: 10px 3%;
    }
    .cms-banner-carousel h3 {
        font-size: 16px;
    }
    .cms-banner-carousel p {
        font-size: 12px;
    }
    #banner { height: 150px; }
}

/*layui重写*/

.layui-tab-brief {
    background: #fff;
}

/*    快捷标签    */
.layui-fixbar {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 700;
}
.layui-fixbar li {
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin-top: 10px;
    text-align: center;
    cursor: pointer;
    font-size: 30px;
    color: #ffffff;
    border-radius: 10px;
    opacity: .95;
    -webkit-backdrop-filter: saturate(180%) blur(6px);
    backdrop-filter: saturate(180%) blur(6px);
    background: rgb(140 140 140 / 55%);
}
/* 卡片圆角 */
.layui-card {
    border-radius: 10px;
    margin-bottom: 10px;
}
/*  导航栏this  */
.layui-nav .layui-this:after, .layui-nav-bar, .layui-nav-tree .layui-nav-itemed:after {
    height: 3px;
    background-color: #1e9fff;
}
/* 手机端侧边栏 */
.layui-nav-tree .layui-nav-child dd.layui-this, .layui-nav-tree .layui-nav-child dd.layui-this a, .layui-nav-tree .layui-this, .layui-nav-tree .layui-this>a, .layui-nav-tree .layui-this>a:hover {
    background-color: #929292a3;
    color: #fff;
}
.layui-btn+.layui-btn {
    margin-left: 0;
}
/* 首页tab栏样式 */
.layui-tab-brief > .layui-tab-title .layui-this {
    color: #1e9fff;
}
.layui-tab-brief > .layui-tab-more li.layui-this:after,
.layui-tab-brief > .layui-tab-title .layui-this:after {
    border-bottom: 3px solid #1e9fff;
}
.layui-tab.layui-tab-vertical > .layui-tab-title > li.layui-this {
    border-color: #1e9fff;
    color: #1e9fff;
}
.layui-card-header {
    font-size: 18px;
}
.layui-input::placeholder {
    color: rgba(124, 124, 124, 0.92) !important;
}
/*layui重写END*/

/***********************************************动画定义*************************************************/
/*侧边导航In动画*/
@keyframes leftIn {
    from {
        left: -200px;
    }

    to {
        left: 0;
    }
}

@-moz-keyframes leftIn {
    from {
        left: -200px;
    }

    to {
        left: 0;
    }
}

@-webkit-keyframes leftIn {
    from {
        left: -200px;
    }

    to {
        left: 0;
    }
}

/*侧边导航Out动画*/
@keyframes leftOut {
    from {
        left: 0;
    }

    to {
        left: -200px;
    }
}

@-moz-keyframes leftOut {
    from {
        left: 0;
    }

    to {
        left: -200px;
    }
}

@-webkit-keyframes leftOut {
    from {
        left: 0;
    }

    to {
        left: -200px;
    }
}

/*淡入动画*/
@keyframes maskFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-moz-keyframes maskFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes maskFageIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*淡出动画*/
@keyframes maskFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@-moz-keyframes maskFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@-webkit-keyframes maskFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}
/* ===== 背景图样式 ===== */


.cms-body {
    background: transparent;
}

.cms-container {
    background: transparent;
}

/* ===== 重新设计的开奖卡片样式 ===== */
.lottery-card {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 8px;
}

/* 添加历史记录按钮布局 */
.kj-lotto-tit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

/* 期数红色高亮 */
#currentPeriod {
    color: red;
    font-weight: bold;
}

.kj-lotto-tit1 {
    font-size: 16px;
    font-weight: bold;
}

.kj-lotto-tit2 {
    width: 80px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    background: linear-gradient(#bf80ff, #a54dff);
    font-size: 16px;
    padding-bottom: 2px;
    text-shadow: 1px 1px 1px #000;
    box-shadow: inset 5px 5px 5px rgba(255, 255, 255, 0.6), 4px 4px 3px rgba(0, 0, 0, 0.15);
}

/* 开奖结果区域 */
.lottery-content {
    padding: 0;
}

.lottery-numbers {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #1e9fff #f0f2f5;
    gap: 8px;
    padding: 5px 0 5px 0;
}

/* 特码样式 - 更大且有阴影 */
.lottery-special {
    position: relative;
}
.lottery-special .lottery-number {
    font-size: 32px;
    text-shadow: 0 0 5px rgba(0,0,0,0.7);
}

/* 滚动条样式 */
.lottery-numbers::-webkit-scrollbar {
    height: 6px;
}

.lottery-numbers::-webkit-scrollbar-track {
    background: #f0f2f5;
    border-radius: 3px;
}

.lottery-numbers::-webkit-scrollbar-thumb {
    background: #1e9fff;
    border-radius: 3px;
}

/* 开奖球样式 */
.lottery-ball {
    margin-right: 5px;
    flex: 0 0 auto;
    width: 120px;
    height: 64px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 5px 5px 5px rgba(255, 255, 255, 0.6), 5px 5px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.lottery-number {
    font-size: 28px;
    color: white;

    font-weight: 700;
    text-shadow: 2px 2px 1px #000;
}

.lottery-info {
    background: rgba(245, 245, 245, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px 5px;
    width: 80%;
    text-align: center;
}

/* 生肖+五行灰色背景 */
.lottery-zodiac {
    background: rgba(245, 245, 245, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px 5px;
    text-align: center;
    font-size: 14px;
    color: #333;
    text-shadow: none;
    line-height: 1.2;
}

/* 波色样式 */
.lottery-red {
    background: linear-gradient(#fa746b,#df1507);
}

.lottery-blue {
    background: linear-gradient(#5da7ef,#1576d1);
}

.lottery-green {
    background: linear-gradient(#22c620,#168415);
}

.lottery-gray {
    background: linear-gradient(135deg, #9e9e9e, #757575);
}

/* 根据波色设置不同的发光颜色 */
.lottery-ball.lottery-red:last-child {
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
    animation: glow1 1.5s infinite alternate;
}

.lottery-ball.lottery-blue:last-child {
    border-color: #00a0e9;
    box-shadow: 0 0 15px rgba(0, 160, 233, 0.8);
    animation: glow2 1.5s infinite alternate;
}

.lottery-ball.lottery-green:last-child {
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
    animation: glow3 1.5s infinite alternate;
}

/* 添加呼吸动画效果 */
@keyframes glow1 {
    from {
        box-shadow: 0 0 3px rgba(255, 0, 0, 0.8);
    }
    to {
        box-shadow: 0 0 9px rgba(255, 0, 0, 1);
    }
}
@keyframes glow2 {
    from {
        box-shadow: 0 0 3px rgba(0, 160, 233, 0.8);
    }
    to {
        box-shadow: 0 0 9px rgba(0, 176, 255, 1);
    }
}
@keyframes glow3 {
    from {
        box-shadow: 0 0 3px rgba(0, 255, 0, 0.8);
    }
    to {
        box-shadow: 0 0 9px rgba(0, 255, 0, 1);
    }
}

/* 开奖时间区域 */
.lottery-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #333;
    margin-top: 5px;
    background: #f8f9fa;
    border-radius: 6px;
}

.lottery-footer-info {
    flex: 1;
    min-width: 0;
}

.next-period {
    font-weight: bold;
    color: #e74c3c;
}

.next-time {
    color: #555;
    white-space: nowrap;
}

.countdown {
    font-size: 12px;
    color: #2c3e50;
    display: inline-block;
}

.time-part {
    display: inline-block;
    min-width: 28px;
    text-align: center;
    background: #2c3e50;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    margin: 0 1px;
    font-weight: bold;
    font-size: 12px;
}

.opening-soon {
    color: #e74c3c;
    font-weight: bold;
    font-size: 12px;
}

/* 小按钮样式 */
.small-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #1e9fff;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.small-btn:hover {
    background: #288fdc;
}

.lottery-footer-buttons {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .lottery-ball {
        width: 52px;
        height: 60px;
    }

    .lottery-number {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .lottery-ball {
        width: 70px;
        height: 60px;
    }

    .lottery-number {
        font-size: 22px;
    }

    .lottery-zodiac {
        font-size: 12px;
    }

    .lottery-footer-buttons {
        align-self: flex-end;
    }
}
@media (max-width: 768px) {

    /* 隐藏倒计时 */
    .countdown {
        display: none;
    }

    .lottery-numbers {
        gap: 0;
        padding: 4px 0 4px 0;
    }

    /* 调整开奖时间显示 */
    .lottery-footer-info {
        font-size: 13px;
        width: 100%;
    }

    .kj-lotto-tit1 {
        font-size: 13px;
    }

    /* 调整开奖球大小 */
    .lottery-ball {
        width: 12%;
        height: 55px;
        box-shadow: none;
    }

    .lottery-number {
        font-size: 18px;
    }

    .lottery-zodiac {
        font-size: 10px;
    }
}

/* ===== 公告样式 ===== */
.announcement-container {
    overflow: hidden;
    position: relative;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    padding: 8px;
    border: 1px solid rgba(29, 165, 217, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.announcement-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: announcement-scroll 25s linear infinite;
    font-weight: bold;
    color: #1a7cd9;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

@keyframes announcement-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ===== 充值提示 - 移动端优化版 ===== */
.recharge-notice {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    margin: 4px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.recharge-header {
    display: flex;
    flex-direction: column; /* 移动端改为垂直布局 */
    align-items: center; /* 内容居中 */
    padding: 10px;
    border-bottom: 1px solid #eaeaea;
}

.recharge-text {
    font-size: 16px;
    font-weight: bold;
    color: #1a1d20;
    margin-bottom: 12px; /* 增加下边距 */
    text-align: center; /* 文字居中 */
}

.wechat-highlight {
    background: linear-gradient(135deg, #1e9fff, #1a7cd9);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 15px;
    width: 100%; /* 宽度100% */
    max-width: 280px; /* 最大宽度限制 */
    justify-content: center; /* 内容居中 */
}

.wechat-highlight i {
    font-size: 18px;
}

.user-info-bar {
    display: flex;
    flex-direction: column; /* 移动端改为垂直布局 */
    padding: 15px;
    background: #fff;
    border-top: 10px solid #039e6d;
    border-bottom: 1px solid #039e6d;
}

.welcome-text {
    font-size: 14px;
    color: #1a1d20;
    margin-bottom: 12px; /* 增加下边距 */
    text-align: center; /* 文字居中 */
    line-height: 1.5; /* 增加行高 */
}

.username, .gold, .post-count, .user-level {
    color: #e60000 !important; /* 红色突出显示 */
    font-weight: bold;
}

.user-actions {
    display: flex;
    justify-content: center; /* 按钮居中 */
    gap: 10px;
    flex-wrap: wrap;
}

.user-actions a {
    font-size: 14px;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap; /* 防止文字换行 */
}

.logout-link {
    color: #1a73e8; /* 蓝色文字 */
    background: #e8f0fe;
}

.publish-link {
    color: #34a853; /* 绿色文字 */
    background: #e6f4ea;
}

.admin-link {
    color: #ea4335; /* 红色文字 */
    background: #fce8e6;
}

.user-actions a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 手机导航栏用户信息样式 */
.mobile-user-info {
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}

.user-welcome {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.username {
    color: #1a73e8; /* 蓝色用户名 */
    font-weight: bold;
}


.user-actions a {
    font-size: 14px;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}


.user-actions a:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.guest-message {
    font-size: 14px;
    color: #666;
    padding: 10px 0;
    text-align: center;
    font-style: italic;
}

/* 响应式调整 */
@media (max-width: 480px) {


    .user-actions a {
        font-size: 13px;
        padding: 2px 6px;
    }

    .user-welcome {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .mobile-user-info {
        padding: 12px;
    }
    .user-actions a {
        font-size: 12px;
    }
}

/* 响应式设计 - 桌面端 */
@media (min-width: 769px) {
    .recharge-header {
        flex-direction: row; /* 桌面端水平布局 */
        justify-content: space-between;
    }

    .recharge-text {
        margin-bottom: 0;
        text-align: left;
    }

    .wechat-highlight {
        width: auto;
    }

    .user-info-bar {
        flex-direction: row; /* 桌面端水平布局 */
        justify-content: space-between;
        align-items: center;
    }

    .welcome-text {
        margin-bottom: 0;
        text-align: left;
    }

    .user-actions {
        justify-content: flex-end;
    }
}

/* 响应式设计 - 平板 */
@media (max-width: 768px) {
    .recharge-header {
        padding: 10px;
    }

    .user-info-bar {
        padding: 12px;
    }
}

/* 响应式设计 - 手机端 */
@media (max-width: 480px) {
    .recharge-text {
        font-size: 15px;
    }

    .wechat-highlight {
        font-size: 14px;
        padding: 8px 12px;
    }

    .welcome-text {
        font-size: 13px;
    }

    .user-actions a {
        font-size: 13px;
        padding: 4px 8px;
    }
}

/* 响应式设计 - 小屏手机 */
@media (max-width: 360px) {
    .recharge-text {
        font-size: 14px;
    }

    .wechat-highlight {
        font-size: 13px;
    }

    .welcome-text {
        font-size: 12px;
    }

    .user-actions {
        gap: 8px;
    }

    .user-actions a {
        font-size: 12px;
    }
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .recharge-content {
        flex-direction: column;
    }

    .recharge-text {
        text-align: center;
    }
}

/* ===== 文章列表 - 优化合并版 ===== */
.cms-article-list {
    list-style: none;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.cms-article {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.cms-category-tag {
    font-weight: bold;
    flex: 0 0 auto;
    border-radius: 4px;
    margin-right: 18px;
    background-color: #f0f8ff;
    color: #1e9fff;
    padding: 0.15rem;
}

/* 文章标题 - 三端统一加大字号 */
.cms-article-title {
    flex: 1;
    color: #333;
    font-size: 22px; /* 桌面端标题字号 */
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cms-article-title a {
    color: inherit;
    text-decoration: none;
}

.cms-article-title a:hover {
    color: #1e9fff;
}

/* 作者名称 - 简洁版 */
.cms-article-author {
    font-weight: bold;
    flex: 0 0 auto;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    background: #f8f8f8;
    color: #666;
}

/* 响应式设计 - 平板 */
@media (max-width: 768px) {
    .cms-article {
        flex-wrap: wrap;
        padding: 12px;
    }

    .cms-category-tag {
        margin-right: 10px;
        margin-bottom: 5px;
    }

    .cms-article-title {
        font-size: 20px; /* 平板端标题字号 */
        flex: 0 0 100%;
        order: 3;
        padding: 10px 0 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cms-article-author {
        margin-left: auto;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 480px) {
    .cms-article-author {
        display: none;
    }

    .cms-category-tag {
        font-size: 13px;
        padding: 3px 8px;
    }

    .cms-article-title {
        font-size: 18px; /* 手机端标题字号（增大） */
    }
}

/* ===== 新增加载状态样式 ===== */
.loading-container {
    text-align: center;
    padding: 30px;
}

.loading-animation {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loading-animation div {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #1e9fff;
    animation: loading 1.2s linear infinite;
}

.loading-animation div:nth-child(1) {
    top: 8px;
    left: 8px;
    animation-delay: 0s;
}

.loading-animation div:nth-child(2) {
    top: 8px;
    left: 32px;
    animation-delay: -0.4s;
}

.loading-animation div:nth-child(3) {
    top: 8px;
    left: 56px;
    animation-delay: -0.8s;
}

.loading-animation div:nth-child(4) {
    top: 32px;
    left: 8px;
    animation-delay: -0.4s;
}

.loading-animation div:nth-child(5) {
    top: 32px;
    left: 32px;
    animation-delay: -0.8s;
}

.loading-animation div:nth-child(6) {
    top: 32px;
    left: 56px;
    animation-delay: -1.2s;
}

.loading-animation div:nth-child(7) {
    top: 56px;
    left: 8px;
    animation-delay: -0.8s;
}

.loading-animation div:nth-child(8) {
    top: 56px;
    left: 32px;
    animation-delay: -1.2s;
}

.loading-animation div:nth-child(9) {
    top: 56px;
    left: 56px;
    animation-delay: -1.6s;
}

@keyframes loading {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.loading-text {
    margin-top: 15px;
    font-size: 16px;
    color: #666;
}

.error-container {
    text-align: center;
    padding: 30px;
    color: #ff5722;
}

.error-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.error-text {
    font-size: 16px;
    margin-bottom: 20px;
}

.retry-btn {
    padding: 8px 25px;
    background: #1e9fff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s;
}

.retry-btn:hover {
    background: #1a7cd9;
    transform: translateY(-2px);
}

/* ===== 帖子图片容器样式 ===== */
.article-img-container {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.article-img-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .lottery-ball {
        width: 45px;
        height: 65px;
    }

    .lottery-number {
        font-size: 18px;
    }

    .lottery-zodiac {
        font-size: 11px;
    }

    .lottery-plus {
        font-size: 20px;
    }

    .lottery-header {
        padding: 10px 12px;
    }

    .lottery-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .cms-article {
        flex-wrap: wrap;
    }

    .cms-article-title {
        flex: 0 0 100%;
        order: 3;
        padding: 6px 0 0;
    }

    .article-img-container {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .lottery-ball {
        width: 38px;
        height: 58px;
    }

    .lottery-number {
        font-size: 16px;
    }

    .lottery-period {
        font-size: 13px;
    }

    .lottery-time {
        padding: 6px 10px;
        font-size: 13px;
    }

    .next-period {
        font-size: 14px;
    }

    .next-time {
        font-size: 13px;
    }

    .countdown {
        font-size: 13px;
    }

    .time-part {
        min-width: 28px;
        font-size: 12px;
    }

    .article-img-container {
        padding: 0;
    }
}
/* 新增参考图片样式 - 无间隙版本 */
.reference-images {
    display: flex;
    flex-direction: column;
}

.reference-image-container {
    width: 100%;
    overflow: hidden;
}

.reference-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 移除图片之间的间隙 */
.reference-image-container + .reference-image-container {
    margin-top: 0;
}

/* 添加整体圆角和阴影 */
.reference-images {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* 移动端布局优化 - 新增 */
@media (max-width: 768px) {
    .cms-article {
        flex-wrap: nowrap; /* 禁止换行 */
        padding: 10px;
        overflow: hidden; /* 隐藏溢出内容 */
    }

    .cms-category-tag {
        flex-shrink: 0; /* 禁止收缩 */
        margin-right: 8px;
        margin-bottom: 0;
        max-width: 80px; /* 最大宽度限制 */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cms-article-title {
        flex: 1;
        font-size: 1.05rem;
        min-width: 0; /* 关键：允许内容收缩 */
        padding: 0;
        order: 2; /* 调整顺序 */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cms-article-author {
        display: none; /* 移动端隐藏作者 */
    }
}

@media (max-width: 480px) {
    .cms-category-tag {
        max-width: 60px;
        font-size: 12px;
        padding: 2px 6px;
    }

    .cms-article-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .cms-category-tag {
        max-width: 50px;
        font-size: 11px;
        padding: 1px 4px;
    }

    .cms-article-title {
        font-size: 14px;
    }
}