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

/* 网页基本样式 */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    /* background-color: #414141;  */
    background-color: #555555;
    /* background-color: #a2aabc; */
    /* background-color: #e8e8e8; */

    /* background-color:#F4F4F4; */

}

/* index.html 页面总容器 */
body:not(.admin-page) .page-wrapper {
    background-color: #00b4d8;
    background-color: #505050;
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
}

/* 管理后台页面总容器 - 不受限 */
body.admin-page .page-wrapper {
    /* 继承 body.admin-page 的 #f7f7f7 背景，无宽高限制 */
}

/* 管理员页面背景色 */
body.admin-page {
    background-color: #f7f7f7;

}

.title-1 {
    display: none;
    font-size: 0.8rem;
    margin-bottom: 0;
    text-align: center;
    color: #444444;
    background-color: #f5f5f5;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


/* 头部样式 */
header {
    background-color: #333;
    color: white;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    display: none;
}

/* 国家标签容器 */
.country-tags-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    background-color: #3f3f3f;
    width: 100%;
    box-sizing: border-box;
    padding: 5px 5px 0 5px;
}

/* 轮播容器样式 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 轮播项样式 */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* 轮播项激活状态 */
.carousel-slide.active {
    opacity: 1;
    position: relative;
}

/* 轮播标题样式 */
.carousel-slide h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* 轮播描述样式 */
.carousel-slide p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* 主要内容区域 */
main {
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 0 1rem;*/
}

/* 上传表单区域 */
#upload-section {
    background-color: white;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#upload-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

/* 表单样式 */
#upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 1rem;
    font-weight: bold;
    color: #555;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.form-group input[type="text"],
.form-group textarea,
.form-group input[type="number"] {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

/* 确保number输入框显示小三角按钮 */
input[type="number"]:not(.number-input) {
    -moz-appearance: textfield;
}

input[type="number"]:not(.number-input)::-webkit-outer-spin-button,
input[type="number"]:not(.number-input)::-webkit-inner-spin-button {
    -webkit-appearance: inner-spin-button;
    margin: 0;
    opacity: 1;
}

/* 号码输入框隐藏小三角按钮 */
.number-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

.number-input::-webkit-outer-spin-button,
.number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
    display: none;
}

/* 波色背景样式 */
.number-box.red-wave {
    background-color: #e20d0d;
}

.number-box.red-wave .number-display {
    color: white;
}

.number-box.red-wave .zodiac-display {
    color: #000;
}

.number-box.blue-wave {
    background-color: #062eff;
}

.number-box.blue-wave .number-display {
    color: white;
}

.number-box.blue-wave .zodiac-display {
    color: #000;
}

.number-box.green-wave {
    background-color: #0bbc0b;
}

.number-box.green-wave .number-display {
    color: white;
}

.number-box.green-wave .zodiac-display {
    color: #000;
}

.number-box.default-wave {
    background-color: #f0f0f0;
}

.number-box.default-wave .number-display {
    color: #333;
}

.number-box.default-wave .zodiac-display {
    color: #000;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* 上传按钮样式 */
#upload-btn.action-btn {
    padding: 1.5rem 3rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 150px;
}

.action-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0);
}

#upload-btn:hover {
    background-color: #45a049;
}

#upload-btn:active {
    background-color: #3d8b40;
}

/* 上传消息样式 */
#upload-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    font-size: 1rem;
}

#upload-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#upload-message.error {
    font-weight: bold;
       background-color: #b70919;
    color: #ffffff;
    border: 1px solid #f5c6cb;
}

/* 内容展示区 */
#content-container {
    /* display: grid; */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* -------------------------------卡片边距------------------------------- */
/* 响应式内容容器 */
@media (max-width: 768px) {
    #content-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

/* 除一肖一码外的卡片内容加内边距（电脑屏） */
.card-content-qxsm {
    padding: 10px 30px 30px 30px;
}

/* -------------------------------卡片边距------------------------------- */
@media (max-width: 480px) {
    #content-container {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .card-content-qxsm {
        padding: 12px;
    }

    .card-attr-box .attr-line {
        font-size: 11px;
    }
}

/* 资料发布表格样式 */
.published-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.published-table th,
.published-table td {
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.published-table tr {
    border-bottom: 1px solid #dddddd;
}

/* 调整桌面端单元格宽度 */
.published-table th:nth-child(1),
.published-table td:nth-child(1) {
    width: 44px;
    text-align: right;
    padding-right: 1px;
}

.published-table th:nth-child(2),
.published-table td:nth-child(2) {
    width: 160px;
    text-align: left;
    padding-left: 1px;
}

.published-table th:nth-child(3),
.published-table td:nth-child(3) {
    width: 25px;
}

.published-table th:nth-child(4),
.published-table td:nth-child(4) {
    width: 66px;
    text-align: left;
    padding-left: 1px;
}

.published-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* 管理页面表格样式 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.admin-table th,
.admin-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.admin-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* 调整管理页面表格单元格宽度 */
.admin-table th:nth-child(1),
.admin-table th:nth-child(2),
.admin-table td:nth-child(1),
.admin-table td:nth-child(2) {
    width: 12%;
}

.admin-table th:nth-child(4),
.admin-table th:nth-child(5),
.admin-table td:nth-child(4),
.admin-table td:nth-child(5) {
    width: 10%;
}

.admin-table th:nth-child(3),
.admin-table td:nth-child(3) {
    width: 35%;
}

.admin-table th:nth-child(6),
.admin-table td:nth-child(6) {
    width: 19%;
}

/* 响应式表格样式 */
@media (max-width: 768px) {
    .published-table {
        font-size: 14px;
        width: 100%;
        table-layout: fixed;
    }

    .published-table td {
        padding: 6px;
        word-wrap: break-word;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .published-table {
        font-size: 12px;
        width: 100%;
        table-layout: fixed;
    }

    .published-table td {
        border: none;
        border-bottom: 1px solid #ddd;
        padding: 12px 0;
        word-wrap: break-word;
        white-space: normal;
        font-weight: bold;
    }

    /* 去掉滚动条，让内容自动换行 */
    .card-content {
        overflow-x: hidden;
    }

    .published-table {
        min-width: 100%;
    }

    /* 调整单元格宽度，使用固定像素值 */
    .published-table td:nth-child(1) {
        width: 44px;
    }

    .published-table td:nth-child(2) {
        width: 157px;
    }

    .published-table td:nth-child(3) {
        width: 28px;
    }

    .published-table td:nth-child(4) {
        width: 50px;
    }

    /* 管理页面表格响应式样式 */
    .admin-table {
        font-size: 10px;
        width: 100%;
        table-layout: fixed;
    }

    .admin-table th,
    .admin-table td {
        border: 1px solid #ddd;
        padding: 3px;
        word-wrap: break-word;
        white-space: normal;
    }
}

/* 内容卡片样式 */
.content-card {
    background-color: white;
    /* border-radius: 8px; */
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* 卡片编号角标 */
.card-number-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

/* 卡片图片样式 */
.card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    margin: 0;
}

.card-image-full {
    height: auto !important;
    /* max-height: 80vh; */
    object-fit: cover !important;
}

/* 卡片内容样式 */
.card-content {
    /* padding: 0 1.0rem 1.0rem 1.0rem; */
}



/* 标题栏渐变丝滑动画 */
@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient-title {
    background: linear-gradient(90deg,
            #29adc8 0%,
            #d15b9b 20%,
            #269376 40%,
            #44ad62 60%,
            #29adc8 80%,
            #d15b9b 100%);

        background-size: 522% 100%;
    animation: gradient-flow 8s ease infinite;

    /* 匀速流动（最稳，渐变背景常用） */
animation: gradient-flow 8s linear infinite;
    /* background-color: #0e8954; */

    /* ---------------------------------- */
/* 
        background: linear-gradient(90deg, #29adc8 0%, #fff400 20%, #269376 40%, #44ad62 60%, #29adc8 80%, #5bc7d1 100%);
    background-size: 281% 188%; */
}

.content-card h2 {
    text-align: center;
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.card-content p {
    text-align: center;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 2px;
    /* 增加底边距，让行距更大 */
    font-weight: bold;
    /* 字体加粗，让文字更明显 */
}

/* 卡片内属性规则容器 */
.card-attr-box {
    display: table;
    margin: 0 auto 10px auto;
    text-align: left;
}

/* 卡片内历史记录容器 */
.card-history-box {
    display: table;
    margin: 0 auto;
    text-align: left;
}

/* 一肖一码卡片内历史记录容器 - 单独排版 */
.card-history-box-yxym {
    width: 730px;
    display: table;
    margin: 0 17px;
    text-align: left;
}

.card-attr-box p {
    text-align: left !important;
    font-size: 13px;
}

.card-history-box p {
    text-align: left !important;
}

/* 复制【】内数据按钮 */
.copy-bracket-btn {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(180deg, #b72a81, #e3236e);
    border: 1px solid #ffffff;
    border-radius: 3px;
    cursor: pointer;
    vertical-align: middle;
    line-height: 1.5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    transition: all 0.15s ease;
}
.copy-bracket-btn:hover {
    background: linear-gradient(180deg, #d94a9c, #b02a7c);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.copy-bracket-btn:active {
    background: linear-gradient(180deg, #b02a7c, #9a1e6a);
    box-shadow: 0 1px 2px rgba(0,0,0,0.25), inset 0 1px 3px rgba(0,0,0,0.3);
    transform: scale(0.95);
}

/* 后台页面内容列表中的描述文本样式 */
.content-info p {
    white-space: pre-wrap;
    /* 保持换行和空格 */
    word-wrap: break-word;
    /* 允许长单词换行 */
    font-family: monospace;
    /* 使用等宽字体，保持对齐 */
    line-height: 2.5;
    /* 设置合适的行高 */
    font-size: 18px;
    /* 字体大小调整为18px */
    font-weight: bold;
    /* 文字加粗 */
    color: #333;
    /* 加深颜色，提高可读性 */
}

/* 轮播图管理中的描述文本样式 */
.carousel-info p {
    white-space: pre-wrap;
    /* 保持换行和空格 */
    word-wrap: break-word;
    /* 允许长单词换行 */
    font-family: monospace;
    /* 使用等宽字体，保持对齐 */
    line-height: 1.5;
    /* 设置合适的行高 */
    font-size: 18px;
    /* 字体大小调整为18px */
    font-weight: bold;
    /* 文字加粗 */
    color: #333;
    /* 加深颜色，提高可读性 */
}

/* 加载中样式 */
.loading {
    text-align: center;
    padding: 4rem;
    font-size: 1.2rem;
    color: #666;
    grid-column: 1 / -1;
}

/* 错误提示样式 */
.error {
    text-align: center;
    padding: 4rem;
    font-size: 1.2rem;
    color: #ff4444;
    grid-column: 1 / -1;
}

/* 底部样式 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    /* padding: 1.5rem; */
    margin-top: 2rem;
}

footer p {
    font-size: 1rem;
}

/* 版权文字模块：整体容器共用同一背景色 */
footer .copyright-box {
    /* background-color: #890505; */
    background-image: linear-gradient(178deg, #bc0000 37%, #791818fc 146%);
        background-image: linear-gradient(0deg, #08b4e9 -23%, #0d4089fc);
    padding: 1.5rem 1rem 1rem;
    margin: 0;
}

footer .copyright-text {
    margin: 0;
    line-height: 1.6;
    font-weight: bold;
    font-size: 1.2rem;
}

/* 版权网址小字 */
footer .copyright-url {
    font-size: 0.9rem;
    color: #fff;
    margin: 0;
    padding-top: 0.5rem;
}

/* 码表图片容器样式 */
.code-table-container {
    max-width: 1280px;
    margin: 0 auto 1rem;
    /* padding: 0.5rem; */
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.code-table-image {
    display: block;
    width: 100%;
    height: auto;
    /* max-height: 200px; */
    object-fit: contain;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.code-table-image:hover {
    transform: scale(1.02);
}

.image-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.5rem 0 0;
    cursor: pointer;
}

/* 图片查看器弹窗 */
.image-viewer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.image-viewer-overlay.active {
    display: flex;
}

.image-viewer-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem 1rem;
}

.image-viewer-close:hover {
    color: #ccc;
}




/* 数字显示区域样式 */
#numbers-section {
    margin-top: -2px;
    background-image: url('/images/bk/bk.png');
    /* background-image: linear-gradient(0deg, #ffffff -23%, #a5d7e5fc 252%); */
    /* background: linear-gradient(230deg, #f9d3d3 0%, #f4f4f4 100%); */
    /* background: linear-gradient(355deg, #e2f5f3 0%, #f4f4f4 100%); */

    background: linear-gradient(355deg, #e2f5f3 0%, #f4f4f4 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: block;
    /* 暂时隐藏数字显示区域 */
    position: relative;
    z-index: 10;
    /* 提高层级，放在上面一层 */
}



/* 强制设置号码项之间的间距 */
.number-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin: 0 2px;
}

/* 倍数显示样式 */
.number-item .multiplier-display {
    font-size: 0.9rem;
    font-weight: bold;
    color: #ff2a6d;
    min-height: 1.8rem;
    min-width: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    /* padding: 0.2rem 0.5rem; */
}

.number-item .multiplier-display:not(:empty) {
    color: #fff;
    background: linear-gradient(135deg, #0f872f 0%, #0da0d1 100%);
    background: linear-gradient(135deg, #fc12de 0%, #0dc9d1 100%);


    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 开奖记录页面专用波色背景色 */
.number-item .number-box.red-wave {
    background-color: #e20d0d !important;
    /* 红波背景色（深红色） */
}

.number-item .number-box.blue-wave {
    background-color: #062eff !important;
    /* 蓝波背景色（深蓝色） */

}

.number-item .number-box.green-wave {
    background-color: #0bbc0b !important;
    /* 绿波背景色（深绿色） */
}

.number-item .number-box.red-wave .number-display,
.number-item .number-box.blue-wave .number-display,
.number-item .number-box.green-wave .number-display {
    color: white !important;
    /* 波色号码使用白色文字 */
}

/* 国家标签样式 */
.country-tag {
    margin-top: 10px;
    background-color: #16a462;
    margin-bottom: 2px;
    padding: 5px;
    text-align: center;
    border-radius: 5px;
    color: #eaeaea;
    box-sizing: border-box;
}

.country-tag h3 {
    margin: 0;
    padding: 3px;
    /* font-size: 1rem; */
    color: #f6f6f6;
}

/* 国家标签激活状态 */
.country-tag.active {
    margin-bottom: 2px;
    /* box-shadow: 0 0 5px rgba(13, 139, 90, 0.3); */
    transform: scale(1.05);
    transition: all 0.3s ease;
    background-size: 400% 100%;
    animation: gradient-flow 4s ease infinite;
}

.country-tag.active:nth-child(1) {
    background-image: linear-gradient(0deg, #f39c12 0%, #e74c3c 66%);
    background-image: linear-gradient(0deg, #3aa83e 0%, #1f8723 66%);
    background-image: linear-gradient(0deg, #aa1555 -23%, #ff0000fc 252%);
    background-image: linear-gradient(0deg, #2fa256 0%, #076b51 65%);
    /* background: linear-gradient(355deg, #f4afaf 0%, #f4f4f4 100%);
        background: linear-gradient(175deg, #e56609 0%, #ffc000 100%); */
}

.country-tag.active:nth-child(1) h3 {
    color: #ffffff;
}

.country-tag.active:nth-child(2) {
    background-image: linear-gradient(0deg, #2fa256 0%, #076b51 65%);
    /* background: linear-gradient(355deg, #9bd8d4 0%, #f4f4f4 100%); */
    background-image: linear-gradient(181deg, #515151 0%, #6b6b6b 65%);
}

.country-tag.active:nth-child(3) {
    background-image: linear-gradient(180deg, #024c84 0%, #0976ac 65%);
    background-image: linear-gradient(0deg, #2fa256 0%, #076b51 65%);
    /* background: linear-gradient(355deg, #9bd8d4 0%, #f4f4f4 100%); */
    background-image: linear-gradient(181deg, #515151 0%, #6b6b6b 65%);
}

.country-tag {
    cursor: pointer;
    transition: all 0.3s ease;
}

.country-tag:hover {
    background-color: #0d8b5a;
    transform: scale(1.02);
}

/* 手机端国家标签样式 */
@media (max-width: 768px) {
    .country-tags-container {
        gap: 20px !important;
        justify-content: flex-start !important;
    }

    .country-tag h3 {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .country-tags-container {
        gap: 11px !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }
}

@media (max-width: 360px) {
    .country-tags-container {
        gap: 10px !important;
        justify-content: flex-start !important;
    }
}

.number-box {
    /* 固定尺寸确保7个方块能在一行显示 */
    /* width: 39px;
    height: 39px;
    min-width: 39px;
    max-width: 39px; */
    font-size: 34px;
    width: 48px;
    height: 60px;
    min-width: 50px;
    max-width: 70px;


    aspect-ratio: 1;
    background-color: #f0f0f0;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    padding: 0.5rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.number-box .number-display {
    font-weight: bold;
    color: #333;
}

/* 加载动画样式 */
.number-box .loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #cbcaca;
    border-top: 3px solid #2196F3;
    border-top: 3px solid #4caf50;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
    display: none;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.number-box.loading-state .number-display {
    display: none;
}

.number-box.loading-state .loading-spinner {
    display: block;
}

.number-box:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.zodiac-display {
    /* 基础样式 - 电脑端 */
    font-weight: bold !important;
    font-size: 0.9rem;
    color: #4f4f4f;
    text-align: center;
    margin-top: 0.2rem;
}

.plus-sign {
    /* 统一加号样式 - 确保跨浏览器兼容 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    font-weight: bold;
    color: #333;
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    margin: 0 0.2rem;
    flex-shrink: 0;
    line-height: 1;
    box-sizing: border-box;
}

.plus-label {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #numbers-section {
        padding: 0.5rem;
    }

    .numbers-container {
        padding: 0 0.5rem;
    }

    .zodiac-display {
        /* 768px以下 - 平板/手机端 */
        font-size: 1.0rem;
        font-weight: bold !important;
        color: #4f4f4f;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .number-box {
        padding: 1rem;
        font-size: 1.2rem;
    }

    #content-container {
        grid-template-columns: 1fr;
    }

    .card-content h2 {
        font-size: 1.3rem;
    }

    .card-content p {
        /*text-align:center;*/
        font-size: 13px;
        /* 在小屏幕上调整为14px */
    }

    /* 确保内容列表在手机端垂直排列 */
    .content-list-section {
        display: block;
        padding: 1rem;
    }

    /* 确保内容列表内部元素垂直排列 */
    .content-list-section * {
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }
}

/* 图片样式 */
.card-image {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.card-image:hover {
    transform: scale(1.02);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    /* background-color: #fefefe; */
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    background-color: #161616;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #f1f1f1;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 30px;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close:hover,
.close:focus {
    background-color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    cursor: pointer;
}

/* 响应式模态框 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 100%;
    }

    .modal-image {
        max-height: 70vh;
    }

    .close {
        font-size: 24px;
        padding: 2px 8px;
    }
}

/* 新按钮区域样式 */
.new-buttons-section {
    background-color: transparent;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 0;
    /* margin-bottom: 2rem; */
    box-shadow: none;
    border-style: dashed;
    border-width: 1px;
    border-color: #ddd;
    position: relative;
}

.new-buttons-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    pointer-events: none;
    border-spacing: 8px;
}

.new-buttons-container {
    display: flex;
    justify-content: space-between;
    gap: 0.3rem;
    flex-wrap: wrap;
    max-width: 100%;
    padding: 0.3rem;
    margin: 0;
    background-color: #225a644a;
}

.new-action-btn {
    /* padding: 1rem 0.8rem; */
    padding: 0.4rem 0.3rem;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1.0rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
    /* width: calc(33.333% - 0.3rem); */
    max-width: calc(33.333% - 0.3rem);
    width: calc(16.333% - 0.3rem);
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
}

.new-action-btn:hover {
    background-color: #e8e8e8;
}

.new-action-btn:active {
    background-color: #d8d8d8;
    transform: translateY(1px);
}

/* 卡片搜索框 */
.card-search-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0.8rem auto;
    padding: 0.4rem 0.5rem;
}

.card-search-input {
    flex: 1 1 200px;
    min-width: 180px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1.0rem;
    outline: none;
}

.card-search-input:focus {
    border-color: #4a90d9;
    box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.2);
}

.card-search-btn {
    padding: 0.5rem 1rem;
    background-color: #d94a9c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.0rem;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.card-search-btn:hover {
    background-color: #3a7bc8;
}

.card-search-btn:active {
    background-color: #2f6db4;
}

.card-search-msg {
    font-size: 0.9rem;
    color: #666;
    word-break: break-all;
}

/* 搜索定位命中卡片的高亮 */
.card-search-highlight {
    outline: 3px solid #ff9800;
    outline-offset: 2px;
    transition: outline 0.3s ease;
}

/* 显示更多按钮 - 桌面端隐藏 */
.show-more-btn {
    display: none;
}

/* 图片轮播样式 */
/* 电脑屏----------------------- */
.image-carousel-section {
    width: 100%;
    max-width: 1200px;
    height: 350px;
    background-color: #f5f5f5;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    margin-top: -1px;
}

/* 响应式轮播图高度 */
/* 平板屏------------------------------------------------------ */
@media (max-width: 768px) {
    .image-carousel-section {
        height: 225px;
    }
}

/* 手机屏-------------------------------------------------------------- */
@media (max-width: 480px) {
    .image-carousel-section {
        height: 171px;
    }
}

/* 后台页面样式 */
/* 描述文本框样式 - 后台页面专用 */
#description {
    height: 300px;
    resize: vertical;
    min-height: 300px;
    white-space: pre-wrap;
    /* 保持换行和空格 */
    word-wrap: break-word;
    /* 允许长单词换行 */
    font-family: monospace;
    /* 使用等宽字体，保持对齐 */
    line-height: 1.5;
    /* 设置合适的行高 */
    font-size: 1.1rem;
    /* 增大字体大小 */
    font-weight: bold;
    /* 文字加粗 */
}

/* 响应式调整 - 后台描述文本框 */
@media (max-width: 768px) {
    #description {
        height: 400px;
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    #description {
        height: 300px;
        min-height: 300px;
    }
}

#title {
    font-weight: bold;
    color: #109a6d;
}

/* 颜色选择器样式 */
.input-with-color {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.input-with-color input[type="text"],
.input-with-color textarea {
    flex: 1;
}

.color-picker {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    background: none;
}

.color-picker:hover {
    border-color: #4CAF50;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 2px;
}

.color-picker::-moz-color-swatch {
    border: none;
    border-radius: 2px;
}

/* 修改按钮样式 */
.edit-btn {
    padding: 0.5rem 1rem;
    background-color: #FF9800;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 0.5rem;
}

.edit-btn:hover {
    background-color: #F57C00;
}

/* 修改模态框样式 */
.edit-modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.edit-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.edit-modal-content h3 {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.edit-modal-content .form-group {
    margin-bottom: 1.5rem;
}

.edit-modal-content label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.edit-modal-content input[type="text"],
.edit-modal-content textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.edit-modal-content textarea {
    height: 300px;
    resize: vertical;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace;
    line-height: 1.5;
}

.edit-modal-content input[type="text"]:focus,
.edit-modal-content textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.save-btn {
    padding: 0.8rem 1.5rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.save-btn:hover {
    background-color: #45a049;
}

.cancel-btn {
    padding: 0.8rem 1.5rem;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cancel-btn:hover {
    background-color: #da190b;
}

/* 响应式调整 - 修改模态框 */
@media (max-width: 768px) {
    .edit-modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .edit-modal-content textarea {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .edit-modal-content {
        width: 98%;
        padding: 1rem;
    }

    .edit-modal-content textarea {
        height: 150px;
    }
}

.image-carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.image-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.image-carousel-slide.active {
    opacity: 1;
}

.image-carousel-slide img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}

.carousel-controls {
    display: none;
}

.carousel-prev,
.carousel-next {
    display: none;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.4);
}

/* 网站标题容器样式 */
.site-title-container {
    text-align: center;
    /* margin-bottom: 1rem; */
}

.site-title-container h2 {
    background-color: #8c1a1a;
    background-color: #4d4d4d;
    background-color: #cb1a1c;
    font-size: 1.4rem;
    color: #ececec;
    font-weight: bold;
    margin: 0;
}

/* 历史记录标题样式 */
.history-title {
    text-align: right;
    font-size: 1rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 0.1rem;
    padding-right: 0.3rem;
}

/* 期数头部 - 期号和查看记录同行 */
.period-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

/* numbers-section 内的历史记录链接 */
#numbers-section .history-title {
    margin-bottom: 0;
    padding-right: 0;
}

.history-title .history-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    /* background: linear-gradient(182deg, #114355, #2badbc); */
    /* background: linear-gradient(168deg, #d70c74 0%, #8410b440 100%); */
    background: linear-gradient(182deg, #114355, #2badbc);
    padding: 3px 5px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: normal;
    transition: background 0.2s;
}

.history-title .history-link:visited {
    color: #fff;
}

/* 仅在支持hover的设备（电脑端）上应用hover效果，避免手机端点击后卡住绿色 */
@media (hover: hover) {
    .history-title .history-link:hover {
        color: #fff;
        background: #3ac270;
        text-decoration: none;
    }
}

/* 时间输入框样式 */
.time-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#countdown-hour,
#countdown-minute {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
}

.time-separator {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

/* 期数设置样式 */
.h1-content-setting {
    margin-top: 0.5rem;

    background-color: #f8f9fa;
    border-radius: 8px;
}

.h1-input-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.h1-input-row h3 {
    margin: 0;
    white-space: nowrap;
}

#h1-content {
    flex: 0 0 auto;
    width: 550px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.25rem;
}

#auto-fill-btn {
    white-space: nowrap;
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
}

.h1-preview {
    /* margin-top: 1rem; */
    padding: 1.5rem;
    background-color: #f0f0f0;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.h1-preview h1 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
    font-weight: bold;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

}

@media (max-width: 768px) {
    .h1-preview {
        padding: 0.4rem;
        overflow-x: hidden;
    }
    .h1-preview h1 {
        font-size: 0.65rem;
        display: block;
        flex-wrap: unset;
        white-space: normal;
        word-break: break-all;
    }
}

#content-section h2 {
    color: #20aac7;
}

.period-setting {
    margin-bottom: 1.5rem;
}

.period-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.period-label,
.date-label {
    font-size: 1rem;
    color: #ffffff;
    font-weight: bold;
}

#lottery-date {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#period-number {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
}

/* 倒计时显示区域样式 */
#countdown-display-section {
    max-width: 1200px;
    /* margin: 1rem auto 2rem auto; */
    /* margin: 0rem auto 0.8rem auto; */
    padding: 0;
}

.countdown-container {
    /* display: none; */
    margin-bottom: 6px;
    /* background: linear-gradient(135deg, #667eea 0%, #68c792 100%); */
    /* background: linear-gradient(174deg, #18dfed 0%, #040c57 100%); */
    /* background: linear-gradient(174deg, #000000 0%, #08459c 100%); */
    /* background: linear-gradient(355deg, #1e90a7 0%, #040c57 100%); */
    /* background: linear-gradient(355deg, #f1fdff 0%, #bfc2d3 100%); */
    background: linear-gradient(355deg, #89c3e3 0%, #f4f4f4 100%);
    background: linear-gradient(355deg, #f4afaf 0%, #f4f4f4 100%);
    background: linear-gradient(348deg, #f4afaf 0%, #f4f4f4 100%);
    background: linear-gradient(355deg, #9bd8d4 0%, #f4f4f4 100%);

    background: linear-gradient(355deg, #1e90a7 0%, #040c57 100%);
    /* background: linear-gradient(359deg, #a71e7a 0%, #ffac00 100%); */




    /* background-size: 400% 100%; */
    /* animation: gradient-flow 4s ease infinite; */

    /* border-radius: 12px; */
    padding: 0px 0px 10px 0px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: white;

}

.countdown-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 4px;
    color: #636363;
    color: #ffffff;
    /* text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); */
}

.next-period-info {
    margin-top: 8px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.next-period {
    font-weight: bold;
    margin-right: 1rem;
}

.next-date {
    /*opacity: 0.9;*/
    font-weight: bold;
    margin-right: 1rem;
}

/* 移动后的下期信息样式 */
/* 期数区域分割线 */
.period-divider {
    border: none;

    /* border-top: 2.5px dotted rgb(164 164 164); */
    border-top: 2.5px dotted rgb(124 175 212 / 33%);

    margin: 12px 0;
}

.moved-next-info {
    /* background-color: #f3f301;
    background-color: #794f4f; */
    color: #505050;
    margin-top: 8px;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 1rem;

    width: 330px;
    margin-left: auto;
    margin-right: auto;
    /* background-color: #f0fccc; */
    background-color: #515151;


}

.moved-next-info .next-period,
.moved-next-info .next-date {
    color: #ffffff;
}

/* 开奖时间信息样式 */
.lottery-time-info {
    color: #505050;
    text-align: center;
}

.lottery-time-info-inline {
    /* color: #505050; */
    font-weight: bold;
    color: #ffffff;
}

/* 倒计时标题样式 */
.countdown-title-styling {
    font-size: 22px;
}

/* 开奖中状态样式 */
.drawing-status {
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #11b0c9 0%, #02b9ff 100%);
    border-radius: 7px;
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

.drawing-text {
    color: white;
    font-weight: bold;
    font-size: 18px;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* GIF图片区域样式 */
.gif-section {
    text-align: center;
    /* padding: 20px 0; */
}

/* 广告容器包装 */
.ad-section-wrapper {
    margin: 10px 0;
    /* border: 2px dashed #e0e0e0; */
    border-radius: 8px;
    overflow: hidden;
}

.ad-section-label {
    background: linear-gradient(135deg, #20aac7, #109a6d);
    color: #fff;
    text-align: center;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.gif-container {
    display: inline-block;
    max-width: 100%;
    /* padding: 0 10px; */
    font-size: 0;
    /* 去除inline元素之间的空白间距 */
}

.gif-image {

    width: 1200px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

/* 卡片广告区域样式 */
.card-ad-section {
    text-align: center;
    padding: 20px 0;
}

.card-ad-container {
    display: inline-block;
    max-width: 100%;
    padding: 0 10px;
    font-size: 0;
    /* 去除inline元素之间的空白间距 */
}

.card-ad-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.countdown-timer {
    font-size: 1em;
    font-weight: bold;
   
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.time-unit {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    min-width: 90px;
    justify-content: center;
    /* background: linear-gradient(145deg, #1a1a1a, #0d0d0d); */
    border-radius: 8px;
    /* box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 255, 100, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.5); */
    /* border: 2px solid #2a2a2a; */
        border: 2px solid #71eae663;
}

.countdown-hours,
.countdown-minutes,
.countdown-seconds {
    font-size: 2.8rem;
    line-height: 1;
    margin-right: 0.3rem;
    /* color: #00ff64; */
    color: #ffffff;
    letter-spacing: 3px;
    font-weight: 700;
    /* text-shadow: 
        0 0 10px rgba(0, 255, 100, 0.9),
        0 0 20px rgba(0, 255, 100, 0.7),
        0 0 30px rgba(0, 255, 100, 0.5); */
}

.unit {
    font-size: 0.9rem;
    opacity: 0.9;
    /* color: #88ffaa; */
    color: #ffffff;
    /* text-shadow: 0 0 5px rgba(0, 255, 100, 0.5); */
}

/* 响应式倒计时样式 */
@media (max-width: 768px) {
    .gif-image {
        width: 100% !important;
    }

    .countdown-container {
        padding: 1rem;
    }

    .countdown-title {
        font-size: 1rem;
    }

    .countdown-timer {
        font-size: 1.8rem;
        gap: 1rem;
        flex-wrap: nowrap;
    }

    .time-unit {
        min-width: 70px;
        padding: 0.5rem 0.7rem;
        border-radius: 6px;
        margin-right: 1rem;
    }

    .time-unit:last-child {
        margin-right: 0;
    }

    .countdown-hours,
    .countdown-minutes,
    .countdown-seconds {
        font-size: 2rem;
        letter-spacing: 2px;
        margin-right: 0.4rem;
    }

    .unit {
        font-size: 0.8rem;
    }

    /* 手机屏上传区域样式 */
    #upload-section {
        padding: 0;
    }
}

/* 响应式新按钮样式 */
@media (max-width: 768px) {
    .new-action-btn {
        /* padding: 0.9rem 0.7rem; */
        padding: 0.5rem 0.4rem;
        font-size: 0.7rem;
        min-width: 60px;
        width: calc(33.333% - 0.3rem);
        max-width: calc(33.333% - 0.3rem);
        margin-bottom: 0.4rem;
    }

    .new-buttons-container {
        gap: 0.3rem;
    }

    /* 手机端默认隐藏第9个之后的按钮 */
    .new-buttons-container .new-action-btn:nth-child(n+10) {
        display: none;
    }

    /* 展开后显示全部 */
    .new-buttons-container.expanded .new-action-btn:nth-child(n+10) {
        display: block;
    }

    /* 显示更多按钮 */
    .show-more-btn {
        display: block;
        width: 100%;
        padding: 0.5rem;
        margin-top: 0.3rem;
        /* background-color: #f5f5f5; */
        background-color: #f5f5f500;
        color:#c2c2c2;
        /* border: 1px dashed #ccc; */
        border-radius: 6px;
        font-size: 0.75rem;
        cursor: pointer;
        text-align: center;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .show-more-btn:hover,
    .show-more-btn:active,
    .show-more-btn:focus {
        background-color: #f5f5f500;
        color: #c2c2c2;
        outline: none;
    }
}

@media (max-width: 480px) {
    .new-action-btn {
        /* padding: 0.8rem 0.6rem; */
        padding: 0.5rem 0.4rem;
        font-size: 0.65rem;
        min-width: 55px;
        width: calc(33.333% - 0.2rem);
        max-width: calc(33.333% - 0.2rem);
        margin-bottom: 0.3rem;
    }

    .countdown-timer {
        gap: 0.6rem;
    }

    .time-unit {
        min-width: 58px;
        padding: 0.4rem 0.5rem;
        margin-right: 0.6rem;
    }

    .time-unit:last-child {
        margin-right: 0;
    }

    .countdown-hours,
    .countdown-minutes,
    .countdown-seconds {
        font-size: 1.5rem;
        margin-right: 0.3rem;
    }

    .new-buttons-container {
        gap: 0.2rem;
        padding: 0.2rem;
    }
}

/* 超小屏幕适配（≤360px） */
@media (max-width: 360px) {
    .countdown-timer {
        gap: 0.5rem;
    }

    .time-unit {
        min-width: 52px;
        padding: 0.3rem 0.4rem;
        margin-right: 0.5rem;
    }

    .time-unit:last-child {
        margin-right: 0;
    }

    .countdown-hours,
    .countdown-minutes,
    .countdown-seconds {
        font-size: 1.3rem;
        letter-spacing: 1px;
        margin-right: 0.2rem;
    }

    .unit {
        font-size: 0.7rem;
    }

    .countdown-container {
        padding: 8px 5px;
    }
}

/* 确认按钮样式 */
.confirm-btn {
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    transition: background-color 0.3s ease;
}

.confirm-btn:hover {
    background-color: #45a049;
}

/* 等待状态按钮样式 */
.confirm-btn:disabled {
    background-color: #f18e0e;
    cursor: not-allowed;
}

/* 已确认按钮样式 */
.confirm-btn.confirmed,
#save-period-btn.confirmed,
#save-date-btn.confirmed {
    background-color: #a8a8a8 !important;
    cursor: not-allowed;
}

/* 管理员面板倒计时容器样式 */
.admin-countdown-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: white;
    /* margin: 1rem auto 2rem auto; */
    max-width: 1600px;
}

.admin-countdown-container .countdown-title {
    color: #f5e7d4;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 期数显示样式 */
#period-display {
    font-size: 1rem;
    font-weight: bold;
    color: #545353;
    text-align: left;
    /* padding: 10px 0; */
}

.admin-countdown-container .countdown-timer {
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Microsoft YaHei', 'SimHei', 'STHeiti', 'Arial', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 登录过期时间样式 */
.login-expiry-container {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.login-expiry-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    color: #ffeb3b;
}

.login-expiry-timer {
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    color: #ffeb3b;
}

/* 管理员导航栏样式 */
.admin-navbar {
    background: linear-gradient(135deg, #667eea 0%, #3e9ea7 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.6rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.admin-navbar .nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.admin-navbar .nav-link {
    /* padding: 0.75rem 1.5rem; */
    padding: 1.75rem 1.0rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.admin-navbar .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.admin-navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.admin-navbar .nav-link:hover::before {
    left: 100%;
}

.admin-navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.admin-navbar .nav-link.active:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .admin-navbar .nav-container {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.25rem;
        padding: 0.5rem;
    }

    .admin-navbar .nav-link {
        text-align: center;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-width: auto;
        flex: 0 1 auto;
        border-bottom: none;
        border-right: none;
    }

    /* 确保导航栏在小屏幕上也能水平滚动 */
    .admin-navbar {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .admin-navbar .nav-container {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
}

/* 文件上传区域样式 */
.upload-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
}

.upload-form-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* 上传按钮样式 */
#upload-btn {
    height: 60px;
    padding: 0.5rem 1.5rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: auto;
    min-width: 100px;
}

#upload-btn:hover {
    color: #000000;
    background-color: #ffe602;
}

.content-list-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 300px;
    width: 100%;
    margin-bottom: 2rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .upload-container {
        gap: 1rem;
    }
}

/* 开奖记录区域样式 */
.lottery-records-container {
    background-color: white;
    /* border-radius: 8px; */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 3px;
    margin-top: 1rem;
    max-width: 845px;
}

.records-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.record-card {
    background: white;
    border-radius: 8px;
    border: 2px solid #d3d7dc;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.record-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.period-number {
    font-size: 1.1rem;
    /* font-weight: bold; */
    color: #495057;
}

.record-date {
    font-size: 0.9rem;
    color: #6c757d;
}

.numbers-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    overflow-x: auto;
    padding: 0.5rem;
    box-sizing: border-box;
}

.number-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* 手机端号码容器间距调整 - 兼容真手机 */
@media (max-width: 1024px) and (orientation: portrait) {
    .numbers-container {
        padding: 0.2rem 0.4rem;
        justify-content: space-between;
        flex-wrap: nowrap;
        overflow: visible;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .number-item {
        gap: 2px !important;
        margin: 0;
        min-width: auto;
        flex-shrink: 0;
    }

    .number-item .multiplier-display {
        margin-bottom: 4px !important;
        font-size: 0.85rem !important;
    }

    .number-box {
        width: 38px;
        height: 38px;
        border-radius: 6px;
    }

    .number-box .number-display {
        font-size: 1.3rem;
    }

    .zodiac-display {
        font-size: 0.85rem;
        gap: 0;
        font-weight: bold !important;
        color: #4f4f4f;
    }

    .plus-sign {
        font-size: 0.85rem;
        width: 12px;
        height: 12px;
        min-width: 12px;
        max-width: 12px;
        margin: 0 2px;
        flex-shrink: 0;
    }
}

/* 平板端优化 (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .numbers-container {
        padding: 0.3rem;
    }

    .number-box {
        width: 36px;
        height: 36px;
        min-width: 36px;
        max-width: 36px;
    }

    .plus-sign {
        font-size: 1.0rem;
        width: 16px;
        height: 16px;
        min-width: 16px;
        max-width: 16px;
        margin: 0 0.1rem;
    }
}

/* 手机端优化 (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .numbers-container {
        justify-content: space-between;
        padding: 0.2rem 0.3rem !important;
    }

    .number-box {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        border-radius: 5px !important;
        padding: 0.2rem !important;
    }

    .plus-sign {
        font-size: 0.85rem !important;
        width: 12px !important;
        height: 12px !important;
        min-width: 12px !important;
        max-width: 12px !important;
        margin: 0 2px !important;
    }

    .number-box .number-display {
        font-size: 1.25rem !important;
    }

    .number-item {
        gap: 2px !important;
    }
}

/* 小屏幕设备优化 (401px - 480px) */
@media (max-width: 480px) and (min-width: 401px) {
    .numbers-container {
        justify-content: space-between;
        padding: 0.15rem 0.25rem !important;
    }

    .number-box {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        border-radius: 4px !important;
        padding: 0.15rem !important;
    }

    .plus-sign {
        font-size: 0.8rem !important;
        width: 10px !important;
        height: 10px !important;
        min-width: 10px !important;
        max-width: 10px !important;
        margin: 0 1px !important;
    }

    .number-box .number-display {
        font-size: 1.15rem !important;
    }

    .number-item {
        gap: 1px !important;
    }
}



/* 极端小屏幕优化 - 确保7个号码同行显示 */
@media (max-width: 360px) {
    .numbers-container {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0.1rem 0.2rem !important;
        justify-content: space-between !important;
        margin: 0 auto !important;
    }

    .number-item {
        gap: 1px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    .number-box {
        width: 34px !important;
        height: 34px !important;
        border-radius: 4px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        padding: 0.1rem !important;
    }

    .number-box .number-display {
        font-size: 1.05rem !important;
    }

    .zodiac-display {
        font-size: 0.85rem !important;
        font-weight: bold !important;
        color: #4f4f4f;
    }

    .plus-sign {
        font-size: 0.75rem !important;
        width: 10px !important;
        height: 10px !important;
        min-width: 10px !important;
        max-width: 10px !important;
        margin: 0 1px !important;
        flex-shrink: 0 !important;
    }

    /* 手机端国家标签间距优化 */
    main>div:first-child[style*="display: flex"] {
        gap: 15px !important;
        flex-wrap: wrap;
        justify-content: center;
    }
}



.number {
    font-size: 1.2rem;
    font-weight: bold;
}

.zodiac-info {
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: none;
    color: #333;
    font-weight: 500;
}

.zodiac-text,
.element-text {
    background: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}



.delete-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background-color: #c82333;
}

.content-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.clear-all-btn {
    flex: 1;
    min-width: 100px;
    height: 2.5rem;
    background-color: #454545;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.clear-all-btn:hover {
    background-color: #de2e48;
}

.delete-images-btn:hover {
    background-color: #e67e22;
}

.delete-text-btn:hover {
    background-color: #2980b9;
}

.loading,
.error,
.no-records {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-size: 1.1rem;
}

.load-more-loading {
    text-align: center;
    padding: 1.5rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.load-more-trigger {
    height: 1px;
}

.no-more-indicator {
    text-align: center;
    padding: 1.5rem;
    color: #adb5bd;
    font-size: 0.9rem;
}

/* ==============================================
   最优先级的手机端样式 - 确保100%生效！
   ============================================== */
@media (max-width: 768px) {
    #numbers-section {
        padding: 0.25rem 0.4rem !important;
    }

    .numbers-container {
        gap: 2px !important;
        padding: 0.15rem !important;
    }

    .number-item {
        gap: 2px !important;
        margin: 0 !important;
    }

    .number-box .number-display,
    .number-item .number-box .number-display,
    .number-item .number-box.red-wave .number-display,
    .number-item .number-box.blue-wave .number-display,
    .number-item .number-box.green-wave .number-display {
        font-size: 1.25rem !important;
    }

    .number-box {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        border-radius: 4px !important;
        padding: 0.2rem !important;
    }

    .plus-sign {
        width: 12px !important;
        height: 12px !important;
        margin: 0 1px !important;
    }
}

@media (max-width: 768px) {

    .next-period,
    .next-date {
        margin-right: 0.8rem !important;
    }
}

@media (max-width: 480px) {

    .next-period,
    .next-date {
        margin-right: 0.6rem !important;
    }
}

@media (max-width: 360px) {

    .next-period,
    .next-date {
        margin-right: 0.4rem !important;
    }
}

@media (max-width: 400px) {

    .number-box .number-display,
    .number-item .number-box .number-display,
    .number-item .number-box.red-wave .number-display,
    .number-item .number-box.blue-wave .number-display,
    .number-item .number-box.green-wave .number-display {
        font-size: 1.4rem !important;
    }

    .number-box {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        border-radius: 4px !important;
        padding: 0.15rem !important;
    }

    .numbers-container {
        gap: 2px !important;
        padding: 0.1rem 0.2rem !important;
        justify-content: space-between;
    }

    .number-item {
        gap: 1px !important;
    }

    .plus-sign {
        font-size: 0.8rem !important;
        width: 10px !important;
        height: 10px !important;
        margin: 0 1px !important;
    }
}

/* ==============================================
   滚动文字样式
   ============================================== */
.rolling-text-section {
    width: 100% !important;
    max-width: 1200px;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    /* background: linear-gradient(135deg, #1e2a5c 0%, #3b3939 100%); */
    /* background: linear-gradient(135deg, #199fa4 0%, #dd3838 100%); */
    background: linear-gradient(135deg, #191919 0%, #141415 100%);
    /* background: linear-gradient(355deg, #e2f5f3 0%, #f4f4f4 100%); */

    padding: 0.0rem 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: none;
    visibility: hidden;
    /* min-height: 36px; */
}

.rolling-text-container {
    width: 100%;
    padding: 0 1rem;
    overflow: hidden;
}

.rolling-text-wrapper {
    white-space: nowrap;
    overflow: hidden;
}

#rolling-text-content {
    display: inline-block;
    /* color: white; */
    color: #f0dc23;
    font-size: 1.1rem;
    font-weight: bold;
    padding-left: 100%;
}

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

    100% {
        transform: translateX(-100%);
    }
}

/* 响应式滚动文字 - 与轮播图容器保持一致的宽度 */
@media (max-width: 768px) {
    .rolling-text-section {
        /* padding: 0.3rem 0; */
        /* min-height: 36px; */
    }

    .rolling-text-container {
        padding: 0 1rem;
    }

    #rolling-text-content {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .rolling-text-section {
        /* padding: 0.3rem 0; */
        /* min-height: 36px; */
    }

    .rolling-text-container {
        padding: 0 1rem;
    }

    #rolling-text-content {
               font-size: 0.9rem;
    }
}

/* ==============================================
   后台倒计时设置模块美化
   ============================================== */
.countdown-setting {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8eaed;
    transition: all 0.3s ease;
}

.countdown-setting:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.countdown-setting h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a73e8;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8eaed;
    position: relative;
}

.countdown-setting h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #1a73e8 0%, #667eea 100%);
    border-radius: 1px;
}

.countdown-setting .form-group {
    margin-bottom: 20px;
}

.countdown-setting .form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.countdown-setting .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    min-height: 100px;
    resize: vertical;
    font-size: 14px;
    color: #3b3b3b;
    font-weight: bold;
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.countdown-setting .form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.countdown-setting .form-group textarea::placeholder {
    color: #999;
}

.countdown-setting .save-btn {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.countdown-setting .save-btn:hover {
    background: linear-gradient(135deg, #1557b0 0%, #0a367d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

.countdown-setting .save-btn:active {
    transform: translateY(0);
}

.countdown-setting .time-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.countdown-setting .time-input-group input[type="number"] {
    width: 80px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.countdown-setting .time-input-group input[type="number"]:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.countdown-setting .time-separator {
    font-size: 24px;
    font-weight: 600;
    color: #1a73e8;
}

.countdown-setting #countdown-status {
    display: inline-block;
    padding: 10px 20px;
    background: #e0bad8;
    border-radius: 20px;
    font-size: 25px;
    color: #666;
    font-weight: 700;
}

.countdown-setting #rolling-text-status {
    padding: 12px 16px;
    background: #e8f5e9;
    border-radius: 8px;
    color: #2e7d32;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid #4caf50;
}

/* 卡片编号开关 */
.card-number-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #d3d3d3;
    padding: 10px 14px;
    border-radius: 6px;
}

.card-number-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.card-number-toggle span {
    font-size: 13px;
    color: #333;
    font-weight: bold;
}

/* ==============================================
   全局样式 - 确保生肖字体100%加粗！
   ============================================== */
.zodiac-display {
    font-weight: bold !important;
    color: #4f4f4f !important;
}

.number-item .number-box.red-wave .zodiac-display,
.number-item .number-box.blue-wave .zodiac-display,
.number-item .number-box.green-wave .zodiac-display,
.number-box.red-wave .zodiac-display,
.number-box.blue-wave .zodiac-display,
.number-box.green-wave .zodiac-display,
.number-box.default-wave .zodiac-display {
    font-weight: bold !important;
    color: #4f4f4f !important;
}

/* ==============================================
   网址区域和复制按钮样式
   ============================================== */
.latest-urls-section {
    margin-bottom: 0.5rem;
}

.latest-urls-container {
    /* padding: 0 1rem; */
}

.site-title-container {
    display: flex;
    display: none;
    flex-direction: column;
    /* gap: 10px; */
}

.url-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    padding: 1px 3px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.url-item h2 {
    color: white;
    /* font-size: 1rem; */
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.copy-btn {
    /* background-color: rgba(255, 255, 255, 0.2); */
    /* background-color: #99972a; */
    background-color: #4b4b4b;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 10px;
    /* border-radius: 4px; */
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    margin-left: 3px;
}

.copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background-color: #4caf50;
    border-color: #4caf50;
}

/* ==============================================
   Toast提示样式
   ============================================== */
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* ==============================================
   前端导航栏样式（仅限首页使用，不影响后台）
   ============================================== */
.latest-urls-section .nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    border: 2px solid rgba(102, 126, 234, 0.3);
    /* border-radius: 12px; */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 252, 0.95) 100%);
    background: linear-gradient(177deg, rgb(35 35 35 / 95%) 0%, rgb(30 43 97 / 95%) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.latest-urls-section .nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    min-width: 100px;
}

.latest-urls-section .nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.latest-urls-section .nav-btn:active {
    transform: translateY(-1px);
}

/* 响应式导航栏 */
@media (max-width: 768px) {
    .latest-urls-section .nav-container {
        padding: 1.2rem 1rem !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }

    .latest-urls-section .nav-btn {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.85rem !important;
        flex: 1 1 30% !important;
        max-width: 30% !important;
        margin-bottom: 0.8rem !important;
        margin-right: 0.5rem !important;
    }

    .latest-urls-section .nav-btn:nth-child(3n) {
        margin-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .latest-urls-section .nav-container {
        padding: 1rem 0.8rem !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }

    .latest-urls-section .nav-btn {
        padding: 0.55rem 0.7rem !important;
        font-size: 0.8rem !important;
        flex: 1 1 45% !important;
        max-width: 45% !important;
        margin-bottom: 0.7rem !important;
        margin-right: 0.4rem !important;
    }

    .latest-urls-section .nav-btn:nth-child(2n) {
        margin-right: 0 !important;
    }
}

/* ==============================================
   幸运码抽奖显示样式（index.html）
   ============================================== */
.lottery-section {
    margin-top: 1rem;
    padding: 1.8rem 1.5rem;
    padding-top: 15px;
    /* background: linear-gradient(160deg, #fff8f0 0%, #fef3e2 30%, #fce7d6 60%, #fef9f3 100%); */
    /* background: linear-gradient(160deg, #625555 0%, #6e4110 30%, #0d0c0b 60%, #484747 100%); */
    /* background: linear-gradient(129deg, #2f2d2d 0%, #202f45 30%, #340e54 60%, #484747 100%); */

    /* background: linear-gradient(346deg, #3798ae 0%, #2db0b2 30%, #1129a7 60%, #5720ae 100%); */
    /*             
            background: linear-gradient(168deg, #0a0909 0%, #367d90 100%); */
    /* background: linear-gradient(168deg, #132ab2 0%, #8410b4 100%); */
    /* background: linear-gradient(168deg, #1354b2 0%, #8410b440 100%); */
    /* background: linear-gradient(346deg, #3798ae 0%, #5598a3 30%, #1129a7 60%); */
  
    background: linear-gradient(168deg, #132ab2 0%, #10b448 100%);
    background: linear-gradient(168deg, #134fb2 0%, #1d9f59 100%);
      background: linear-gradient(346deg, #00a4cf 0%, #504b86 30%, #c42020);

    border-radius: 11px;

    /* box-shadow: 
        0 8px 32px rgba(255, 180, 100, 0.25),
        0 0 0 1px rgba(255, 150, 50, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8); */
    border: 1px solid rgba(255, 180, 120, 0.3);
    position: relative;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.lottery-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff8c42, #ffd700, #ff8c42, transparent);
    border-radius: 2px;
}

.lottery-section h3 {
    text-align: center;
    margin-bottom: 1.2rem;
    font-size: 3.4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #ff6b35, #f7c59f, #ff6b35);
    background: linear-gradient(1deg, #000000, #ebebeb, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    display: inline-block;
    width: 100%;
}

.lottery-section h3 .lottery-icon {
    -webkit-text-fill-color: initial;
    background: none;
    background-clip: text;
}

.lottery-section h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    margin: 0.5rem auto 0;
    background: linear-gradient(90deg, transparent, #ff8c42, transparent);
    border-radius: 2px;
}

.lottery-section h3 .lottery-subtitle {
    display: block;
    font-size: 1.4rem;
    font-weight: 400;
    -webkit-text-fill-color: #aaa;
    background: none;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* 幸运码规则说明按钮 */
.lottery-rules-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    padding: 4px 12px;
    font-size: 13px;
    color: #fff;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.lottery-rules-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

/* 幸运码规则说明面板 */
.lottery-rules-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.lottery-rules-overlay.active {
    display: flex;
}
.lottery-rules-panel {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lottery-rules-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.lottery-rules-header h3 {
    margin: 0;
    font-size: 18px;
    color: #ff8c42;
}
.lottery-rules-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.lottery-rules-close:hover {
    color: #fff;
}
.lottery-rules-body {
    padding: 16px 20px;
    color: #ccc;
    font-size: 14px;
    line-height: 1.8;
}
.lottery-rules-body p {
    margin: 8px 0;
}
.lottery-box-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto 1.5rem;
    margin-bottom: 0px;
    padding: 0.5rem;
}

.lottery-box-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 16px;
    margin-bottom: 16px;
}

.lottery-num-box,
.lottery-empty-box {
    width: 56px;
    height: 56px;
    border: 2.5px solid;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.lottery-num-box {
    border-color: #ffcd94;
    background: linear-gradient(160deg, #fff9f0, #ffeedd);
    box-shadow:
        0 4px 16px rgba(255, 180, 100, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        0 0 0 1px rgba(255, 150, 80, 0.2);
    margin-bottom: 12px;
}

.lottery-num-box::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 200, 150, 0.6), transparent);
    border-radius: 1px;
}

.lottery-empty-box {
    border-color: #ffc88a;
    background: linear-gradient(160deg, #fff7ed, #ffede0);
    box-shadow:
        0 3px 12px rgba(255, 170, 90, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.lottery-empty-box h4 {
    font-size: 11px;
    font-weight: 700;
    color: #8b7355;
    margin: 0;
    letter-spacing: 0.05em;
}

.lottery-num-box h4 {
    font-size: 24px;
    font-weight: 800;
    color: #5a4a3a;
    margin: 0;
    text-shadow: 0 2px 4px rgba(255, 200, 150, 0.4);
    font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
    letter-spacing: 0.02em;
}

.lottery-num-box.scroll-active {
    transform: scale(1.15);
    border-color: #ff6b35 !important;
    background: linear-gradient(160deg, #fff5e6, #ffe0c0) !important;
    box-shadow:
        0 0 35px rgba(255, 107, 53, 0.4),
        0 0 0 2px rgba(255, 107, 53, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.lottery-num-box.scroll-active h4 {
    color: #ff6b35;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
}

.lottery-empty-box.scroll-active {
    transform: scale(1.15);
    border-color: #00b4d8 !important;
    background: linear-gradient(160deg, #e6f7ff, #b3e8f5) !important;
    box-shadow:
        0 0 35px rgba(0, 180, 216, 0.4),
        0 0 0 2px rgba(0, 180, 216, 0.3);
}

.lottery-num-box.win {
    transform: scale(1.25);
    border-color: #ffd700 !important;
    background: linear-gradient(160deg, #fff5e6, #ffe0c0) !important;
    background: linear-gradient(355deg, #800f0f 0%, #a72525 100%);
    /* background:linear-gradient(160deg, #ffe200, #f4ed08) !important; */
    box-shadow:
        0 0 45px rgba(255, 215, 0, 0.5),
        0 0 0 3px rgba(255, 100, 50, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
    /* animation: lotteryPulse 1.5s infinite; */
}

.lottery-num-box.win h4 {
    color: #e65c00;
    text-shadow:
        0 0 20px rgba(255, 100, 50, 0.7),
        0 0 40px rgba(255, 215, 0, 0.5);
}

.lottery-num-box.lost {
    background: linear-gradient(160deg, #f0f0f0, #e0e0e0) !important;
    border-color: #d0d0d0 !important;
    opacity: 0.7;
}

.lottery-num-box.lost h4 {
    color: #999999;
}

.lottery-empty-box.lost {
    background: linear-gradient(160deg, #f0f0f0, #e5e5e5) !important;
    border-color: #cccccc !important;
    opacity: 0.7;
}

.lottery-empty-box.lost h4 {
    color: #aaaaaa;
}

.lottery-empty-box.no-win-active {
    transform: scale(1.25);
    opacity: 1 !important;
    border-color: #00b4d8 !important;
    background: linear-gradient(160deg, #e6f7ff, #b3e8f5) !important;
    box-shadow:
        0 0 45px rgba(0, 180, 216, 0.5),
        0 0 0 3px rgba(0, 180, 216, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
    animation: lotteryBluePulse 1.5s infinite;
    color: #023e8a;
}

@keyframes lotteryPulse {

    0%,
    100% {
        box-shadow:
            0 0 40px rgba(255, 100, 50, 0.5),
            0 0 0 3px rgba(255, 215, 0, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.9);
    }

    50% {
        box-shadow:
            0 0 60px rgba(255, 100, 50, 0.7),
            0 0 0 3px rgba(255, 215, 0, 0.5),
            inset 0 2px 4px rgba(255, 255, 255, 0.9);
    }
}

@keyframes lotteryBluePulse {

    0%,
    100% {
        box-shadow:
            0 0 40px rgba(0, 180, 216, 0.5),
            0 0 0 3px rgba(0, 180, 216, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.9);
    }

    50% {
        box-shadow:
            0 0 60px rgba(0, 180, 216, 0.7),
            0 0 0 3px rgba(0, 180, 216, 0.5),
            inset 0 2px 4px rgba(255, 255, 255, 0.9);
    }
}

.lottery-tip {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    min-height: 22px;
    /* margin-top: 1rem; */
    letter-spacing: 0.04em;
    text-shadow: 0 0 12px rgba(255, 100, 50, 0.3);
    transition: all 0.3s ease;
    white-space: pre-line;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .lottery-section {
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 0;
    }

    .lottery-section h3 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .lottery-num-box {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border-width: 1.5px;
        transition: all 0.2s ease !important;
    }

    .lottery-empty-box {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        border-width: 1.5px;
        transition: all 0.2s ease !important;
    }

    .lottery-num-box h4 {
        font-size: 26px;
    }

    .lottery-empty-box h4 {
        font-size: 14px;
    }

    .lottery-box-wrap {
        max-width: 340px;
        padding: 0.5rem;
    }

    .lottery-box-group {
        margin-right: 18px;
        margin-bottom: 18px;
    }

    .lottery-num-box {
        margin-bottom: 15px;
    }

    /* 移动端动画样式 */
    .lottery-num-box.scroll-active {
        transform: scale(1.15) !important;
        border-color: #ff6b35 !important;
        background: linear-gradient(160deg, #fff5e6, #ffe0c0) !important;
        box-shadow:
            0 0 24px rgba(255, 107, 53, 0.4),
            0 0 0 2px rgba(255, 107, 53, 0.3);
    }

    .lottery-num-box.scroll-active h4 {
        color: #ff6b35 !important;
        text-shadow: 0 0 12px rgba(255, 107, 53, 0.6);
    }

    .lottery-empty-box.scroll-active {
        transform: scale(1.15) !important;
        border-color: #00b4d8 !important;
        background: linear-gradient(160deg, #e6f7ff, #b3e8f5) !important;
        box-shadow:
            0 0 24px rgba(0, 180, 216, 0.4),
            0 0 0 2px rgba(0, 180, 216, 0.3);
    }

    .lottery-num-box.win {
        transform: scale(1.2) !important;
        border-color: #ffd700 !important;
        background: linear-gradient(160deg, #fff5e6, #ffe0c0) !important;
        box-shadow:
            0 0 30px rgba(255, 215, 0, 0.5),
            0 0 0 2px rgba(255, 100, 50, 0.4);
        animation: lotteryPulse 1.5s infinite;
    }

    .lottery-num-box.win h4 {
        color: #e65c00 !important;
        text-shadow:
            0 0 16px rgba(255, 100, 50, 0.7),
            0 0 32px rgba(255, 215, 0, 0.5);
    }

    .lottery-num-box.lost {
        opacity: 0.5 !important;
        background: linear-gradient(160deg, #f0f0f0, #e0e0e0) !important;
    }

    .lottery-empty-box.no-win-active {
        transform: scale(1.2) !important;
        opacity: 1 !important;
        border-color: #00b4d8 !important;
        background: linear-gradient(160deg, #e6f7ff, #b3e8f5) !important;
        box-shadow:
            0 0 30px rgba(0, 180, 216, 0.5),
            0 0 0 2px rgba(0, 180, 216, 0.4);
        animation: lotteryBluePulse 1.5s infinite;
    }
}

/* 超小屏幕（320px-380px）两行排列 */
@media (max-width: 380px) {
    .lottery-box-wrap {
        max-width: 300px;
    }

    .lottery-num-box {
        width: 36px;
        height: 36px;
    }

    .lottery-empty-box {
        width: 38px;
        height: 38px;
    }

    .lottery-num-box h4 {
        font-size: 18px;
    }

    .lottery-empty-box h4 {
        font-size: 12px;
    }

    .lottery-box-group {
        margin-right: 8px;
        margin-bottom: 10px;
    }

    .lottery-num-box {
        margin-bottom: 8px;
    }
}

/* ==============================================
   手机端滚动性能优化 - 禁用耗性能的动画
   ============================================== */
@media (max-width: 768px) {

    /* 禁用抽奖动画 */
    .lottery-num-box.lotteryPulse,
    .lottery-num-box.lotteryBluePulse,
    .lottery-empty-box.lotteryPulse,
    .lottery-empty-box.lotteryBluePulse {
        animation: none !important;
    }

    /* 优化滚动性能 */
    #numbers-section,
    .countdown-container,
    .lottery-section {
        will-change: auto;
    }
}

/* ==============================================
   Admin Panel Styles (from system-control-panel.html)
   Scoped under body.admin-page to avoid conflicts
   ============================================== */
/* 管理员登录页面样式 */
body.admin-page .login-container {
    max-width: 400px;
    margin: 5rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.admin-page .login-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

body.admin-page .login-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* 增加表单组件之间的间距 */
}

body.admin-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* 标签和输入框之间的间距 */
}

body.admin-page .form-group label {
    font-weight: bold;
    color: #333;
    font-size: 1rem;
}

body.admin-page .login-form input[type="text"],
body.admin-page .login-form input[type="password"] {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    height: 50px;
    /* 设置输入框高度 */
    box-sizing: border-box;
}

body.admin-page .login-form input[type="text"]:focus,
body.admin-page .login-form input[type="password"]:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

body.admin-page .login-btn {
    padding: 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;

    height: 50px;
    /* 与输入框保持一致的高度 */
}

body.admin-page .login-btn:hover {
    background-color: #45a049;
}

body.admin-page .login-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}

body.admin-page .login-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 管理员控制面板样式 */
body.admin-page .admin-panel {
    border: 1px solid #0000003b;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 0.3rem;
    transition: max-width 0.3s ease;
}

/* 操作日志页面更宽 */
body.admin-page .admin-panel--wide {
    max-width: 1600px;
}

body.admin-page .admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.7rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.admin-page .admin-header h1 {
    font-size: 1.8rem;
    color: #333;
}

body.admin-page .logout-btn {
    padding: 0.5rem 1rem;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body.admin-page .logout-btn:hover {
    background-color: #da190b;
}

body.admin-page .content-list {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

body.admin-page .content-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 3px solid #111111;
}

body.admin-page .content-item:last-child {
    border-bottom: none;
}

body.admin-page .content-item-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: #333;
    color: #fff;
    font-weight: bold;
    font-size: 0.95rem;
    border-radius: 6px;
    padding: 0 8px;
    margin-bottom: 0.8rem;
    flex-shrink: 0;
}

body.admin-page .content-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 0;
    margin-bottom: 1rem;
}

body.admin-page .content-item-image-full {
    height: auto !important;
    max-height: 80vh;
    object-fit: contain !important;
}

body.admin-page .content-info {
    width: 100%;
    margin-bottom: 1rem;
}

body.admin-page .content-info .content-attribute {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    font-weight: normal;
}

body.admin-page .content-info h3 {
    margin-bottom: 0.8rem;
    /* color: #333; */
    color: #ffffff;
    font-size: 1.2rem;
}

body.admin-page .content-info p {
    color: #666;
    /* margin-bottom: 1.5rem; */
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 电脑端优化 */



@media (min-width: 769px) {
    body.admin-page .content-item {
        padding: 1.5rem;
    }

    body.admin-page .content-item img {
        height: 160px;
    }

    body.admin-page .content-item-image-full {
        height: auto !important;
        max-height: 80vh;
        object-fit: contain !important;
    }

    body.admin-page .content-info h3 {
        font-size: 1.4rem;
    }

    body.admin-page .content-info p {
        font-size: 1rem;
    }

    body.admin-page .sort-btn {
        min-width: 100px;
        padding: 1rem 0.8rem;
        font-size: 1rem;
    }

    body.admin-page .delete-btn {
        min-width: 100px;
        padding: 1rem 0.8rem;
        font-size: 1rem;
    }
}

body.admin-page .delete-btn {
    flex: 1;
    min-width: 80px;
    padding: 0.5rem 1rem;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 0;
    margin-bottom: 0.5rem;
}

body.admin-page .delete-btn:hover {
    background-color: #da190b;
}

/* 排序按钮样式 */
body.admin-page .sort-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 1rem;
    margin-left: 1rem;
    width: 100%;
}

body.admin-page .top-btn {
    background-color: #4CAF50;
    color: white;
}

body.admin-page .top-btn:hover {
    background-color: #45a049;
}

body.admin-page .up-btn {
    background-color: #2196F3;
    color: white;
}

body.admin-page .up-btn:hover {
    background-color: #0b7dda;
}

body.admin-page .down-btn {
    background-color: #ff9800;
    color: white;
}

body.admin-page .down-btn:hover {
    background-color: #e68a00;
}

body.admin-page .bottom-btn {
    background-color: #f44336;
    color: white;
}

body.admin-page .bottom-btn:hover {
    background-color: #da190b;
}

/* 数字输入区域样式 */
body.admin-page #numbers-input-section {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.admin-page #numbers-input-section h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

body.admin-page .numbers-input-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #4CAF50 #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.8rem;
}

/* 自定义滚动条样式 */
body.admin-page .numbers-input-container::-webkit-scrollbar {
    height: 6px;
}

body.admin-page .numbers-input-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

body.admin-page .numbers-input-container::-webkit-scrollbar-thumb {
    background-color: #4CAF50;
    border-radius: 3px;
}

body.admin-page .input-with-btn {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1 1 auto;
    min-width: 70px;
    width: calc(100% / 7 - 0.25rem);
    /* 7个元素，减去间隙 */
    align-items: center;
}

body.admin-page .countdown-timer {
    font-size: 1rem;
    font-weight: bold;
    color: #ff4444;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

body.admin-page .countdown-timer.active {
    animation: countdown-pulse 1s ease-in-out infinite;
}

body.admin-page .countdown-timer.urgent {
    color: #ff0000;
    font-size: 1rem;
}

@keyframes countdown-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

body.admin-page .multiplier-display {
    font-size: 0.9rem;
    font-weight: bold;
    color: #ff2a6d;
    min-height: 1.8rem;
    min-width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0.2rem 0.5rem;
}

body.admin-page .multiplier-display:not(:empty) {
    color: #fff;
    background: linear-gradient(135deg, #fc12de 0%, #0dc9d1 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.admin-page .number-input {
    padding: 0.6rem 0.3rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 3.5rem;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
}

body.admin-page .number-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

body.admin-page .confirm-btn {
    padding: 0.4rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 4rem;
    min-width: 4rem;
}

body.admin-page .confirm-btn:hover {
    background-color: #45a049;
}

/* 响应式设计 - 手机端输入框调整 */

/* 一行显示3个，减去间隙 */
/* 行距等于输入框高度 */

/* 最后一行的输入框不显示底部边框 */

/* 复选框组响应式 - 与7个输入框对齐 */


/* 倍数输入框组响应式 */





/* 确保手机端排序按钮水平排列 */

/* 确保手机端轮播图按钮水平排列 */

/* 调整手机端排序按钮大小 */
@media (max-width: 768px) {
    body.admin-page .numbers-input-container {
        gap: 0.1rem !important;
        padding-bottom: 1rem !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        border-top: 1px solid #ccc !important;
        border-bottom: 1px solid #ccc !important;
        padding-top: 1rem !important;
        overflow-x: visible !important;
    }

    body.admin-page .input-with-btn {
        min-width: 0 !important;
        flex: 0 0 auto !important;
        width: auto !important;
        margin-bottom: 0 !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    body.admin-page .input-with-btn:nth-child(n+7) {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    body.admin-page .lottery-multiplier-item {
        width: calc(14.285% - 0.3rem);
    }

    body.admin-page .number-input {
        padding: 1rem 0.5rem !important;
        font-size: 1.1rem !important;
        border: 1px solid #ccc !important;
        border-radius: 6px !important;
        font-weight: bold !important;
        text-align: center !important;
    }

    body.admin-page .confirm-btn {
        padding: 0.6rem !important;
        font-size: 0.9rem !important;
        border-radius: 6px !important;
        width: 4rem !important;
        min-width: 4rem !important;
    }

    body.admin-page .zodiac-div {
        font-size: 0.9rem !important;
        min-height: 1.3rem !important;
    }

    body.admin-page .sort-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.3rem !important;
        margin-left: 0.5rem !important;
    }

    body.admin-page .carousel-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.3rem !important;
    }

    body.admin-page .sort-btn {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.75rem !important;
        margin-right: 0.2rem !important;
        margin-bottom: 0.2rem !important;
    }
}


/* 行距等于输入框高度 */



@media (max-width: 480px) {
    body.admin-page .numbers-input-container {
        gap: 0.05rem !important;
        padding-bottom: 0.9rem !important;
        flex-wrap: nowrap !important;
        overflow-x: hidden !important;
    }

    body.admin-page .input-with-btn {
        min-width: 0 !important;
        flex: 1 1 0 !important;
        width: auto !important;
        margin-bottom: 0 !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    body.admin-page .number-input {
        padding: 0.3rem 0.1rem !important;
        font-size: 0.8rem !important;
        font-weight: bold !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 2.5rem !important;
    }

    body.admin-page .confirm-btn {
        padding: 0.2rem 0.1rem !important;
        font-size: 0.65rem !important;
        width: 100% !important;
        max-width: 2.5rem !important;
        min-width: 0 !important;
        border-radius: 4px !important;
    }

    body.admin-page .zodiac-div {
        font-size: 0.8rem !important;
        min-height: 1.2rem !important;
    }
}


/* 行距等于输入框高度 */



@media (max-width: 360px) {
    body.admin-page .numbers-input-container {
        gap: 0.05rem !important;
        padding-bottom: 0.8rem !important;
        flex-wrap: nowrap !important;
        overflow-x: hidden !important;
    }

    body.admin-page .input-with-btn {
        min-width: 0 !important;
        flex: 1 1 0 !important;
        width: auto !important;
        margin-bottom: 0 !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    body.admin-page .number-input {
        padding: 0.25rem 0.1rem !important;
        font-size: 0.75rem !important;
        font-weight: bold !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 2.2rem !important;
    }

    body.admin-page .confirm-btn {
        padding: 0.15rem 0.1rem !important;
        font-size: 0.6rem !important;
        width: 100% !important;
        max-width: 2.2rem !important;
        min-width: 0 !important;
        border-radius: 4px !important;
    }

    body.admin-page .zodiac-div {
        font-size: 0.75rem !important;
        min-height: 1.1rem !important;
    }
}

/* 生肖显示区域样式 */
body.admin-page .zodiac-div {
    text-align: center;
    font-size: 0.8rem;
    color: #000;
    min-height: 1.2rem;
}

body.admin-page .zodiac-div.has-zodiac {
    color: #000;
}

body.admin-page #numbers-message {
    margin-top: 1rem;
}

/* 轮播图管理样式 */
body.admin-page #carousel-management-section {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.admin-page .speed-setting {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 6px;
}

body.admin-page .speed-setting label {
    font-weight: bold;
    min-width: 150px;
}

body.admin-page #carousel-speed {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100px;
}

body.admin-page .save-btn {
    padding: 0.5rem 1rem;
    /* background-color: #2196F3; */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body.admin-page .save-btn:hover {
    background-color: #1976D2;
}

body.admin-page .add-carousel-form {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 6px;
}

body.admin-page .add-carousel-form h3 {
    margin-bottom: 1rem;
    color: #333;
}

body.admin-page .add-carousel-form .form-group {
    margin-bottom: 1rem;
}

body.admin-page .add-carousel-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

body.admin-page .add-carousel-form input,
body.admin-page .add-carousel-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

body.admin-page .add-carousel-form textarea {
    height: 80px;
    resize: vertical;
}

body.admin-page .add-btn {
    padding: 0.8rem 1.5rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body.admin-page .add-btn:hover {
    background-color: #45a049;
}

body.admin-page .carousel-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.admin-page .carousel-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #ddd;
}

body.admin-page .carousel-item img {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}

body.admin-page .carousel-info {
    flex: 1;
}

body.admin-page .carousel-info h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

body.admin-page .carousel-info p {
    color: #666;
    margin-bottom: 0.5rem;
}

body.admin-page .carousel-actions {
    display: flex;
    gap: 0.5rem;
}

body.admin-page .sort-btn {
    flex: 1;
    min-width: 80px;
    padding: 0.4rem 0.6rem;
    background-color: #FF9800;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
    white-space: nowrap;
}

body.admin-page .sort-btn:hover {
    background-color: #F57C00;
}

body.admin-page .delete-carousel-btn {
    padding: 0.4rem 0.8rem;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body.admin-page .delete-carousel-btn:hover {
    background-color: #da190b;
}

/* 数据库按钮样式 */
body.admin-page .database-btn-container {
    margin-top: 10px;
    text-align: center;
}

body.admin-page .database-btn {
    background-color: #9c27b0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

body.admin-page .database-btn:hover {
    background-color: #7b1fa2;
}

/* 清空按钮容器样式 */
body.admin-page .clear-numbers-container {
    background: linear-gradient(350deg, #966c96 0%, #0ec1ce 100%);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid #ffebee;
    display: flex;
    justify-content: flex-end;
}

/* 幸运码抽奖样式 */
body.admin-page .lottery-section {
    /* margin-top: 2rem;
            padding: 2rem; */
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.admin-page .lottery-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(100, 200, 255, 0.5);
    font-weight: 600;
}

body.admin-page .lottery-box-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 580px;
    margin: 0 auto 1.5rem;
}

body.admin-page .lottery-box-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 16px;
    margin-bottom: 16px;
}

body.admin-page .lottery-num-box {
    margin-bottom: 8px;
}

body.admin-page .lottery-num-box,
body.admin-page .lottery-empty-box {
    width: 62px;
    height: 62px;
    border: 3px solid;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

body.admin-page .lottery-num-box {
    border-color: #4a5568;
    background: linear-gradient(145deg, #2d3748, #1a202c);
    cursor: pointer;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.admin-page .lottery-empty-box {
    border-color: #4a5568;
    background: linear-gradient(145deg, #2d3748, #1a202c);
    letter-spacing: 0.5px;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.admin-page .lottery-empty-box h4 {
    font-size: 14px;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
}

body.admin-page .lottery-num-box h4 {
    font-size: 28px;
    font-weight: 800;
    color: #e2e8f0;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
}

body.admin-page .lottery-num-box.scroll-active {
    transform: scale(1.1);
    border-color: #f6ad55 !important;
    background: linear-gradient(145deg, #4a3728, #2d2319) !important;
    box-shadow:
        0 0 25px rgba(246, 173, 85, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.admin-page .lottery-num-box.scroll-active h4 {
    color: #f6ad55;
    text-shadow: 0 0 10px rgba(246, 173, 85, 0.8);
}

body.admin-page .lottery-empty-box.scroll-active {
    transform: scale(1.1);
    border-color: #63b3ed !important;
    background: linear-gradient(145deg, #2c4a63, #1a2d3d) !important;
    box-shadow: 0 0 25px rgba(99, 179, 237, 0.6);
}

body.admin-page .lottery-num-box.win {
    transform: scale(1.2);
    border-color: #11ff90 !important;
    background: linear-gradient(145deg, #5c2a2a, #3d1a1a) !important;
    box-shadow:
        0 0 35px rgba(252, 129, 129, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: lotteryPulseAdmin 1.5s infinite;
}

body.admin-page .lottery-num-box.win h4 {
    color: #89ff00;
    text-shadow:
        0 0 15px rgba(252, 129, 129, 0.9), 0 0 30px rgba(252, 129, 129, 0.6);
}

body.admin-page .lottery-empty-box.no-win-active {
    transform: scale(1.2);
    border-color: #63b3ed !important;
    background: linear-gradient(145deg, #1a3d5c, #0f2a40) !important;
    box-shadow:
        0 0 35px rgba(99, 179, 237, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: lotteryBluePulseAdmin 1.5s infinite;
    color: #90cdf4;
}

@keyframes lotteryPulseAdmin {

    0%,
    100% {
        box-shadow:
            0 0 35px rgba(252, 129, 129, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow:
            0 0 55px rgba(252, 129, 129, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes lotteryBluePulseAdmin {

    0%,
    100% {
        box-shadow:
            0 0 35px rgba(99, 179, 237, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow:
            0 0 55px rgba(99, 179, 237, 1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

body.admin-page .lottery-num-box.lost,
body.admin-page .lottery-empty-box.lost {
    border-color: #4a5568 !important;
    background: linear-gradient(145deg, #2d2d3a, #1a1a22) !important;
    opacity: 0.6;
    transform: scale(0.95);
}

body.admin-page .lottery-num-box.lost h4 {
    color: #6b7280 !important;
    text-shadow: none;
}

body.admin-page .lottery-empty-box.lost h4 {
    color: #555 !important;
}

body.admin-page .lottery-check-group {
    display: flex;
    gap: 0.3rem;
    flex-wrap: nowrap;
    padding: 14px;
    /* background: rgba(255, 255, 255, 0.85); */
    background: rgb(182 216 174 / 50%);
    /* border-radius: 12px; */
    /* margin-bottom: 1rem; */
    overflow-x: auto;
}

body.admin-page .lottery-check-item {
    display: flex;
    flex: 1 1 auto;
    min-width: 70px;
    width: calc(100% / 7 - 0.25rem);
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
}

body.admin-page .lottery-check-item-inner {
    display: flex;
    align-items: center;
    gap: 6px;
}

body.admin-page .lottery-check-placeholder {
    visibility: hidden;
}

body.admin-page .lottery-multiplier-group {
    display: flex;
    gap: 0.3rem;
    flex-wrap: nowrap;
    padding: 14px;
    /* background: rgba(255, 255, 255, 0.85); */
    background: rgb(182 216 174 / 50%);
    /* border-radius: 12px; */
    margin-bottom: 1rem;
    overflow-x: auto;
}

body.admin-page .lottery-multiplier-item {
    display: flex;
    flex: 1 1 auto;
    min-width: 70px;
    width: calc(100% / 7 - 0.25rem);
    align-items: center;
    justify-content: center;
    gap: 6px;
}

body.admin-page .lottery-multiplier-placeholder {
    visibility: hidden;
}

body.admin-page .period-setting {
    background: linear-gradient(350deg, #c1c1c1 0%, #333333 100%);
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;

}

body.admin-page .lottery-multiplier-input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    color: #999;
    padding: 0 4px;
    background-color: #f5f5f5;
}

body.admin-page .lottery-multiplier-input.has-value {
    background-color: #cbe21d !important;
    border-color: #a8b800;
    color: #333;
}

body.admin-page .lottery-multiplier-input:not(:disabled) {
    background-color: #fff;
    color: #333;
}

body.admin-page .lottery-multiplier-input:focus {
    border-color: #ff2a6d;
    outline: none;
    box-shadow: 0 0 4px rgba(255, 42, 109, 0.3);
}

body.admin-page .lottery-limit-input {
    background-color: #cf3709 !important;
    border-color: #3d3c3b;
    color: #fff !important;
}

body.admin-page .lottery-multiplier-unit {
    font-size: 12px;
    color: #666;
}

body.admin-page .lottery-check-item:hover {
    color: #ff2a6d;
}

body.admin-page .lottery-check-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff2a6d;
    border-radius: 4px;
}

/* 手机端：位置与倍数不换行，全部可见 */
@media (max-width: 768px) {
    body.admin-page .lottery-check-group {
        gap: 0;
        padding: 6px 2px;
        flex-wrap: nowrap !important;
        overflow-x: visible !important;
        justify-content: space-between;
    }
    body.admin-page .lottery-check-item {
        min-width: 0;
        flex: 0 0 auto;
        gap: 2px;
        font-size: 11px;
    }
    body.admin-page .lottery-check-item input[type="checkbox"] {
        width: 13px;
        height: 13px;
    }
    body.admin-page .lottery-multiplier-group {
        gap: 0;
        padding: 6px 2px;
        flex-wrap: nowrap !important;
        overflow-x: visible !important;
        justify-content: space-between;
    }
    body.admin-page .lottery-multiplier-item {
        min-width: 0;
        flex: 0 0 auto;
        gap: 2px;
    }
    body.admin-page .lottery-multiplier-input {
        width: 32px;
        height: 28px;
        font-size: 12px;
        padding: 0 1px;
    }
    body.admin-page .lottery-multiplier-unit {
        font-size: 10px;
    }

    body.admin-page .lottery-num-box,
    body.admin-page .lottery-empty-box {
        width: 32px;
        height: 32px;
    }
}

body.admin-page .lottery-tip {
    color: #07e810;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    min-height: 24px;
    margin-bottom: 1rem;
    white-space: pre-line;
}

body.admin-page .lottery-action-section {
    margin-top: 1rem;
    text-align: center;
}

body.admin-page .lottery-btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

body.admin-page .lottery-duration-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

body.admin-page .lottery-duration-label {
    color: #666;
    font-size: 14px;
}

body.admin-page .lottery-duration-input {
    width: 60px;
    padding: 8px 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
}

body.admin-page .lottery-duration-input:focus {
    border-color: #ff2a6d;
}

body.admin-page .lottery-duration-unit {
    color: #666;
    font-size: 14px;
}

body.admin-page .lottery-btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 0;
    font-size: 17px;
    font-weight: 600;
    background: linear-gradient(90deg, #ff2a6d 0%, #ff5d94 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 4px 15px rgba(255, 42, 109, 0.3);
    letter-spacing: 0.5px;
    display: block;
    margin: 0 auto;
}

body.admin-page .lottery-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 42, 109, 0.4);
}

body.admin-page .lottery-btn:disabled {
    background: linear-gradient(90deg, #f87171 0%, #fca5a5 100%);
    cursor: not-allowed;
}

body.admin-page #clear-description-btn:hover {
    background-color: #8a1209 !important;
}

/* ==============================================
   Static Inline Style Replacements (Phase 2)
   ============================================== */

/* Hidden by default (used by JS to toggle) */
.section-hidden {
    display: none;
}

.admin-panel-hidden {
    display: none;
}

/* Countdown / Rolling text section */
.countdown-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rolling-text-setting {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.rolling-text-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 80px;
    resize: vertical;
}
#lottery-rules-input {
    min-height: 200px;
    height: 200px;
}

.speed-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.speed-slider {
    flex: 1;
    height: 8px;
    cursor: pointer;
}

.speed-value-display {
    font-weight: 600;
    color: #1a73e8;
    min-width: 40px;
    text-align: center;
}

.speed-hint {
    color: #666;
    font-size: 14px;
}

.checkbox-label-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.large-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.checkbox-label-text {
    font-size: 16px;
}

.save-btn-blue {
    background-color: #2196F3;
}

/* .save-btn-orange { background-color: #ff9800; } */
.save-btn-orange:hover {
    background-color: #e68900;
}

.save-btn-green {
    background: linear-gradient(135deg, #43a047, #66bb6a);
    color: #fff;
}

.save-btn-green:hover {
    background: linear-gradient(135deg, #2e7d32, #43a047);
}

.rolling-text-feedback {
    margin-top: 10px;
    color: #666;
}

/* Clear numbers button */
.clear-numbers-btn {
    background-color: #f44336;
}

#clear-numbers-btn {
    background-color: #c71717;
}

/* Lottery reset button */
.lottery-reset-btn {
    background: linear-gradient(90deg, #9c27b0 0%, #ba68c8 100%);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

/* Upload section */
.image-preview-container {
    margin-top: 10px;
    max-width: 300px;
}

.preview-thumbnail {
    max-width: 100%;
    max-height: 200px;
}

.upload-image-info {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #aaa;
    display: flex;
    gap: 24px;
    white-space: nowrap;
}

.upload-image-info span {
    display: inline-block;
}

.quality-slider-container {
    margin-top: 10px;
}

.quality-slider-container label {
    font-size: 0.9rem;
    color: #ccc;
}

.quality-slider-container input[type="range"] {
    width: 100%;
    margin-top: 4px;
    accent-color: #4CAF50;
}

.size-limit-container {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.size-limit-container label {
    font-size: 0.85rem;
    color: #ccc;
    white-space: nowrap;
}

.size-limit-container span {
    white-space: nowrap;
}

.size-limit-container input[type="number"] {
    width: 70px;
    height: 28px;
    text-align: center;
    border: 1px solid #555;
    border-radius: 4px;
    background: #2a2a2a;
    color: #fff;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.size-limit-container input[type="number"]:focus {
    border-color: #4CAF50;
    outline: none;
}

/* 批量文件清单 */
.batch-file-list {
    margin-top: 12px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #1e1e1e;
    max-height: 260px;
    overflow-y: auto;
}

.batch-file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #2a2a2a;
    border-bottom: 1px solid #444;
    position: sticky;
    top: 0;
    z-index: 1;
}

.batch-file-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: #ddd;
}

.batch-file-summary {
    font-size: 0.8rem;
    color: #999;
}

.batch-file-items {
    padding: 6px 0;
}

.batch-file-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-bottom: 1px solid #333;
    font-size: 0.82rem;
    gap: 8px;
    transition: background 0.2s;
}

.batch-file-item:last-child {
    border-bottom: none;
}

.batch-file-item:hover {
    background: #252525;
}

.batch-file-status {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.batch-file-status.pending {
    color: #888;
}

.batch-file-status.compress {
    color: #2196F3;
}

.batch-file-status.success {
    color: #4CAF50;
}

.batch-file-status.fail {
    color: #f44336;
}

.batch-file-name {
    flex: 1;
    color: #ccc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.batch-file-sizes {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
    font-size: 0.78rem;
    color: #888;
}

.batch-file-sizes .arrow {
    color: #666;
    margin: 0 2px;
}

.batch-file-sizes .original {
    color: #aaa;
}

.batch-file-sizes .compressed {
    color: #4CAF50;
}

.batch-file-sizes .saved {
    color: #FF9800;
    font-size: 0.75rem;
    margin-left: 4px;
}

.batch-file-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #555;
    border-top-color: #2196F3;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    flex-shrink: 0;
}

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

.description-warning {
    color: #f44336;
    font-weight: bold;
    font-size: 1.9rem;
}

/* Upload button row */
.upload-btn-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.upload-btn-group {
    display: flex;
    gap: 8px;
    flex: 1;
}

.upload-btn-wide {
    flex: 4;
}

.clear-desc-btn {
    flex: 1;
    padding: 0.5rem;
    background-color: #f44336;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.clear-desc-btn:hover {
    background-color: #8a1209;
}

.color-picker-spacer {
    width: 40px;
    flex-shrink: 0;
}

/* Sort order */
.sort-order-container {
    margin-top: 10px;
}

.sort-order-label {
    font-size: 15px;
}

.sort-order-input {
    width: 80px;
    height: 40px;
    font-size: 18px;
    text-align: center;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sort-order-hint {
    font-size: 13px;
    color: #666;
    margin-left: 8px;
}

/* Content count */
#content-count {
    font-weight: bold;
    background-color: #ffde00;
    font-size: 3.1rem;
}

.content-sub-counts {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #aaa;
}

.content-sub-counts span {
    white-space: nowrap;
}

/* Clear all button */


/* Position input (JS template literals) */
.position-input-style {
    width: 50px;
    height: 30px;
    text-align: center;
    font-size: 14px;
}

.position-confirm-btn-style {
    padding: 4px 10px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.table-action-cell {
    text-align: center;
}

.table-input-wide {
    width: 200px;
}

.table-wrapper {
    position: relative;
    margin-bottom: 10px;
}

/* Action buttons in tables */
.edit-row-btn {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    margin-right: 3px;
}

.delete-row-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
}

.save-row-btn,
.save-edit-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    margin-right: 3px;
}

.cancel-row-btn,
.cancel-edit-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
}

.add-row-to-existing-btn {
    position: absolute;
    top: -31px;
    right: 0;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

/* Content item title bars */
.content-item-title-bar {
    background-color: #08165b;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.publish-title-bar {
    background-color: #66b76d;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.content-attribute-display {
    font-size: 18px !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
}

/* Token expiry countdown badge */
#token-expiry-countdown {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 1000;
    border: 1px solid #dee2e6;
}

#token-expiry-countdown.warning {
    background: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

/* ============================================================
   子账户管理样式
   ============================================================ */
.sub-accounts-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.sub-accounts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sub-accounts-header h2 {
    margin: 0;
    font-size: 1.4em;
}

.sub-accounts-list {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sub-account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.sub-account-item:last-child {
    border-bottom: none;
}

.sub-account-item:hover {
    background: #f8f9fa;
}

.sub-account-info {
    flex: 1;
}

.sub-account-info .username {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.sub-account-info .meta {
    font-size: 0.85em;
    color: #888;
    margin-top: 4px;
}

.sub-account-info .meta span {
    margin-right: 12px;
}

.sub-account-info .meta .status-active {
    color: #28a745;
    font-weight: 600;
}

.sub-account-info .meta .status-locked {
    color: #dc3545;
    font-weight: 600;
}

.sub-account-info .meta .status-expired {
    color: #ff6b6b;
    font-weight: 600;
}

.sub-account-actions {
    display: flex;
    gap: 8px;
}

.sub-account-actions button {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s;
}

.sub-account-actions .btn-edit {
    background: #e7f3ff;
    color: #1a73e8;
    border-color: #1a73e8;
}

.sub-account-actions .btn-edit:hover {
    background: #1a73e8;
    color: #fff;
}

.sub-account-actions .btn-delete {
    background: #fff0f0;
    color: #dc3545;
    border-color: #dc3545;
}

.sub-account-actions .btn-delete:hover {
    background: #dc3545;
    color: #fff;
}

.sub-account-actions .btn-toggle {
    background: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

.sub-account-actions .btn-toggle:hover {
    background: #ffc107;
    color: #fff;
}

/* 弹窗样式 */
.sub-account-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.sub-account-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.sub-account-modal.show {
    display: flex;
}

.sub-account-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.sub-account-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    border-radius: 12px 12px 0 0;
}

.sub-account-modal-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.sub-account-modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.sub-account-modal-close:hover {
    color: #333;
}

.sub-account-modal-body {
    padding: 24px;
}

.sub-account-modal-body .form-group {
    margin-bottom: 16px;
}

.sub-account-modal-body .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
}

.sub-account-modal-body .form-group input,
.sub-account-modal-body .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95em;
    transition: border-color 0.2s;
}

.sub-account-modal-body .form-group input:focus,
.sub-account-modal-body .form-group select:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.sub-account-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    position: sticky;
    bottom: 0;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

/* 权限配置样式 */
.permissions-section {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.permissions-section h4 {
    margin: 0 0 12px 0;
    font-size: 1.05em;
    color: #333;
}

.permission-page-group {
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.permission-page-header {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #f8f9fa;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.permission-page-header:hover {
    background: #eef1f5;
}

.permission-page-header .page-toggle {
    margin-right: 10px;
    transform: scale(1.2);
    cursor: pointer;
}

.permission-page-header .page-label {
    flex: 1;
    font-weight: 600;
    color: #333;
}

.permission-page-header .expand-icon {
    font-size: 0.8em;
    color: #999;
    transition: transform 0.2s;
}

.permission-page-header.expanded .expand-icon {
    transform: rotate(90deg);
}

.permission-page-operations {
    display: none;
    padding: 10px 14px;
    background: #fff;
    border-top: 1px solid #eee;
}

.permission-page-operations.show {
    display: block;
}

.permission-op-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
    font-size: 0.9em;
}

.permission-op-item input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
    cursor: pointer;
}

.permission-op-item label {
    cursor: pointer;
    color: #555;
}

/* 按钮禁用状态 */
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
    background: #ccc !important;
    border-color: #ccc !important;
    color: #888 !important;
}

/* 子账户导航高亮 */
#sub-accounts-nav {
    position: relative;
}

/* 无权限时的提示 */
.no-permission-hint {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 1.1em;
}

/* 密码输入框预览按钮 */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 40px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 4px 8px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.password-toggle-btn:hover {
    opacity: 1;
}

/* ==================== 操作日志页面样式 ==================== */

.audit-log-container {
    padding: 0 1rem;
}

.audit-log-header {
    margin-bottom: 1rem;
}

.audit-log-header h2 {
    font-size: 1.5rem;
    color: #333;
}

/* 顶部工具栏 */
.audit-log-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 6px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.audit-log-toolbar-left {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.audit-log-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.audit-filter-select {
    padding: 0.5rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
    min-width: 120px;
}

.audit-date-input {
    padding: 0.5rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 140px;
}

.audit-date-sep {
    color: #666;
    font-size: 0.9rem;
}

.save-btn-green {
    background-color: #28a745 !important;
    color: white !important;
}

.save-btn-green:hover {
    background-color: #218838 !important;
}

/* 日志表格 */
.audit-log-table-wrap {
    overflow-x: auto;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.audit-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    table-layout: fixed;
}

.audit-log-table th {
    background: #f2f2f2;
    padding: 10px 8px;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
    white-space: nowrap;
}

.audit-log-table td {
    padding: 8px;
    /* border-bottom: 1px solid #eee; */
    border-bottom: 1px solid #d1d1d1;
    text-align: center;
    vertical-align: middle;
    /* font-weight: bold; */
}

.audit-log-table .detail-cell {
    text-align: left;
    font-size: 0.82rem;
    max-width: 400px;
    word-break: break-all;
}

.audit-log-table .login-row {
    background-color: #e8f5e9;
}

.audit-log-table .logout-row {
    background-color: #f5f5f5;
}

.audit-log-table .group-header {
    background-color: #e3f2fd !important;
    font-weight: bold;
    font-size: 0.9rem;
}

.audit-log-table .group-header td {
    padding: 10px 8px;
    border-top: 2px solid #90caf9;
    border-bottom: 2px solid #90caf9;
    color: #1565c0;
}

/* 状态标签 */
.audit-log-table .status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.audit-log-table .status-online {
    background: #4caf50;
    color: white;
}

.audit-log-table .status-offline {
    background: #9e9e9e;
    color: white;
}

.audit-log-table .status-timeout {
    background: #ff9800;
    color: white;
}

.audit-log-table .status-unknown {
    background: #e0e0e0;
    color: #666;
}

/* IP列样式 */
.audit-log-table .ip-cell {
    font-weight: bold;
}

/* 编辑列样式 */
.audit-log-table .edit-cell {
    text-align: center;
    padding: 4px;
}

/* 编辑列默认隐藏 */
.audit-log-table th.edit-col,
.audit-log-table td.edit-cell {
    display: none;
}

/* 编辑列显示状态 */
.audit-log-table.show-edit-col th.edit-col,
.audit-log-table.show-edit-col td.edit-cell {
    display: table-cell;
}

.audit-log-table .delete-log-btn {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    transition: all 0.2s;
}

.audit-log-table .delete-log-btn:hover {
    background: #ffebee;
    border-color: #ef5350;
    transform: scale(1.1);
}

/* 分页 */
.audit-log-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
    padding: 0.5rem;
}

.audit-log-pagination button {
    padding: 0.4rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
}

.audit-log-pagination button:hover {
    background: #e8e8e8;
}

.audit-log-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.audit-log-pagination .page-info {
    font-size: 0.85rem;
    color: #666;
}

/* 响应式 */
@media (max-width: 768px) {
    .audit-log-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .audit-log-toolbar-left,
    .audit-log-toolbar-right {
        justify-content: center;
    }

    .audit-log-table {
        font-size: 0.75rem;
    }
}

/* ==================== 系统日志样式 ==================== */
.system-log-container {
    padding: 0 1rem;
}

.system-log-header {
    margin-bottom: 1rem;
}

.system-log-header h2 {
    font-size: 1.5rem;
    color: #333;
}

.system-log-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 6px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.system-log-toolbar-left {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.system-log-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.system-log-tab {
    opacity: 0.65;
    transition: opacity 0.2s;
}

.system-log-tab.active {
    opacity: 1;
    box-shadow: 0 0 0 2px #333;
}

.system-log-info {
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: #666;
}

.system-log-content-wrap {
    background: #1e1e1e;
    border-radius: 6px;
    overflow: auto;
    max-height: calc(100vh - 280px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.system-log-pre {
    margin: 0;
    padding: 1rem;
    color: #d4d4d4;
    font-family: 'Consolas', 'Courier New', 'Fira Code', monospace;
    font-size: 0.82rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-all;
    min-height: 200px;
}

.system-log-pre .log-line-error {
    color: #f48771;
}

.system-log-pre .log-line-warn {
    color: #dcdcaa;
}

.system-log-pre .log-line-info {
    color: #d4d4d4;
}

/* Toast 提示动画 */
@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ==================== 紧急操作按钮 ==================== */
.emergency-buttons-container {
    margin: 1rem 0;
    padding: 1rem;
    background: #88a0d352;
    border: 2px solid #00000040;
    border-radius: 8px;
}

.emergency-buttons-row {
    margin-top: 13px;
    display: flex;
    gap: 6rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .emergency-buttons-row {
        gap: 0.5rem;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    .emergency-btn {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.75rem !important;
    }
    .emergency-buttons-container h3 {
        font-size: 0.85rem;
    }
}

.emergency-btn {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border: 2px solid transparent !important;
    transition: all 0.2s;
}

.emergency-btn-shutdown {
    background: #e74c3c !important;
    color: white !important;
    /* border-color: #c0392b !important; */
}

.emergency-btn-shutdown:hover {
    background: #c0392b !important;
}

.emergency-btn-shutdown.active-shutdown {
    background: #27ae60 !important;
    border-color: #1e8449 !important;
}

.emergency-btn-shutdown.active-shutdown:hover {
    background: #1e8449 !important;
}

.emergency-btn-restart {
    background: #3f3f3f66 !important;
    color: white !important;
    /* border-color: #d68910 !important; */
}

.emergency-btn-restart:hover {
    background: #d68910 !important;
}

.emergency-btn-reboot {
    background: #000000ba !important;
    color: white !important;
    /* border-color: #6c3483 !important; */
}

.emergency-btn-reboot:hover {
    background: #6c3483 !important;
}

.emergency-buttons-container h3 {
    margin: 0 0 0.5rem 0;
    color: #e74c3c;
    font-size: 1rem;
}

.emergency-status {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: #666;
}

/* ==================== 广告管理页面 ==================== */
.ads-container {
    padding: 20px;
}

.ads-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ads-header h2 {
    color: #20aac7;
    margin: 0;
}

.ads-add-form {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.ads-form-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.ads-form-row:last-child {
    margin-bottom: 0;
}

.ads-form-row label {
    font-weight: 600;
    min-width: 120px;
    color: #333;
}

.ads-upload-area {
    width: 200px;
    height: 120px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.3s;
    background: #fff;
    overflow: hidden;
}

.ads-upload-area:hover {
    border-color: #20aac7;
}

.ads-upload-area span {
    color: #999;
    font-size: 0.9rem;
}

.ads-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 卡片前/卡片中板块 */
.ad-section-block {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.ad-section-block-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;

    background: linear-gradient(135deg, #ececec, #bdc4db);


}

.ad-section-block-icon {
    font-size: 1.2rem;
}

.ad-section-block-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.ad-section-block-desc {
    font-size: 0.85rem;
    color: #888;
}

.ad-section-block-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: #666;
    background: #e8f4f8;
    padding: 3px 10px;
    border-radius: 12px;
}

.ad-section-block-body {
    padding: 12px 16px;
}

.ad-section-empty {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 0.9rem;
}

/* 广告位置分组 */
.ad-position-group {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.ad-position-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f0f8fa;
    border-bottom: 1px solid #e0e0e0;
}

.ad-position-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ad-position-badge {
    background: #20aac7;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.ad-position-count {
    color: #666;
    font-size: 0.85rem;
}

.ad-position-enabled {
    color: #109a6d;
    font-size: 0.8rem;
    font-weight: 600;
}

.ad-position-disabled {
    color: #999;
    font-size: 0.8rem;
}

.ad-position-actions {
    display: flex;
    gap: 8px;
}

.ad-position-images {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 16px;
}

.ad-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.2s;
}

.ad-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ad-item-preview {
    width: 120px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

.ad-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ad-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ad-item-field {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
}

.ad-item-field label {
    font-weight: 600;
    color: #333;
    min-width: 50px;
}

.ad-item-url {
    color: #20aac7;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ad-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.ad-status-enabled {
    color: #109a6d;
    font-weight: 600;
}

.ad-status-disabled {
    color: #999;
    font-weight: 600;
}

/* 广告按钮颜色：禁用灰，启用绿 */
.ad-edit-btn[data-enabled="false"],
.ad-toggle-btn[data-enabled="false"],
.ad-delete-btn[data-enabled="false"] {
    background-color: #979696 !important;
    color: #fff !important;
}

.ad-edit-btn[data-enabled="true"],
.ad-toggle-btn[data-enabled="true"],
.ad-delete-btn[data-enabled="true"] {
    background-color: #4caf50 !important;
    color: #fff !important;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 1rem;
}

.error-state {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
    font-size: 1rem;
}

/* 49图库头部 */
.header-wrap {
        height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px;
    /* background: #222; */
}
.left-tag {
    background-color: #27b846;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    text-align: center;
}
.domain-text {
    font-size: 14px;
    line-height: 1;
}
.domain-text span {
    color: #fff100;
}
.tip-text {
    font-size: 11px;
    margin-top: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.middle-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}
.right-nav {
    display: flex;
    gap: 16px;
    color: #fff;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.15s, transform 0.1s;
}
.nav-item:hover {
    opacity: 0.7;
}
.nav-item:active {
    transform: scale(0.9);
}
.nav-item svg {
    width: 16px;
    height: 16px;
    fill: none;
       stroke: #00ffd8;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.finger-svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
}