/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* 第一模块：图片展示 */
.banner {
    width: 100%;
    text-align: center;
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.banner img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 第二模块：搜索栏 */
.search-container {
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 10px 0;
    display: flex;
    gap: 10px;
}

#searchInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

#searchBtn {
    padding: 10px 20px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#searchBtn:hover {
    background-color: #40a9ff;
}

/* 第三模块：搜索后的信息 */
.info-container {
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 10px 0;
    min-height: 100px;
}

.person-info {
    display: none;
}

.person-info.show {
    display: block;
}

.default-info {
    display: block;
    text-align: left;
    padding: 20px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.person-info.show ~ .default-info {
    display: none;
}

.info-item {
    padding: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background-color: #fafafa;
}

.info-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}

.venue {
    font-size: 18px;
    font-weight: bold;
    color: #1890ff;
}

.seat-info {
    font-size: 16px;
    color: #52c41a;
    font-weight: bold;
}

.info-details {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}

.address, .date {
    margin: 5px 0;
    color: #666;
}

.person-details {
    display: flex;
    justify-content: space-between;
}

.name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.department {
    font-size: 14px;
    color: #666;
}

/* 第四模块：座位展示 */
.seating-container {
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 10px 0;
    overflow: auto;
    position: relative;
}

/* 舞台区域 */
.stage-section {
    margin-bottom: 16px;
    text-align: center;
}

.stage-section .stage-cell {
    display: inline-block;
    width: 650px;
    height: 40px;
    background-color: transparent;
    color: #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

/* 沙发区容器 */
.sofa-section {
    margin-bottom: 6px;
    border: none;
    background: transparent;
    padding: 8px;
    border-radius: 6px;
    display: inline-block;
    width: 650px;
}

.sofa-title {
    font-weight: bold;
    color: #722ed1;
    margin-bottom: 6px;
    text-align: left;
    font-size: 14px;
}

.sofa-chart {
    display: grid;
    grid-template-columns: 50px repeat(10, 60px);
    gap: 4px;
    width: 650px;
}

.sofa-cell,
.sofa-header {
    width: 60px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.sofa-rowlabel {
    width: 50px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.sofa-header {
    font-weight: 700;
    color: #722ed1;
}

.sofa-seat {
    width: 60px;
    height: 36px;
    border-radius: 8px;
    background: #fff0f6;
    border: 1px solid #ffadd2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
    font-size: 11px;
}

.sofa-seat:hover { background: #ffd6e7; }
.sofa-seat.occupied { background: #fff1b8; border-color: #ffe58f; }
.sofa-seat.selected { background: #ffe7ba; border-color: #ffc069; transform: scale(1.1); }

.seating-chart {
    display: grid;
    grid-template-columns: 35px repeat(14, 35px);
    gap: 4px;
    min-width: 525px;
    transform-origin: 0 0;
}

.seat {
    width: 35px;
    height: 35px;
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
}

.seat:hover {
    background-color: #bae7ff;
}

.seat.occupied {
    background-color: #ffccc7;
    border-color: #ffa39e;
}

.seat.selected {
    background-color: #ffd8bf;
    border-color: #ffbb96;
    animation: pulse 1s infinite;
    transform: scale(1.2);
}

@keyframes pulse {
    0% { transform: scale(1.2); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1.2); }
}

.header-cell {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #1890ff;
    font-size: 11px;
}

/* 舞台区域样式 */
.stage-cell {
    width: 650px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
    background-color: transparent;
    border-radius: 4px;
    margin: 2px 0;
}

.stage-cell.empty {
    background-color: transparent;
    color: transparent;
}

.row-label {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #1890ff;
    font-size: 11px;
}

/* 舞台分割线（普通座位区占位） */
.stage-divider {
    width: 650px;
    height: 16px;
    background: transparent;
    border-radius: 4px;
    opacity: 1;
    margin: 2px 0 8px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-container {
        padding: 10px;
    }
    
    #searchInput {
        padding: 8px;
        font-size: 14px;
    }
    
    #searchBtn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .info-container, .seating-container {
        padding: 10px;
    }
    
    .seating-chart {
        grid-template-columns: 40px repeat(14, 35px);
    }
    
    .seat, .header-cell, .row-label {
        width: 35px;
        height: 35px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .seating-chart {
        grid-template-columns: 40px repeat(14, 30px);
    }
    
    .seat, .header-cell, .row-label {
        width: 30px;
        height: 30px;
        font-size: 9px;
    }
}

/* 第五模块：技术支持信息 */
.tech-support {
    width: 100%;
    padding: 1px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 10px 0;
    text-align: center;
    border-top: 1px solid #e8e8e8;
}

.tech-support p {
    color: #9c9c9c;
    font-size: 14px;
    margin: 0;
    padding: 10px 0;
}

/* 多结果显示样式 */
.multiple-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.results-header {
    font-size: 16px;
    font-weight: bold;
    color: #1890ff;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f0f8ff;
    border-radius: 4px;
    text-align: center;
}

.multiple-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.multiple-item:hover {
    border-color: #1890ff;
    background-color: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(24, 144, 255, 0.2);
}

.multiple-item.selected {
    border-color: #1890ff;
    background-color: #e6f7ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.3);
}

/* 响应式设计中的多结果显示 */
@media (max-width: 768px) {
    .multiple-results {
        gap: 8px;
    }
    
    .results-header {
        font-size: 14px;
        padding: 8px;
    }
    
    .multiple-item {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .results-header {
        font-size: 13px;
        padding: 6px;
    }
    
    .multiple-item {
        padding: 10px;
    }
}