@charset "utf-8";
a{outline:0;border:0 none;text-decoration:none;-webkit-tap-highlight-color:transparent;color:#333333;}
.top-nav{width:100%;height:50px;background: linear-gradient(90deg, #e50213 0%, #b3000f 100%);;color:#fff;line-height:50px;text-align:center;position:fixed;top:0;left:0;box-shadow: 0 4px 5px rgb(0 0 0 / 10%);z-index:99999999;}
.top-nav .blockbox{position:relative}
.top-nav .return{display:block;height:50px;line-height:50px;background:url(../images/return.png) no-repeat 10px center;padding-left:33px;color:#fff;font-size:13px;background-size:16px;position:absolute;top:0px;left:0;}
.top-nav h2{font-size:14px;font-weight:600;height:50px;line-height:50px;padding-left:24px;}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin:65px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

header {
    background: linear-gradient(90deg, #e50213 0%, #b3000f 100%);
    color: white;
    padding: 25px;
    text-align: center;
}

h1 {
    font-size: 32px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.main-content {
    display: flex;
    padding: 25px;
    gap: 25px;
    flex-direction: row;
}

.control-panel {
    flex: 0 0 320px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.search-box {
    margin-bottom: 30px;
}

.search-box h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 19px;
    border-bottom:2px solid #e50213;
    padding-bottom: 10px;
}

.input-group {
    display: flex;
    margin-bottom: 18px;
}

input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 6px 0 0 6px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

input:focus {
    border-color: #e50213;
    box-shadow: 0 0 0 3px rgba(229, 2, 19, 0.2);
}

button {
    background: #e50213;
    color: white;
    border: none;
    padding: 14px 22px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

button:hover {
    background: #c3000f;
    transform: translateY(-2px);
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.action-buttons button {
    flex: 1;
    border-radius: 6px;
}

#resetBtn {
    background: #6c757d;
}

#resetBtn:hover {
    background: #5a6268;
}

.result-box {
    background: white;
    border-radius: 8px;
      font-size: 14px;
    padding: 18px;
    margin-top: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    min-height: 120px;
    max-height: 400px;
    overflow-y: auto;
}

.result-item {
    padding: 12px;
    font-size: 14px;
    margin-bottom: 12px;
    background: #ffeaea;
    border-radius: 6px;
    border-left: 4px solid #e50213;
    transition: all 0.3s;
}

.result-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.canvas-container {
    flex: 1;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: auto;
    cursor: grab;
    min-height:850px;
}

.canvas-container:active {
    cursor: grabbing;
}

canvas {
    display: block;
    background: #f8f9fa;
}

.legend {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.legend-color {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    margin-right: 8px;
    border: 1px solid rgba(0,0,0,0.1);
}
.vip-zone{background:#b3a876;}
.empty {
    background: #e0e0e0;
}

.occupied {
    background: #e50213;
}

.highlight {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.zone-a {
    background: #e3f2fd;
}

.zone-b {
    background: #f3e5f5;
}

.zone-c {
    background: #e8f5e9;
}

.instructions {
    margin-top: 30px;
    padding: 18px;
    background: #ffeaea;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.instructions h4 {
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 16px;
}

.instructions ul {
    padding-left: 22px;
}

.instructions li {
    margin-bottom: 10px;
}

footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 14px;
    border-top: 1px solid #eee;
}

.drag-hint {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
}
@media (max-width: 1100px) {
    .main-content {
        flex-direction: column;
    }
    
    .control-panel {
        flex: 1;
    }
}

@media (max-width: 768px) {
  
    .main-content {
        padding: 15px;
        gap: 15px;
    }
    .result-item{font-size:16px;line-height:1.7}
    input{padding:10px 15px;font-size:15px}
    .canvas-container{min-height：800px}
    .container {margin:65px auto 0 auto;}
    body{padding:0px;}
    .control-panel {
        padding: 15px;
    }
    .search-box h3{font-size:20px;}

    h1 {
        font-size: 18px;
    }
    .subtitle{font-size:14px;}
    .legend {
        gap: 15px;
    }
}
/* 添加外层容器样式 */
.canvas-outer-container {
    width: 100%;
    height: 100%;
    overflow: auto;
    position: relative;
    -webkit-overflow-scrolling: touch; /* 支持iOS滚动惯性 */
}

.canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
   
}
.canvas-container2{ min-width: 2000px!important; /* 确保足够宽度 */
    min-height: 1500px; /* 确保足够高度 */}
#seatCanvas {
    display: block;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .canvas-outer-container2 {
        min-height:900px!important; /* 确保足够高度 */
        overflow: auto;
        touch-action: pan-x pan-y; /* 允许平移手势 */
    }
}
/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>返回顶部<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
#back_top{transition:all 0.75s;-moz-transition:all 0.75s;-webkit-transition:all 0.75s;-o-transition:all 0.75s;position:fixed;right:20px;bottom:120px;z-index:999;opacity:0;-webkit-opacity:0;visibility:hidden;}
#back_top.onshow{opacity:1;-webkit-opacity:1;visibility:visible;bottom:120px;}
#back_top img{width:35px;}