* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2c5282 0%, #2d3748 50%, #1a202c 100%);
    min-height: 100vh;
    color: #333;
}

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

header {
    background: rgba(255, 255, 255, 0.98);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.theme-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-selector label {
    font-weight: 600;
    color: #1a365d;
    font-size: 0.9rem;
    white-space: nowrap;
}

.theme-selector select {
    padding: 6px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #1a365d;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 110px;
}

.theme-selector select:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.2);
}

.theme-selector select:hover {
    border-color: #3182ce;
}

header h1 {
    color: #1a365d;
    font-size: 2rem;
    font-weight: 700;
}

.navigation-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 161, 105, 0.3);
}

.nav-link:hover {
    background: linear-gradient(135deg, #2f855a 0%, #276749 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.4);
    text-decoration: none;
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#loginBtn {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

#loginBtn:hover {
    background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
}

#logoutBtn, #myBookingsBtn, #profileBtn {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

#logoutBtn:hover, #myBookingsBtn:hover, #profileBtn:hover {
    background: linear-gradient(135deg, #c53030 0%, #9c2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

#profileBtn {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    box-shadow: 0 4px 15px rgba(56, 161, 105, 0.3);
}

#profileBtn:hover {
    background: linear-gradient(135deg, #2f855a 0%, #276749 100%);
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.4);
}

main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

section {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

section h2 {
    color: #1a365d;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.date-selector input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    width: 200px;
    transition: border-color 0.3s ease;
}

.date-selector input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.date-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.date-filter label {
    font-weight: bold;
    color: #333;
}

.date-filter input[type="date"] {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.date-filter input[type="date"]:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.date-filter input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

/* 演出状态警告样式 */
.show-status-warning {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: 600;
    border: 1px solid #fc8181;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(197, 48, 48, 0.2);
}

.select-seat-btn.disabled {
    background: #e2e8f0 !important;
    color: #a0aec0 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

.date-filter button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(56, 161, 105, 0.3);
}

.date-filter button:hover {
    background: linear-gradient(135deg, #2f855a 0%, #276749 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(56, 161, 105, 0.4);
}

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

.show-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #3182ce;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.show-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-left-color: #2c5282;
}

.show-info {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.show-details {
    flex: 1;
    min-width: 0;
}

.show-details h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.show-details p {
    color: #4a5568;
    margin-bottom: 12px;
    line-height: 1.6;
}

.show-description {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    flex: 1; /* 允许描述区域占用剩余空间 */
    min-height: 0; /* 允许区域缩小 */
}

.description-content p {
    margin-bottom: 16px;
    text-indent: 0;
    width: 100%;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* 简化的演出卡片样式 */
.show-card-simple {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.show-card-simple:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-color: #4299e1;
}

.show-basic-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.show-date {
    padding: 8px 16px;
    font-weight: 600;
    font-size: 14px;
    min-width: 100px;
    text-align: center;
}

.show-title {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.show-price {
    padding: 8px 16px;
    font-weight: 700;
    font-size: 15px;
    min-width: 80px;
    text-align: center;
    background: linear-gradient(135deg, #a8d8ea 0%, #c7cedb 100%);
    color: #2d3748;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(168, 216, 234, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.show-price::before {
    content: '💰';
    margin-right: 4px;
    font-size: 12px;
}

.show-price:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 216, 234, 0.3);
    background: linear-gradient(135deg, #c7cedb 0%, #a8d8ea 100%);
}

.show-price::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.show-price:hover::after {
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

/* 详细信息卡片样式 */
.show-detail-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.show-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.back-btn {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #cbd5e0;
    transform: translateX(-2px);
}

.show-detail-header h2 {
    margin: 0;
    color: #2d3748;
    font-size: 24px;
}

.show-detail-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 演出详细信息布局 */
.show-detail-layout {
    display: flex;
    gap: 30px;
    align-items: stretch; /* 改为stretch使子元素填满高度 */
    height: auto; /* 移除固定高度限制，根据内容自适应 */
}

.show-basic-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: auto; /* 移除固定高度限制，根据内容自适应 */
}

.show-basic-details p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #4a5568;
    flex-shrink: 0; /* 基本信息不压缩 */
}

.show-basic-details p strong {
    color: #2d3748;
    display: inline-block;
    width: 100px;
}

.show-program {
    flex: 1;
    min-width: 0;
    height: auto; /* 移除固定高度限制，根据内容自适应 */
    display: flex;
    flex-direction: column;
}

/* 响应式设计：小屏幕时垂直排列 */
@media (max-width: 768px) {
    .show-detail-layout {
        flex-direction: column;
        gap: 20px;
        height: auto; /* 移除固定高度 */
    }
    
    .show-basic-details,
    .show-program {
        flex: none;
        width: 100%;
        height: auto; /* 移除固定高度 */
    }
    
    .show-detail-card {
        padding: 20px;
        margin: 10px;
    }
    
    .show-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .show-detail-header h2 {
        font-size: 20px;
    }
    
    .back-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .select-seat-btn {
        padding: 12px 30px;
        font-size: 14px;
        width: 100%; /* 按钮占满宽度 */
        margin-top: 15px; /* 增加上边距 */
    }
    
    .show-actions {
        margin-top: 20px; /* 增加与上方内容的间距 */
        padding-top: 15px;
    }
    
    .description-content {
        max-height: none; /* 移除高度限制，允许内容完全显示 */
    }
    
    .program-content {
        max-height: 250px; /* 移动端设置较小的最大高度 */
        min-height: 120px; /* 移动端设置较小的最小高度 */
    }
}

.show-actions {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.select-seat-btn {
    background: #48bb78;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.select-seat-btn:hover {
    background: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.show-description strong {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    flex-shrink: 0; /* 标题不压缩 */
}

.description-content {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.6;
    color: #4a5568;
    height: 200px; /* 固定高度为200px */
    max-height: 200px; /* 设置最大高度 */
    min-height: 200px; /* 设置最小高度 */
}

/* 美化 description-content 滚动条样式 */
.description-content::-webkit-scrollbar {
    width: 8px;
}

.description-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.description-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.description-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.show-program {
    flex: 1;
    min-width: 0;
}

.show-program strong {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    flex-shrink: 0; /* 标题不压缩 */
}

.program-content {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden; /* 移除滚动条，避免与内部pre元素的滚动条冲突 */
    flex: 1; /* 填满剩余高度 */
}

/* .program-content 滚动条样式已移除，避免与内部pre元素滚动条冲突 */

.program-content pre {
    white-space: pre-wrap;
    font-family: inherit;
    margin: 0;
    padding: 15px;
    background: transparent;
    border: none;
    border-radius: 0;
    line-height: 1.6;
    color: #4a5568;
    height: 550px; /* 设置固定高度为550px */
    max-height: 550px; /* 设置最大高度 */
    min-height: 550px; /* 设置最小高度 */
    overflow-y: auto; /* 添加纵向滚动条 */
}

/* 美化 pre 元素滚动条样式 */
.program-content pre::-webkit-scrollbar {
    width: 8px;
}

.program-content pre::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.program-content pre::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.program-content pre::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.show-card button {
    background: #48bb78;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.show-card button:hover {
    background: #38a169;
    transform: translateY(-2px);
}

.seating-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    width: 100%; /* 适配显示器宽度 */
    max-width: 100%; /* 确保不超出容器 */
    box-sizing: border-box;
    justify-content: flex-start; /* 左对齐 */
    align-items: flex-start; /* 顶部对齐 */
    min-height: auto; /* 高度根据内容自适应 */
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-item .seat {
    width: 20px;
    height: 20px;
    font-size: 8px;
    flex-shrink: 0; /* 防止座位图标被压缩 */
    margin: 0 auto; /* 居中显示 */
    transition: all 0.3s ease; /* 添加过渡效果 */
}

.theater-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden; /* 防止内容溢出 */
}

.stage {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seating-chart {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
    height: auto;
    min-height: auto;
    overflow: visible;
    flex: 1 1 auto;
    align-items: center;
    position: relative;
}

.seat-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.seat-row.row-1 {
    padding-left: 0px; /* 第一排1号与第二排1号左边对齐 */
}

/* 移除错误的CSS选择器 */

.row-label {
    width: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: #666;
    background: #e9ecef;
    border-radius: 4px;
    padding: 5px;
    text-align: center;
    flex-shrink: 0;
    box-sizing: border-box;
    line-height: 1.2;
}

.row-label-right {
    width: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: #666;
    background: #e9ecef;
    border-radius: 4px;
    padding: 5px;
    text-align: center;
    flex-shrink: 0;
    margin-left: 10px;
    box-sizing: border-box;
    line-height: 1.2;
}

.seat {
    width: 25px;
    height: 25px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    min-width: 25px;
    min-height: 25px;
    margin: 1px;
    text-align: center;
    line-height: 1;
}

/* 移除错误的CSS选择器 */

/* 第5排和第6排之间的间距 */
.row-spacing {
    grid-column: 1 / -1;
    height: 30px;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e0 50%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

/* 安全通道标记样式 */
.safety-channel {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
    color: #e53e3e;
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    border: 1px solid #e53e3e;
    border-radius: 4px;
    padding: 2px 4px;
    margin: 0 2px;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(229, 62, 62, 0.2);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    min-width: 12px;
    height: 25px;
    flex-shrink: 0;
}

.seat.available {
    background: #48bb78;
    color: white;
}

.seat.available:hover {
    background: #38a169;
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

.seat.booked {
    background: #e53e3e;
    color: white;
    cursor: not-allowed;
}

.seat.my-booked {
    background: #4299e1;
    color: white;
    cursor: pointer;
}

.seat.verified {
    background: linear-gradient(135deg, #f6e05e, #ffd93d);
    color: #2d3748;
    cursor: not-allowed;
    font-weight: bold;
    border: 2px solid #d69e2e;
}

.seat.staff {
    background: #ed8936;
    color: white;
    cursor: not-allowed;
}

.seat.vip {
    background: #9f7aea;
    color: white;
    cursor: not-allowed;
}

.seat.aisle {
    background: transparent;
    cursor: not-allowed;
    border: 2px dashed #cbd5e0;
}

.seat.selected {
    background: #4299e1;
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.4);
}

/* 座位确认气泡框 */
.seat-confirm-bubble {
    position: fixed;
    background: white;
    border: 2px solid #4299e1;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 200px;
    text-align: center;
    font-size: 14px;
    display: none;
}

/* 取消预约气泡框样式 */
.seat-confirm-bubble.cancel-booking {
    border-color: #e53e3e;
}

.seat-confirm-bubble.cancel-booking::before {
    border-top-color: #e53e3e;
}

.seat-confirm-bubble::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #4299e1;
}

.seat-confirm-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
}

.seat-confirm-bubble .show-info {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.seat-confirm-bubble .show-title {
    font-weight: 600;
    color: #1a365d;
    font-size: 15px;
    margin-bottom: 4px;
}

.seat-confirm-bubble .show-datetime {
    font-size: 13px;
    color: #4a5568;
    font-weight: 400;
}

.seat-confirm-bubble .confirm-message {
    margin-bottom: 15px;
    color: #2d3748;
    font-weight: 500;
}

.seat-confirm-bubble .confirm-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.seat-confirm-bubble .confirm-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.seat-confirm-bubble .confirm-btn.yes {
    background: #48bb78;
    color: white;
}

.seat-confirm-bubble .confirm-btn.yes:hover {
    background: #38a169;
}

.seat-confirm-bubble .confirm-btn.yes.cancel {
    background: #e53e3e;
}

.seat-confirm-bubble .confirm-btn.yes.cancel:hover {
    background: #c53030;
}

.seat-confirm-bubble .confirm-btn.no {
    background: #e2e8f0;
    color: #4a5568;
}

.seat-confirm-bubble .confirm-btn.no:hover {
    background: #cbd5e0;
}

/* 气泡提示框样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-left: 4px solid #4299e1;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 350px;
    word-wrap: break-word;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: #48bb78;
}

.toast.error {
    border-left-color: #e53e3e;
}

.toast.warning {
    border-left-color: #ed8936;
}

.toast.info {
    border-left-color: #4299e1;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.toast-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast.success .toast-icon {
    background: #48bb78;
}

.toast.error .toast-icon {
    background: #e53e3e;
}

.toast.warning .toast-icon {
    background: #ed8936;
}

.toast.info .toast-icon {
    background: #4299e1;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #2d3748;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #a0aec0;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    line-height: 1;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #718096;
}

/* 移除错误的安全通道CSS样式，改用JavaScript动态设置 */

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.modal-content h2 {
    margin: 0;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-content > div:not(.close) {
    padding: 15px 20px;
    overflow-y: auto;
    max-height: calc(80vh - 60px);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-55%);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

.close {
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 12px;
    z-index: 20;
    line-height: 1;
}

.close:hover {
    color: #000;
}

.modal-content h2 {
    margin-bottom: 25px;
    color: #2d3748;
    text-align: center;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modal-content input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.modal-content button {
    background: #4299e1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-content button:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

#bookingInfo {
    text-align: center;
}

#bookingInfo strong {
    color: #4299e1;
    font-size: 1.2rem;
}

#qrCodeContainer {
    margin: 20px 0;
}

#qrCodeContainer img {
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 预约项目样式 */
.booking-item {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.booking-summary h4 {
    color: #000000;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: none;
}

.booking-summary h4 .verified-status {
    color: #dc3545;
    font-weight: bold;
    font-size: 0.9rem;
}

.booking-summary p {
    color: #000000;
    font-size: 0.9rem;
    margin: 4px 0;
    line-height: 1.4;
}

.expand-indicator {
    color: #4CAF50;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 8px;
    text-align: center;
    padding: 5px;
    background: rgba(76, 175, 80, 0.15);
    border-radius: 4px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    transition: all 0.2s ease;
}

.expand-indicator.expanded {
    color: #FF9800;
    background: rgba(255, 152, 0, 0.15);
    border-color: rgba(255, 152, 0, 0.3);
}

.booking-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.verification-code {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    font-weight: bold;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #00BCD4;
    box-shadow: 0 1px 5px rgba(0, 188, 212, 0.2);
    letter-spacing: 1px;
    text-align: center;
    margin: 10px 0;
    word-break: break-all;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
}

.qr-code-container {
    text-align: center;
    margin-top: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.qr-code-container img {
    max-width: 140px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-controls {
        justify-content: center;
        gap: 15px;
    }
    
    .theme-selector {
        order: -1;
        margin-bottom: 10px;
    }
    
    .user-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    section {
        padding: 20px;
    }
    
    .date-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .date-filter input[type="date"] {
        width: 100%;
    }
    
    .stage {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
        font-size: 1rem !important;
        padding: 12px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
    
    .theater-layout {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .seating-chart {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 320px !important;
        gap: 2px;
        padding: 15px 10px;
        transform: scale(0.8);
        transform-origin: center top;
        overflow: visible !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        height: auto !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .seat {
        width: 24px !important;
        height: 24px !important;
        font-size: 10px !important;
        margin: 1px !important;
        border-radius: 4px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        touch-action: manipulation !important;
        transition: all 0.2s ease !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }
    
    .seat:hover {
        transform: scale(1.1) !important;
    }
    
    .seat:active {
        transform: scale(0.9) !important;
        transition: transform 0.1s ease !important;
    }
    
    .seat-row {
        gap: 3px !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    
    .row-label, .row-label-right {
        width: 50px !important;
        font-size: 11px !important;
        padding: 4px !important;
        flex-shrink: 0 !important;
        text-align: center !important;
    }
    
    .seating-legend {
        width: 100%; /* 完全适配屏幕宽度 */
        gap: 8px;
        margin-bottom: 20px;
        padding: 10px 5px; /* 增加内边距 */
        flex-wrap: wrap; /* 允许换行以适应内容 */
        justify-content: space-between; /* 均匀分布 */
        background: rgba(248, 249, 250, 0.8); /* 添加背景色 */
        border-radius: 8px; /* 圆角 */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 阴影 */
    }
    
    .legend-item {
        font-size: 11px;
        gap: 4px;
        flex: 1 1 auto; /* 允许弹性伸缩 */
        min-width: 70px; /* 适当增加最小宽度 */
        max-width: 120px; /* 限制最大宽度 */
        text-align: center;
        padding: 8px 4px; /* 增加内边距 */
        background: rgba(255, 255, 255, 0.9); /* 背景色 */
        border-radius: 6px; /* 圆角 */
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
        transition: all 0.3s ease; /* 过渡效果 */
        cursor: pointer; /* 鼠标指针 */
    }
    
    .legend-item:hover {
        transform: translateY(-2px); /* 悬停时轻微上移 */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* 增强阴影 */
        background: rgba(255, 255, 255, 1); /* 悬停时背景变白 */
    }
    
    .legend-item:active {
        transform: translateY(0); /* 点击时回到原位 */
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* 减少阴影 */
    }
    
    .legend-item span {
        white-space: nowrap; /* 防止文字换行 */
        font-size: 10px; /* 文字更小 */
    }
    
    .legend-item .seat {
         width: 18px !important; /* 适中的座位图标大小 */
         height: 18px !important;
         font-size: 7px !important;
         margin: 2px auto !important; /* 增加边距和居中 */
     }
 }

/* 平板屏幕优化 (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 15px;
        max-width: 100%;
    }
    
    header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }
    
    .header-controls {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    section {
        padding: 25px;
    }
    
    .stage {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 25px !important;
        font-size: 1.1rem !important;
        padding: 15px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
    
    .theater-layout {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .seating-chart {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 600px !important;
        gap: 4px;
        padding: 20px 15px;
        transform: scale(0.9);
        transform-origin: center top;
        overflow: visible !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        height: auto !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .seat {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
        margin: 2px !important;
        border-radius: 5px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        touch-action: manipulation !important;
        transition: all 0.2s ease !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }
    
    .seat:hover {
        transform: scale(1.15) !important;
    }
    
    .seat:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s ease !important;
    }
    
    .seat-row {
        gap: 4px !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    
    .row-label, .row-label-right {
        width: 55px !important;
        font-size: 12px !important;
        padding: 6px !important;
        flex-shrink: 0 !important;
        text-align: center !important;
    }
    
    .seating-legend {
        width: 100% !important;
        gap: 12px;
        margin-bottom: 25px;
        padding: 15px 10px;
        flex-wrap: wrap;
        justify-content: space-around;
        background: rgba(248, 249, 250, 0.9);
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }
    
    .legend-item {
        font-size: 12px;
        gap: 6px;
        flex: 1 1 auto;
        min-width: 90px;
        max-width: 140px;
        text-align: center;
        padding: 10px 6px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .legend-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
        background: rgba(255, 255, 255, 1);
    }
    
    .legend-item .seat {
        width: 20px !important;
        height: 20px !important;
        font-size: 8px !important;
        margin: 3px auto !important;
        min-width: 20px !important;
        min-height: 20px !important;
    }
    
    /* 平板屏幕下的安全通道样式 */
    .safety-channel {
        font-size: 7px !important;
        min-width: 10px !important;
        height: 28px !important;
        padding: 2px 3px !important;
        margin: 0 2px !important;
    }
    
    .show-detail-layout {
        flex-direction: row;
        gap: 25px;
        height: auto;
    }
    
    .show-basic-details,
    .show-program {
        flex: 1;
        width: auto;
        height: auto;
    }
    
    .select-seat-btn {
        padding: 14px 35px;
        font-size: 15px;
        width: auto;
        margin-top: 10px;
    }
}

/* 桌面屏幕优化 (1024px+) */
@media (min-width: 1025px) {
    .container {
        padding: 20px;
        max-width: 1200px;
    }
    
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 30px;
    }
    
    .header-controls {
        flex-wrap: nowrap;
        gap: 20px;
    }
    
    section {
        padding: 30px;
    }
    
    .stage {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 30px !important;
        font-size: 1.2rem !important;
        padding: 15px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
    
    .theater-layout {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .seating-chart {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 800px !important;
        gap: 5px;
        padding: 20px;
        transform: scale(1);
        transform-origin: center;
        overflow: visible !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        height: auto !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .seat {
        width: 25px !important;
        height: 25px !important;
        font-size: 10px !important;
        margin: 2px !important;
        border-radius: 6px !important;
        min-width: 25px !important;
        min-height: 25px !important;
        transition: all 0.3s ease !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }
    
    .seat:hover {
        transform: scale(1.2) !important;
    }
    
    .seat:active {
        transform: scale(1.1) !important;
        transition: transform 0.1s ease !important;
    }
    
    .seat-row {
        gap: 5px !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    
    .row-label, .row-label-right {
        width: 60px !important;
        font-size: 12px !important;
        padding: 5px !important;
        flex-shrink: 0 !important;
        text-align: center !important;
    }
    
    .seating-legend {
        width: 100% !important;
        gap: 20px;
        margin-bottom: 30px;
        padding: 20px;
        flex-wrap: wrap;
        justify-content: flex-start;
        background: rgba(248, 249, 250, 0.8);
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .legend-item {
        font-size: 14px;
        gap: 8px;
        flex: 0 1 auto;
        min-width: 120px;
        max-width: 180px;
        text-align: center;
        padding: 12px 8px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .legend-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        background: rgba(255, 255, 255, 1);
    }
    
    .legend-item .seat {
        width: 20px !important;
        height: 20px !important;
        font-size: 8px !important;
        margin: 0 auto !important;
        min-width: 20px !important;
        min-height: 20px !important;
    }
    
    .show-detail-layout {
        flex-direction: row;
        gap: 30px;
        height: auto;
    }
    
    .show-basic-details,
    .show-program {
        flex: 1;
        width: auto;
        height: auto;
    }
    
    .select-seat-btn {
        padding: 15px 40px;
        font-size: 16px;
        width: auto;
        margin-top: 0;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .stage {
        transform: scale(1) !important; /* 舞台不缩放，保持原始大小 */
        transform-origin: center !important; /* 从中心开始变换 */
        width: 100% !important; /* 确保舞台宽度占满容器 */
        margin-bottom: 15px !important; /* 调整底部间距 */
        font-size: 0.9rem !important; /* 调整字体大小 */
        padding: 10px !important; /* 调整内边距 */
    }
    
    .seating-chart {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important; /* 允许收缩到最小尺寸 */
        transform: scale(0.5); /* 超小屏幕进一步缩小 */
        transform-origin: center top !important; /* 从中心顶部开始缩放，保持居中对齐 */
        height: auto !important; /* 高度根据内容自适应 */
        min-height: auto !important; /* 移除最小高度限制 */
        overflow: visible !important; /* 确保内容完全显示 */
        padding: 8px;
        gap: 1px;
        margin: 0 auto !important; /* 水平居中对齐 */
        display: flex !important; /* 确保弹性布局 */
        flex-direction: column !important;
        align-items: center !important; /* 内容居中对齐 */
        box-sizing: border-box !important; /* 确保padding不影响总宽度 */
    }
    
    .seat {
        width: 20px; /* 适中的座位尺寸 */
        height: 20px;
        font-size: 8px;
        margin: 1px;
        border-radius: 3px;
        min-width: 20px;
        min-height: 20px;
        touch-action: manipulation; /* 优化触摸操作 */
    }
    
    .seat-row {
        gap: 2px; /* 适当的行内间距 */
    }
    
    .row-label, .row-label-right {
        width: 40px; /* 缩小行标签宽度 */
        font-size: 10px;
        padding: 3px;
    }
    .seating-legend {
        gap: 6px;
        padding: 8px 3px; /* 调整内边距 */
        justify-content: center; /* 居中对齐 */
    }
    
    /* 小屏幕下的安全通道样式 */
    .safety-channel {
        font-size: 6px !important;
        min-width: 8px !important;
        height: 20px !important;
        padding: 1px 2px !important;
        margin: 0 1px !important;
    }
    
    .legend-item {
        min-width: 60px; /* 增加最小宽度 */
        max-width: 90px; /* 限制最大宽度 */
        font-size: 10px;
        padding: 6px 3px; /* 调整内边距 */
         touch-action: manipulation; /* 优化触摸操作 */
    }
    
    .legend-item:hover {
        transform: translateY(-1px); /* 移动端悬停效果更轻微 */
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    }
    
    .legend-item:active {
        transform: scale(0.98); /* 点击时轻微缩小 */
        transition: transform 0.1s ease;
    }
    
    .legend-item span {
        font-size: 9px;
    }
    
    .legend-item .seat {
        width: 16px !important; /* 稍大一些以便手机操作 */
        height: 16px !important;
        font-size: 6px !important;
        margin: 2px auto !important; /* 增加边距和居中 */
        min-width: 16px !important; /* 确保最小尺寸 */
        min-height: 16px !important;
    }
    
    .show-detail-card {
        margin: 5px;
        padding: 15px;
    }
    
    .select-seat-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}
    
    .verification-code {
        font-size: 0.9rem;
        padding: 8px;
        letter-spacing: 0.5px;
        line-height: 1.2;
    }
    
    .booking-item {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .booking-summary h4 {
        color: #000000;
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .booking-summary p {
        color: #000000;
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .expand-indicator {
        font-size: 0.75rem;
        padding: 4px;
        margin-top: 6px;
    }
    
    .qr-code-container {
        padding: 8px;
        margin-top: 10px;
    }
    
    .qr-code-container img {
        max-width: 120px;
    }
    
    .modal-content {
        width: 95%;
        margin: 15px auto;
        max-height: 85vh;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .modal-content h2 {
        padding: 12px 15px;
        font-size: 1.1rem;
    }
    
    .modal-content > div:not(.close) {
        padding: 12px 15px;
        max-height: calc(85vh - 50px);
    }
    
    .close {
        font-size: 20px;
        right: 12px;
        top: 10px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-content span {
        font-size: 0.7rem;
        white-space: normal;
    }
    
    /* 预约标签页内容滚动条支持 */
    .booking-tab-content {
        overflow-y: auto;
        max-height: calc(70vh - 120px);
        -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
    }
}

/* Footer 样式 */
.footer {
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.98) 0%, rgba(45, 55, 72, 0.98) 100%);
    color: white;
    margin-top: 30px;
    padding: 15px 0;
    border-radius: 15px 15px 0 0;
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.footer-content span {
    color: #e2e8f0;
    font-size: 0.75rem;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.footer-content span:hover {
    color: #ffffff;
}

/* 多巴胺配色主题 */

/* 多巴胺日落主题 */
body.dopamine-sunset {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 25%, #ffcc02 50%, #ff8a65 75%, #f06292 100%);
}

body.dopamine-sunset header,
body.dopamine-sunset section {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

body.dopamine-sunset .show-card {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left-color: #ff6b6b;
}

body.dopamine-sunset .footer {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.95) 0%, rgba(255, 167, 38, 0.95) 100%);
}

/* 多巴胺海洋主题 */
body.dopamine-ocean {
    background: linear-gradient(135deg, #00bcd4 0%, #26c6da 25%, #4fc3f7 50%, #29b6f6 75%, #42a5f5 100%);
}

body.dopamine-ocean header,
body.dopamine-ocean section {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 188, 212, 0.3);
}

body.dopamine-ocean .show-card {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border-left-color: #00bcd4;
}

body.dopamine-ocean .footer {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.95) 0%, rgba(66, 165, 245, 0.95) 100%);
}

/* 多巴胺森林主题 */
body.dopamine-forest {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 25%, #81c784 50%, #a5d6a7 75%, #c8e6c9 100%);
}

body.dopamine-forest header,
body.dopamine-forest section {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

body.dopamine-forest .show-card {
    background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
    border-left-color: #4caf50;
}

body.dopamine-forest .footer {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.95) 0%, rgba(129, 199, 132, 0.95) 100%);
}

/* 多巴胺糖果主题 */
body.dopamine-candy {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 25%, #ba68c8 50%, #9c27b0 75%, #673ab7 100%);
}

body.dopamine-candy header,
body.dopamine-candy section {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(233, 30, 99, 0.3);
}

body.dopamine-candy .show-card {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    border-left-color: #e91e63;
}

body.dopamine-candy .footer {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.95) 0%, rgba(156, 39, 176, 0.95) 100%);
}

/* 多巴胺霓虹主题 */
body.dopamine-neon {
    background: linear-gradient(135deg, #ff5722 0%, #ff9800 25%, #ffc107 50%, #cddc39 75%, #8bc34a 100%);
}

body.dopamine-neon header,
body.dopamine-neon section {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 87, 34, 0.3);
}

body.dopamine-neon .show-card {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 100%);
    border-left-color: #ff5722;
}

body.dopamine-neon .footer {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.95) 0%, rgba(139, 195, 74, 0.95) 100%);
}

/* 多巴胺主题按钮样式 */
body.dopamine-sunset #loginBtn,
body.dopamine-ocean #loginBtn,
body.dopamine-forest #loginBtn,
body.dopamine-candy #loginBtn,
body.dopamine-neon #loginBtn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    color: #333;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.dopamine-sunset #loginBtn:hover,
body.dopamine-ocean #loginBtn:hover,
body.dopamine-forest #loginBtn:hover,
body.dopamine-candy #loginBtn:hover,
body.dopamine-neon #loginBtn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 多巴胺主题日期筛选按钮 */
body.dopamine-sunset .date-filter button,
body.dopamine-ocean .date-filter button,
body.dopamine-forest .date-filter button,
body.dopamine-candy .date-filter button,
body.dopamine-neon .date-filter button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    color: #333;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

body.dopamine-sunset .date-filter button:hover,
body.dopamine-ocean .date-filter button:hover,
body.dopamine-forest .date-filter button:hover,
body.dopamine-candy .date-filter button:hover,
body.dopamine-neon .date-filter button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 个人设置模态框样式 */
.profile-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #718096;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background: rgba(66, 153, 225, 0.1);
    color: #4299e1;
}

.tab-button.active {
    background: white;
    color: #4299e1;
    border-bottom-color: #4299e1;
    font-weight: 600;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 预约标签页样式 */
.booking-tabs {
    display: flex;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.booking-tab-button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #718096;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.booking-tab-button:hover {
    background: rgba(66, 153, 225, 0.1);
    color: #4299e1;
}

.booking-tab-button.active {
    background: white;
    color: #4299e1;
    border-bottom-color: #4299e1;
    font-weight: 600;
}

.booking-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
    min-height: 200px;
}

.booking-tab-content.active {
    display: block;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
}

.info-item label {
    font-weight: 600;
    color: #2d3748;
    min-width: 80px;
    margin-right: 12px;
}

.info-item span {
    color: #4a5568;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #718096;
    font-size: 0.85rem;
}

#profileModal .modal-content {
    max-width: 600px;
    max-height: 85vh;
}

#profileModal .modal-content > div:not(.close) {
    padding: 0;
}

#profileModal .profile-tabs {
    margin: 0;
    border-radius: 0;
}

#profileModal .tab-content {
    padding: 20px;
}

#profileModal button[type="submit"],
#profileModal button:not(.tab-button):not(.close) {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

#profileModal button[type="submit"]:hover,
#profileModal button:not(.tab-button):not(.close):hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

/* 登录和注册模态框美化样式 */
.login-modal, .register-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    color: #2d3748;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
    max-width: 420px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-modal::before, .register-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(143, 130, 255, 0.05) 100%);
    pointer-events: none;
}

.login-header, .register-header {
    text-align: center;
    padding: 40px 30px 30px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #4a90e2 0%, #8f82ff 100%);
    margin: -1px -1px 0 -1px;
    border-radius: 24px 24px 0 0;
    color: white;
}

.login-icon, .register-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 美化欢迎标题和链接样式 */
.welcome-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-text {
    color: #000000;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

.welcome-emoji {
    font-size: 32px;
    animation: waveHand 1.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes welcomeGlow {
    0% { filter: brightness(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)); }
    100% { filter: brightness(1.1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)); }
}

@keyframes waveHand {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.login-subtitle, .register-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.subtitle-icon {
    font-size: 18px;
    animation: subtitlePulse 2s ease-in-out infinite;
}

@keyframes subtitlePulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* 美化底部链接样式 */
.footer-text {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-question {
    color: #718096;
}

.register-link, .login-link {
    color: #4a90e2 !important;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.register-link::before, .login-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    transition: left 0.5s ease;
}

.register-link:hover::before, .login-link:hover::before {
    left: 100%;
}

.register-link:hover, .login-link:hover {
    background: linear-gradient(135deg, #4a90e2 0%, #8f82ff 100%);
    border-color: #4a90e2;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
    text-decoration: none;
}

.link-icon {
    font-size: 16px;
    animation: linkIconSpin 2s linear infinite;
}

.link-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.link-arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.register-link:hover .link-arrow, .login-link:hover .link-arrow {
    transform: translateX(4px);
}

@keyframes linkIconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-form, .register-form {
    padding: 0 30px 20px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.8);
    margin: 0 -1px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    z-index: 2;
}

.login-form input, .register-form input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #2d3748;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-form input::placeholder, .register-form input::placeholder {
    color: #a0aec0;
}

.login-form input:focus, .register-form input:focus {
    outline: none;
    border-color: #4a90e2;
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.login-btn, .register-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #4a90e2 0%, #8f82ff 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.login-btn:hover, .register-btn:hover {
    background: linear-gradient(135deg, #3182ce 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.login-btn:active, .register-btn:active {
    transform: translateY(0);
}

.login-footer, .register-footer {
    text-align: center;
    padding: 20px 30px 30px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.8);
    margin: 0 -1px -1px -1px;
    border-radius: 0 0 24px 24px;
}

/* 关闭按钮样式优化 */
.login-modal .close, .register-modal .close {
    color: #718096;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 10;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-modal .close:hover, .register-modal .close:hover {
    color: #e53e3e;
    background: rgba(255, 255, 255, 0.95);
    transform: rotate(90deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* 随机昵称按钮样式 */
.random-nickname-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #4a90e2;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.random-nickname-btn:hover {
    background: #4a90e2;
    border-color: #4a90e2;
    color: white;
    transform: translateY(-50%) rotate(180deg);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.input-group:has(.random-nickname-btn) input {
    padding-right: 50px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-modal, .register-modal {
        max-width: 90%;
        margin: 20px auto;
    }
    
    .login-header, .register-header {
        padding: 30px 20px 20px;
    }
    
    .login-form, .register-form {
        padding: 0 20px 15px;
    }
    
    .login-footer, .register-footer {
        padding: 15px 20px 25px;
    }
    
    .login-icon, .register-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .login-header h2, .register-header h2 {
        font-size: 24px;
    }
}

/* 节目单样式 */
.programs-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.programs-section h3 {
    color: #1a365d;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.programs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.program-item {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.program-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #4299e1;
}

.program-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.program-order {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.program-title {
    flex: 1;
}

.program-name {
    color: #1a365d;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.program-type {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.program-details {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.program-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.program-detail-label {
    background: rgba(66, 153, 225, 0.1);
    color: #3182ce;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.program-description {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
    border-left: 3px solid #4299e1;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #718096;
    font-style: italic;
}

.error {
    text-align: center;
    padding: 20px;
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(229, 62, 62, 0.2);
}

.no-programs {
    text-align: center;
    padding: 30px;
    color: #718096;
    font-style: italic;
}

/* 隐藏和不可见节目样式 */
.program-item.invisible {
    opacity: 0.5;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.program-item.hidden-item {
    border: 2px dashed #cbd5e0;
    background: linear-gradient(135deg, #fafafa 0%, #f1f5f9 100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .programs-section {
        padding: 15px;
        margin-top: 15px;
    }
    
    .program-item {
        padding: 12px;
    }
    
    .program-header {
        gap: 10px;
    }
    
    .program-order {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .program-name {
        font-size: 1rem;
    }
    
    .program-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .program-detail-label {
        min-width: auto;
        align-self: flex-start;
    }
}