/**
 * 首页专用样式 - index.css
 */

/* 顶部区域 */
.hero-section {
    background: linear-gradient(135deg, #d42323 0%, #b71c1c 100%);
    color: white;
    padding: 30px 20px 40px;
    margin-bottom: 15px;
}

.welcome-text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* 日历容器 */
.calendar-section {
    background: white;
    padding: 20px 15px;
    margin-bottom: 15px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(212, 35, 35, 0.08);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-title {
    font-size: 18px;
    font-weight: 700;
    color: #d42323;
    letter-spacing: 1px;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.calendar-nav-btn:hover {
    background: #d42323;
    color: white;
    border-color: #d42323;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.day {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px 5px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.day:hover {
    background: #ffeaea;
    transform: translateY(-2px);
}

.day.selected {
    background: linear-gradient(135deg, #d42323 0%, #b71c1c 100%);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(212, 35, 35, 0.4);
    border: none;
}

.day.selected .day-number {
    color: white;
    font-weight: 700;
}

.day.today {
    border: 2px solid #d42323;
    background: #fff5f5;
}

.day.today .day-number {
    color: #d42323;
    font-weight: 700;
}

.day-weekday {
    font-size: 11px;
    color: #999;
    margin-bottom: 3px;
    font-weight: 500;
}

.day.selected .day-weekday {
    color: rgba(255, 255, 255, 0.9);
}

/* 周末日期特殊样式 */
.day:nth-child(7n+1) .day-weekday,
.day:nth-child(7n) .day-weekday {
    color: #d42323;
}

.day:nth-child(7n+1).selected .day-weekday,
.day:nth-child(7n).selected .day-weekday {
    color: rgba(255, 255, 255, 0.9);
}

/* 有活动的日期特殊样式 */
.day.has-lunch,
.day.has-dinner {
    background: #fff8f8;
}

.day.has-lunch:hover,
.day.has-dinner:hover {
    background: #ffeaea;
}

.day.has-lunch.selected,
.day.has-dinner.selected {
    background: linear-gradient(135deg, #d42323 0%, #b71c1c 100%);
}

.day-number {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.day.selected .day-number {
    color: white;
}

/* 周末日期数字 */
.day:nth-child(7n+1) .day-number,
.day:nth-child(7n) .day-number {
    color: #d42323;
}

.day:nth-child(7n+1).selected .day-number,
.day:nth-child(7n).selected .day-number {
    color: white;
}

.day-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #d42323 0%, #b71c1c 100%);
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(212, 35, 35, 0.3);
    padding: 0 4px;
}

.day.selected .day-count {
    background: white;
    color: #d42323;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 城市筛选 */
.city-filter {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(212, 35, 35, 0.08);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.filter-title {
    font-size: 15px;
    font-weight: 700;
    color: #d42323;
}

.city-dropdown {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.city-tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e0e0e0;
}

.city-tag:hover {
    background: #e9ecef;
}

.city-tag.active {
    background: linear-gradient(135deg, #d42323 0%, #b71c1c 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(212, 35, 35, 0.3);
}

.city-tag.more-cities {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    border-color: transparent;
    font-weight: 500;
}

.city-tag.more-cities:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* 活动列表区域 */
.events-section {
    padding: 0 15px 20px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #d42323 0%, #b71c1c 100%);
    border-radius: 2px;
    margin-right: 8px;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
}

.event-count {
    font-size: 13px;
    color: #d42323;
    font-weight: 600;
    background: rgba(212, 35, 35, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

/* 活动列表 */
.event-list {
    padding: 0;
}

.event-card {
    background: white;
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(212, 35, 35, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid rgba(212, 35, 35, 0.05);
    padding: 18px;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212, 35, 35, 0.15);
    border-color: rgba(212, 35, 35, 0.1);
}

.event-card:active {
    transform: translateY(-1px);
}

.event-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f0f0f0;
}

.event-content {
    padding: 15px;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.event-title {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.event-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #d42323 0%, #b71c1c 100%);
    border-radius: 2px;
    margin-right: 8px;
}

.event-price {
    font-size: 20px;
    font-weight: 600;
    color: #ff4757;
    white-space: nowrap;
}

.event-unit {
    font-size: 12px;
    color: #999;
}

.event-info {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-icon {
    font-size: 14px;
}

.event-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.event-type.salon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.event-type.dinner {
    background: linear-gradient(135deg, #d42323 0%, #b71c1c 100%);
    color: white;
}

.event-info {
    margin-bottom: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #666;
}

.info-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(212, 35, 35, 0.1);
}

.event-status {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.event-status.status-active {
    background: rgba(212, 35, 35, 0.1);
    color: #d42323;
}

.event-status.status-full {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.event-status.status-ended {
    background: #f0f0f0;
    color: #999;
}

.event-stats {
    display: flex;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
}

.participant-count {
    font-size: 13px;
    color: #666;
}

.favorite-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px;
    color: #ccc;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.favorite-btn.active {
    color: #ff4757;
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(212, 35, 35, 0.08);
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-text {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-hint {
    font-size: 13px;
    color: #999;
}

/* 快捷操作 */
.quick-actions {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.action-item {
    text-align: center;
    padding: 15px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
}

.action-item:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.action-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.action-label {
    font-size: 12px;
    font-weight: 500;
}

/* 通知横幅 */
.notification-banner {
    background: linear-gradient(135deg, #ff9a00 0%, #ff5e00 100%);
    color: white;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 20px;
}

.notification-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

/* 空状态 */
.empty-events {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-events .icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-events .text {
    font-size: 18px;
    margin-bottom: 10px;
}

.empty-events .hint {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 20px;
}

/* 响应式 */
@media (max-width: 768px) {
    .calendar-grid {
        gap: 5px;
    }
    
    .day {
        padding: 10px 3px;
    }
    
    .day-date {
        font-size: 15px;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event-image {
        height: 150px;
    }
}
