/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff9fb;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 加载进度条 */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: #e83e8c;
    z-index: 9999;
    width: 0%;
    transition: width 0.3s;
}

/* 导航栏样式 */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e83e8c;
    transition: color 0.3s;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #e83e8c;
}

/* 英雄区样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.hero-content {
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.social-icons {
    margin-bottom: 40px;
}

.social-icons a {
    color: white;
    font-size: 2rem;
    margin: 0 15px;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: translateY(-5px);
}

.scroll-down {
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* 区块基础样式 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: #e83e8c;
    font-size: 2.5rem;
}

/* 关于区块样式 */
.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.profile-card {
    flex: 0 0 45%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
}

.profile-card img {
    width: 200px;
    height: auto;
    object-fit: cover;
}

.profile-info {
    padding: 20px;
}

.profile-info h3 {
    color: #e83e8c;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.profile-info ul {
    list-style: none;
}

.profile-info li {
    margin-bottom: 10px;
}

.timeline {
    flex: 0 0 50%;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: #e83e8c;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e83e8c;
}

.timeline-date {
    font-weight: bold;
    color: #e83e8c;
    margin-bottom: 5px;
}

.timeline-content {
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* 作品集样式 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.work-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

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

.work-info {
    padding: 15px;
    background: white;
}

.work-info h3 {
    color: #e83e8c;
    margin-bottom: 5px;
}

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

/* 美图专区样式 */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background: white;
    border: 1px solid #e83e8c;
    color: #e83e8c;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #fce4ec;
}

.filter-btn.active {
    background: #e83e8c;
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
    background-color: #f5f5f5;
    min-height: 300px;
    position: relative;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* 懒加载相关样式 */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* 加载动画 */
@keyframes shimmer {
    0% { background-position: -468px 0 }
    100% { background-position: 468px 0 }
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #f5f5f5 8%, #e8e8e8 18%, #f5f5f5 33%);
    background-size: 800px 104px;
    animation: shimmer 1.5s infinite linear;
}

.gallery-item:first-child::before {
    display: none;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    display: block;
    margin: 50px auto;
    max-width: 80%;
    max-height: 80%;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s, transform 0.3s;
}

.modal-content.loaded {
    opacity: 1;
    transform: scale(1);
}

@keyframes zoom {
    from {transform: scale(0.5)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #e83e8c;
}

#caption {
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 1.2rem;
}

/* 轮播导航箭头 */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    user-select: none;
    transition: 0.3s;
    z-index: 1;
}

.nav-arrow:hover {
    color: #e83e8c;
    background-color: rgba(0, 0, 0, 0.5);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* 幻灯片计数器 */
.slide-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

/* 最新动态样式 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-date {
    color: #e83e8c;
    font-weight: bold;
    margin-bottom: 10px;
}

.news-card h3 {
    margin-bottom: 15px;
    color: #333;
}

/* 粉丝墙样式 */
.fan-messages {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.message-slider {
    flex: 0 0 60%;
}

.message {
    display: flex;
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.fan-avatar {
    flex: 0 0 60px;
    margin-right: 20px;
}

.fan-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.fan-content h4 {
    color: #e83e8c;
    margin-bottom: 10px;
}

.message-date {
    color: #999;
    font-size: 0.8rem;
    margin-top: 10px;
}

.fan-form {
    flex: 0 0 35%;
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.fan-form h3 {
    color: #e83e8c;
    margin-bottom: 20px;
    text-align: center;
}

.fan-form input,
.fan-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.fan-form textarea {
    height: 120px;
    resize: vertical;
}

.fan-form button {
    background: #e83e8c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background 0.3s;
}

.fan-form button:hover {
    background: #d12d7b;
}

/* 应援活动样式 */
.event-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.event-progress {
    flex: 0 0 55%;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-calendar {
    flex: 0 0 40%;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 30px;
    background: #f5f5f5;
    border-radius: 15px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #e83e8c;
    border-radius: 15px;
    transition: width 1s ease;
}

.progress-bar span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
}

.donate-btn {
    background: #e83e8c;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 20px;
    transition: background 0.3s;
}

.donate-btn:hover {
    background: #d12d7b;
}

.event-calendar ul {
    list-style: none;
}

.event-calendar li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
}

.event-date {
    flex: 0 0 60px;
    font-weight: bold;
    color: #e83e8c;
}

.event-title {
    flex: 1;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    flex: 0 0 30%;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #e83e8c;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.8rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #navbar .container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }
    
    .nav-links {
        margin-top: 15px;
    }
    
    .nav-links li {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .profile-card,
    .timeline {
        flex: 0 0 100%;
    }
    
    .profile-card {
        flex-direction: column;
        margin-bottom: 30px;
    }
    
    .profile-card img {
        width: 100%;
        height: 300px;
    }
    
    .fan-messages {
        flex-direction: column;
    }
    
    .message-slider,
    .fan-form {
        flex: 0 0 100%;
    }
    
    .fan-form {
        margin-top: 30px;
    }
    
    .event-content {
        flex-direction: column;
    }
    
    .event-progress,
    .event-calendar {
        flex: 0 0 100%;
    }
    
    .event-calendar {
        margin-top: 30px;
    }
    
    .footer-section {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .works-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}