/* 海角社区活动中心页面样式 */

/* CSS变量定义 - 海洋蓝色主题 */
:root {
    --ocean-blue: #1e88e5;
    --deep-blue: #1565c0;
    --light-blue: #42a5f5;
    --teal: #00acc1;
    --cyan: #00bcd4;
    --amber: #ffb300;
    --orange: #ff9800;
    --green: #4caf50;
    --red: #f44336;
    
    --text-primary: #263238;
    --text-secondary: #546e7a;
    --text-light: #90a4ae;
    
    --bg-white: #ffffff;
    --bg-light: #f8fafb;
    --bg-dark: #263238;
    
    --gradient-ocean: linear-gradient(135deg, #1e88e5, #42a5f5);
    --gradient-teal: linear-gradient(135deg, #00acc1, #00bcd4);
    --gradient-warm: linear-gradient(135deg, #ffb300, #ff9800);
    
    --shadow-light: 0 2px 8px rgba(30, 136, 229, 0.08);
    --shadow-medium: 0 4px 16px rgba(30, 136, 229, 0.12);
    --shadow-heavy: 0 8px 32px rgba(30, 136, 229, 0.16);
    --shadow-deep: 0 16px 48px rgba(30, 136, 229, 0.24);
    
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 18px;
    --border-radius-xl: 24px;
    
    --animation-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --animation-quick: all 0.2s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 活动中心特定样式 */
.activities-showcase {
    padding: 100px 0;
    background: var(--bg-white);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.activity-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--animation-smooth);
    position: relative;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.activity-card.featured {
    border: 2px solid var(--orange);
}

.activity-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(30, 136, 229, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: var(--border-radius-md);
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

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

.activity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 200px;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--animation-smooth);
}

.activity-card:hover .activity-overlay {
    opacity: 1;
}

.join-btn {
    background: var(--gradient-ocean);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--animation-smooth);
}

.join-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.activity-info {
    padding: 24px;
}

.activity-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.activity-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.activity-type {
    color: var(--ocean-blue);
    font-weight: 600;
}

.activity-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.activity-rewards {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.reward {
    background: rgba(255, 159, 0, 0.1);
    color: var(--orange);
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.participant-count {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 即将举办 */
.upcoming-activities {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius-lg);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.upcoming-list {
    display: grid;
    gap: 20px;
}

.upcoming-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    transition: var(--animation-smooth);
}

.upcoming-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.upcoming-date {
    text-align: center;
    min-width: 60px;
}

.date-day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--ocean-blue);
}

.date-month {
    font-size: 12px;
    color: var(--text-light);
}

.upcoming-info {
    flex: 1;
}

.upcoming-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.upcoming-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.upcoming-type {
    font-size: 12px;
    color: var(--orange);
}

.upcoming-btn {
    background: transparent;
    border: 1px solid var(--ocean-blue);
    color: var(--ocean-blue);
    padding: 8px 16px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--animation-smooth);
}

.upcoming-btn:hover {
    background: var(--ocean-blue);
    color: white;
}

/* 页脚继承 */
.page-footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 24px;
}

.footer-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-intro {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.footer-legal {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.column-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--animation-smooth);
}

.footer-menu a:hover {
    color: var(--light-blue);
}

.contact-details p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .upcoming-item {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .footer-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
}