/* 全局样式重置 */
* {
    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; */
     
}

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

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

/* 国家标签容器 */
.country-tags-container {
    display: flex;
}

/* 轮播容器样式 */
.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 {
    background-color: #f8d7da;
    color: #721c24;
    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;
    }
}
/* -------------------------------卡片边距------------------------------- */
@media (max-width: 480px) {
    #content-container {
        gap: 1rem;
        padding: 0 0.5rem;
    }
}

/* 资料发布表格样式 */
.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;
}

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

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

/* 卡片内容样式 */
.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: 400% 100%;
    animation: gradient-flow 12s ease infinite; */
    background-color: #0e8954;
}

.content-card h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

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

/* 后台页面内容列表中的描述文本样式 */
 .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;
}

/* 码表图片容器样式 */
.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: linear-gradient(135deg, #e7dce7 0%, #c0dbed 100%); */
      /* background: linear-gradient(135deg, #ffffff 0%, #c0dbed 100%); */
         
       /* background: linear-gradient(1deg, #fffefe 0%, #88939e 100%); */
         
       /* background: linear-gradient(180deg, #b3ddf5 0%, #ffffff 100%); */
       background: linear-gradient(135deg, #e7dce7 0%, #c0dbed 100%);
    /* background-color: white; */
    border-radius: 8px;
    padding: 2rem;
    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 .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-tags-container {
    display: flex;
    gap: 7px;
    background-color: #3f3f3f;
}

.country-tag {
    margin-top: 10px;
    background-color: #16a462;
    width: 90px;
    margin-bottom: 2px;
    padding: 5px;
    text-align: center;
    border-radius: 5px;
    color: #eaeaea;
}

.country-tag h3 {
    margin: 0;
    /* font-size: 1rem; */
}

/* 国家标签激活状态 */
.country-tag.active {    
    width: 100px;
    margin-bottom: 2px;
   /* background: linear-gradient(314deg, #4f9c28 0%, #2b987b 100%); */
       background: linear-gradient(314deg, #5db631 0%, #076b51 100%);
     /*background-color: #1275cd;*/
      

    box-shadow: 0 0 5px rgba(13, 139, 90, 0.3);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.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;
    }
}

@media (max-width: 480px) {
    .country-tags-container {
        gap: 15px !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;
    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-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.2rem;
    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 {
        gap: 8px;
        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;
    }

    .numbers-container {
        gap: 0.5rem;
    }

    .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: 14px; /* 在小屏幕上调整为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;
}

.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;
}

.new-action-btn {
    padding: 1rem 0.8rem;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1.5rem;
    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);
    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);
}

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

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

/* 后台页面样式 */
/* 描述文本框样式 - 后台页面专用 */
#description {
    height: 600px;
    resize: vertical;
    min-height: 600px;
    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;
    }
}

/* 颜色选择器样式 */
.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;
    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;
}

.history-title .history-link {
    /* color: #808080; */
     color: #e5e0e0;;
    text-decoration: none;
}

.history-title .history-link:hover {
    color: #3ac270;
    text-decoration: underline;
}

/* 时间输入框样式 */
.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-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

#h1-content {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.25rem;
    margin-top: 0.5rem;
}

.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;
    
}

.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: #333;
    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; */
    /* 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%);
 
    /* border-radius: 12px; */
    padding: 10px;
    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;
    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: 1.5px solid rgb(140 140 140 / 40%);
    margin: 12px 0;
}

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

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

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

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

/* 倒计时标题样式 */
.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; */
}

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

.gif-image {

    width: 1250px;
    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: 2.5rem;
    font-weight: bold;
    font-family: 'Microsoft YaHei', 'SimHei', 'STHeiti', 'Arial', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
}

.time-unit {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem;
    min-width: 80px;
    justify-content: center;
}

.countdown-hours,
.countdown-minutes,
.countdown-seconds {
    font-size: 2.2rem;
    line-height: 1;
    margin-right: 0.2rem;
}

.unit {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 响应式倒计时样式 */
@media (max-width: 768px) {
    .countdown-container {
        padding: 1rem;
    }
    
    .countdown-title {
        font-size: 1rem;
    }
    
    .countdown-timer {
        font-size: 1.8rem;
        gap: 0.3rem;
    }
    
    .time-unit {
        min-width: 60px;
        padding: 0.5rem 0.3rem;
    }
    
    .countdown-hours,
    .countdown-minutes,
    .countdown-seconds {
        font-size: 1.6rem;
    }
    
    .unit {
        font-size: 0.8rem;
    }
    
    /* 手机屏上传区域样式 */
    #upload-section {
        padding: 0;
    }
}

/* 响应式新按钮样式 */
@media (max-width: 768px) {
    .new-action-btn {
        padding: 0.9rem 0.7rem;
        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;
    }
}

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

/* 确认按钮样式 */
.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: 1200px;
}

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

/* 期数显示样式 */
#period-display {
    margin-bottom: 3px; /* 增加5px底边距 */
    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: 2rem;
    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;
    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 {
    padding: 0.5rem 1.5rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: auto;
    min-width: 100px;
}

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

.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;
}

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

.record-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    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;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    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 {
        gap: 0.3rem;
        padding: 0.3rem;
        justify-content: center;
        flex-wrap: wrap; /* 改为wrap，允许换行 */
        overflow-x: hidden; /* 移除横向滚动 */
        max-width: 100%;
        width: 100%; /* 确保宽度100% */
        box-sizing: border-box; /* 包含内边距 */
    }
    
    .number-item {
        gap: 0.25rem;
        margin: 0 0.1rem;
        min-width: auto;
        flex-shrink: 0;
    }
    
    .number-box {
        width: 39px;
        height: 39px;
        border-radius: 6px;
    }
    
    .zodiac-display {
        /* 1024px以下竖屏 - 手机端 */
        font-size: 1.0rem;
        gap: 0.1rem;
        font-weight: bold !important;
        color: #4f4f4f;
    }
    
    .plus-sign {
        font-size: 1rem;
        width: 16px;
        height: 16px;
        min-width: 16px;
        max-width: 16px;
        margin: 0 0.1rem;
        flex-shrink: 0;
    }
}

/* 平板端优化 (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .numbers-container {
        gap: 0.4rem;
        padding: 0.4rem;
    }
    
    .number-box {
        width: 38px;
        height: 38px;
        min-width: 38px;
        max-width: 38px;
    }
    
    .plus-sign {
        font-size: 1.1rem;
        width: 18px;
        height: 18px;
        min-width: 18px;
        max-width: 18px;
        margin: 0 0.15rem;
    }
}

/* 手机端优化 (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .numbers-container {
        gap: 0.3rem;
        padding: 0.3rem;
    }
    
    .number-box {
        width: 36px;
        height: 36px;
        min-width: 36px;
        max-width: 36px;
        border-radius: 5px;
        padding: 0.3rem;
    }
    
    .plus-sign {
        font-size: 0.9rem;
        width: 14px;
        height: 14px;
        min-width: 14px;
        max-width: 14px;
        margin: 0 0.12rem;
    }
}

/* 小屏幕设备优化 (401px - 480px) */
@media (max-width: 480px) and (min-width: 401px) {
    .numbers-container {
        gap: 0.2rem;
        padding: 0.2rem;
    }
    
    .number-box {
        width: 36px;
        height: 36px;
        min-width: 36px;
        max-width: 36px;
        border-radius: 5px;
        padding: 0.3rem;
    }
    
    .plus-sign {
        font-size: 0.8rem;
        width: 12px;
        height: 12px;
        min-width: 12px;
        max-width: 12px;
        margin: 0 0.08rem;
    }
}



/* 极端小屏幕优化 - 确保7个号码同行显示 */
@media (max-width: 360px) {
    .numbers-container {
        gap: 0.3rem !important; /* 适当间距，避免滚动条 */
        flex-wrap: nowrap !important; /* 强制不换行，确保7个号码同行 */
        overflow-x: hidden !important; /* 隐藏横向滚动，确保无滚动条 */
        width: 100% !important; /* 恢复100%宽度，确保布局稳定 */
        box-sizing: border-box !important;
        padding: 0.2rem !important; /* 适当内边距 */
        justify-content: center !important; /* 居中显示，更美观 */
        margin: 0 auto !important;
    }
    
    .number-item {
        gap: 0.1rem !important; /* 适当间距 */
        margin: 0 0.05rem !important; /* 适当外边距 */
        flex-shrink: 0 !important; /* 防止号码框被压缩 */
    }
    
    .number-box {
        width: 36px !important; /* 稍微增大号码框 */
        height: 36px !important;
        border-radius: 6px !important;
        min-width: 36px !important; /* 固定最小宽度 */
        max-width: 36px !important; /* 固定最大宽度 */
    }
    
    .number-display {
        font-size: 0.9rem !important; /* 缩小字体 */
    }
    
    .zodiac-display {
        font-size: 0.9rem !important;
        font-weight: bold !important;
        color: #4f4f4f;
    }
    
    .plus-sign {
        font-size: 0.9rem !important;
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        max-width: 14px !important;
        margin: 0 0.12rem !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;
}

.clear-all-btn {
    background-color: #9c27b0;
    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;
}

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

.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) {
    /* 手机端隐藏一键截图按钮 */
    .screenshot-section,
    #screenshot-btn {
        display: none !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.7rem !important;
    }
    
    .number-box {
        width: 50px !important;
        height: 50px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        border-radius: 4px !important;
        padding: 0.25rem !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.6rem !important;
    }
   /*--------------------------------我手机--------------------------------- */
    .number-box {
        width: 40px !important;
        height: 45px !important;
        min-width: 37px !important;
        max-width: 37px !important;
        border-radius: 4px !important;
        padding: 0.25rem !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%); */
    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;
    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: 1.1rem;
    }
}

/* ==============================================
   后台倒计时设置模块美化
   ============================================== */
.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: #333;
    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: #f1f3f4;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.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;
}

/* ==============================================
   全局样式 - 确保生肖字体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: 1rem;
}

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

.site-title-container {
    display: flex;
    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: 7px 5px;
    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);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.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;
    }
}