/* ======================================================================
   [0x8D2A] 主页三框布局
   ====================================================================== */
.section-a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    min-height: 280px;
    transition: background 0.3s, border-color 0.3s;
    text-align: center;
}
.section-a h1 {
    font-size: clamp(80px, 22vw, 180px);
    font-weight: 900;
    background: linear-gradient(135deg, #00e5ff 0%, #b388ff 80%, #d500f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 20px;
    animation: glowPulse 4s ease-in-out infinite;
    line-height: 1.2;
    margin-bottom: 6px;
}
@keyframes glowPulse {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.4)); }
    50% { filter: drop-shadow(0 0 60px rgba(179, 136, 255, 0.7)); }
}
.section-a .subtitle {
    font-size: clamp(18px, 3vw, 34px);
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    transition: color 0.3s, border-color 0.3s;
}

.section-bc {
    display: flex;
    gap: 16px;
    min-height: 220px;
    margin-top: 16px;
}
.section-b {
    flex: 1;
    background: var(--bg-card);
    border-radius: 16px;
    border: 2px solid var(--border-light);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    box-shadow: 0 0 20px var(--shadow-color);
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.section-b:hover { border-color: #7ec8ff; }
.section-b label {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    font-weight: 500;
}
.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.search-row input {
    flex: 1 1 100%;
    min-width: 100px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}
.search-row input:focus {
    border-color: #5b9aff;
    box-shadow: 0 0 12px rgba(91, 154, 255, 0.15);
}
.search-row button {
    flex: 1 1 auto;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
    font-family: inherit;
    border: none;
    background: #1a2a4a;
    color: #5b9aff;
}
.search-row button:hover {
    background: #2a3a6a;
    box-shadow: 0 0 16px rgba(91, 154, 255, 0.2);
}
.search-row #searchBtn {
    background: #2a2a4a;
    color: #88bbff;
}
.search-row #searchBtn:hover {
    background: #3a3a6a;
}
.search-row #randomJumpBtn {
    background: #1a2a2a;
    color: #77dd77;
}
.search-row #randomJumpBtn:hover {
    background: #2a3a3a;
}
body.light-mode .search-row button {
    background: #e0ecff;
    color: #1a5bbf;
}
body.light-mode .search-row button:hover {
    background: #c5d9ff;
}
body.light-mode .search-row #randomJumpBtn {
    background: #e0f0e0;
    color: #1a7a3a;
}
body.light-mode .search-row #randomJumpBtn:hover {
    background: #c5e5c5;
}
.random-tip {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.section-c {
    flex: 2.5;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 12px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: background 0.3s, border-color 0.3s;
}
.slider-container {
    flex: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--slide-placeholder);
}
.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}
.slide .slide-placeholder {
    background: var(--slide-placeholder);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 20px;
    color: var(--text-muted);
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
}
.slide .caption {
    margin-top: 12px;
    font-size: 15px;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.5);
    padding: 4px 18px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    transition: color 0.3s, border-color 0.3s;
}
body.light-mode .slide .caption {
    background: rgba(255,255,255,0.7);
    color: #333;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    color: #eee;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: 0.2s;
}
.slider-btn:hover { background: #2a2a2a; color: #fff; }
body.light-mode .slider-btn {
    background: rgba(255,255,255,0.7);
    color: #333;
}
body.light-mode .slider-btn:hover { background: #fff; }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding-bottom: 4px;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dot-bg);
    cursor: pointer;
    transition: 0.3s;
    border: none;
}
.dot.active {
    background: var(--dot-active);
    width: 20px;
    border-radius: 4px;
}

/* ======================================================================
   [0xE7F4] 公告和更新框
   ====================================================================== */
.notice-update {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    height: 100vh;
    min-height: 400px;
}
.notice-box, .update-box {
    flex: 1;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 20px 24px;
    transition: background 0.3s, border-color 0.3s;
    overflow-y: auto;
    word-wrap: break-word;
    white-space: normal;
    display: flex;
    flex-direction: column;
}
.notice-box h3, .update-box h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 2px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.notice-box .content, .update-box .content {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    flex: 1;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.notice-box .content:empty::before,
.update-box .content:empty::before {
    content: "暂无内容";
    color: var(--text-muted);
    font-style: italic;
}
.notice-box::-webkit-scrollbar,
.update-box::-webkit-scrollbar {
    width: 6px;
}
.notice-box::-webkit-scrollbar-track,
.update-box::-webkit-scrollbar-track {
    background: var(--bg-body);
}
.notice-box::-webkit-scrollbar-thumb,
.update-box::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
body.light-mode .notice-box::-webkit-scrollbar-thumb,
body.light-mode .update-box::-webkit-scrollbar-thumb {
    background: #bbb;
}

@media (max-width: 768px) {
    .section-bc { flex-direction: column; }
    .section-b { flex: 1; }
    .section-c { flex: 2; }
    .section-a h1 { letter-spacing: 8px; }
    .notice-update {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    .notice-box, .update-box { min-height: 50vh; }
}