/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', '微軟正黑體', sans-serif;
  background-color: #e8f4f8;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== HEADER / NAVBAR ===== */
.site-header {
  background-color: #e8f4f8;
  padding: 15px 0 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo-wrap {
  display: inline-block;
  margin-bottom: 10px;
}

.logo-wrap img {
  height: 80px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid #ccc;
}

.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 14px;
  color: #2a6e7c;
  font-weight: 500;
  border-right: 1px solid #ccc;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.main-nav a:first-child {
  border-left: 1px solid #ccc;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: #2a6e7c;
  color: #fff;
}

/* ===== MAIN CONTENT ===== */
main {
  flex: 1;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, #b8d8e8 0%, #7ab8cc 50%, #4a9ab4 100%);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
}

.hero-title {
  font-size: 28px;
  color: #8B6914;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(255,255,255,0.8);
  margin-bottom: 20px;
}

/* ===== CONTENT BOX ===== */
.content-box {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  margin: 20px auto;
  max-width: 900px;
  padding: 30px 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.content-box h1 {
  font-size: 26px;
  color: #8B6914;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

.content-box h2 {
  font-size: 18px;
  color: #2a6e7c;
  margin: 20px 0 10px;
}

.section-divider {
  height: 3px;
  background: linear-gradient(to right, #8B6914, #c9a227);
  margin-bottom: 20px;
  border-radius: 2px;
}

/* ===== INQUIRY BUTTON ===== */
.inquiry-btn-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
}

.btn-inquiry {
  display: inline-block;
  padding: 10px 24px;
  border: 2px solid #2a6e7c;
  color: #2a6e7c;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-inquiry:hover {
  background-color: #2a6e7c;
  color: #fff;
}

/* ===== PDF LINK LIST ===== */
.pdf-list {
  list-style: none;
  padding: 0;
}

.pdf-list li {
  padding: 6px 0;
  border-bottom: 1px solid #e0e0e0;
}

.pdf-list li:last-child {
  border-bottom: none;
}

.pdf-list a {
  color: #2a6e7c;
  font-size: 14px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pdf-list a::before {
  content: "📄";
  font-size: 14px;
}

.pdf-list a:hover {
  color: #8B6914;
  text-decoration: underline;
}

/* ===== HOME PAGE SECTIONS ===== */
.home-section {
  background: linear-gradient(135deg, #b8d8e8 0%, #7ab8cc 50%, #4a9ab4 100%);
  padding: 40px 20px;
}

.home-title {
  text-align: center;
  font-size: 22px;
  color: #8B6914;
  margin-bottom: 30px;
  font-weight: 600;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 30px;
}

.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid #e0e0e0;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.video-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.video-card-label {
  text-align: center;
  padding: 10px;
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

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

.btn-outline {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid #2a6e7c;
  color: #2a6e7c;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 500;
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-outline:hover {
  background-color: #2a6e7c;
  color: #fff;
}

.btn-filled {
  display: inline-block;
  padding: 12px 30px;
  background-color: #2a6e7c;
  color: #fff;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 500;
  border: 2px solid #2a6e7c;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-filled:hover {
  background-color: #1d5a6a;
  border-color: #1d5a6a;
}

/* ===== PARTNER LOGOS ===== */
.partners-section {
  background: #fff;
  padding: 20px;
  text-align: center;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.partner-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.2s;
}

.partner-logo:hover {
  filter: grayscale(0%);
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  padding: 20px;
  font-size: 12px;
  color: #666;
  line-height: 1.8;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.footer-exhibition {
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
}

.footer-exhibition strong {
  color: #2a6e7c;
}

.footer-legal {
  font-size: 11px;
  color: #888;
  line-height: 1.7;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* ===== REGISTER PAGE ===== */
.register-section {
  background: linear-gradient(135deg, #b8d8e8 0%, #7ab8cc 50%, #4a9ab4 100%);
  padding: 40px 20px;
  min-height: 500px;
}

.register-box {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  max-width: 600px;
  margin: 0 auto;
  padding: 30px 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.register-box h1 {
  font-size: 24px;
  color: #8B6914;
  text-align: center;
  margin-bottom: 15px;
}

.wa-register-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #02556E;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 20px;
  transition: background 0.2s;
}

.wa-register-btn:hover {
  background-color: #013d50;
}

.wa-register-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e0a0a0;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #2a6e7c;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.btn-submit {
  display: block;
  width: auto;
  padding: 12px 40px;
  background-color: #8B6914;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
}

.btn-submit:hover {
  background-color: #6d5210;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-nav a {
    padding: 8px 10px;
    font-size: 12px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .content-box {
    padding: 20px;
    margin: 10px;
  }

  .home-buttons {
    flex-direction: column;
    align-items: center;
  }

  .register-box {
    padding: 20px;
  }
}

/* ===== AERIAL PHOTO PAGE ===== */
.aerial-section {
  background: linear-gradient(135deg, #b8d8e8 0%, #7ab8cc 50%, #4a9ab4 100%);
  padding: 40px 20px;
  min-height: 400px;
}

/* ===== VIDEO MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}

.modal-content iframe {
  display: block;
  width: 80vw;
  height: 45vw;
  max-height: 70vh;
}
