/*全域設定*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@view-transition {
  navigation: auto;
}

main {
  background-color: #f4f6f9;
  color: #333;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 30px;
  font-family: "MyIansui";
}

/* 主視覺圖片區塊 */
.main-visual {
  text-align: center; /* 圖片置中 */
  margin-bottom: 40px;
  padding-top: 40px;
}

.main-visual img {
  display: inline-block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); /* 圖片陰影 */
}

/* 大標題 h3 */
.container h3 {
  font-size: 40px;
  margin-top: 0;
  margin-bottom: 15px;
  color: #2c3e50; /* 深色字增加穩重感 */
  font-weight: bold; /*文字粗體*/
}

/* 內文 p */
.container p {
  font-size: 18px;
  line-height: 1.6; /* 增加行高提升閱讀舒適度 */
  margin: 10px 0;
  color: #555;
}

/* --- 統計區塊 (.stats-grid) 的額外美化 --- */
.stats-intro {
  margin-bottom: 30px;
  border-left: 5px solid #ffca28; /* 左側裝飾線 */
  padding-left: 15px;
}

/* 數據網格佈局 */
.stats-grid {
  display: grid;
  /* 每格間距最小180px */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

/* 單個數據卡片 */
.stat-item {
  background-color: #fcfcfc;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-5px); /* 滑鼠懸停時上浮效果 */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 數字樣式 */
.stat-item .number {
  display: block;
  font-size: 48px; /* 數字大一點比較吸睛 */
  font-weight: bold;
  color: #007bff; /* 主色調，可依海報顏色調整 */
  margin-bottom: 5px;
}

/* 標籤樣式 */
.stat-item .label {
  display: block;
  font-size: 18px; /* 符合內文大小，或可改為 24px (h5大小) */
  color: #777;
}
/* --- 新增區塊：最新公告卡片設計 --- */
.notice-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin: 40px 0; /* 上下留白 */
  font-family: "MyIansui", sans-serif;
  border: 1px solid #eee;
}

/* 頂部標題列佈局 */
.notice-header {
  display: flex;
  justify-content: space-between; /*水平左右分布*/
  align-items: center; /*鉛直向對齊*/
  margin-bottom: 25px;
  flex-wrap: wrap; /* 手機版自動換行 */
  gap: 15px;
}

.notice-title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* 紫色裝飾條 (左側紫色豎條) */
.purple-pill {
  display: block;
  width: 6px;
  height: 32px;
  background-color: #8e44ad; /* 圖片中的紫色 */
  border-radius: 4px;
}

.notice-header h2 {
  font-size: 24px;
  color: #333;
  margin: 0;
  font-weight: bold;
}

/* 攤位配置圖按鈕 */
.map-btn {
  display: inline-flex; /*對外表現像文字（inline，可以跟別的東西並排），對內是彈性盒子（flex*/
  align-items: center;
  gap: 8px;
  background-color: #9b72cf; /* 淺紫色按鈕背景 */
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s;
  box-shadow: 0 2px 5px rgba(155, 114, 207, 0.4);
}

.map-btn:hover {
  background-color: #8e44ad;
  transform: translateY(-2px);
}

/* 內容區塊 */
.notice-body {
  margin-bottom: 20px;
}

.notice-subtitle {
  display: flex;
  align-items: center;
  gap: 15px; /* 圖示與文字的間距 */
  margin-bottom: 15px;
}

/* 圖示預留位置容器 (統一大小) */
.icon-placeholder {
  width: 40px; /* 寬度固定 */
  height: 40px; /* 高度固定 */
  display: flex;
  justify-content: center;
  align-items: center; /*圖片待在方框正中心*/
  flex-shrink: 0; /* 防止被擠壓 */
}

/* 讓內部圖片填滿容器 */
.icon-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain; /*保持長寬比ㄑ*/
  display: block; /* 預設顯示，若無 src 則空白 */
}

.notice-subtitle h3 {
  font-size: 20px;
  color: #2c3e50;
  margin: 0;
  font-weight: bold;
}

/* 列表樣式 */
.info-list {
  list-style: none; /*去除小黑點*/
  padding-left: 55px; /* 對齊標題文字 (icon 40px + gap 15px) */
  margin: 0;
}

.info-list li {
  font-size: 16px;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.6;
}

/* 連結樣式 */
.info-list a {
  color: #8e44ad;
  text-decoration: underline;
}

/* 底部警語區塊 */
.notice-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed #eee; /* 上方分隔線 */
}
.notice-footer p {
  margin: 0;
  color: #d35400; /* 警示色 (橘紅) */
  font-weight: bold;
  font-size: 16px;
}
.icon-placeholder-warning-icon {
  width: 40px; /* 寬度固定 */
  height: 40px; /* 高度固定 */
  display: flex;
  justify-content: center;
  align-items: center; /*圖片待在方框正中心*/
  flex-shrink: 0; /* 防止被擠壓 */
}
.icon-placeholder-warning-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain; /*保持長寬比ㄑ*/
  display: block; /* 預設顯示，若無 src 則空白 */
}

/* --- 純 CSS 彈出視窗 (Modal) 設定 --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 半透明黑底 */
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 當網址 hash 是 #map-modal 時顯示 (點擊按鈕後觸發) */
.modal-overlay:target {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 800px;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  text-decoration: none;
  color: #999;
}

.modal-close:hover {
  color: #333;
}

.map-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-top: 15px;
}

/* 響應式調整 */
@media (max-width: 600px) {
  .info-list {
    padding-left: 0; /* 手機版列表靠左 */
  }
  .notice-header {
    flex-direction: column;
    align-items: flex-start; /*靠左對齊*/
  }
  .map-btn {
    width: 100%;
    justify-content: center;
  }
}

.title {
  font-size: 36px;
  color: #2c3e50;
  margin: 0;
  border-left: 5px solid #7f8c8d;
  padding-left: 20px;
}
.subtitle {
  font-size: 24px;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  color: #2c3e50;
}
/* 製作倒三角形 */
.subtitle::after {
  content: "";
  display: block; /* 設定為方塊 */
  width: 0px;
  height: 0px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #add;
  margin: 10px auto 0;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
  justify-items: center;
  align-items: center;
}
.department,
.enterprise,
.organizer,
.co-organizers,
.sponsors {
  width: 100%;
  height: 180px;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
}
.department img,
.enterprise img,
.organizer img,
.co-organizers img,
.sponsors img {
  max-width: 100%;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}
.department p,
.enterprise p,
.organizer p,
.co-organizers p,
.sponsors p {
  margin: 0;
  font-size: 14px;
  text-align: center;
  color: #333;
}
