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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #fff;
    background-color: #000;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 视频背景 */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 加深遮罩层透明度 */
}

/* 鼠标跟随效果 */
.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.7); /* 改为白色边框 */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    display: none;
}

@media (min-width: 1024px) {
    .cursor-follower {
        display: block;
    }
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.5s ease;
    color: #fff; /* 改为白色文字 */
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.9); /* 加深背景色 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 15px 50px;
}

.logo a {
    font-family: 'Noto Serif SC', serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); /* 添加文字阴影 */
}

.nav ul {
    display: flex;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    font-size: 14px;
    letter-spacing: 2px;
    position: relative;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); /* 添加文字阴影 */
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff; /* 改为白色下划线 */
    transition: width 0.3s ease;
}

.nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff; /* 改为白色线条 */
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .header {
        padding: 20px 30px;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9); /* 改为半透明黑色背景 */
        display: flex;
        align-items: center;
        justify-content: center;
        transition: left 0.5s ease;
        z-index: 99;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .nav ul li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 100;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* 英雄区域 */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    color: #fff; /* 改为白色文字 */
}

.hero-content {
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.3); /* 添加半透明背景 */
    padding: 30px;
    border-radius: 5px;
    backdrop-filter: blur(5px); /* 添加模糊效果 */
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0, 0, 0, 0.9); /* 增强文字阴影 */
}

.hero .subtitle {
    font-size: 1.2rem;
    letter-spacing: 3px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.8s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0, 0, 0, 0.9); /* 增强文字阴影 */
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s;
}

.scroll-indicator span {
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); /* 添加文字阴影 */
}

.arrow-down {
    width: 20px;
    height: 20px;
    border-right: 2px solid #fff; /* 改为白色箭头 */
    border-bottom: 2px solid #fff; /* 改为白色箭头 */
    transform: rotate(45deg);
    animation: bounce 2s infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); /* 添加阴影 */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* 通用区块样式 */
section {
    padding: 100px 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); /* 添加文字阴影 */
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background-color: #fff; /* 改为白色 */
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8); /* 改为半透明白色 */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); /* 添加文字阴影 */
}

.section-footer {
    text-align: center;
    margin-top: 60px;
}

.btn-more {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #fff; /* 改为白色边框 */
    font-size: 14px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3); /* 添加半透明背景 */
}

.btn-more:hover {
    background-color: #fff;
    color: #000;
}

/* 作品集区域 */
.works-section {
    background-color: rgba(0, 0, 0, 0.5); /* 改为半透明黑色背景 */
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 30px;
}

.work-item {
    position: relative;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.work-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 改为半透明黑色背景 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.work-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.5s ease;
    color: #fff; /* 确保文字为白色 */
}

.work-overlay p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8); /* 改为半透明白色 */
    transform: translateY(20px);
    transition: transform 0.5s ease 0.1s;
}

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

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-item:hover .work-overlay h3,
.work-item:hover .work-overlay p {
    transform: translateY(0);
}

/* 文章区域 */
.articles-section {
    background-color: rgba(0, 0, 0, 0.3); /* 添加半透明背景 */
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 40px;
}

.article-item {
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1); /* 改为半透明白色背景 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px); /* 添加模糊效果 */
    border: 1px solid rgba(255, 255, 255, 0.1); /* 添加细边框 */
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.15); /* 悬停时略微提高亮度 */
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7); /* 改为半透明白色 */
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #fff; /* 确保标题为白色 */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); /* 添加文字阴影 */
}

.article-excerpt {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8); /* 改为半透明白色 */
    margin-bottom: 20px;
}

.article-link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    color: #fff; /* 确保链接为白色 */
}

.article-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff; /* 改为白色 */
    transition: width 0.3s ease;
}

.article-link:hover::after {
    width: 100%;
}

/* 关于我区域 */
.about-section {
    background-color: rgba(0, 0, 0, 0.5); /* 改为半透明黑色背景 */
}

.about-content {
    display: flex;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image {
    flex: 0 0 40%;
    padding-right: 50px;
}

.about-image img {
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text {
    flex: 0 0 60%;
}

.about-text p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9); /* 改为接近白色 */
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); /* 添加文字阴影 */
}

.btn-resume {
    display: inline-block;
    padding: 12px 30px;
    background-color: rgba(255, 255, 255, 0.1); /* 改为半透明白色背景 */
    color: #fff;
    font-size: 14px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3); /* 添加边框 */
}

.btn-resume:hover {
    background-color: #fff;
    color: #000;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        flex: 0 0 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .about-text {
        flex: 0 0 100%;
    }
}

/* 联系区域 */
.contact-section {
    background-color: rgba(0, 0, 0, 0.3); /* 添加半透明背景 */
}

.contact-content {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    flex: 0 0 40%;
    padding-right: 50px;
}

.contact-item {
    margin-bottom: 40px;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    color: #fff; /* 确保标题为白色 */
}

.contact-item h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 1px;
    background-color: #fff; /* 改为白色 */
}

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

.social-links li a {
    display: inline-block;
    position: relative;
    color: rgba(255, 255, 255, 0.9); /* 改为接近白色 */
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); /* 添加文字阴影 */
}

.social-links li a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff; /* 改为白色 */
    transition: width 0.3s ease;
}

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

.contact-form {
    flex: 0 0 60%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* 改为半透明白色 */
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.1); /* 改为半透明白色背景 */
    color: #fff; /* 文字颜色为白色 */
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.15); /* 聚焦时略微提高亮度 */
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6); /* 占位符文字为半透明白色 */
}

.btn-submit {
    display: inline-block;
    padding: 12px 30px;
    background-color: rgba(255, 255, 255, 0.1); /* 改为半透明白色背景 */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3); /* 添加边框 */
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #fff;
    color: #000;
}

@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info {
        flex: 0 0 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .contact-form {
        flex: 0 0 100%;
    }
}

/* 页脚 */
.footer {
    background-color: rgba(0, 0, 0, 0.8); /* 改为半透明黑色背景 */
    padding: 50px 50px 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo a {
    font-family: 'Noto Serif SC', serif;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); /* 添加文字阴影 */
}

.footer-nav ul {
    display: flex;
}

.footer-nav ul li {
    margin-left: 20px;
}

.footer-nav ul li a {
    font-size: 14px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); /* 添加文字阴影 */
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* 改为半透明白色 */
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6); /* 改为半透明白色 */
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        margin-top: 20px;
    }
    
    .footer-nav ul {
        justify-content: center;
    }
    
    .footer-nav ul li {
        margin: 0 10px;
    }
}

/* 响应式调整 */
@media (max-width: 1024px) {
    section {
        padding: 80px 40px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 30px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 50px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
} 