* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
}
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgb(50, 126, 224);
}
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    h1 {
        font-size: 1.5rem;
        padding: 10px 0;
    }
    .border-box {
    padding: 5px; /* 缩小边框内边距 */
}
            padding: 10px;
    }
    td {
        padding: 10px 5px;
    }
}
h1 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    text-align: center;
}
h4 {
    text-align: center;
    margin-bottom: 15px;
}
p {
    margin-bottom: 15px;
    text-align: center;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.column-1 img {
    margin: 0.5rem 0;
}
.column-2 img {
    margin: 0.75rem 0;
}
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
 td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: center;
}
 tr:nth-child(even) {
    background-color: #f9f9f9;
}
 tr:hover {
    background-color: #f1f1f1;
}
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 1rem;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    .button-container {
        justify-content: center;
    }
}
 button {
    padding: 1rem;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
 button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
 button:active {
    transform: translateY(0);
}
 button.clicked {
    background: #006400;
}
.filter-button {
    margin: 0.5rem;
    padding: 0.8rem 1.2rem;
}
/* 下拉按钮样式 */
.dropdown-button {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
    margin: 1rem auto;
    display: block;
    position: relative;
    overflow: hidden;
}
.dropdown-button:hover {
    background: linear-gradient(135deg, #0069d9, #004a99);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.35);
}
.dropdown-button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.25);
}
/* 下拉内容容器 */
.dropdown-content {
    max-height: 200px;
    overflow-y: auto;
    display: none;
    position: absolute;
    z-index: 1000;
    background-color: #6bbfa6;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.8rem;
    width: 90%;
    max-width: 800px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.dropdown-content.show {
    display: block;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.function-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    border-bottom: 2px solid #3498db;
}
/* 网格布局 */
.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}
/* 下拉项样式 */
.dropdown-item {
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s ease;
    text-align: center;
    background-color: white;
    color: #333;
    font-size:12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}
.dropdown-item:hover {
    background-color: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    color: #007BFF;
    border-color: #007BFF;
}
.dropdown-item:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
/* 响应式调整 */
@media (max-width: 768px) {
    .dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .dropdown-grid {
        grid-template-columns: 1fr;
    }
}
#content-display {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    min-height: 100px;
    line-height: 1.6;
    background-color: white;
}



/* 从tu.php迁移的额外样式 */
.border-box {
    padding: 5px; /* 缩小边框内边距 */
}

.main-button-container {
    margin-top: 10px;
    margin-bottom: 10px;
}

.footcard {
    margin-top: 10px;
}

/* 修复body样式中的语法错误 */
@media (max-width: 768px) {
    .border-box {
        padding: 5px; /* 缩小边框内边距 */
    }
}
/* 下拉内容容器 */
.dropdown-content {
    max-height: 200px;
    overflow-y: auto;
    display: none;
    position: absolute;
    z-index: 1000;
    background-color: #6bbfa6;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.8rem;
    width: 90%;
    max-width: 800px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.dropdown-content.show {
    display: block;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
/* 网格布局 */
.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}
/* 下拉项样式 */
.period-item { background: linear-gradient(135deg, #3B82F6); color: white; border-radius: 30px; padding: 1rem 1.6rem; margin: 0 12px; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 6px 16px rgba(0,0,0,0.15), inset 0 1px 3px rgba(255,255,255,0.3); text-shadow: 0 2px 4px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.45); font-weight: 300; letter-spacing: 0.3px; } @media (max-width: 768px) { .period-item { padding: 0.6rem 1.0rem; font-size: 12px; margin: 0 6px; border-radius: 24px; } } @media (max-width: 480px) { .period-item { padding: 0.6rem 1rem; font-size: 0.25rem; margin: 0 4px; border-radius: 22px; min-width: 80px; text-align: center; } }
.period-item:hover { background: linear-gradient(135deg, #2563EB, #1D4ED8); transform: translateY(-7px) scale(1.12) rotate(1.5deg); box-shadow: 0 15px 30px rgba(59, 130, 246, 0.55), 0 0 15px rgba(59, 130, 246, 0.2); border-color: rgba(255,255,255,0.75); } .period-item:active { transform: translateY(-2px) scale(1.05); background: linear-gradient(135deg, #1e40af, #0d47c0); box-shadow: 0 4px 10px rgba(66, 133, 244, 0.4), inset 0 3px 6px rgba(0,0,0,0.2); border-color: rgba(255,255,255,0.3); }
.dropdown-item {
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s ease;
    text-align: center;
    background-color: white;
    color: #333;
    font-weight: 300;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}
.dropdown-item:hover {
    background-color: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    color: #007BFF;
    border-color: #007BFF;
}
.dropdown-item:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
/* 响应式调整 */
@media (max-width: 768px) {
    .dropdown-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .dropdown-button {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
    .dropdown-content {
        max-height: 180px;
        width: 70%;
    }
}
@media (max-width: 480px) {
    .dropdown-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
#content-display {
    margin-top: 0.2rem;
    padding: 0.2rem;
    border-radius: 8px;
    min-height: 100px;
    line-height: 1.6;
    background-color: white;
}
.period-button { background: linear-gradient(135deg, #8B5CF6, #6D28D9); border-radius: 6px; padding: 0.7rem 0.9rem; font-size: 0.7rem; line-height: 1; margin: 0 4px; color: white; text-decoration: none; display: inline-block; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 3px 6px rgba(139, 92, 246, 0.2); text-shadow: 0 1px 2px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.5); }
.period-button:hover { transform: translateY(-3px) scale(1.05); background: linear-gradient(135deg, #7C3AED, #6D28D9); box-shadow: 0 6px 12px rgba(139, 92, 246, 0.3); border-color: rgba(255,255,255,0.7); }
.period-button:active { transform: translateY(2px) scale(1.03); box-shadow: 0 3px 8px rgba(0,0,0,0.15); background: linear-gradient(135deg, #1E40AF, #1E3A8A); border-color: rgba(255,255,255,0.3); }
.period-button.active { background: linear-gradient(135deg, #EC4899, #BE185D); box-shadow: 0 5px 15px rgba(236, 72, 153, 0.4); border-color: rgba(255,255,255,0.8); transform: translateY(-2px); }

/* 修复重复定义的样式 */
.dropdown-content {
    max-height: 200px;
    overflow-y: auto;
    display: none;
    position: absolute;
    z-index: 1000;
    background-color: #6bbfa6;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.8rem;
    width: 90%;
    max-width: 800px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s ease;
    text-align: center;
    background-color: white;
    color: #333;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

#content-display {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    min-height: 100px;
    line-height: 1.6;
    background-color: white;
}

/* 单列居中布局样式 */
.single-column-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1px;
}
.column {
    width: 100%;
    max-width: 800px; /* 限制最大宽度，确保在大屏幕上也居中显示 */
}
.column-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    background-color: rgba(240, 240, 240, 0.5);
    padding: 15px;
    border-radius: 10px;
    width: 100%;
}
.record-item {
    background-color: white;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
    height: auto;
}
.record-title {
    font-size: 13px;
    color: #2c3e50;
    margin-bottom: 1px;
    padding-bottom: 1px;
    border-bottom: 1px solid #eee;
}
.record-content {
    font-size: 13px;
    color: #666;
    margin-bottom: 1px;
    line-height: 0.1;
}
/* 图片放大模态框样式 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    overflow: auto;
}
.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}
.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}
.close-modal {
    position: absolute;
    top: -30px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}
.nav-container {            display: flex;            justify-content: space-between;            margin-bottom: 15px;            width: 100%;        }        .modal-nav {
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}
.prev {
    background: linear-gradient(135deg, #4a6fa5, #165dff);
    box-shadow: 0 4px 15px rgba(22, 93, 255, 0.3);
}
.next {
    background: linear-gradient(135deg, #fa709a, #fee140);
    box-shadow: 0 4px 15px rgba(254, 225, 64, 0.3);
}
.prev:hover {
    background: linear-gradient(135deg, #3a5a8a, #0e4cca);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(22, 93, 255, 0.4);
}
.next:hover {
    background: linear-gradient(135deg, #e65c87, #e6c130);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(254, 225, 64, 0.4);
}
.modal-nav:active {
    transform: translateY(1px);
}

.modal-caption {
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 16px;
}
.zoomable-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}
.zoomable-image:hover {
    transform: scale(1.02);
}





        .previous-record {
            margin-top: 10px; 
            padding: 10px; 
            background: linear-gradient(135deg, #f8f9fa, #e9ecef); 
            border-radius: 8px; 
            font-size: 13px; 
            color: #495057;
            border-left: 4px solid #007bff;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            line-height: 1.5;
        }
        .previous-record strong {
            color: #0056b3;
            font-weight: 600;
        }
        .previous-record .record-detail {
            margin: 2px 0;
            color:#fff;
            background-color:red;
        }
        .previous-record .numbers {
            font-family: 'Courier New', monospace;
            font-weight: bold;
            color: #dc3545;
        }
