/* css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Noto Sans SC', system-ui, sans-serif;
}

body {
    min-height: 100vh;
    background: #0a1c28;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 出场动画 */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #0b2a35 0%, #154152 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 1s ease, visibility 1s ease;
}

.splash-content {
    text-align: center;
    animation: splashFloat 1.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    animation: splashRise 1.5s ease forwards;
}

@keyframes splashRise {
    0% { opacity: 0; transform: translateY(30px); }
    40% { opacity: 1; transform: translateY(-5px); }
    80% { opacity: 1; transform: translateY(2px); }
    100% { opacity: 1; transform: translateY(0); }
}

.splash-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px #7fc9ff);
}

.splash-title {
    font-size: 4rem;
    font-weight: 300;
    color: #e8f5ff;
    letter-spacing: 8px;
    text-shadow: 0 2px 15px #00a6ff;
    margin-bottom: 10px;
}

.splash-sub {
    color: #aad0f0;
    font-size: 1.2rem;
    opacity: 0.9;
}

.splash-hidden {
    opacity: 0;
    visibility: hidden;
}

/* 主界面 */
.main-container {
    width: 90%;
    max-width: 900px;
    background: rgba(18, 40, 54, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid #2f5e7a;
    border-radius: 36px;
    padding: 2.5rem;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.main-container.visible {
    opacity: 1;
    transform: scale(1);
}

/* 头部 */
.header {
    margin-bottom: 2.5rem;
}

.title-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.mirror-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2.2rem;
    font-weight: 350;
    color: #ddf0ff;
}

.title-logo {
    height: 36px;
    width: auto;
}

.path-badge {
    background: #1e4057;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-size: 0.9rem;
    color: #b9defa;
    border: 1px solid #397699;
}

.status-badge {
    display: flex;
    gap: 15px;
    background: #0d2c3f;
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    width: fit-content;
    border: 1px solid #2c6988;
}

.badge-active {
    color: #c6e9ff;
    background: #1d5779;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    font-weight: 500;
}

.badge-inactive {
    color: #7e98a8;
    font-style: italic;
}

/* 目录面板 */
.dir-panel {
    background: #0f2c3b;
    border-radius: 28px;
    padding: 1.8rem;
    border: 1px solid #2f6985;
    margin-bottom: 2rem;
    box-shadow: inset 0 2px 8px #00000040;
}

.dir-header {
    display: flex;
    justify-content: space-between;
    color: #88bedc;
    padding-bottom: 15px;
    border-bottom: 1px dashed #3d7a9a;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.dir-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    border-radius: 16px;
    transition: background 0.2s;
}

.dir-item:hover {
    background: #1d4b64;
}

.dir-name {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
}

.icon {
    font-size: 1.6rem;
}

.dir-link {
    color: #c6e2ff;
    text-decoration: none;
    border-bottom: 1px dotted #529cca;
}

.dir-link:hover {
    color: #ffdd9e;
    border-bottom: 1px solid #f5b342;
}

.dir-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #aac9e5;
}

.size {
    color: #b7dfb0;
}

.download-btn {
    background: #2e6b8f;
    border: none;
    color: white;
    padding: 6px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #60b6e0;
}

.download-btn:hover {
    background: #3f8bb8;
    transform: scale(1.02);
}

/* 捐赠区域 */
.donation-area {
    background: #103d55;
    border-radius: 60px;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #3b8cb3;
}

.donation-text {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #e7f3ff;
    font-size: 1.2rem;
}

.heart {
    color: #ff7b7b;
    font-size: 1.8rem;
}

.donation-btn {
    background: #f6b83e;
    border: none;
    color: #1d3f53;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #ffe39b;
}

.donation-btn:hover {
    background: #ffcb6b;
    transform: scale(1.02);
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #15475f;
    padding: 2.5rem;
    border-radius: 60px;
    text-align: center;
    border: 3px solid #f6b83e;
    max-width: 450px;
    width: 90%;
}

.modal-content h2 {
    color: #ffecb3;
    margin-bottom: 20px;
}

#qrCodeImg {
    width: 100%;
    max-width: 280px;
    border-radius: 30px;
    border: 4px solid white;
    margin-bottom: 15px;
}

.payee {
    color: #d6edff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
}

#continueDownloadBtn {
    background: #4caf92;
    color: white;
}

#continueDownloadBtn:hover {
    background: #5ecbaa;
}

.close-btn {
    background: #546e7a;
    color: white;
}

.close-btn:hover {
    background: #6f8c9c;
}

/* 页脚 */
.footer {
    margin-top: 2rem;
    text-align: center;
    color: #4a7897;
    font-size: 0.9rem;
    border-top: 1px solid #235a77;
    padding-top: 1.5rem;
}