body {
    font-family: 'Noto Sans SC', sans-serif;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* --- 背景动画 (日间) --- */
.bg-aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(125deg, #ffffff 0%, #f0f4ff 30%, #fff0f5 60%, #fdf2f8 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    transition: opacity 0.5s ease;
}

/* --- 背景动画 (夜间) --- */
.bg-midnight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(125deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* 暗黑模式激活时切换背景 */
.dark .bg-aurora {
    opacity: 0;
}

.dark .bg-midnight {
    opacity: 1;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- 玻璃拟态卡片 --- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    transition: background 0.3s, border 0.3s;
}

/* 暗黑模式下的玻璃卡片 */
.dark .glass-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* 渐变文字 */
.text-gradient {
    background: linear-gradient(to right, #4f46e5, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark .text-gradient {
    background: linear-gradient(to right, #818cf8, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 页面切换动画 */
.page-section {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* --- 新版插件卡片特效 --- */
.plugin-card-new {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.dark .plugin-card-new {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 悬停时的光晕边框 */
.plugin-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.5rem;
    padding: 2px;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.plugin-card-new:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.3);
}

.dark .plugin-card-new:hover {
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.4);
}

.plugin-card-new:hover::before {
    opacity: 1;
}

/* 装饰性网格背景 */
.grid-bg {
    background-image: radial-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* --- 下载按钮炫酷悬浮效果 --- */
.download-btn {
    --btn-color: #059669;
    --btn-color-rgb: 5, 150, 105;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

/* 光波扫过效果 */
.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 70%,
            transparent 100%);
    transition: left 0.6s ease;
    z-index: 2;
    pointer-events: none;
}

/* 底部发光线条 */
.download-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: width 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 10px 30px -5px rgba(var(--btn-color-rgb), 0.5),
        0 0 20px rgba(var(--btn-color-rgb), 0.3),
        inset 0 -2px 5px rgba(0, 0, 0, 0.1);
    filter: brightness(1.15);
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover::after {
    width: 80%;
}

/* 下载图标动画 */
.download-btn:hover .fa-download {
    animation: downloadBounce 0.6s ease infinite;
}

@keyframes downloadBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(3px);
    }

    60% {
        transform: translateY(-2px);
    }
}

/* 按下效果 */
.download-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(var(--btn-color-rgb), 0.3);
    filter: brightness(0.95);
}

/* 呼吸光晕动画（持续吸引注意力） */
.download-btn-pulse {
    animation: btnPulse 2.5s ease-in-out infinite;
}

@keyframes btnPulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(var(--btn-color-rgb), 0.2);
    }

    50% {
        box-shadow: 0 4px 25px rgba(var(--btn-color-rgb), 0.45);
    }
}

/* --- Logo 动画效果 --- */
@keyframes logoGlow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 4px 25px rgba(168, 85, 247, 0.5), 0 0 40px rgba(99, 102, 241, 0.15);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- 主题切换按钮动画 --- */
.theme-toggle-btn {
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.15);
}

.dark .theme-toggle-btn {
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
}

.theme-toggle-btn:hover {
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.35);
}

.dark .theme-toggle-btn:hover {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* 太阳图标 - 缓慢旋转 + 脉冲光晕 */
@keyframes sunPulse {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
        text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
    }

    50% {
        transform: rotate(15deg) scale(1.1);
        text-shadow: 0 0 16px rgba(251, 191, 36, 0.6);
    }
}

/* 月亮图标 - 轻柔摇摆 + 星光闪烁 */
@keyframes moonRock {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
        text-shadow: 0 0 8px rgba(165, 180, 252, 0.3);
    }

    25% {
        transform: rotate(-8deg) scale(1.05);
        text-shadow: 0 0 14px rgba(165, 180, 252, 0.6);
    }

    75% {
        transform: rotate(5deg) scale(1.05);
        text-shadow: 0 0 12px rgba(129, 140, 248, 0.5);
    }
}
/* --- 浯ʽ --- */
.announcement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.announcement-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.announcement-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.announcement-overlay.show .announcement-card {
    transform: translateY(0) scale(1);
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
}

.announcement-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: -webkit-linear-gradient(135deg, #4f46e5, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.announcement-date {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 1.25rem;
    display: block;
    font-weight: 500;
    font-family: monospace;
}

.announcement-content {
    color: #334155;
    line-height: 1.7;
    font-size: 0.95rem;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Dark Mode */
.dark .announcement-card {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.dark .announcement-content {
    color: #cbd5e1;
}

.dark .announcement-title {
    background: -webkit-linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.announcement-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.3s ease;
}

.dark .announcement-close {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.announcement-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.announcement-btn {
    display: block;
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border: none;
}

.announcement-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}
