/* 首页赛博朋克 + 磨砂玻璃 + 与 style.css 协同覆盖 */

body.wzym-cyber {
    margin: 0;
    min-height: 100vh;
    background: #050810 !important;
    color: #dce6f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    position: relative;
    overflow-x: hidden;
}

#wzym-particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
}

.wzym-cyber .main-container {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: 20px auto;
    padding: 6px;
    overflow: visible;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.35), rgba(255, 107, 44, 0.25));
    box-shadow:
        0 0 60px rgba(0, 229, 255, 0.12),
        0 20px 50px rgba(0, 0, 0, 0.45);
}

.wzym-cyber .main-container::before {
    display: none;
}

.wzym-cyber #app {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(10, 16, 32, 0.72) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 20px;
    padding: 28px 22px 32px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 40px rgba(0, 0, 0, 0.35);
    color: #e8f0ff !important;
}

.wzym-cyber .header {
    width: 100%;
    padding: 8px 4px 4px;
}

.wzym-cyber .banner {
    margin-top: 8px;
    border-radius: 16px;
    border: 1px solid rgba(0, 229, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    background-size: cover;
    background-position: 50%;
}

.wzym-cyber .logo {
    border: 3px solid rgba(0, 229, 255, 0.45);
    box-shadow:
        0 0 24px rgba(0, 229, 255, 0.25),
        0 12px 28px rgba(0, 0, 0, 0.4);
}

.wzym-cyber .logo.wzym-logo-beat {
    position: relative;
    transition: transform 0.09s ease-out;
    will-change: transform;
}

/* Web Audio 不可用时：随播放态的轻微律动 + 光圈色相（与 music-widget 兜底一致） */
@keyframes wzym-logo-beat-pulse {
    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.04) rotate(-0.6deg);
    }
    75% {
        transform: scale(1.05) rotate(0.6deg);
    }
}

@keyframes wzym-logo-aura-hue {
    0% {
        filter: hue-rotate(0deg);
        border-color: rgba(0, 229, 255, 0.55);
        box-shadow:
            0 0 18px rgba(0, 229, 255, 0.45),
            0 0 36px rgba(255, 107, 44, 0.25);
    }
    33% {
        border-color: rgba(180, 100, 255, 0.65);
        box-shadow:
            0 0 22px rgba(180, 100, 255, 0.5),
            0 0 40px rgba(0, 229, 255, 0.2);
    }
    66% {
        border-color: rgba(255, 120, 60, 0.65);
        box-shadow:
            0 0 24px rgba(255, 120, 60, 0.45),
            0 0 42px rgba(0, 229, 255, 0.22);
    }
    100% {
        filter: hue-rotate(360deg);
        border-color: rgba(0, 229, 255, 0.55);
        box-shadow:
            0 0 18px rgba(0, 229, 255, 0.45),
            0 0 36px rgba(255, 107, 44, 0.25);
    }
}

.wzym-logo-beat.wzym-logo-beat--css-pulse {
    animation: wzym-logo-beat-pulse 0.45s ease-in-out infinite;
}

.wzym-logo-beat.wzym-logo-beat--css-pulse .wzym-logo-aura {
    animation: wzym-logo-aura-hue 2.8s linear infinite;
}

.wzym-logo-aura {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(0, 229, 255, 0.5);
    pointer-events: none;
    z-index: 0;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
    transition: box-shadow 0.1s ease, border-color 0.1s ease;
}

.wzym-logo-beat img {
    position: relative;
    z-index: 1;
}

.wzym-cyber .logo.wzym-logo-beat:focus-visible {
    outline: 2px solid rgba(0, 229, 255, 0.85);
    outline-offset: 3px;
}

.wzym-cyber .author-name {
    margin-top: 18px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: linear-gradient(90deg, #00e5ff 0%, #ffffff 45%, #ff6b2c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    text-shadow: 0 0 40px rgba(0, 229, 255, 0.25);
    line-height: 1.35;
}

.wzym-cyber .desc {
    width: 100%;
    padding: 8px 14px 0;
    font-size: 14px;
    text-align: center;
    color: #9ab0d8 !important;
    line-height: 1.55;
    margin-top: 8px;
}

/* 语录条 */
.wzym-quote-wrap {
    margin: 14px auto 6px;
    max-width: 100%;
    padding: 0 8px;
    min-height: 2.8em;
}

.wzym-quote-inner {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.18);
    box-shadow:
        inset 0 0 30px rgba(0, 229, 255, 0.04),
        0 0 20px rgba(255, 107, 44, 0.06);
    text-align: center;
}

.wzym-quote-text {
    font-family: ui-monospace, "SF Mono", Consolas, "Roboto Mono", monospace;
    font-size: 13px;
    line-height: 1.65;
    color: #7af0ff;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
    word-break: break-word;
}

.wzym-quote-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    background: #ff6b2c;
    vertical-align: text-bottom;
    animation: wzym-cursor-blink 0.85s step-end infinite;
    box-shadow: 0 0 8px #ff6b2c;
}

@keyframes wzym-cursor-blink {
    50% { opacity: 0; }
}

.wzym-quote-glitch .wzym-quote-text {
    color: #ff9a70;
    text-shadow:
        2px 0 #00e5ff,
        -2px 0 #ff6b2c;
    animation: wzym-glitch-shake 0.2s linear infinite;
}

@keyframes wzym-glitch-shake {
    0%, 100% { transform: translate(0); }
    25% { transform: translate(-1px, 1px); }
    75% { transform: translate(1px, -1px); }
}

/* 标签栏 */
.wzym-cyber .tab-list {
    width: 100%;
    padding: 16px 8px 12px;
    gap: 8px;
    justify-content: center;
}

.wzym-cyber .tab-item {
    background: rgba(8, 14, 28, 0.75) !important;
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 999px;
    color: #a8b8d8 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s, transform 0.15s;
}

.wzym-cyber .tab-item:hover {
    border-color: rgba(255, 107, 44, 0.45);
    color: #ff9a70 !important;
    box-shadow: 0 0 20px rgba(255, 107, 44, 0.2);
}

.wzym-cyber .tab-item.is-cyber-active {
    border-color: rgba(255, 107, 44, 0.65) !important;
    color: #ffb088 !important;
    box-shadow:
        0 0 28px rgba(255, 107, 44, 0.28),
        inset 0 0 20px rgba(255, 107, 44, 0.06);
    background: rgba(255, 80, 40, 0.12) !important;
}

/* 列表区 */
.wzym-cyber .app-list {
    background: rgba(4, 8, 18, 0.5) !important;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 10px;
}

.wzym-cyber .item {
    color: #e8f0ff !important;
}

.wzym-cyber .item::before,
.wzym-cyber .item::after {
    display: none;
}

.wzym-cyber .content-wrap {
    background: rgba(12, 20, 40, 0.65) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.wzym-cyber .item:hover .content-wrap {
    border-color: rgba(255, 107, 44, 0.35);
    box-shadow: 0 0 24px rgba(255, 107, 44, 0.12);
    transform: translateY(-2px);
}

.wzym-cyber .item:hover {
    width: 50%;
    transform: none;
}

.wzym-cyber .app-name {
    color: #f0f4ff !important;
    font-weight: 600;
}

/* 图片弹窗：默认隐藏 + 全屏遮罩，避免关闭按钮落到页面左下角 */
.wzym-cyber #myModal.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99990;
    padding: 16px;
    box-sizing: border-box;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background-color: rgba(2, 6, 16, 0.75) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.wzym-cyber #myModal.modal .modal-content {
    position: relative;
    margin: 8vh auto;
    max-width: min(560px, 100%);
    background: rgba(14, 22, 42, 0.95) !important;
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 16px;
    color: #e8f0ff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.wzym-cyber #myModal .close {
    position: absolute;
    top: 6px;
    right: 10px;
    z-index: 2;
    margin: 0;
    padding: 4px 8px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #ff6b2c !important;
}

/* 首次访问公告：全屏遮罩 + 居中玻璃卡片（勿依赖文档流，避免挤到页脚左下角） */
.wzym-cyber .web_notice {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(3, 6, 18, 0.78) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.wzym-cyber .web_notice_content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100%;
    max-width: 520px;
    margin: 0 !important;
    padding: 36px 32px 32px !important;
    border-radius: 20px !important;
    background: rgba(12, 20, 42, 0.88) !important;
    border: 1px solid rgba(0, 229, 255, 0.28);
    color: #e8f0ff;
    box-shadow:
        0 0 40px rgba(0, 229, 255, 0.1),
        0 24px 56px rgba(0, 0, 0, 0.55);
}

.wzym-cyber .web_notice_content h3 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
    color: #00e5ff;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
}

.wzym-cyber .web_notice_content p {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.65;
    color: #c8d4ec;
}

.wzym-cyber .web_notice_content > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    color: #0a1020 !important;
    background: linear-gradient(135deg, #ff8c42, #e65c00);
    border: 1px solid rgba(255, 200, 140, 0.45);
    box-shadow: 0 0 24px rgba(255, 107, 44, 0.35);
    transition: filter 0.15s, transform 0.12s;
}

.wzym-cyber .web_notice_content > a:hover {
    filter: brightness(1.08);
}

.wzym-cyber .web_notice_content > a:active {
    transform: scale(0.98);
}

@media (max-width: 600px) {
    .wzym-cyber .web_notice_content {
        max-width: none;
        padding: 28px 22px 24px !important;
        border-radius: 16px !important;
    }
}

/* 页脚 */
.wzym-cyber .wzym-site-footer {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, transparent, rgba(5, 8, 16, 0.95) 20%) !important;
    border-top: 1px solid rgba(0, 229, 255, 0.1);
}

.wzym-cyber .wzym-footer-brand-link {
    color: #00e5ff !important;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

@media (max-width: 600px) {
    .wzym-cyber #app {
        border-radius: 0;
        margin: 0;
        width: 100%;
        min-height: 100vh;
    }
    .wzym-cyber .main-container {
        margin: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
}
