:root {
    --primary-color: #6366f1;
    --accent-color: #a855f7;
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --blur: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 动态渐变背景 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #0f172a, #1e1b4b, #312e81, #1e1b4b);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 玻璃拟态导航栏 */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color 0.3s;
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* 英雄区 & 个人名片 */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.profile-card {
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.profile-card:hover {
    transform: translateY(-10px);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid var(--primary-color);
    padding: 5px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.bio {
    font-size: 1rem;
    opacity: 0.7;
}

/* 文章区 */
.posts-section {
    padding: 5rem 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.underline {
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.post-card {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.post-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.03);
}

.post-header {
    margin-bottom: 1rem;
}

.post-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: block;
}

.post-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.post-summary {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* 关于区 */
.about-section {
    padding: 5rem 10%;
    margin-bottom: 5rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    line-height: 2;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: justify;
}

/* 页脚备案区 */
.glass-footer {
    padding: 3rem 10%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
    font-size: 0.85rem;
}

.beian-links {
    display: flex;
    gap: 1.5rem;
}

.beian-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.beian-links a:hover {
    color: var(--primary-color);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .glass-nav {
        padding: 1rem 5%;
    }

    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .profile-card {
        padding: 2rem;
    }

    .posts-section {
        padding: 4rem 5%;
    }

    .about-section {
        padding: 4rem 5%;
    }

    .beian-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

/* 详情模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    padding: 3rem;
    position: relative;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.close-btn:hover {
    opacity: 1;
}

.modal-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 2.2rem;
    margin: 1rem 0;
}

.modal-date {
    font-size: 0.9rem;
    opacity: 0.5;
}

.modal-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}