* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}
body {
    background-color: #0f172a;
    background-image:
            radial-gradient(circle at 10% 20%, rgba(0, 180, 220, 0.08) 0%, transparent 40%),
            radial-gradient(circle at 85% 75%, rgba(34, 211, 238, 0.08) 0%, transparent 40%);
    padding: 20px 12px;
    color: #e2e8f0;
}
.container {
    max-width: 850px;
    margin: 0 auto;
}
.page-title {
    text-align: center;
    font-size: 22px;
    color: #22d3ee;
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.record-card {
    border: 1px solid #22d3ee77;
    background-color: #1e293b;
    border-radius: 10px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.15);
}
.record-table {
    width: 100%;
    border-collapse: collapse;
}
.record-table td {
    border: 1px solid #334155;
    padding: 10px 12px;
    /* 防止长文本溢出 */
    word-break: break-word;
    overflow-wrap: break-word;
    word-wrap: break-word;
    line-height: 1.7;
    vertical-align: top;
}
.record-table .label {
    width: 100px;
    background-color: #273449;
    font-weight: bold;
    color: #7dd3fc;
    white-space: nowrap;
}
/* 长文本内容区(如教学内容/备注) */
.record-table td.content-long {
    min-height: 60px;
}

/* ========== 照片区域(横向滚动) ========== */
.photo-area {
    border-top: 1px solid #334155;
    padding: 14px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4), transparent);
}
.photo-area-title {
    font-size: 12px;
    color: #7dd3fc;
    margin-bottom: 10px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.photo-area-title::before {
    content: "";
    width: 3px;
    height: 12px;
    background: #22d3ee;
    box-shadow: 0 0 6px #22d3ee;
}
.photo-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scroll-behavior: smooth;
}
.photo-scroll::-webkit-scrollbar {
    height: 8px;
}
.photo-scroll::-webkit-scrollbar-track {
    background: rgba(34, 211, 238, 0.05);
    border-radius: 4px;
}
.photo-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #22d3ee, #0ea5e9);
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(34, 211, 238, 0.5);
}
.photo-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #67e8f9, #22d3ee);
}
.photo-item {
    flex: 0 0 auto;
    width: 140px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 1px solid #334155;
    transition: all 0.25s;
    background: #0f172a;
}
.photo-item:hover {
    border-color: #22d3ee;
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.5);
    transform: translateY(-2px);
}
.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-item .photo-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 6px;
    font-size: 11px;
    color: #e2e8f0;
    opacity: 0;
    transition: opacity 0.25s;
}
.photo-item:hover .photo-mask {
    opacity: 1;
}
.photo-item .photo-mask::before {
    content: "🔍 点击放大";
}
.photo-empty {
    flex: 0 0 auto;
    width: 100%;
    min-height: 100px;
    border: 2px dashed #475569;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 13px;
}

/* ========== 灯箱(放大查看) ========== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(6px);
}
.lightbox.show {
    display: flex;
    animation: fadeIn 0.25s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.4);
    border: 1px solid rgba(34, 211, 238, 0.5);
    animation: zoomIn 0.3s;
}
@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #22d3ee;
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.lightbox-close:hover {
    background: #22d3ee;
    color: #0f172a;
    box-shadow: 0 0 16px #22d3ee;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #22d3ee77;
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.lightbox-nav:hover {
    background: #22d3ee;
    color: #0f172a;
}
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.lightbox-nav:disabled:hover {
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
}
.lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #94a3b8;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 6px 16px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 20px;
    border: 1px solid #334155;
}

/* ========== 手机适配 ========== */
@media (max-width: 600px) {
    .page-title {
        font-size: 19px;
    }
    .record-table tr {
        display: block;
    }
    .record-table td {
        display: block;
        width: 100% !important;
        border: 1px solid #334155;
    }
    .record-table .label {
        width: 100%;
    }
    .photo-item {
        width: 110px;
        height: 80px;
    }
    .lightbox-nav.prev { left: 8px; }
    .lightbox-nav.next { right: 8px; }
}

/* 查询卡片 */
.search-card{
    border: 1px solid #22d3ee77;
    background-color: #1e293b;
    border-radius: 10px;
    padding:20px;
    margin-bottom:24px;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.15);
}
.search-item{
    margin-bottom:16px;
}
.search-item label{
    display:block;
    color:#7dd3fc;
    margin-bottom:6px;
}
.search-item input{
    width:100%;
    background:#0f172a;
    border:1px solid #334155;
    border-radius:6px;
    padding:10px 12px;
    color:#e2e8f0;
    outline:none;
}
.search-item input:focus{
    border-color:#22d3ee;
    box-shadow:0 0 8px rgba(34,211,238,0.3);
}
.radio-group{
    display:flex;
    gap:24px;
}
.radio-item{
    display:flex;
    align-items:center;
    gap:6px;
}
.radio-item input{
    width:auto;
}
#searchBtn{
    width:100%;
    padding:11px;
    background:linear-gradient(90deg,#0ea5e9,#22d3ee);
    border:none;
    border-radius:6px;
    color:#0f172a;
    font-weight:bold;
    font-size:16px;
    cursor:pointer;
    transition:0.2s;
}
#searchBtn:hover{
    box-shadow:0 0 14px rgba(34,211,238,0.5);
}

@media (max-width: 600px) {
    .page-title {
        font-size: 19px;
    }
    .search-card{
        padding:16px;
    }
    /* ...其余原有移动端代码 */
}

/* ========== 自定义alert弹窗 ========== */
.custom-alert {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(3px);
}
.custom-alert.show {
    display: flex;
    animation: alertFadeIn 0.25s;
}
.alert-box {
    background: #1e293b;
    border: 1px solid #22d3ee77;
    border-radius: 10px;
    padding: 20px 26px;
    min-width: 280px;
    max-width: 420px;
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.2);
    display: flex;
    align-items: center;
    gap: 14px;
    animation: alertZoomIn 0.25s;
}
.alert-icon {
    font-size: 24px;
    color: #fbbf24;
    flex-shrink: 0;
}
.alert-text {
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.6;
}
@keyframes alertFadeIn {
    from { opacity:0; }
    to { opacity:1; }
}
@keyframes alertZoomIn {
    from { transform: scale(0.9); opacity:0; }
    to { transform: scale(1); opacity:1; }
}

/* ========== 页脚版权 ========== */
.page-footer{
    margin-top: 40px;
    text-align: center;
    color: #64748b;
    font-size: 12px;
    line-height: 1.8;
}
.page-footer p{
    margin: 4px 0;
}
@media (max-width:600px){
    .page-footer{
        margin-top:28px;
        font-size:11px;
    }
}
.aa {
    text-decoration: none;
    color: inherit;
    outline: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0 8px; /* 两个备案链接之间增加间距 */
}
.aa:hover {
    color: #22d3ee; /* 改成你页面的青色，匹配整体科技风格 */
}
#police {
    width: 14px;
    height: 14px;
    display: inline-block; /* 关键修改：行内块，和文字同行 */
    vertical-align: middle; /* 图片垂直居中对齐文字 */
    margin-right: 4px; /* 图标和“吉”字之间留出一点空隙 */
}