* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  width: 100%;
  margin-bottom: 25px;
  text-align: center;
}

header h1 {
  font-size: 28px;
  margin-bottom: 5px;
}

header p {
  font-size: 16px;
  opacity: 0.9;
}

section {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 25px;
}

h2 {
  color: #2c3e50;
  margin-top: 0;
  font-size: 1.5rem;
  border-bottom: 2px solid #f1f2f3;
  padding-bottom: 0.5rem;
}

.format-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.format-btn {
  background-color: #ecf0f1;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.format-btn:hover {
  background-color: #d6dbdf;
}

.format-btn.active {
  background-color: #3498db;
  color: white;
}

.cinema-info {
  display: flex;
  flex-direction: column;
}

.info-header {
  margin-bottom: 20px;
}

.format-subtitle,.section-subtitle{
  font-size: 1rem;
  color: #7f8c8d;
  margin: 0.5rem 0 0;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-details {
  display: flex;
  gap: 20px;
  flex: 1;
}

.detail-section {
  flex: 1;
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 8px;
}

.detail-section h3 {
  margin-bottom: 0.5rem;
  color: #3498db;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pros-cons {
  flex: 1;
  display: flex;
  gap: 20px;
}

.pros,
.cons {
  flex: 1;
}

.pros h3,
.cons h3 {
  color: #3498db;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pros ul,
.cons ul {
  display: flex;
  gap: 40px;
  padding-left: 1.5rem;
  margin: 0.5rem 0 0;
}

.pros li {
  color: #27ae60;
}

.cons li {
  color: #e74c3c;
}

.seating-content {
  min-height: 300px;
}

.hidden {
  display: none;
}

.seating-grid {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  justify-content: center;
  overflow-x: auto;
  padding: 0.8rem;
  background-color: #f8f9fa;
  border-radius: 8px;
}

/* 优化座位样式 */
.seat {
  aspect-ratio: 1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 2rem;
  min-height: 2rem;
  border: none;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.seat:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
  position: relative;
}

/* 优化行标签样式 */
.seat-row-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  color: #444;
  background-color: #e9ecef;
  border-radius: 4px;
  min-width: 2rem;
  min-height: 2rem;
  border: 1px solid #ddd;
}

/* 座位类型颜色 */
.best-seat {
  background: linear-gradient(135deg, #00c951 0%, #009c41 100%);
  color: white;
}

.recommended-seat {
  background: linear-gradient(135deg, #2b7fff 0%, #1a6dea 100%);
  color: white;
}

.average-seat {
  background: linear-gradient(135deg, #f0b100 0%, #d19900 100%);
  color: #333;
}

.poor-seat {
  background: linear-gradient(135deg, #fb2c36 0%, #e01a25 100%);
  color: white;
}

/* 银幕指示器样式优化 */
.screen-indicator {
  background: linear-gradient(to bottom, #bfd5eb, #8eabc8);
  color: white;
  text-align: center;
  padding: 0.7rem;
  margin-bottom: 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.screen-indicator::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 10px solid #8eabc8;
}

/* 座位图例样式 */
.seat-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  display: inline-block;
}

.best-seat.legend-color {
  background: linear-gradient(135deg, #00c951 0%, #009c41 100%);
}

.recommended-seat.legend-color {
  background: linear-gradient(135deg, #2b7fff 0%, #1a6dea 100%);
}

.average-seat.legend-color {
  background: linear-gradient(135deg, #f0b100 0%, #d19900 100%);
}

.poor-seat.legend-color {
  background: linear-gradient(135deg, #fb2c36 0%, #e01a25 100%);
}

.aisle {
  background-color: #e9ecef;
  border: 1px dashed #adb5bd;
  border-radius: 2px;
  min-width: 0.5rem;
}


table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th,
td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid #ecf0f1;
}

th {
  background-color: #3498db;
  color: white;
}

tr:nth-child(even) {
  background-color: #f8f9fa;
}

tr:hover {
  background-color: #ecf0f1;
}

.recommendation-cards {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.recommendation-card {
  flex: 1;
  background-color: #ecf0f1;
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.recommendation-card h3 {
  color: #2c3e50;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rec-format {
  font-weight: bold;
  color: #3498db;
  margin: 0.5rem 0;
}

.rec-desc {
  margin-bottom: 0;
}

footer {
  color: #8a8a8a;
  font-size: 15px;
  text-align: center;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2c3e50;
  color: white;
  padding: 1rem 2rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.notice.show {
  opacity: 1;
}
