/* =========================================
   1. 全局设置与背景
   ========================================= */
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Noto Sans SC', sans-serif;
    margin: 0;
    padding: 40px 20px;
    background-image: radial-gradient(#333 1px, transparent 1px);
    background-size: 20px 20px;
    background-attachment: fixed;
    user-select: none;
    cursor: default;
    overflow-x: hidden;
}

.main-wrapper { max-width: 1200px; margin: 0 auto; position: relative; }

/* =========================================
   2. 头部设计
   ========================================= */
.header-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* 白色光晕 */
.top-right-light {
    position: absolute;
    top: -30%;     
    right: -30%;    
    width: 1200px;  
    height: 1200px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.15) 25%,
        rgba(0, 0, 0, 0) 70%
    );
    filter: blur(150px);
    z-index: 0;
    pointer-events: none;
}

/* 标题容器 */
.title-container {
    position: relative;
    width: fit-content;
    display: flex;
    flex-direction: column;
    z-index: 1;
    transform: translateX(-20px);
}

/* Updated 跟随标题 */
.top-updated-text {
    position: absolute;
    top: -3.8rem; 
    left: 8px;
    font-size: 1.05rem;
    color: #ccc;
    letter-spacing: 1px;
}

/* 2025 跟随标题 */
.tag-2025 {
    position: absolute;
    top: -1.9rem;
    right: -90px;
    background-color: #ff5e00;
    color: #000;
    padding: 5px 18px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
}

/* 主标题 */
.big-portfolio-title {
    font-family: 'Teko', sans-serif;
    font-size: 16vw; 
    font-weight: 700;
    margin: 0;
    color: #e0e0e0;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 0.78;
    letter-spacing: -6px;
    transform: scaleY(1.15);
    transform-origin: left bottom;
}

/* 横线区域 */
.header-divider-area-new {
    display: flex;
    align-items: center;
    width: 80%; 
    margin-top: -10px;
    gap: 10px;
    margin-left: 5px; 
}

.divider-text {
    font-size: 1rem;
    color: #aaa;
    white-space: nowrap;
}

.divider-line-new {
    flex-grow: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.25);
}


/* =========================================
   3. Bento 网格布局
   ========================================= */
.bento-grid { 
    display: grid; 
    grid-template-columns: 1fr 2fr; 
    gap: 20px; 
    padding-bottom: 50px; /* 稍微减少底部内边距，因为增加了footer */
    padding-top: 40px;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .big-portfolio-title { font-size: 18vw; }
}

@media (max-width: 768px) { 
    .header-section { min-height: 100vh; align-items: center; }
    .bento-grid { grid-template-columns: 1fr; } 
    
    .big-portfolio-title { font-size: 21vw; transform: scaleY(1.1); }
    .top-updated-text { font-size: 0.8rem; top: -1.2rem; }
    .tag-2025 { font-size: 0.8rem; padding: 2px 10px; top: -0.8rem; }
    .divider-text { font-size: 0.7rem; }
    .header-divider-area-new { width: 90%; gap: 10px; margin-top: 20px; }
}

/* =========================================
   4. 卡片样式
   ========================================= */
.card {
    background-color: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.03), 0 20px 50px rgba(0,0,0,0.6);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.card:not(.profile-card)::after {
    content: "";
    position: absolute;
    top: 12px; left: 12px; right: 12px; bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    pointer-events: none;
    z-index: 1;
}

.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* 此处省略长SVG data URI，请保持原样 */
    opacity: 0.04;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.08),
                0 30px 60px rgba(0,0,0,0.8);
}

.card-bg-glow {
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255, 94, 0, 0.2), transparent);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.card-bg-text {
    position: absolute;
    bottom: -20px; right: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 8rem; font-weight: bold;
    color: rgba(255,255,255,0.04);
    z-index: 0;
}

.content-layer { position: relative; z-index: 2; }

.profile-image-wrapper { 
    width: 100%; height: 100%; min-height: 300px; 
    display: flex; align-items: flex-end; justify-content: center; 
    position: relative; 
}

.profile-img {
    width: 90%; max-width: 280px;
    object-fit: contain;
    z-index: 1;
}
.card:hover .profile-img { filter: contrast(110%) brightness(110%) drop-shadow(0 15px 30px rgba(0,0,0,0.6)); transform: scale(1.03); }

/* 文本与按钮 */
.card-label { font-size: 0.8rem; color: #888; margin-top: 0; margin-bottom: 20px; letter-spacing: 1px; }
.intro-card h2 { font-family: 'Noto Sans SC', sans-serif; font-weight: 700; font-size: 4rem; margin: 0; color: #fff; line-height: 1.2; }
.bio-text { color: #bbb; margin: 20px 0; line-height: 1.6; font-size: 1.1rem; }
.social-pills { display: flex; gap: 15px; margin-top: 30px; }
.pill { text-decoration: none; padding: 12px 30px; font-weight: bold; font-size: 0.9rem; text-align: center; border-radius: 50px; transition: 0.2s; backdrop-filter: blur(4px); }
.pill.orange { background-color: #ff5e00; color: #000; }
.pill.orange:hover { background-color: #fff; }
.pill.outline { border: 1px solid rgba(255,255,255,0.2); color: #fff; }
.pill.outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.skill-list { display: flex; flex-direction: column; } 
.skill-item { display: flex; align-items: center; gap: 15px; background: transparent; border-radius: 0; padding: 15px 0; border-bottom: none; }
.skill-item .icon { font-size: 1.4rem; color: #fff; opacity: 0.9; }
.skill-item .info strong { display: block; color: #eee; font-size: 1rem; }
.skill-item .info small { color: #888; font-size: 0.8rem; margin-top: 2px; }

.tools-list { display: flex; flex-direction: column; gap: 10px; }
.tool-item { display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.02); padding: 15px; border-radius: 12px; border: 1px solid transparent; }
.tool-item:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }
.tool-info strong { display: block; color: #eee; font-size: 1rem; }
.tool-info p { margin: 2px 0 0; color: #888; font-size: 0.8rem; }
.download-btn { text-decoration: none; color: #aaa; font-size: 0.8rem; background: rgba(255,255,255,0.05); padding: 6px 15px; border-radius: 20px; transition: all 0.2s; white-space: nowrap; border: 1px solid rgba(255,255,255,0.1); }
.download-btn:hover { background: #ff5e00; color: #000; border-color: #ff5e00; }

.center-content { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 200px;}

/* =========================================
   5. 弹窗与动效
   ========================================= */
.modal { display: none; position: fixed; z-index: 999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); align-items: center; justify-content: center; backdrop-filter: blur(15px); }
.modal-content { background-color: rgba(20,20,20,0.8); padding: 40px; border-radius: 24px; border: 1px solid rgba(255,255,255,0.1); width: 80%; max-width: 350px; text-align: center; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,0.9); backdrop-filter: blur(20px); }
.close-btn { color: #888; float: right; font-size: 28px; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(50px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform, opacity; }
.reveal.active { opacity: 1; transform: translateY(0); }
.pill, .download-btn, .tag-2025 { transition: transform 0.2s ease-out, box-shadow 0.2s ease, background 0.2s, color 0.2s; display: inline-block; }
.card:hover { transform: translateY(-5px) scale(1.005); transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

/* =========================================
   6. 备案栏 (Footer) 样式 - 新增
   ========================================= */
.site-footer {
    padding: 30px 0 60px 0; /* 底部留足空间 */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* 极细的分割线 */
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* 两个备案号之间的间距 */
    color: #555; /* 默认颜色调暗，不抢视觉 */
    font-size: 13px; /* 字体稍微小一点 */
}

/* 链接通用样式 */
.beian-link {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center; /* 确保图标和文字垂直居中 */
    gap: 5px; /* 图标和文字的间距 */
}

.beian-link:hover {
    color: #999; /* 悬停变亮一点 */
}

/* 中间分割线 */
.footer-separator {
    color: #333;
    font-size: 12px;
}

/* 公安图标样式 */
.gongan-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6; /* 让图标稍微暗一点，融合背景 */
}
.beian-link:hover .gongan-icon {
    opacity: 1;
}

/* 移动端适配：手机上垂直排列 */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 8px;
    }
    .footer-separator {
        display: none; /* 手机上隐藏分割线 */
    }
}