/* ========================================
   Giant Group Memorial Page
   ======================================== */

:root {
  --color-bg: #f5f6f7;
  --color-text: #262626;
  --color-text-light: #666;
  --color-text-muted: #999;
  --color-border: #cccccc;
  --color-dark-bg: #202021;
  --color-dark-text: #b6b6b6;
  --font-sans: 'Noto Sans TC', 'Heiti TC', 'Microsoft JhengHei', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Noto Serif TC', serif;
  --font-lato: 'Lato', 'Noto Sans TC', Arial, sans-serif;
  --container-max: 800px;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }

.btn-black {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0.02em;
  color: #fff;
  background: #262626;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
  font-family: var(--font-sans);
}

.btn-black:hover {
  opacity: 0.8;
}

/* ========================================
   Hero Banner
   ======================================== */

.hero {
  width: 100%;
  background: #a3a5ad;
  line-height: 0;
  padding-top: 50px;
}
@media screen and (min-width: 800px) {
  .hero {
    padding-top: 80px;
  }
  #header_headquarters .btn_globalchange {
    vertical-align: 15px;
  }
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1920 / 1292;
}

/* ========================================
   Memorial Text
   ======================================== */

.memorial-text {
  padding: 80px 20px;
}

.memorial-text .container {
  max-width: var(--container-max);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.memorial-text p {
  font-size: 18px;
  font-weight: 400;
  line-height: 31px;
  color: var(--color-text);
  margin: 0;
}

/* ========================================
   Video Section
   ======================================== */

.video-section {
  padding: 0 20px;
}

.video-placeholder {
  position: relative;
  width: 100%;
  max-width: 1310px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #111;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.video-quote {
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 2px;
  line-height: 1.8;
}

.video-cite {
  color: #ccc;
  font-size: 14px;
  letter-spacing: 6px;
  margin-top: 12px;
  text-align: right;
}

/* ========================================
   Quote Section
   ======================================== */

.quote-section {
  padding: 80px 20px;
  text-align: center;
}

.quote-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.quote-content {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.quote-mark-svg {
  width: 25px;
  height: 24px;
  flex-shrink: 0;
}

.quote-section blockquote {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 700;
  line-height: 49px;
  letter-spacing: 0;
  color: var(--color-text);
  text-align: center;
}

.quote-section .quote-cite {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 300;
  line-height: 22px;
  color: var(--color-text);
  text-align: center;
  font-style: normal;
}

/* Deprecated text quote marks (keep for fallback) */
.quote-mark {
  font-family: var(--font-serif);
  font-size: 36px;
  color: #ccc;
  line-height: 1;
  user-select: none;
}

.quote-mark.open { margin-bottom: 16px; }
.quote-mark.close { margin-top: 16px; }

/* ========================================
   Transition
   ======================================== */

.transition-section {
  padding: 80px 20px 0;
}

.transition-section .container {
  max-width: var(--container-max);
}

.transition-section p {
  font-size: 20px;
  font-weight: 400;
  line-height: 34px;
  color: var(--color-text);
  text-align: center;
}

/* ========================================
   Section Divider
   ======================================== */

.section-divider {
  padding: 0 20px;
}

.section-divider .container {
  max-width: var(--container-max);
}

.section-divider hr {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: 80px auto 0;
}

/* ========================================
   Biography
   ======================================== */

.bio-section {
  padding: 80px 20px;
}

.bio-section .container {
  max-width: var(--container-max);
}

.bio-title {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 700;
  line-height: 49px;
  color: var(--color-text);
  margin-bottom: 24px;
}

.bio-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bio-body p {
  font-size: 18px;
  font-weight: 400;
  line-height: 31px;
  color: var(--color-text);
  margin: 0;
}

/* ========================================
   Message CTA
   ======================================== */

.msg-cta-section {
  padding: 80px 20px;
  text-align: center;
}

.msg-cta-section .container {
  max-width: var(--container-max);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.msg-cta-section h2 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  line-height: 34px;
  color: var(--color-text);
}

.msg-cta-section p {
  font-size: 18px;
  font-weight: 400;
  line-height: 31px;
  color: var(--color-text);
  margin: 0;
}

.msg-cta-section .btn-black {
  margin-top: 16px;
}

/* ========================================
   Exhibition
   ======================================== */

.exhibition-section {
  padding: 80px 20px;
  text-align: center;
}

.exhibition-section .container {
  max-width: var(--container-max);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.exhibition-section h2 {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  line-height: 38px;
  color: var(--color-text);
}

.exh-detail {
  font-size: 18px;
  font-weight: 400;
  line-height: 31px;
  color: var(--color-text);
}

.exh-desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 31px;
  color: var(--color-text);
  margin-top: 16px;
}

/* ========================================
   Tribute (with BG image)
   ======================================== */

.tribute-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
}

.tribute-overlay {
  display: none;
}

.tribute-content {
  max-width: 520px;
  color: #fff;
}

.tribute-content h2 {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 700;
  line-height: 49px;
  color: #fff;
}

.tribute-content .tribute-body {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 18px;
  font-weight: 400;
  line-height: 31px;
  color: #fff;
}

.tribute-content p {
  font-size: 18px;
  font-weight: 400;
  line-height: 31px;
  margin: 0;
}

.tribute-line {
  width: 50px;
  height: 4px;
  background: #ccc;
  margin-top: 24px;
}

/* ========================================
   Timeline
   ======================================== */

.timeline-section {
  background: var(--color-dark-bg);
  color: #fff;
}

.timeline-inner {
  position: relative;
  display: flex;
  background: var(--color-dark-bg);
}

.timeline-sidebar {
  display: none;
}

.timeline-content {
  flex: 1;
  min-width: 0;
}

.timeline-content-inner {
  /* No height transition needed for scroll mode */
}

.timeline-item {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  padding: 80px 20px;
  min-height: 100dvh;
  justify-content: center;
}

.timeline-item-text {
  flex: 1;
  min-width: 0;
}

.timeline-item-year {
  font-family: var(--font-lato);
  font-size: 64px;
  font-weight: 300;
  line-height: 72px;
  color: #fff;
  letter-spacing: 0;
}

.timeline-item-text h4 {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 300;
  line-height: 45px;
  color: #fff;
  margin-top: 8px;
}

.timeline-item-text p {
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
  color: var(--color-dark-text);
  margin-top: 20px;
}

.timeline-item-img {
  flex: none;
  width: 100%;
}

.timeline-item-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   Cycling Swiper
   ======================================== */

.cycling-section {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  justify-content: center;
  background: #202021;
  padding: 80px 0;
}

.cycling-swiper-wrap {
  position: relative;
}

.cycling-swiper {
  width: 100%;
  overflow: hidden;
}

.cycling-swiper .swiper-slide {
  width: 71.4285714286%;
  transition: filter 1s ease;
}

.cycling-swiper .swiper-slide:not(.swiper-slide-active) {
  filter: brightness(0.4);
}

.cycling-swiper .swiper-slide:not(.swiper-slide-active) .slide-img-wrap img {
  transform: scale(0.67);
}

.cycling-swiper .swiper-slide:not(.swiper-slide-active) .slide-info {
  opacity: 0;
}

.slide-img-wrap {
  aspect-ratio: 1103 / 620;
  overflow: hidden;
}

.slide-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s ease;
}

.slide-info {
  text-align: center;
  margin-top: 60px;
  transition: opacity 0.6s ease;
}

.slide-year {
  font-family: var(--font-lato);
  font-size: 40px;
  font-weight: 300;
  line-height: 54px;
  color: #b6b6b6;
}

.slide-desc {
  margin-top: 16px;
  font-family: var(--font-lato);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: #fff;
}

.cycling-nav {
  position: absolute;
  top: calc(100vw * 5 / 7 * 620 / 1103 / 2);
  z-index: 1;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  font-size: 15px;
}

.cycling-nav-prev {
  left: calc(100% / 7 - 12px);
  transform: translateX(-100%) translateY(-50%);
}

.cycling-nav-next {
  right: calc(100% / 7 - 12px);
  transform: translateX(100%) translateY(-50%);
}

.cycling-pagination {
  position: absolute;
  left: 50%;
  top: calc(100vw * 5 / 7 * 620 / 1103 + 20px);
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-lato);
  font-size: 14px;
  font-weight: 700;
  line-height: 10px;
  color: #fff;
}

/* ========================================
   Message Board
   ======================================== */

.message-board-section {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #fff;
  flex-direction: column;
}

.message-board-section.open {
  display: flex;
}

.mb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  color: var(--color-text-light);
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.mb-close:hover { color: var(--color-text); }

.mb-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mb-header {
  text-align: center;
  padding: 48px 24px 36px;
  max-width: 720px;
  margin: 0 auto;
}

.mb-header h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 4px;
  margin-bottom: 24px;
}

.mb-header p {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text);
}

.mb-messages {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 40px;
  background: #f5f5f5;
}

.mb-messages-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 48px 0;
  font-size: 14px;
}

.msg-card {
  padding: 28px 0;
  border-bottom: 1px solid #e0e0e0;
}

.msg-card:last-child {
  border-bottom: none;
}

.msg-card .msg-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-card .msg-meta {
  font-size: 12px;
  color: #888;
}

.msg-card .msg-meta .msg-author {
  font-weight: 500;
}

.mb-form-dock {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 20px 24px 24px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.mb-form-dock h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 14px;
  text-align: center;
}

.mb-form {
  border: 1px solid #e0e0e0;
  padding: 16px 20px;
}

.mb-form input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 0;
  font-size: 14px;
  font-family: var(--font-sans);
  margin-bottom: 12px;
  outline: none;
  color: var(--color-text);
  background: transparent;
}

.mb-form input::placeholder {
  color: var(--color-text-muted);
  letter-spacing: 1px;
}

.mb-form textarea {
  width: 100%;
  min-height: 100px;
  border: 1px solid #e0e0e0;
  padding: 12px;
  font-size: 14px;
  font-family: var(--font-sans);
  line-height: 1.8;
  resize: vertical;
  outline: none;
  color: var(--color-text);
}

.mb-form textarea::placeholder {
  color: var(--color-text-muted);
}

.mb-form textarea:focus {
  border-color: #999;
}

.mb-form-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 10px;
  gap: 16px;
}

.char-count {
  font-size: 12px;
  color: var(--color-text-muted);
}

.btn-submit {
  padding: 14px 56px;
  font-size: 15px;
  letter-spacing: 3px;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background: #000;
  color: #fff;
  padding: 55px 0 35px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 45px 24px;
  border-bottom: 1px solid #fff;
}

.giant-logo {
  width: 120px;
  height: 40px;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.05em;
}

.footer-social a {
  color: #fff;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

.footer-social a:hover { color: #005eb8; }

.footer-brands {
  display: flex;
  gap: 24px;
  align-items: baseline;
  color: #fff;
  font-size: 16px;
}

.footer-bottom {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 45px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.footer-links a:hover { color: #005eb8; }

.footer-copyright {
  font-size: 13px;
  color: #fff;
  line-height: 1.25;
}

/* ========================================
   Floating Buttons
   ======================================== */

.floating-btns {
  position: fixed;
  bottom: 20px;
  right: 0;
  display: flex;
  flex-direction: column;
  z-index: 999;
  box-shadow: 0 0 14px rgba(45, 53, 61, 0.2);
  backdrop-filter: blur(16px);
}

.float-btn {
  width: 80px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  font-size: 18px;
  transition: all 0.3s;
}

.float-btn:hover {
  background: #f0f0f0;
}

.float-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.float-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ========================================
   Desktop (min-width: 1024px)
   ======================================== */

@media (min-width: 1024px) {
  .memorial-text {
    padding: 80px 45px;
  }

  .memorial-text p {
    line-height: 31px;
  }

  .video-section {
    padding: 0 45px;
  }

  .quote-section {
    padding: 80px 45px;
  }

  .quote-section blockquote {
    font-size: 56px;
    line-height: 76px;
  }

  .transition-section {
    padding: 80px 45px 0;
  }

  .bio-section {
    padding: 80px 45px;
  }

  .msg-cta-section {
    padding: 80px 45px;
  }

  .msg-cta-section h2 {
    font-size: 24px;
    line-height: 34px;
  }

  .msg-cta-section .btn-black {
    padding: 16px 60px;
  }

  .exhibition-section {
    padding: 80px 45px;
  }

  .exhibition-section h2 {
    font-size: 36px;
    line-height: 49px;
  }

  .tribute-section {
    padding: 306px 0 226px 50vw;
  }

  .timeline-sidebar {
    display: flex;
    position: sticky;
    top: 0;
    height: 100dvh;
    width: max(195px, calc(32.2917vw - 270px));
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    padding-right: 80px;
    align-self: start;
  }

  .timeline-years {
    margin-left: auto;
  }

  .timeline-item {
    flex-direction: row;
    gap: 40px;
    padding: 80px 60px 80px 60px;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
  }

  .timeline-item-year {
    font-size: 72px;
  }

  .timeline-item-text h4 {
    font-size: 40px;
    line-height: 56px;
  }

  .timeline-item-text p {
    font-size: 18px;
    line-height: 28px;
    margin-top: 40px;
  }

  .timeline-item-img {
    flex: 0 0 45%;
    max-width: 560px;
  }

  .cycling-section {
    min-height: auto;
  }

  .cycling-nav {
    top: calc(100vw * 5 / 7 * 620 / 1103 / 2);
  }

  .cycling-nav svg {
    width: 20px;
    height: 35px;
  }

  .cycling-nav-prev {
    left: calc(100% / 7 - 31px);
  }

  .cycling-nav-next {
    right: calc(100% / 7 - 31px);
  }

  .cycling-pagination {
    top: calc(100vw * 5 / 7 * 620 / 1103 + 20px);
  }
}

/* ========================================
   Timeline Sidebar Styling
   ======================================== */

.timeline-years li {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-family: var(--font-lato);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #a3a5ad;
  cursor: pointer;
  transition: color 1s, font-weight 1s, transform 1s;
}

.timeline-years li:hover {
  color: #ccc;
}

.timeline-years li.active {
  color: #fff;
  font-weight: 700;
  transform: translateX(32px);
}

.timeline-years li .arrow-icon {
  position: absolute;
  left: -32px;
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 1s, transform 1s;
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
}

.timeline-years li.active .arrow-icon {
  opacity: 1;
  transform: translateX(0);
}

.timeline-years li .arrow {
  display: none;
  margin-right: 6px;
  font-size: 14px;
  font-weight: 400;
}

.timeline-years li.active .arrow {
  display: inline;
}

.timeline-years li:not(.active) strong {
  font-weight: 400;
}

/* ========================================
   Mobile Timeline dropdown (for < 1024px)
   ======================================== */

.timeline-mobile-header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  transition: top 0.3s ease;
}

.timeline-mobile-header button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-family: var(--font-lato);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-dark-bg);
}

/* ========================================
   Responsive (Mobile)
   ======================================== */

@media (max-width: 1023px) {
  .memorial-text { padding: 80px 20px; }

  .memorial-text p {
    line-height: 27px;
  }

  .video-placeholder {
    aspect-ratio: 16 / 10;
    padding: 24px;
  }

  .quote-section { padding: 80px 20px; }

  .bio-section { padding: 80px 20px; }

  .msg-cta-section { padding: 80px 20px; }

  .exhibition-section { padding: 80px 20px; }

  .tribute-section {
    padding: 80px 20px;
  }

  .tribute-content {
    max-width: 100%;
  }

  .timeline-item {
    flex-direction: column;
    gap: 24px;
    min-height: auto;
    padding: 60px 20px;
  }

  .timeline-item-img {
    flex: none;
    max-width: 100%;
  }

  .cycling-section {
    padding: 80px 0;
    min-height: auto;
  }

  .cycling-nav svg {
    width: 8px;
    height: 15px;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
    padding: 0 20px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 24px 20px 0;
  }

  .site-footer {
    padding: 35px 0;
  }

  .mb-header { padding: 48px 20px 24px; }

  .mb-messages { padding: 0 20px 32px; }

  .mb-form-dock {
    padding: 16px 20px 20px;
  }

  .mb-form {
    padding: 12px 16px;
  }

  .btn-submit {
    padding: 12px 40px;
    font-size: 14px;
  }

  .mb-form textarea {
    min-height: 80px;
  }
}

@media (max-width: 480px) {
  .footer-brands { gap: 12px; font-size: 13px; flex-wrap: wrap; }
}
