/* 座位选择样式 */
.seating-section {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.event-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.event-info-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.seating-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.seating-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    background-color: var(--background);
    border-radius: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.seat-legend {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid #333;
}

.seat-legend.available {
    background-color: #ffffff;
    border-color: var(--primary-color);
}

.seat-legend.selected {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.seat-legend.sold {
    background-color: var(--text-secondary);
    border-color: var(--text-secondary);
}

/* 舞台区域 */
.stage-area {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.stage {
    width: 80%;
    height: 60px;
    background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 0 0 50% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    letter-spacing: 2px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* SVG座位图 */
.seating-chart {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background-color: var(--background);
    border-radius: 0.5rem;
    overflow-x: auto;
}

#seating-chart svg {
    max-width: 100%;
    height: auto;
}

/* SVG座位样式 */
.seat {
    cursor: pointer;
    transition: all 0.2s;
}

.seat:hover {
    filter: brightness(0.9);
}

.seat.available {
    fill: #ffffff;
    stroke: var(--primary-color);
    stroke-width: 2;
}

.seat.available:hover {
    fill: #eef2ff;
}

.seat.selected {
    fill: var(--primary-color);
    stroke: var(--primary-color);
    stroke-width: 2;
}

.seat.sold {
    fill: var(--text-secondary);
    stroke: var(--text-secondary);
    cursor: not-allowed;
}

.seat-label {
    font-size: 10px;
    fill: #333;
    pointer-events: none;
    text-anchor: middle;
}

.seat.selected .seat-label {
    fill: white;
}

.seat.sold .seat-label {
    fill: white;
}

/* 座位操作区 */
.seating-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--background);
    border-radius: 0.5rem;
}

.selected-seats-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.selected-seats-info span:first-child {
    font-weight: 600;
}

#selected-seats-list {
    color: var(--primary-color);
    font-weight: 600;
}

#total-price {
    color: var(--success-color);
    font-weight: 600;
    font-size: 1.25rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .event-info-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .event-info-header h2 {
        font-size: 1.25rem;
    }

    .seating-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .selected-seats-info {
        justify-content: center;
    }

    .stage {
        width: 100%;
        font-size: 0.875rem;
    }

    .seating-legend {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .seating-section {
        padding: 1rem;
    }

    .stage {
        height: 40px;
        font-size: 0.75rem;
    }

    .seating-actions {
        padding: 1rem;
    }

    .selected-seats-info {
        flex-direction: column;
        text-align: center;
    }
}
