/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 头部样式 */
.header {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.header-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 导航栏样式 */
.nav {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem 0;
}

.nav li {
    margin: 0 1.5rem;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav a:hover {
    color: #e74c3c;
}

/* 主要内容区域 */
.main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* 诞生节表单区域 */
.birth-celebration {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.birth-celebration h1 {
    text-align: center;
    color: #e74c3c;
    margin-bottom: 1.5rem;
}

/* 视频区域 */
.video-section {
    margin: 2rem 0;
}

.video-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

/* 尾部样式 */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* 个人经历时间线样式 */
.experience-timeline {
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #e74c3c;
}

.timeline-item {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.timeline-date {
    background: #e74c3c;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin: 0 2rem;
}

.timeline-content {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 40%;
}

/* 作品展示样式 */
.works-gallery {
    padding: 2rem;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.work-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.work-info {
    padding: 1rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

/* 留言板样式 */
.message-board {
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.message-form {
    margin: 2rem 0;
}

.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: 4px;
    font-size: 1rem;
}

.submit-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #c0392b;
}

.message-list {
    margin-top: 3rem;
}

.message-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.message-item .author {
    color: #e74c3c;
    font-weight: bold;
}

.message-item .date {
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
        align-items: center;
    }

    .nav li {
        margin: 0.5rem 0;
    }

    .header {
        height: 300px;
    }
} 

/* 表单样式增强 */
.feedback-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: #fff;
    cursor: pointer;
}

.form-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.timeline-item.show {
    animation: slideIn 0.5s ease-out forwards;
}

.work-item {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.message-item {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

/* 悬停效果 */
.submit-btn {
    position: relative;
    overflow: hidden;
}

.submit-btn::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.3s, height 0.3s;
}

.submit-btn:hover::after {
    width: 200px;
    height: 200px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .timeline-content {
        width: 80%;
        margin-top: 1rem;
    }

    .form-group {
        padding: 0 1rem;
    }
}

/* 表单验证样式 */
.form-group input:invalid,
.form-group textarea:invalid,
.form-group select:invalid {
    border-color: #e74c3c;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52,152,219,0.3);
}

/* 加载动画 */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
} 

/* 视频专区样式增强 */
.video-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 1rem;
}

.video-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.video-info p {
    color: #666;
    font-size: 0.9rem;
}

/* 最新动态样式 */
.news-section {
    padding: 2rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.news-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-info {
    padding: 1.5rem;
}

.news-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.2rem;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-desc {
    color: #333;
    line-height: 1.5;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* 动画效果 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.news-item.slide-in {
    animation: slideIn 0.5s ease-out forwards;
}

/* 动态页面样式 */
.news-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.news-filter {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.news-filter:hover {
    background: #e74c3c;
    color: #fff;
}

.news-filter.active {
    background: #e74c3c;
    color: #fff;
}

.news-list {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.news-article {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-article:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 300px;
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-article:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    flex: 1;
    padding: 2rem;
}

.news-content h2 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.news-category {
    color: #e74c3c;
    font-weight: bold;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.read-more:hover {
    background: #c0392b;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.page-prev,
.page-next {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background: #e74c3c;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.page-prev:disabled,
.page-next:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.page-current {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

/* 关于页面样式 */
.about-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.profile-content {
    display: flex;
    gap: 2rem;
    align-items: start;
}

.profile-image {
    width: 300px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.profile-meta {
    color: #666;
    margin-bottom: 0.5rem;
}

.profile-desc {
    line-height: 1.8;
    color: #333;
    margin-top: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-item {
    text-align: center;
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.skill-bar {
    background: #f5f5f5;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.skill-progress {
    height: 100%;
    background: #e74c3c;
    border-radius: 4px;
    transition: width 1s ease-out;
}

.awards-list {
    margin-top: 2rem;
}

.award-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.award-item::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: -2rem;
    width: 2px;
    background: #e74c3c;
}

.award-item:last-child::before {
    display: none;
}

.award-year {
    width: 80px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
}

.award-content {
    flex: 1;
}

.award-content h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.award-content p {
    color: #666;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-item h3 {
    margin-bottom: 1rem;
    color: #333;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

.social-link:hover {
    color: #e74c3c;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .news-article {
        flex-direction: column;
    }

    .news-image {
        width: 100%;
        height: 200px;
    }

    .profile-content {
        flex-direction: column;
        align-items: center;
    }

    .profile-image {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 3/4;
    }

    .award-item {
        flex-direction: column;
        gap: 1rem;
    }

    .award-item::before {
        left: 0;
        top: 40px;
        width: 100%;
        height: 2px;
        bottom: auto;
    }
}

/* 动画效果 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-article,
.about-section {
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes skillProgress {
    from {
        width: 0;
    }
}

.skill-progress {
    animation: skillProgress 1s ease-out forwards;
}

/* 照片墙样式 */
.photo-wall {
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.photo-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.photo-filter {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.photo-filter:hover,
.photo-filter.active {
    background: #e74c3c;
    color: #fff;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transform-origin: center;
    transition: transform 0.3s ease;
    width: 100%;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-item:hover .photo-info {
    opacity: 1;
    transform: translateY(0);
}

.photo-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.photo-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 照片加载动画 */
@keyframes photoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.photo-item {
    animation: photoFadeIn 0.5s ease-out forwards;
}

/* 照片模态框样式 */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.photo-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.modal-prev,
.modal-next {
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.modal-prev:hover,
.modal-next:hover {
    opacity: 1;
}

/* 响应式优化 */
@media (max-width: 992px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .photo-item {
        max-width: 100%;
    }
}

/* 加载更多按钮样式 */
.load-more {
    display: block;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.load-more:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.load-more.loading {
    position: relative;
    padding-left: 3rem;
}

.load-more.loading::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
 