/* === CSS 變數 === */
:root {
  --color-primary: #4a7cff;
  --color-primary-dark: #2f5fd4;
  --color-primary-light: #eef4ff;
  --color-danger: #c62828;
  --color-success: #2e7d32;
  --color-bg: #f5f5f0;
  --color-text: #222;
  --color-text-secondary: #555;
  --color-white: #fff;
  --transition: 0.15s ease;
}

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

/* === Body === */
body {
  font-family: "Helvetica Neue", Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

/* === 導覽列 === */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--color-white);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
  margin-bottom: 2.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

/* === 漢堡選單按鈕 === */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  margin-bottom: 5px;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
}

.nav-toggle span:last-child {
  margin-bottom: 0;
}

.nav-toggle.open span:nth-child(1) {
  -webkit-transform: translateY(7px) rotate(45deg);
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  -webkit-transform: translateY(-7px) rotate(-45deg);
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
  }

  .nav-links.open {
    display: block;
  }

  .nav-links li {
    border-top: 1px solid #f0f0f0;
    list-style: none;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }

  nav {
    position: relative;
    top: 0;
    z-index: 100;
  }
}

/* === LINE Footer === */
.line-footer {
  text-align: center;
  padding: 2.5rem 1rem;
  border-top: 1px solid #e8e8e4;
  margin-top: 3rem;
  background: var(--color-white);
}

.line-footer p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.line-footer-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.line-footer img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.line-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  background: #06C755;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s;
}

.line-btn:hover {
  background: #05a848;
}

/* === Lightbox === */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  -webkit-box-align: center;
  -webkit-box-pack: center;
  cursor: pointer;
}

.lightbox-overlay.open {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
}

.lightbox-overlay img {
  max-width: 95%;
  max-height: 90vh;
  border-radius: 8px;
  -webkit-box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.zoomable {
  cursor: zoom-in;
}
