/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局样式 */
body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.8;
    color: #212121;
    background-color: #f5f5dc;
    overflow-x: hidden;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Ma Shan Zheng', cursive;
    font-weight: normal;
    color: #3E2723;
}

/* 链接样式 */
a {
    text-decoration: none;
    color: #3E2723;
    transition: all 0.3s ease;
}

a:hover {
    color: #B71C1C;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3E2723;
    color: #F5F5DC;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #B71C1C;
    transform: translateY(-2px);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(62, 39, 35, 0.95);
    color: #F5F5DC;
    padding: 15px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand h1 {
    color: #F5F5DC;
    font-size: 24px;
    margin: 0;
}

.navbar-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    margin-left: 30px;
}

.navbar-menu a {
    color: #F5F5DC;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-menu a:hover {
    color: #FFE0B2;
}

/* 移动端汉堡菜单 */
.navbar-toggle {
    display: none;
    font-size: 24px;
    color: #F5F5DC;
    cursor: pointer;
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    background-image: url('https://picsum.photos/id/1036/1920/1080');
    background-color: #f5f5dc;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 245, 220, 0.8);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-name {
    font-size: 72px;
    color: #3E2723;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-quote {
    font-size: 24px;
    color: #5D4037;
    font-style: italic;
    animation: fadeInUp 1s ease;
}

/* 个人简介样式 */
.about {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #B71C1C;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.about-avatar {
    flex: 0 0 300px;
    margin-right: 60px;
    margin-bottom: 40px;
}

.about-avatar img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid #F5F5DC;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.about-title {
    color: #6D4C41;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.about-info p {
    margin-bottom: 15px;
    color: #424242;
    font-size: 16px;
}

.about-achievements {
    margin-top: 30px;
}

.about-achievements h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.about-achievements ul {
    list-style: none;
    padding-left: 0;
}

.about-achievements li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #424242;
}

.about-achievements li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #B71C1C;
    font-size: 18px;
}

/* 作品展示样式 */
.works {
    padding: 80px 0;
    background-color: #F5F5DC;
}

.works-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #FFFFFF;
    border: 2px solid #3E2723;
    color: #3E2723;
    padding: 10px 20px;
    margin: 0 10px 10px 0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #3E2723;
    color: #FFFFFF;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.work-item {
    opacity: 1;
    transition: all 0.3s ease;
}

.work-item.hide {
    display: none;
}

.work-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.work-image {
    position: relative;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
    border: 10px solid #F5F5DC;
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(62, 39, 35, 0.8);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 20px;
    text-align: center;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-overlay h4 {
    color: #FFFFFF;
    font-size: 24px;
    margin-bottom: 10px;
}

.work-overlay p {
    font-size: 16px;
    margin: 0;
}

.work-info {
    padding: 20px;
    text-align: center;
}

.work-info h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.work-info p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* 联系信息样式 */
.contact {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact-info {
    flex: 0 0 350px;
    margin-right: 60px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    color: #B71C1C;
    margin-right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FFF3E0;
    border-radius: 50%;
}

.contact-item p {
    margin: 0;
    font-size: 16px;
    color: #424242;
}

.contact-social {
    margin-top: 40px;
}

.social-link {
    display: inline-block;
    width: 45px;
    height: 45px;
    background-color: #F5F5DC;
    color: #3E2723;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    font-size: 20px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #3E2723;
    color: #F5F5DC;
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: #424242;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    color: #424242;
    transition: all 0.3s ease;
    font-family: 'Noto Sans SC', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #B71C1C;
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    background-color: #3E2723;
    color: #FFFFFF;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-submit:hover {
    background-color: #B71C1C;
    transform: translateY(-2px);
}

/* 页脚样式 */
.footer {
    background-color: #3E2723;
    color: #F5F5DC;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-info h3 {
    color: #F5F5DC;
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-info p {
    margin: 0;
    color: #E0E0E0;
    font-size: 14px;
}

.footer-links h4 {
    color: #F5F5DC;
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #E0E0E0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #FFE0B2;
}

.footer-copyright {
    margin-top: 30px;
    width: 100%;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #5D4037;
    color: #E0E0E0;
    font-size: 14px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    background-color: #FFFFFF;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    position: relative;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 10;
}

.modal-close:hover,
.modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 10px solid #F5F5DC;
}

.modal-info {
    text-align: center;
}

.modal-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-info p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
        align-items: center;
    }
    
    .about-avatar,
    .contact-info {
        margin-right: 0;
        text-align: center;
    }
    
    .about-text,
    .contact-form {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 992px) {
    .hero-name {
        font-size: 56px;
    }
    
    .hero-quote {
        font-size: 20px;
    }
    
    .works-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .work-image img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    /* 导航栏响应式设计 */
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: rgba(62, 39, 35, 0.98);
        padding: 20px 0;
        transition: all 0.3s ease;
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-menu ul {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-menu li {
        margin: 15px 0;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    /* 英雄区域响应式设计 */
    .hero {
        height: 80vh;
        margin-top: 70px;
    }
    
    .hero-name {
        font-size: 48px;
    }
    
    .hero-quote {
        font-size: 18px;
    }
    
    /* 作品展示响应式设计 */
    .works-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .work-image img {
        height: 200px;
    }
    
    /* 页脚响应式设计 */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        margin: 20px 0;
    }
    
    /* 模态框响应式设计 */
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .hero-name {
        font-size: 36px;
    }
    
    .hero-quote {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .about-avatar,
    .contact-info {
        flex: 0 0 250px;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .work-image img {
        height: 300px;
    }
    
    .filter-btn {
        margin: 0 5px 10px 0;
        padding: 8px 15px;
        font-size: 14px;
    }
}