/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #e60012 0%, #8b0000 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffd700;
}

/* 主容器样式 */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* 页面标题样式 */
.page-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #e60012, #8b0000);
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #e60012;
    color: #fff;
}

.btn-primary:hover {
    background: #8b0000;
}

/* 页脚样式 */
.footer {
    background: #333;
    color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .nav-item {
        margin-left: 1rem;
    }
}

/* 中国风元素 */
.chinese-pattern {
    background-image: url('../images/pattern.png');
    background-repeat: repeat;
    opacity: 0.1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* 首页特定样式 */
.profile-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e60012;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    margin-bottom: 1rem;
    color: #333;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.grid-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item a {
    text-decoration: none;
    color: #333;
}

.grid-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.grid-item h3 {
    margin-bottom: 0.5rem;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.news-content h3 {
    margin-bottom: 0.5rem;
}

.news-content p {
    margin-bottom: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .news-list {
        grid-template-columns: 1fr;
    }
}

/* 简历页面样式 */
.resume-header {
    display: flex;
    gap: 2rem;
    align-items: start;
}

.resume-photo {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    border: 4px solid #e60012;
}

.resume-basic-info {
    flex: 1;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.info-list strong {
    color: #e60012;
    margin-right: 1rem;
}

.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: #e60012;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.timeline-date {
    position: absolute;
    left: -100px;
    color: #e60012;
    font-weight: bold;
}

.timeline-content {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.timeline-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-item {
    text-align: center;
}

.skill-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.skill-level {
    width: 100%;
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, #e60012, #8b0000);
    border-radius: 5px;
    transition: width 1s ease;
}

.project-list {
    display: grid;
    gap: 2rem;
}

.project-item {
    display: flex;
    gap: 2rem;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.project-item img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.project-info {
    flex: 1;
}

.project-date {
    color: #666;
    margin-bottom: 0.5rem;
}

.project-info ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.self-evaluation p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.contact-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .resume-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .timeline-date {
        position: relative;
        left: 0;
        margin-bottom: 0.5rem;
    }

    .project-item {
        flex-direction: column;
    }

    .project-item img {
        width: 100%;
        height: 200px;
    }
}

/* 家乡特色产品页面样式 */
.hometown-header {
    position: relative;
    margin-bottom: 2rem;
}

.hometown-banner {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.hometown-intro {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 2rem;
    border-radius: 0 0 8px 8px;
}

.hometown-intro h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.product-desc {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-price {
    color: #e60012;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.craft-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.craft-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.craft-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.craft-item:hover img {
    transform: scale(1.1);
}

.craft-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 1.5rem;
}

.craft-info h3 {
    margin-bottom: 0.5rem;
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.guide-item {
    padding: 1.5rem;
}

.guide-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.guide-item h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.hometown-contact {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hometown-intro {
        position: relative;
        background: #333;
    }

    .hometown-banner {
        height: 250px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .craft-showcase {
        grid-template-columns: 1fr;
    }

    .guide-content {
        grid-template-columns: 1fr;
    }
}

/* 留言板页面样式 */
.guestbook-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.guestbook-intro p {
    color: #666;
    line-height: 1.8;
}

.guestbook-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #e60012;
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.word-count {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.message-list {
    margin-top: 2rem;
}

.message-item {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.message-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.message-info h3 {
    margin: 0;
    color: #333;
}

.message-time {
    color: #666;
    font-size: 0.9rem;
}

.message-content {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.message-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-reply,
.btn-like {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.btn-reply:hover,
.btn-like:hover {
    color: #e60012;
}

.btn-like.liked {
    color: #e60012;
}

.like-count {
    color: #666;
}

.reply-list {
    margin-top: 1rem;
    padding-left: 3rem;
}

.reply-item {
    background: #f9f9f9;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
}

.reply-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.reply-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.reply-info h4 {
    margin: 0;
    color: #333;
    font-size: 0.9rem;
}

.reply-time {
    color: #666;
    font-size: 0.8rem;
}

.reply-content {
    color: #333;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #f5f5f5;
}

.page-link.active {
    background: #e60012;
    color: #fff;
    border-color: #e60012;
}

.page-dots {
    color: #666;
    padding: 0.5rem;
}

.rules-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.rule-item {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.rule-item img {
    width: 40px;
    height: 40px;
}

.rule-text h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.rule-text p {
    color: #666;
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .guestbook-form {
        padding: 0 1rem;
    }

    .message-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .reply-list {
        padding-left: 1rem;
    }

    .rules-content {
        grid-template-columns: 1fr;
    }
}

/* 个人兴趣爱好页面样式 */
.hobby-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.hobby-intro p {
    color: #666;
    line-height: 1.8;
}

.hobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.hobby-item {
    overflow: hidden;
}

.hobby-header {
    position: relative;
    text-align: center;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px 8px 0 0;
}

.hobby-image {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

.hobby-content {
    padding: 2rem;
}

.hobby-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hobby-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.hobby-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.hobby-gallery img:hover {
    transform: scale(1.1);
}

.book-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.book-item {
    text-align: center;
}

.book-item img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.book-item h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.book-item p {
    color: #666;
    font-size: 0.9rem;
}

.travel-map {
    position: relative;
    margin-top: 2rem;
}

.travel-map img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.travel-spots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.spot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #e60012;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.3s ease;
}

.spot::before {
    content: attr(title);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spot:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.spot:hover::before {
    opacity: 1;
}

.music-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.music-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.music-item img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
}

.music-info h3 {
    margin-bottom: 0.3rem;
    color: #333;
}

.music-info p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.community-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.community-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.community-item img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
}

.community-info {
    flex: 1;
}

.community-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.community-info p {
    color: #666;
    margin-bottom: 1rem;
}

.calendar-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.calendar-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.calendar-date {
    text-align: center;
    min-width: 80px;
}

.calendar-date .month {
    display: block;
    background: #e60012;
    color: #fff;
    padding: 0.3rem;
    border-radius: 4px 4px 0 0;
    font-size: 0.9rem;
}

.calendar-date .day {
    display: block;
    background: #fff;
    border: 1px solid #e60012;
    border-top: none;
    padding: 0.5rem;
    border-radius: 0 0 4px 4px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #e60012;
}

.calendar-info {
    flex: 1;
}

.calendar-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.calendar-info p {
    color: #666;
    margin-bottom: 0.3rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hobby-grid {
        grid-template-columns: 1fr;
    }

    .hobby-gallery {
        grid-template-columns: 1fr;
    }

    .book-list {
        grid-template-columns: 1fr;
    }

    .community-item {
        flex-direction: column;
        text-align: center;
    }

    .community-item img {
        margin: 0 auto;
    }

    .calendar-item {
        flex-direction: column;
        text-align: center;
    }

    .calendar-date {
        margin: 0 auto;
    }
}

/* 作品展示页面样式 */
.portfolio-header {
    position: relative;
    margin-bottom: 2rem;
}

.portfolio-banner {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.portfolio-intro {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 2rem;
    border-radius: 0 0 8px 8px;
}

.portfolio-intro h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.portfolio-categories {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn img {
    width: 24px;
    height: 24px;
}

.category-btn.active {
    background: #e60012;
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tech-tag {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255,255,255,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    color: #fff;
    font-size: 0.9rem;
}

.tech-tag img {
    width: 20px;
    height: 20px;
}

.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    max-width: 900px;
    margin: 2rem auto;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    z-index: 1;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-title {
    color: #333;
    margin-bottom: 1rem;
}

.modal-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-description h3,
.modal-features h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.modal-features ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.modal-features li {
    margin-bottom: 0.5rem;
    color: #666;
}

.modal-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .portfolio-intro {
        position: relative;
        background: #333;
    }

    .portfolio-banner {
        height: 250px;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        height: 300px;
    }

    .modal-content {
        margin: 1rem;
    }
}

/* 公益活动页面样式 */
.charity-header {
    position: relative;
    margin-bottom: 2rem;
}

.charity-banner {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.charity-intro {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 2rem;
    border-radius: 0 0 8px 8px;
}

.charity-intro h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.charity-categories {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.charity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.charity-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.charity-image {
    position: relative;
    overflow: hidden;
}

.charity-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.charity-item:hover .charity-image img {
    transform: scale(1.1);
}

.charity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.charity-item:hover .charity-overlay {
    opacity: 1;
}

.charity-overlay h3 {
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
}

.impact-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.impact-tag {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255,255,255,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    color: #fff;
    font-size: 0.9rem;
}

.impact-tag img {
    width: 20px;
    height: 20px;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    padding: 2rem 0;
}

.impact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.impact-item img {
    width: 60px;
    height: 60px;
}

.impact-number {
    font-size: 2rem;
    font-weight: bold;
    color: #e60012;
}

.impact-label {
    color: #666;
}

.join-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.join-item {
    text-align: center;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.join-item h3 {
    margin-bottom: 1rem;
    color: #333;
}

.join-item p {
    color: #666;
    margin-bottom: 1.5rem;
}

.activity-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.charity-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    max-width: 900px;
    margin: 2rem auto;
    border-radius: 8px;
    position: relative;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-title {
    color: #333;
    margin-bottom: 1rem;
}

.modal-impact-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-description h3,
.modal-highlights h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.modal-highlights ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.modal-highlights li {
    margin-bottom: 0.5rem;
    color: #666;
}

.modal-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .charity-intro {
        position: relative;
        background: #333;
    }

    .charity-banner {
        height: 250px;
    }

    .impact-stats {
        grid-template-columns: 1fr 1fr;
    }

    .join-methods {
        grid-template-columns: 1fr;
    }

    .activity-calendar {
        grid-template-columns: 1fr;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        height: 300px;
    }

    .modal-content {
        margin: 1rem;
    }
}

/* 友谊长廊页面样式 */
.friendship-header {
    position: relative;
    margin-bottom: 2rem;
}

.friendship-banner {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.friendship-intro {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    padding: 2rem;
    border-radius: 0 0 8px 8px;
}

.friendship-intro h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.memory-categories {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.memory-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.memory-image {
    position: relative;
    overflow: hidden;
}

.memory-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.memory-item:hover .memory-image img {
    transform: scale(1.1);
}

.memory-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.memory-item:hover .memory-overlay {
    opacity: 1;
}

.memory-overlay h3 {
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
}

.memory-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.memory-tag {
    background: rgba(255,255,255,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    color: #fff;
    font-size: 0.9rem;
}

.story-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.story-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.story-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.story-content {
    flex: 1;
}

.story-content h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.story-time {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.story-text {
    color: #666;
    line-height: 1.6;
}

.comment-form {
    margin-bottom: 2rem;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    margin-bottom: 1rem;
}

.comment-list {
    display: grid;
    gap: 1.5rem;
}

.comment-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-content h3 {
    margin-bottom: 0.3rem;
    color: #333;
}

.comment-time {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.comment-text {
    color: #666;
    line-height: 1.6;
}

.friend-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.friend-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    align-items: center;
}

.friend-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.friend-info {
    flex: 1;
}

.friend-info h3 {
    margin-bottom: 1rem;
    color: #333;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-links a:hover img {
    transform: scale(1.2);
}

.memory-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    overflow-y: auto;
}

.participant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.participant {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.participant img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.participant span {
    color: #666;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .friendship-intro {
        position: relative;
        background: #333;
    }

    .friendship-banner {
        height: 250px;
    }

    .memory-grid {
        grid-template-columns: 1fr;
    }

    .story-item {
        flex-direction: column;
        text-align: center;
    }

    .story-avatar {
        margin: 0 auto;
    }

    .comment-item {
        flex-direction: column;
        text-align: center;
    }

    .comment-avatar {
        margin: 0 auto;
    }

    .friend-item {
        flex-direction: column;
        text-align: center;
    }

    .friend-avatar {
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
    }
} 