/* 全局样式 */
:root {
    --primary-color: #4a4a4a;
    --secondary-color: #f4f4f4;
    --accent-color: #66c2ff;
    --text-color: #333333;
    --light-text: #ffffff;
    --dark-bg: #2a2a2a;
    --transition-speed: 0.4s;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: #3399ff;
}

.container {
    width: 100%;
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--light-text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-link {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 5px;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after, 
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition-speed);
}

/* 区域样式 */
.section {
    padding: 100px 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background-color: var(--accent-color);
}

/* 首页样式 */
#home {
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--header-height);
}

.home-content {
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
}

.welcome-text {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.welcome-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light-text);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.welcome-text p {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    font-size: 1.5rem;
    color: var(--accent-color);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 摄影作品样式 */
.filter-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 30px;
    transition: all var(--transition-speed);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    color: var(--light-text);
    border-color: var(--accent-color);
}

/* 画廊样式 */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-wrapper {
    position: relative;
    margin-bottom: 20px;
    width: 350px;
    display: flex;
    flex-direction: column;
    margin: 0;
    flex: 0 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    height: 300px;
    transition: transform var(--transition-speed);
    margin: 0 auto;
    width: 100%;
    flex: 0 0 auto;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: var(--light-text);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay-text {
    padding: 20px;
}

.overlay-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* 个人链接样式 */
.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 30px;
}

.link-card {
    background-color: var(--light-text);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform var(--transition-speed);
}

.link-card:hover {
    transform: translateY(-10px);
}

.link-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.link-icon i {
    font-size: 1.8rem;
    color: var(--light-text);
}

.link-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.link-card p {
    color: #777;
    margin-bottom: 20px;
}

.link-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: background-color var(--transition-speed);
}

.link-btn:hover {
    background-color: #3399ff;
    color: var(--light-text);
}

.article-links {
    display: flex;
    flex-direction: column;
}

.article-links a {
    margin: 8px 0;
    color: var(--primary-color);
}

.article-links a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    transition: background-color var(--transition-speed);
}

.social-links a:hover {
    background-color: var(--accent-color);
}

.social-links a i {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

.social-links a:hover i {
    color: var(--light-text);
}

/* 简历样式 */
.resume-container {
    max-width: 800px;
    margin: 0 auto;
}

.resume-section {
    margin-bottom: 40px;
}

.resume-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.resume-item {
    margin-bottom: 25px;
}

.resume-item h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.resume-item .place {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.resume-item .date {
    font-style: italic;
    color: #777;
    margin-bottom: 10px;
}

.skills-container {
    margin-top: 20px;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-name {
    display: inline-block;
    width: 140px;
    font-weight: 600;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 5px;
}

.skill-level {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 5px;
}

.contact-info {
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info p i {
    width: 25px;
    color: var(--accent-color);
    margin-right: 10px;
}

.download-resume {
    text-align: center;
    margin-top: 40px;
}

.download-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: background-color var(--transition-speed);
}

.download-btn:hover {
    background-color: #3399ff;
    color: var(--light-text);
}

.download-btn i {
    margin-right: 10px;
}

/* 页脚样式 */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 30px 5%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: var(--light-text);
    margin: 0 15px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 50px;
}

.modal-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.modal-prev,
.modal-next {
    background: transparent;
    border: none;
    color: var(--light-text);
    font-size: 2rem;
    margin: 0 20px;
    cursor: pointer;
}

/* 爱好描述样式 */
.hobby-description {
    width: 100%;
    margin: 15px 0 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    border-left: 4px solid var(--accent-color);
}

.hobby-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--primary-color);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-align: left;
}

.photography-description {
    border-color: #66c2ff;
}

/* 动态部分样式 */
.updates-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.update-card {
    background-color: var(--light-text);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    display: flex;
    overflow: hidden;
    transition: transform var(--transition-speed);
}

.update-card:hover {
    transform: translateY(-5px);
}

.update-date {
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 20px;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.update-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.update-date .month {
    font-size: 1rem;
    margin: 5px 0;
}

.update-date .year {
    font-size: 0.9rem;
    opacity: 0.8;
}

.update-content {
    padding: 25px;
    flex: 1;
}

.update-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.update-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.update-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--light-text);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left var(--transition-speed);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 20px 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .section {
        padding: 80px 20px;
    }
    
    .welcome-text {
        padding: 20px;
        margin: 0 15px;
    }
    
    .welcome-text h1 {
        font-size: 2.5rem;
    }
    
    .welcome-text p {
        font-size: 1.2rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery-wrapper {
        width: 100%;
    }


    .links-container {
        grid-template-columns: 1fr;
    }

    .hobby-description {
        margin: 10px 0 0;
        padding: 15px;
    }
    
    .hobby-description p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .update-card {
        flex-direction: column;
    }
    
    .update-date {
        padding: 15px;
        flex-direction: row;
        justify-content: space-around;
        min-width: 100%;
    }
    
    .update-date .day,
    .update-date .month,
    .update-date .year {
        margin: 0 5px;
    }
    
    .update-content {
        padding: 20px;
    }
} 