/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 背景装饰 */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0) 70%),
                radial-gradient(circle, rgba(46, 204, 113, 0.1) 0%, rgba(46, 204, 113, 0) 70%);
    background-size: 300px 300px;
    background-position: 0 0, 300px 300px;
    z-index: -1;
    animation: pulse 8s infinite;
}

@keyframes pulse {
    0% {
        background-position: 0 0, 300px 300px;
    }
    50% {
        background-position: 300px 300px, 0 0;
    }
    100% {
        background-position: 0 0, 300px 300px;
    }
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}


    /* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
    position: relative;
}

.nav-links a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.nav-links a i {
    margin-right: 8px;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    margin-top: 5px;
    list-style: none; /* 移除默认的列表样式 */
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: 100%;
}

.dropdown-menu a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.dropdown-menu a:hover {
    background-color: #f5f7fa;
    color: #3498db;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* 主内容区域 */
.main-content {
    margin-top: 80px;
    padding: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 区域样式 */
.section {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background-color: #3498db;
    transition: left 0.5s ease;
}

.section:hover::before {
    left: 0;
}

.section-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #3498db;
}

/* 动态线条装饰 */
.dynamic-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    transform: scaleX(0);
    transition: transform 1.5s ease-in-out;
    bottom: -2px;
    left: 0;
}

.section:hover .dynamic-line {
    transform: scaleX(1);
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 30px 0;
    background-color: #f8f9fa;
    margin-top: 50px;
    border-top: 1px solid #eaeaea;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .section {
        padding: 20px;
    }
}

/* 更新日志和介绍页面的通用样式 */
.page-header {
    text-align: center;
    padding: 60px 0 30px;
}

.page-title {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 18px;
    color: #7f8c8d;
}

.log-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.log-date {
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
    display: block;
}

.log-content {
    color: #555;
}

.intro-profile {
    text-align: center;
    margin-bottom: 30px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 5px solid #3498db;
}

.profile-name {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.profile-title {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 20px;
}

.social-links li {
    margin: 0 10px;
}

.social-links a {
    color: #3498db;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

/* 滚动效果 */
.scroll-effect {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-effect.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 粒子动画背景 */
.particle {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle::before {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #3498db;
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translate(calc(var(--x) * 1%), calc(var(--y) * 1%));
        opacity: 0;
    }
}

/* 生成多个粒子 */
@for $i from 1 through 50 {
    .particle:nth-child(#{$i})::before {
        --x: random(200) - 100;
        --y: random(200) - 100;
        animation-delay: #{random(15)}s;
    }
}