/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem 0;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #4a90e2;
}

/* 主要内容区域 */
main {
    margin-top: 60px;
    padding: 2rem;
}

.hero {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 8rem 2rem;
    margin-bottom: 4rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-tags {
    margin: 2rem 0;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #4a90e2;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cta-button:hover {
    background: #357abd;
    transform: translateY(-2px);
}

.featured {
    padding: 2rem 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.card {
    position: relative;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    padding: 1rem;
    color: #2c3e50;
}

.card p {
    padding: 0 1rem 1rem;
    color: #666;
}

.card-image {
    position: relative;
}

.card-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(74,144,226,0.9);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
}

.card-content {
    padding: 1.5rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #4a90e2;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #2c3e50;
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }
} 

/* 关于页面样式 */
.about-hero {
    background-color: #f5f5f5;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.profile {
    max-width: 800px;
    margin: 0 auto;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.bio, .interests, .education, .skills {
    margin-bottom: 3rem;
}

.interests ul {
    list-style: none;
    padding: 0;
}

.interests li {
    margin: 1rem 0;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.interests li:hover {
    transform: translateX(10px);
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-item {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.skill-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #4a90e2;
    border-radius: 5px;
    width: var(--level);
    transition: width 1s ease;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .about-content {
        padding: 1rem;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .skill-grid {
        grid-template-columns: 1fr;
    }
} 

/* 精选内容区域 */
.highlights {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.highlight-item {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 引用区域 */
.quote {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/quote-bg.png');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.quote blockquote {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.5rem;
    font-style: italic;
}

/* 页脚增强 */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 0.5rem 0;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4a90e2;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

/* 动画效果 */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-tags {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
} 

/* 滚动进度条 */
:root {
    --scroll-progress: 0%;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: var(--scroll-progress);
    height: 3px;
    background: #4a90e2;
    z-index: 1001;
}

/* 卡片动画 */
.card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.card-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 精选内容动画 */
.highlight-item {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.highlight-visible {
    opacity: 1;
    transform: scale(1);
}

/* 引用动画 */
.quote blockquote {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.quote-visible {
    opacity: 1;
    transform: translateX(0);
}

/* 页面加载动画 */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 图片淡入效果 */
.fade-in {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.fade-in {
    opacity: 1;
}

/* 悬停效果增强 */
.card, .highlight-item {
    transition: all 0.3s ease;
}

.card:hover, .highlight-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* 链接悬停效果 */
a {
    transition: all 0.3s ease;
}

a:hover {
    color: #4a90e2;
}

/* 按钮动画 */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::after {
    width: 300px;
    height: 300px;
}

/* 标签动画 */
.tag {
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* 兴趣爱好页面样式 */
.interests-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/interests-bg.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 6rem 2rem;
    margin-bottom: 2rem;
}

.interests-nav {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.interest-categories {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem 0;
}

.interest-categories li {
    margin: 0 1rem;
}

.interest-categories a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.interest-categories a.active,
.interest-categories a:hover {
    background: #4a90e2;
    color: #fff;
}

.interest-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.interest-content {
    margin-top: 2rem;
}

.interest-description {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(0,0,0,0.7);
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* 生活记录页面样式 */
.life-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/life-bg.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 6rem 2rem;
    margin-bottom: 2rem;
}

.life-filter {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filter-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    margin-bottom: 1rem;
}

.search-box input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.filter-tag {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag.active,
.filter-tag:hover {
    background: #4a90e2;
    color: #fff;
}

.life-timeline {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #4a90e2;
}

.timeline-date {
    margin-bottom: 1rem;
}

.timeline-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.post-tags {
    margin: 1rem 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-number.active,
.page-number:hover {
    background: #4a90e2;
    color: #fff;
}

/* 联系方式页面样式 */
.contact-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/contact-bg.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 6rem 2rem;
    margin-bottom: 2rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.info-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #4a90e2;
    color: #fff;
}

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4a90e2;
    outline: none;
}

.submit-btn {
    background: #4a90e2;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #357abd;
}

.contact-map {
    margin-top: 3rem;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-note {
    background: #f8f9fa;
    padding: 4rem 2rem;
    margin-top: 3rem;
}

.note-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.response-time {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.time-item {
    text-align: center;
}

.time {
    font-size: 2rem;
    font-weight: bold;
    color: #4a90e2;
    display: block;
}

.label {
    color: #666;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .response-time {
        flex-direction: column;
        gap: 1.5rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .interest-categories {
        flex-wrap: wrap;
    }

    .interest-categories li {
        margin: 0.5rem;
    }
}