* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}
html, body { height: 100%; }
body {
    background: #f4f4f4;
    overflow-x: hidden;
}

.bg-slider {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
}
.bg-slide {
    position: absolute;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: bgfade 24s infinite;
}
.bg-slide:nth-child(1) {
    background-image: url('https://i.imgs.ovh/2026/04/06/ZQ3zUn.png');
    animation-delay: 0s;
}
.bg-slide:nth-child(2) {
    background-image: url('https://i.imgs.ovh/2026/04/07/ZWj6SQ.png');
    animation-delay: 8s;
}
.bg-slide:nth-child(3) {
    background-image: url('https://i.imgs.ovh/2026/04/06/ZQ38Oe.png');
    animation-delay: 16s;
}
@keyframes bgfade {
    0% { opacity: 0; }
    10% { opacity: 0.8; }
    33% { opacity: 0.8; }
    43% { opacity: 0; }
    100% { opacity: 0; }
}

.top-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 60px;
    background: #1a3b5d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    color: white;
    z-index: 9999;
}
.nav-title {
    font-size: 18px;
    font-weight: bold;
}
.nav-btns {
    display: flex;
    gap: 16px;
}
.nav-btn {
    color: white;
    background: transparent;
    border: none;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
.nav-btn:hover {
    background: white;
    color: #1a3b5d;
}

.container {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}
.main-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #222;
    text-align: center;
}
.search-bar {
    width: 100%;
    max-width: 700px;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    outline: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.95);
    text-align: center;
}

.result-level1 {
    width: 100%;
    max-width: 700px;
    margin-top: 20px;
    display: none;
    flex-direction: column;
    gap: 10px;
}
.book-item {
    background: rgba(255,255,255,0.95);
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: 0.2s;
}
.book-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.book-name {
    font-size: 19px;
    font-weight: bold;
    color: #1a3b5d;
    margin-bottom: 6px;
}
.book-info {
    font-size: 15px;
    color: #555;
}

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-box {
    background: white;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 14px;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 16px; right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}
.modal-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #1a3b5d;
}
.version-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
}
.version-label {
    font-weight: bold;
    margin-bottom: 8px;
}
.to-detail-btn {
    padding: 8px 16px;
    background: #1a3b5d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.detail-modal {
    z-index: 1000;
    background: rgba(0,0,0,0.7);
}
.detail-box {
    max-width: 900px;
    max-height: 85vh;
    line-height: 1.8;
}
.detail-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #1a3b5d;
}
.detail-section {
    margin-bottom: 14px;
    font-size: 16px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}
td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 15px;
}

.gallery-modal {
    z-index: 1001;
    background: rgba(0,0,0,0.8);
}
.gallery-box {
    max-width: 1000px;
    max-height: 90vh;
    padding: 30px;
    text-align: center;
}
.gallery-img {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
}
.gallery-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1a3b5d;
}

#noticeModal, #updateModal {
    display: flex;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#updateModal { display: none; }
.noticeBox {
    background: white;
    max-width: 550px;
    width: 100%;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
}
.noticeTitle {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #c0392b;
}
.noticeText {
    font-size: 17px;
    margin-bottom: 28px;
    line-height: 1.7;
    text-align: left;
}
.noticeBtn {
    background: #1a3b5d;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}
