@import url("/global.css");

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color-scheme: light;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 60px 0 40px;
    background: white;
    color: black;
    margin-bottom: 40px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-scrolled {
    position: fixed;
    width: 100%;
    height: 40px;
    top: 0;
    z-index: 1000;
    padding: 0 20px;

    background: white;
    color: black;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-content-scrolled {
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-icon-scrolled {
    margin-top: 2.5px;
    height: 35px;
    width: auto;
}

.title-scrolled {
    font-size: 1.4rem;
    white-space: nowrap;
}

.title-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 12rem;
    opacity: 0.2;
}

.title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 筛选器样式 */
.filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
}

.filter-btn {
    padding: 5px 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555;
}

.filter-btn:hover {
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
    box-shadow: 0 4px 12px #3498db4d;
}

/* 活动网格布局 */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* 活动卡片样式 */
.activity-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.activity-card.highlighted {
    border: 2px solid #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    order: -1;
}

.activity-card.completed {
    opacity: 0.85;
}

.activity-card.expired {
    opacity: 0.6;
}

.activity-card.expired::after {
    content: "已结束";
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.3;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.highlighted {
    background: #fff8e1;
    color: #f57c00;
}

.card-time {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-time.urgent {
    color: #e53935;
    font-weight: 500;
}

.card-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-actions {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 10px;
    margin-top: auto;
}

.card-link {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-link:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #3498db4d;
}

.card-link.disabled {
    background: #bdbdbd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.card-link.disabled:hover {
    background: #bdbdbd;
    transform: none;
    box-shadow: none;
}

.card-extra-link {
    margin-left: 15px;
    background: #f57c00;
}

.card-extra-link:hover {
    background: #e67300;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-scrolled {
        padding: 0 5px;
        border-radius: 0 0 10px 10px;
    }

    .header-content-scrolled {
        gap: 8px;
    }

    .title-icon-scrolled {
        margin-top: 2.5px;
        height: 35px;
    }

    .title-scrolled {
        font-size: 1.2rem;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .title {
        font-size: 2.2rem;
    }
    
    .filters {
        flex-wrap: wrap;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-status {
        margin-left: 0;
        margin-top: 8px;
    }

    .card-link {
        font-size: small;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 40px 0 30px;
    }
    
    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .title-icon {
        height: 8rem;
    }
    
    .card-content {
        padding: 20px;
    }


}