/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    /* 增加非常细腻的渐变底色，打破纯黑的死板 */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(79, 172, 254, 0.06), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 51, 102, 0.06), transparent 25%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* ================= 网页背景特效增强 ================= */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
}

.bg-glow {
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.12;
    pointer-events: none;
}

.bg-glow-blue {
    top: -20%;
    right: 5%;
    background: var(--color-blue);
}

.bg-glow-red {
    bottom: -10%;
    left: 0%;
    background: var(--color-purple);
}

/* 动画定义 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================= 网页页脚与备案区域 (Site Footer) ================= */
/* 外部全宽毛玻璃容器：确保全站底部风格一致且拥有完美的上方留白与视觉边界 */
.site-footer {
    width: 100%;
    padding: 36px 20px 42px;
    margin-top: 60px;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.4) 0%, rgba(10, 10, 15, 0.85) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 10;
}

/* 底部发光装饰线条：增加轻奢科技感质感 */
.site-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 80%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.5), transparent);
}

/* 内部弹性布局容器：强制 100% 宽度，并水平和垂直居中对齐所有元素 */
.footer-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

/* 版权文字样式：简洁淡雅，字体垂直平齐 */
.copyright {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 400;
    margin: 0;
    display: inline-flex;
    align-items: center;
}

/* 分隔线样式：让水平排列的版权与备案号更有秩序感 */
.footer-divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    user-select: none;
}

/* 备案号外层容器重置 */
.icp-info {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

/* 备案号跳转链接样式：去冗余边框与底色，还原高级无界设计，配合文字悬停特效 */
.icp-link {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

/* 盾牌图标样式：保持默认主题蓝光亮，提升信任感 */
.icp-link i {
    color: var(--color-blue);
    font-size: 0.95rem;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

/* 鼠标悬停（Hover）交互：文字高亮呈亮蓝色，盾牌轻微放大发光，无任何突兀方框 */
.icp-link:hover {
    color: #fff;
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
}

.icp-link:hover i {
    transform: scale(1.15);
    text-shadow: 0 0 14px rgba(0, 242, 254, 0.8);
}

/* 移动端或小屏幕下的自适应居中优化：当屏幕较窄时自然折行，并保持每一行绝对水平居中 */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 10px;
    }
    .footer-divider {
        display: none;
    }
}
