/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* ===== 页首样式 ===== */
#header {
    position: relative;
    padding: 28px 24px 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(0, 20, 40, 0.06);
    background: transparent;
    overflow: hidden;
    border-radius: 0 0 48px 48px;
}

#header .header-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    opacity: 0.30;
    border-radius: 0 0 48px 48px;
}

#header .header-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.5) contrast(1.1) brightness(0.9);
}

#header .header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

#header .logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

#header .chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 58, 95, 0.10);
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 60px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1e3a5f;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 20, 30, 0.04);
}

#header .chip-icon svg {
    margin-right: 6px;
}

#header .blog-title {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(145deg, #0b2a4a, #1f4b6e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#header .blog-title small {
    font-weight: 400;
    font-size: 1rem;
    -webkit-text-fill-color: #5b6f87;
    color: #5b6f87;
    margin-left: 8px;
}

#header .nav-links {
    display: flex;
    gap: 28px;
    font-weight: 450;
}

#header .nav-links a {
    text-decoration: none;
    color: #1e3a5f;
    font-size: 1rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

#header .nav-links a:hover {
    border-bottom-color: #2b6f9e;
    color: #0b2a4a;
}

/* ===== 页脚样式 ===== */
#footer {
    position: relative;
    margin-top: 48px;
    padding: 36px 24px 28px;
    border-top: 1px solid rgba(0, 20, 40, 0.06);
    overflow: hidden;
    border-radius: 48px 48px 0 0;
    background: transparent;
}

#footer .footer-video-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    opacity: 0.18;
    border-radius: 48px 48px 0 0;
}

#footer .footer-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.4) contrast(1.2) brightness(0.8);
}

#footer .footer-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    backdrop-filter: blur(2px);
}

#footer .footer-copy {
    font-size: 0.95rem;
    color: #2c405a;
    display: flex;
    align-items: center;
    gap: 6px;
}

#footer .chip-badge {
    display: inline-block;
    background: rgba(20, 60, 100, 0.08);
    padding: 2px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1f4b6e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
}

#footer .footer-social {
    display: flex;
    gap: 16px;
}

#footer .footer-social a {
    color: #2c405a;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 4px 14px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.30);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: 0.2s;
}

#footer .footer-social a:hover {
    background: rgba(30, 58, 95, 0.08);
    border-color: rgba(30, 58, 95, 0.15);
    color: #0b2a4a;
}

/* ===== 响应式 ===== */
@media (max-width: 700px) {
    #header .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    #header .nav-links {
        flex-wrap: wrap;
        gap: 16px;
    }
    #header .blog-title {
        font-size: 1.5rem;
    }
    #footer .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    #footer .footer-social {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    #header .header-video-bg video,
    #footer .footer-video-bg video {
        display: none;
    }
    #header .header-video-bg,
    #footer .footer-video-bg {
        background: #dce3ec30;
        opacity: 0.2;
    }
}