:root {
    --bg: #f8fafc;
    --fg: #0f172a;
    --muted: rgba(15, 23, 42, 0.62);
    --border: rgba(15, 23, 42, 0.10);
    --card: rgba(255, 255, 255, 0.72);
    --card-border: rgba(255, 255, 255, 0.55);
    --shadow: 0 28px 80px rgba(2, 6, 23, 0.10);

    --primary: #2563eb;
    --secondary: #3b82f6;
    --wechat: #07c160;
    --focus: rgba(37, 99, 235, 0.40);
}

body {
    margin: 0;
    padding: 0;
    /* 优先使用鸿蒙字体 */
    font-family: "HarmonyOS Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background: radial-gradient(1200px 700px at 10% 15%, rgba(37, 99, 235, 0.18), transparent 60%),
        radial-gradient(900px 600px at 90% 18%, rgba(139, 92, 246, 0.14), transparent 55%),
        radial-gradient(1000px 800px at 55% 100%, rgba(16, 185, 129, 0.12), transparent 60%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 30%, #f8fafc 100%);
    overflow-x: hidden;
    color: var(--fg);
}

@media (prefers-color-scheme: dark) {
    body {
        --bg: #0b1220;
        --fg: rgba(226, 232, 240, 0.92);
        --muted: rgba(226, 232, 240, 0.68);
        --border: rgba(226, 232, 240, 0.16);
        --card: rgba(2, 6, 23, 0.48);
        --card-border: rgba(226, 232, 240, 0.12);
        --shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
        background: radial-gradient(1200px 700px at 10% 15%, rgba(37, 99, 235, 0.24), transparent 60%),
            radial-gradient(900px 600px at 90% 18%, rgba(139, 92, 246, 0.20), transparent 55%),
            radial-gradient(1000px 800px at 55% 100%, rgba(16, 185, 129, 0.16), transparent 60%),
            linear-gradient(180deg, #070b14 0%, #0b1220 40%, #070b14 100%);
    }
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
    background: radial-gradient(800px 500px at 35% 20%, rgba(255, 255, 255, 0.55), transparent 60%),
        radial-gradient(600px 450px at 70% 30%, rgba(255, 255, 255, 0.35), transparent 60%),
        radial-gradient(900px 700px at 40% 95%, rgba(255, 255, 255, 0.25), transparent 60%);
    mix-blend-mode: overlay;
    opacity: 0.55;
}

@media (prefers-color-scheme: dark) {
    body::before {
        background: radial-gradient(800px 500px at 35% 20%, rgba(255, 255, 255, 0.12), transparent 60%),
        radial-gradient(600px 450px at 70% 30%, rgba(255, 255, 255, 0.08), transparent 60%),
        radial-gradient(900px 700px at 40% 95%, rgba(255, 255, 255, 0.06), transparent 60%);
        opacity: 0.7;
    }
}

/* 背景动态光斑 */
.blob-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(110px);
    opacity: 0.55;
    animation: floatBlob 22s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(161, 196, 253, 0.8) 0%, rgba(194, 233, 251, 0) 70%);
    animation-delay: -5s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 226, 226, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
    animation-delay: 0s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(200, 230, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
    animation-delay: -10s;
}

@media (prefers-color-scheme: dark) {
    .blob-1 { background: radial-gradient(circle, rgba(76, 161, 175, 0.4) 0%, rgba(44, 62, 80, 0) 70%); }
    .blob-2 { background: radial-gradient(circle, rgba(44, 62, 80, 0.5) 0%, rgba(0, 0, 0, 0) 70%); }
    .blob-3 { background: radial-gradient(circle, rgba(52, 152, 219, 0.3) 0%, rgba(0, 0, 0, 0) 70%); }
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.1); }
}

.card {
    --mx: 50%;
    --my: 18%;
    background: var(--card);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    padding: 56px 44px;
    border-radius: 26px;
    width: 90%;
    max-width: 560px;
    box-shadow: var(--shadow),
        inset 0 0 0 1px var(--card-border);
    border: 1px solid var(--border);
    animation: floatUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    translate: 0 20px;
    transform: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    will-change: opacity;
}

/* 卡片流光边框效果 */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.24), transparent);
    transform: skewX(-25deg);
    animation: shine 9s infinite;
    pointer-events: none;
}

.card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(360px 260px at var(--mx) var(--my), rgba(255, 255, 255, 0.62), transparent 62%),
        radial-gradient(640px 360px at calc(var(--mx) + 10%) calc(var(--my) + 8%), rgba(37, 99, 235, 0.26), transparent 62%),
        radial-gradient(520px 320px at calc(var(--mx) - 16%) calc(var(--my) + 18%), rgba(139, 92, 246, 0.18), transparent 64%);
    opacity: 0.18;
    transition: opacity 0.22s ease;
    pointer-events: none;
    mix-blend-mode: soft-light;
    filter: saturate(1.25);
}

.card.is-active::after {
    opacity: 0.88;
}

.card.is-active {
    box-shadow: 0 34px 90px rgba(2, 6, 23, 0.14), inset 0 0 0 1px var(--card-border);
    border-color: rgba(37, 99, 235, 0.20);
}

@keyframes shine {
    0% { left: -100%; opacity: 0; }
    20% { opacity: 0.5; }
    40% { left: 200%; opacity: 0; }
    100% { left: 200%; opacity: 0; }
}

@media (prefers-color-scheme: dark) {
    .card { background: var(--card); }
    .card::before {
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.08), transparent);
    }
    .card::after {
        mix-blend-mode: screen;
        filter: saturate(1.2);
        opacity: 0.12;
    }
    .card.is-active::after {
        opacity: 0.72;
    }
}

@keyframes floatUp {
    to {
        opacity: 1;
        translate: 0 0;
    }
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 32px;
    object-fit: cover;
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.65);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.16);
}

.title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 650;
    letter-spacing: 0.6px;
    color: var(--fg);
    margin-bottom: 18px;
    font-family: "HarmonyOS Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.quote {
    background: transparent;
    border: 0;
    padding: 0;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.85;
    color: var(--muted);
    font-weight: 400;
    margin-bottom: 34px;
    letter-spacing: 0.2px;
    max-width: 46ch;
    min-height: 3.6em; /* 预留两行高度，防止内容加载时抖动 */
    opacity: 0; /* 初始隐藏 */
    transition: opacity 0.8s ease; /* 添加淡入过渡 */
    cursor: pointer;
    position: relative;
}
.quote.show {
    opacity: 1; /* 加载完成后显示 */
}

.quote:hover {
    color: rgba(15, 23, 42, 0.78);
}

.quote:active {
    opacity: 0.88;
}

.quote:disabled {
    cursor: wait;
    opacity: 0.6;
}

.quote:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 6px;
    border-radius: 12px;
}

@media (prefers-color-scheme: dark) {
    .quote:hover {
        color: rgba(226, 232, 240, 0.82);
    }
}

/* 微信客服样式 */
.contact-box {
    margin-bottom: 20px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.46);
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    color: inherit;
}

.contact-box:hover {
    background: rgba(255, 255, 255, 0.62);
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.10);
}

.contact-box:active {
    transform: translateY(0);
}

.contact-box:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

#wechatBtn[data-state="已复制"] {
    border-color: rgba(16, 185, 129, 0.32);
}



.contact-icon {
    width: 20px;
    height: 20px;
    fill: var(--wechat);
}

.contact-text {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

.contact-copy-tip {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: var(--wechat);
    color: white;
    font-size: 12px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

/* PC端悬停显示 */
@media (hover: hover) {
    .contact-box:hover .contact-copy-tip {
        transform: translateX(0);
    }
}

.contact-box:focus-visible .contact-copy-tip {
    transform: translateX(0);
}

/* 复制成功/失败时的状态反馈 */
#wechatBtn[data-state="已复制"] .contact-copy-tip {
    background: rgba(16, 185, 129, 0.92);
    transform: translateX(0);
}

#wechatBtn[data-state="复制失败"] .contact-copy-tip {
    transform: translateX(0);
}

/* 移动端移除 hover: none 强制显示，避免遮挡文字 */

@media (prefers-color-scheme: dark) {
    .contact-box {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(226, 232, 240, 0.14);
    }
    .contact-box:hover {
        background: rgba(255, 255, 255, 0.10);
    }
    .contact-text {
        color: var(--muted);
    }
}

/* 收藏引导样式 */
.bookmark-btn {
    margin-top: 10px; /* 调整间距 */
    background: rgba(255, 255, 255, 0.40);
    color: var(--fg);
    border: 1px solid var(--border);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 520;
}

.bookmark-btn:hover {
    background: rgba(255, 255, 255, 0.60);
    border-color: rgba(37, 99, 235, 0.30);
    color: var(--fg);
    transform: translateY(-1px);
}

.bookmark-btn:active {
    transform: translateY(0);
}

.bookmark-btn:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

@media (prefers-color-scheme: dark) {
    .bookmark-btn {
        background: rgba(255, 255, 255, 0.06);
        color: var(--fg);
        border-color: rgba(226, 232, 240, 0.16);
    }
    .bookmark-btn:hover {
        background: rgba(255, 255, 255, 0.10);
        border-color: rgba(147, 197, 253, 0.32);
        color: var(--fg);
    }
}

.bookmark-tip {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(15, 23, 42, 0.86);
    color: rgba(255, 255, 255, 0.96);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
}

.bookmark-tip::after {
    content: '点击关闭 · Esc';
    display: block;
    font-size: 12px;
    opacity: 0.72;
    margin-top: 6px;
}

.bookmark-tip.show {
    transform: translateX(-50%) translateY(0);
}

.footer {
    position: relative;
    margin-top: auto;
    padding: 20px 0;
    width: 100%;
    font-size: 12px;
    color: rgba(15, 23, 42, 0.55);
    text-shadow: none;
    opacity: 0.92;
    transition: opacity 0.3s;
    z-index: 2;
}

.footer:hover {
    opacity: 1;
}

.footer a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.25);
    padding-bottom: 2px;
}

@media (prefers-color-scheme: dark) {
    .footer {
        color: rgba(226, 232, 240, 0.72);
    }
    .footer a {
        border-bottom-color: rgba(226, 232, 240, 0.28);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .card {
        padding: 44px 24px;
        width: 85%;
        max-width: 420px;
    }
    .title { font-size: 28px; }
    .quote { font-size: 16px; }
    .logo { width: 90px; height: 90px; }
    .fraud-content { font-size: 14px; text-align: justify; }
}

/* 粒子背景 Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* 实时时钟样式 */
.clock {
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 520;
    margin-bottom: 20px;
    font-family: "HarmonyOS Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.14em;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    color: var(--fg);
    opacity: 0.92;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

@media (prefers-color-scheme: dark) {
    .clock {
        opacity: 0.96;
        text-shadow: 0 0 22px rgba(37, 99, 235, 0.18);
    }
}

@media (max-width: 768px) {
    .clock { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

.nav-req-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px auto 0;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-req-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: rgba(255, 255, 255, 0.7);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.3);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--fg);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.modal-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 24px;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--fg);
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
}

.req-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.req-top-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.req-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.req-content {
    /* 保留这个类名，虽然已经没用了，或者可以删除 */
}

.req-item {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    display: flex;
    gap: 16px;
    transition: all 0.2s;
}

.req-basics .req-item:last-child {
    margin-bottom: 0;
}

.req-item:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.req-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.req-icon svg {
    width: 22px;
    height: 22px;
}

.req-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
}

.req-detail {
    flex: 1;
}

.req-item h4 {
    margin: 0 0 4px;
    color: var(--fg);
    font-size: 16px;
    font-weight: 650;
}

.req-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.req-item ol {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.req-item.highlight {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.08), rgba(251, 191, 36, 0.05));
    border-color: rgba(245, 158, 11, 0.2);
    border-left: 1px solid rgba(245, 158, 11, 0.2);
    padding: 20px;
    margin-bottom: 0; /* 在 grid 中不需要 margin-bottom */
    height: 100%;
    box-sizing: border-box;
}

.req-item.highlight h4 {
    color: #d97706;
}

.media-card {
    background: rgba(255, 255, 255, 0.5);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative; /* 取消 sticky，现在是 grid item */
    top: auto;
    height: 100%;
    box-sizing: border-box;
}

.media-card h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
    color: var(--fg);
    text-align: center;
}

.video-container {
    width: 100%;
    margin: 16px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 移动端适配调整 */
@media (max-width: 768px) {
    .req-top-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .req-bottom-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .req-item.highlight {
        height: auto;
    }
    .media-card {
        height: auto;
    }
}

.video-container video {
    width: 100%;
    display: block;
    max-height: 400px;
}

/* 视频放大按钮 */
.video-overlay-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    opacity: 0;
}

.video-container:hover .video-overlay-btn {
    opacity: 1;
}

.video-overlay-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.action-btn.download {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--success);
    color: white;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.action-btn.download:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.media-note {
    margin-top: 16px;
    font-size: 13px;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 12px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .req-content {
        grid-template-columns: 1fr;
    }
    .modal-card {
        height: 90vh;
    }
    /* 移动端常显放大按钮 */
    .video-overlay-btn {
        opacity: 1;
    }
}

@media (prefers-color-scheme: dark) {
    .nav-req-btn {
        background: rgba(30, 41, 59, 0.6);
        color: var(--primary);
    }
    .modal-card {
        background: rgba(30, 41, 59, 0.9);
    }
    .modal-header {
        background: rgba(30, 41, 59, 0.5);
    }
    .media-card {
        background: rgba(30, 41, 59, 0.5);
    }
    .nav-req-btn:hover {
        background: rgba(30, 41, 59, 0.9);
    }
}
.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    padding-bottom: 60px;
    z-index: 1;
}

.nav-header {
    text-align: center;
    margin-bottom: 40px;
}

.nav-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--fg) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    letter-spacing: -0.5px;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(15, 23, 42, 0.4)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 2;
}

@media (prefers-color-scheme: dark) {
    .search-container::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(226, 232, 240, 0.5)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E");
    }
}

.search-input {
    width: 100%;
    padding: 18px 24px 18px 54px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-size: 16px;
    color: var(--fg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    outline: none;
    box-sizing: border-box;
}

.search-input:focus {
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.4);
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 20px;
}

.nav-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    opacity: 0;
    animation: cardFadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes cardFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(255, 255, 255, 0.85);
}

@media (prefers-color-scheme: dark) {
    .nav-card {
        background: rgba(30, 41, 59, 0.6);
    }
    .nav-card:hover {
        background: rgba(30, 41, 59, 0.8);
        box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    }
    .search-input {
        background: rgba(30, 41, 59, 0.6);
    }
    .search-input:focus {
        background: rgba(30, 41, 59, 0.8);
    }
}

.nav-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    width: 100%;
}

.nav-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.05));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.nav-card:hover .nav-icon {
    background: var(--primary);
    color: white;
    transform: rotate(-5deg);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.nav-card-title {
    font-size: 17px;
    font-weight: 650;
    color: var(--fg);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.nav-tag {
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-radius: 20px;
    white-space: nowrap;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.nav-desc {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 45px; 
}

.nav-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    filter: brightness(1.05);
}

.nav-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-container {
        width: 100%;
        padding: 0 16px;
        margin-top: 20px;
    }
    .nav-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }
}

/* Lightbox 样式 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: white;
}