/* 全局样式 */
:root {
    --main-color: #5e72e4;
    --secondary-color: #32325d;
    --accent-color: #f5365c;
    --text-color: #333;
    --light-text: #f8f9fa;
    --bg-color: #ffffff;
    --light-bg: #f5f7fa;
    --border-color: #e6ecf5;
    --hover-color: #4154c4;
    --box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --gradient: linear-gradient(120deg, var(--main-color), #11cdef);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
}

body {
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--main-color);
    transition: var(--transition);
}

a:hover {
    color: var(--hover-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    transition: var(--transition);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient);
    color: var(--light-text);
    border-radius: 30px;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(50, 50, 93, 0.15), 0 6px 6px rgba(0, 0, 0, 0.1);
    color: var(--light-text);
}

.btn:hover:before {
    width: 100%;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 25px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--main-color);
    color: var(--light-text);
}

section {
    padding: 5rem 0;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 3px;
    background: var(--gradient);
    transition: var(--transition);
}

section:hover h2:after {
    width: 60px;
}

h3 {
    font-size: 1.6rem;
}

p {
    margin-bottom: 1.5rem;
    color: #4a5568;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: var(--bg-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.8rem 5%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.logo a {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
    position: relative;
}

.logo a:before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--main-color);
    border-radius: 50%;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-links ul {
    display: flex;
}

.nav-links li {
    margin-left: 2.5rem;
    position: relative;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--main-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: var(--transition);
    border-radius: 3px;
}

/* 主内容区域 */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px - 200px); /* navbar height + footer height */
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/66d8f2828937c71c093f0fd6c38c3887.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    margin-top: -80px; /* 抵消navbar的margin */
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(94, 114, 228, 0.3), rgba(130, 94, 228, 0.3));
    opacity: 0.7;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1.2s ease-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease-out;
    opacity: 0.9;
    letter-spacing: 1px;
    color: #000000; /* 将副标题文本颜色改为黑色 */
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5); /* 添加白色文字阴影以增强可读性 */
    font-weight: 600; /* 增加字体粗细以提高可见度 */
}

/* 向下滚动指示器 */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-down a {
    display: block;
    height: 50px;
    width: 30px;
}

.scroll-down span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin: 0 auto 3px;
    animation: scrollDown 1.5s infinite;
}

.scroll-down span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-down span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-15px) translateX(-50%);
    }
    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

/* 波浪分隔符 */
.wave-divider {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 精选作品区域样式 */
.featured-works {
    text-align: center;
    padding: 6rem 5% 3rem;
    background-color: var(--bg-color);
}

.section-description {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #6c757d;
    font-size: 1.1rem;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.work-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 300px;
}

.work-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(50, 50, 93, 0.2), 0 8px 15px rgba(0, 0, 0, 0.1);
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--light-text);
    transform: translateY(70px);
    transition: var(--transition);
    opacity: 0;
}

.work-item:hover .work-info {
    transform: translateY(0);
    opacity: 1;
}

.work-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.work-info p {
    margin-bottom: 1rem;
    opacity: 0.8;
    color: var(--light-text);
}

.cta-button {
    margin-top: 3rem;
}

/* 最新文章区域样式 */
.latest-articles {
    text-align: center;
    background-color: var(--light-bg);
    padding: 6rem 5% 3rem;
    position: relative;
    overflow: hidden;
}

.latest-articles:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: var(--gradient);
    border-radius: 50%;
    opacity: 0.05;
    transform: translate(150px, -150px);
}

.latest-articles:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: var(--gradient);
    border-radius: 50%;
    opacity: 0.05;
    transform: translate(-100px, 100px);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
    position: relative;
    z-index: 2;
}

.article-item {
    background-color: var(--bg-color);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: left;
    transition: var(--transition);
    position: relative;
}

.article-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(50, 50, 93, 0.2), 0 8px 15px rgba(0, 0, 0, 0.1);
}

.article-category {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(120deg, var(--main-color), #11cdef);
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.article-date {
    color: #8898aa;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: inline-block;
    font-weight: 500;
}

.article-item h3 {
    font-size: 1.3rem;
    line-height: 1.4;
    transition: var(--transition);
}

.article-item:hover h3 {
    color: var(--main-color);
}

.article-item p {
    color: #525f7f;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--main-color);
    position: relative;
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover:after {
    margin-left: 10px;
}

.read-more:hover {
    color: var(--hover-color);
}

/* 关于我预览区域样式 */
.about-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 6rem 5%;
    gap: 4rem;
    background-color: var(--bg-color);
}

.subtitle {
    display: inline-block;
    color: var(--main-color);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image:before {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--main-color);
    border-radius: 10px;
    z-index: -1;
    opacity: 0.2;
    transition: var(--transition);
}

.about-preview:hover .about-image:before {
    top: 20px;
    left: 20px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.about-preview:hover .about-image img {
    transform: scale(1.02);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--light-text);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.social-links a:hover {
    background: var(--main-color);
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 10px 20px rgba(50, 50, 93, 0.2), 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* 联系我区域样式 */
.home-contact {
    position: relative;
    padding: 6rem 0;
    background-image: url('../images/66d8f2828937c71c093f0fd6c38c3887.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-text);
    text-align: center;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(50, 50, 93, 0.9), rgba(94, 114, 228, 0.9));
}

.contact-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-content h2 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.contact-content h2:after {
    left: 50%;
    transform: translateX(-50%);
    background: var(--light-text);
}

.contact-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* 页面加载动画 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(94, 114, 228, 0.2);
    border-top: 5px solid var(--main-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 页脚样式 */
footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding-top: 4rem;
    position: relative;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 5% 3rem;
    gap: 3rem;
}

.footer-logo, .footer-links, .footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    margin-top: 1rem;
    opacity: 0.8;
    color: var(--light-text);
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-links h4:after, .footer-contact h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--main-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    position: relative;
    padding-left: 15px;
}

.footer-links a:before {
    content: '>';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--main-color);
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--light-text);
    padding-left: 20px;
}

.footer-links a:hover:before {
    opacity: 1;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    width: 25px;
    margin-right: 10px;
    color: var(--main-color);
}

.footer-contact .social-links {
    margin-top: 1.5rem;
}

.footer-contact .social-links a {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.footer-contact .social-links a:hover {
    background: var(--main-color);
    transform: translateY(-5px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 1.5rem 0;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        background-color: var(--bg-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 80%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        padding-top: 80px;
    }

    .nav-links ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .nav-links li {
        margin: 0;
        padding: 1.5rem 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .burger {
        display: block;
        z-index: 1002;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-preview {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .article-card {
        flex-direction: column;
    }

    .article-image {
        max-width: 100%;
    }

    .articles-filter {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box input {
        width: 200px;
    }

    .resume-content {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .works-grid, .articles-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }

    .interests-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* 添加自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hover-color);
}

/* 添加页面过渡动画 */
.fade-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-transition.appear {
    opacity: 1;
    transform: translateY(0);
}

/* 页面初始加载动画 */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
} 

/* 添加波浪动画 */
@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* 添加滚动到顶部按钮样式 */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(94, 114, 228, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 99;
}

.scroll-top-btn.show {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--main-color);
    transform: translateY(-5px);
}

/* 添加汉堡菜单样式 */
.burger.toggle div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle div:nth-child(2) {
    opacity: 0;
}

.burger.toggle div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.burger-ready div {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* 添加导航链接动画 */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 添加图片灯箱样式 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 添加技能进度条样式 */
.skill-bar {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-name {
    font-weight: 600;
}

.skill-percentage {
    color: var(--main-color);
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background-color: #eaecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 1s ease;
}

/* 添加卡片悬停效果 */
.card-hover {
    transition: var(--transition);
    border: 1px solid transparent;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(94, 114, 228, 0.1);
}

/* 添加图标动画效果 */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.1), rgba(130, 94, 228, 0.1));
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.icon-box i {
    font-size: 24px;
    color: var(--main-color);
    transition: var(--transition);
}

.icon-box:hover {
    background: var(--gradient);
    transform: translateY(-5px) rotate(10deg);
}

.icon-box:hover i {
    color: #fff;
    transform: scale(1.2);
}

/* 添加作品筛选按钮样式 */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #e6ecf5;
    border-radius: 25px;
    background: #fff;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

/* 添加搜索框样式 */
.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    padding-left: 45px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.1);
}

.search-box:before {
    content: '\f002';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #8898aa;
}

/* 添加文章分类和标签样式 */
.articles-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.tags-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 5px 15px;
    background-color: #f8f9fa;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-color);
    transition: var(--transition);
    cursor: pointer;
}

.tag:hover, .tag.active {
    background: var(--gradient);
    color: #fff;
}

/* 添加摄影作品网格样式 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover:before {
    opacity: 1;
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    color: #fff;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
    opacity: 1;
}

/* 添加兴趣爱好网格样式 */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.interest-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.interest-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
}

.interest-box i {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.interest-box:hover i {
    transform: scale(1.2);
}

.interest-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* 添加简历时间轴样式 */
.timeline {
    position: relative;
    margin: 3rem 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content {
    position: relative;
    width: calc(50% - 30px);
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: calc(50% + 30px);
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gradient);
    color: #fff;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--gradient);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-dot:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* 添加联系信息样式 */
.contact-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 0;
}

.contact-item {
    flex: 1;
    min-width: 250px;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.1), rgba(130, 94, 228, 0.1));
    margin-bottom: 1.5rem;
}

.contact-icon i {
    font-size: 1.8rem;
    color: var(--main-color);
}

.contact-item h4 {
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #8898aa;
    margin-bottom: 0;
}

/* 添加联系表单样式 */
.contact-form {
    padding: 3rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.1);
}

.form-control-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* 添加小红书链接卡片样式 */
.xiaohongshu-card {
    display: flex;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
    position: relative;
}

.xiaohongshu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
}

.xiaohongshu-image {
    flex: 1;
    min-width: 200px;
    height: 250px;
}

.xiaohongshu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xiaohongshu-content {
    flex: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.xiaohongshu-content h3 {
    margin-bottom: 1rem;
}

.xiaohongshu-content p {
    margin-bottom: 1.5rem;
    color: #525f7f;
}

.xiaohongshu-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
}

/* 添加文章列表样式 */
.article-card {
    display: flex;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 2.5rem;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
}

.article-image {
    flex: 1;
    min-width: 250px;
    max-width: 250px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    flex: 2;
    padding: 2rem;
}

.article-content h3 {
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.article-content h3:hover {
    color: var(--main-color);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: #8898aa;
    font-size: 0.9rem;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 5px;
    color: var(--main-color);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.5rem;
}

.article-tag {
    padding: 3px 10px;
    background-color: #f8f9fa;
    border-radius: 15px;
    font-size: 0.75rem;
    color: #8898aa;
}

/* 添加可变颜色主题支持 */
body.dark-theme {
    --main-color: #3a5efa;
    --secondary-color: #1c1c28;
    --accent-color: #ff4b6e;
    --text-color: #e1e1e6;
    --light-text: #f8f9fa;
    --bg-color: #121212;
    --light-bg: #1e1e24;
    --border-color: #2c2c3a;
}

/* 添加动画和交互效果 */
.pulse {
    animation: pulse 2s infinite;
}

.zoom-on-hover {
    transition: transform 0.3s ease;
}

.zoom-on-hover:hover {
    transform: scale(1.05);
}

.rotate-on-hover {
    transition: transform 0.5s ease;
}

.rotate-on-hover:hover {
    transform: rotate(360deg);
}

.shake-on-hover:hover {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {transform: translateX(0);}
    20%, 60% {transform: translateX(-5px);}
    40%, 80% {transform: translateX(5px);}
}

/* 添加现代化文本渐变效果 */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* 添加炫酷边框效果 */
.border-glow {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.border-glow:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    z-index: -1;
    border-radius: 16px;
}

.border-glow:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: -1;
    border-radius: 15px;
    margin: 2px;
}

/* 添加阴影悬停效果 */
.shadow-hover {
    box-shadow: 0 0 0 rgba(0,0,0,0);
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 50px rgba(94, 114, 228, 0.3);
}

/* 为网站添加自定义鼠标指针 */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(94, 114, 228, 0.4);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    display: none;
}

.cursor-outer {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(94, 114, 228, 0.3);
    background: transparent;
    animation: cursorAnim 1.5s infinite alternate;
}

@keyframes cursorAnim {
    from {
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        transform: translate(-50%, -50%) scale(0.7);
    }
}

@media (pointer: fine) {
    .custom-cursor {
        display: block;
    }
}

/* 添加滚动条自定义样式 */
::-webkit-scrollbar-thumb:active {
    background: var(--accent-color);
} 