/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #0b1f44 0%, #162a56 45%, #2c3e70 100%);
    color: #1f2d48;
    min-height: 100vh;
    padding: 24px;
    line-height: 1.6;
}

/* Layout */
.page-shell {
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    display: grid;
    gap: 28px;
}

/* Card Styles */
/* Tabs Styles */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 32px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 16px;
}

.tab-trigger {
    font-size: 1.4rem;
    font-weight: 800;
    color: #a0aec0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-bottom: 12px;
    margin: 0;
}

.tab-trigger::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 4px;
    background: #3058ff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.tab-trigger:hover {
    color: #718096;
}

.tab-trigger.active {
    color: #1a202c;
}

.tab-trigger.active::after {
    width: 48px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.image-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

/* 间距调整 */
.backup-buttons {
    margin-bottom: 32px;
}

.download-actions {
    margin-bottom: 12px;
}

.image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: block;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Download Section */
.download-note {
    color: #4b557d;
    text-align: center;
    margin-bottom: 16px;
    font-size: 0.98rem;
    font-weight: 500;
}

.download-buttons,
.backup-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.backup-buttons {
    margin-top: 18px;
}

/* Button Styles */
.download-btn {
    display: inline-block;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #3058ff 0%, #5f3dff 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.24s ease;
    box-shadow: 0 12px 24px rgba(48, 88, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-2px);
    opacity: 0.96;
    box-shadow: 0 16px 32px rgba(48, 88, 255, 0.24);
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(48, 88, 255, 0.24);
}

.backup-buttons .download-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    box-shadow: 0 12px 24px rgba(39, 174, 96, 0.18);
}

.backup-buttons .download-btn:hover {
    box-shadow: 0 16px 32px rgba(39, 174, 96, 0.24);
}

.backup-buttons .download-btn:active {
    box-shadow: 0 8px 18px rgba(39, 174, 96, 0.24);
}

/* Toggle Button */
.download-actions {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.toggle-btn {
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #3058ff;
    background: #eef4ff;
    border: 1px solid #a8c1ff;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.24s ease;
}

.toggle-btn:hover {
    background: #dce8ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(48, 88, 255, 0.15);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Footer */
.site-footer {
    max-width: 1200px;
    margin: 0 auto 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.8;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 880px) {
    .image-card {
        padding: 24px;
        border-radius: 24px;
    }

    .tabs-nav {
        gap: 24px;
    }

    .tab-trigger {
        font-size: 1.2rem;
    }
}

@media (max-width: 640px) {
    body {
        padding: 12px;
    }

    .container {
        gap: 16px;
    }

    .image-card {
        padding: 16px;
        border-radius: 20px;
        margin-bottom: 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    }

    .tabs-nav {
        gap: 16px;
        margin-bottom: 24px;
    }

    .tab-trigger {
        font-size: 1.05rem;
        padding-bottom: 8px;
    }

    .tab-trigger.active::after {
        width: 32px;
        height: 3px;
    }

    .download-note {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .download-buttons,
    .backup-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .download-btn {
        width: 100%;
        max-width: none;
        padding: 10px 8px;
        font-size: 0.85rem;
        border-radius: 10px;
        text-align: center;
    }

    .toggle-btn {
        width: 100%;
        padding: 10px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .image {
        border-radius: 12px;
        margin-top: 16px;
    }

    /* 禁用移动端悬停缩放以避免粘滞感 */
    .image:hover {
        transform: none;
    }
}

@media (max-width: 360px) {
    .tabs-nav {
        gap: 12px;
    }

    .tab-trigger {
        font-size: 0.95rem;
    }

    .download-buttons,
    .backup-buttons {
        grid-template-columns: 1fr;
    }
}
