/* 全局样式 */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-image: url('../poster.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

.page-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  padding-top: 10px;
}

.content-container {
  width: 90%;
  max-width: 800px;
  /*background-color: rgba(255, 255, 255, 0.85);*/
  border-radius: 10px;
  padding: 20px;
  margin-top: 0px;
  margin-bottom: 100px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow-y: auto;
  max-height: 80vh;
}

h1 {
  text-align: center;
  color: #333;
  margin-top: 0;
  padding: 10px;
}

/* 首頁样式 */
#home-page {
  text-align: center;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.poster {
  max-width: 90%;
  max-height: 70vh;
  border-radius: 8px;
  margin-bottom: 25px;
}

.upload-btn {
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  background-color: #ffffff;
  color: #040404;
  border: #010101 1px solid;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.upload-btn:hover {
  background-color: #0056b3;
}

/* 畫廊頁样式 */
#gallery-page {
  width: 100%;
  display: none;
}

.gallery-title {
  text-align: center;
  margin-bottom: 10px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.uploaded-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.photo-item {
  position: relative;
  width: 100%;
  padding-bottom: 0%;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.photo-item img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  object-position: center; /* 居中显示图片 */
}

.photo-url {
  font-size: 12px;
  padding: 4px;
  display: block;
  overflow-wrap: break-word;
  color: #0066cc;
  text-decoration: none;
}

.photo-url:hover {
  text-decoration: underline;
}

/* 展览商列表样式 */
.exhibition-list {
  list-style-type: none;
  padding: 0;
}

.exhibition-item {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.exhibition-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.company-name {
  font-size: 1.3rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 5px;
}

.booth-info {
  font-size: 1rem;
  color: #7f8c8d;
}

/* 统计页面样式 */
table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 20px;
  background-color: white;
}

th, td {
  border: 1px solid #ccc;
  padding: 6px 10px;
}

th {
  background-color: #eee;
}

/* 上传进度条 */
#file-input {
  display: none;
}

#upload-progress {
  display: none;
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  background: white;
  padding: 10px;
  text-align: center;
  z-index: 1000;
}

/* 底部导航按钮样式 */
.bottom-buttons {
  position: fixed;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  z-index: 9999;
  pointer-events: auto;
  padding: 0 10px;
  box-sizing: border-box;
}

.nav-button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-button img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  object-fit: cover;
}

/* 移动端适配 */
@media (max-width: 480px) {
  .bottom-buttons {
    gap: 15px;
  }
  
  .nav-button {
    height: 36px;
  }
  
  .content-container {
    width: 95%;
    padding: 15px;
  }
  
  .photo-grid {
    grid-template-columns: repeat(3, 1fr); /* ⭐ 手機也固定 3 張 */
    gap: 6px;
  }

  h1 {
    font-size: 1.5rem;
  }
}