:root {
  color-scheme: dark;
  --page-bg: #000000;
  --panel-bg: #080808;
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --section-gap: clamp(20px, 2.6vw, 36px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--page-bg);
  background-image:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #070707 0%, #000000 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: top center, center;
  color: #f5f0e8;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
}

.landing-page {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 48px);
}

.brochure-gallery {
  display: grid;
  gap: var(--section-gap);
}

.brochure-panel {
  position: relative;
  margin: 0;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
  overflow: hidden;
}

.brochure-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.brochure-panel--top {
  overflow: visible;
  z-index: 1;
}

.line-chat-link {
  position: absolute;
  top: 7%;
  left: 82%;
  right: auto;
  display: block;
  width: clamp(96px, 9vw, 168px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  animation: line-icon-blink 1.5s step-end infinite;
  z-index: 2;
}

.line-chat-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.line-chat-link:focus-visible {
  outline: 2px solid #f5f0e8;
  outline-offset: 4px;
  border-radius: 999px;
}

.site-footer {
  margin-top: var(--section-gap);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
  box-shadow: var(--panel-shadow);
}

.company-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 28px);
  margin: 0;
}

.company-details__item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-left: clamp(12px, 2vw, 24px);
  border-left: 1px solid rgba(245, 240, 232, 0.14);
}

.company-details__item:first-child {
  padding-left: 0;
  border-left: 0;
}

.company-details__item dt {
  color: rgba(245, 240, 232, 0.68);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.company-details__item dd {
  margin: 0;
  color: #f5f0e8;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.company-details__item a {
  color: inherit;
  text-decoration-color: rgba(245, 240, 232, 0.5);
  text-underline-offset: 0.22em;
}

.company-details__item a:hover {
  text-decoration-color: currentColor;
}

.mobile-action-buttons,
.about-dialog {
  display: none;
}

.mobile-action-buttons {
  gap: 10px;
}

.mobile-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(245, 240, 232, 0.18);
  background: rgba(0, 0, 0, 0.84);
  color: #f5f0e8;
  font: inherit;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.about-dialog {
  width: min(calc(100vw - 32px), 420px);
  padding: 0;
  border: 1px solid rgba(245, 240, 232, 0.12);
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.98), rgba(4, 4, 4, 0.95));
  color: #f5f0e8;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.about-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.about-dialog__content {
  display: grid;
  gap: 20px;
  padding: 20px;
}

.about-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.about-dialog__title {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.about-dialog__close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(245, 240, 232, 0.18);
  background: transparent;
  color: #f5f0e8;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.company-details--stacked {
  grid-template-columns: 1fr;
  gap: 18px;
}

.company-details--stacked .company-details__item {
  padding-left: 0;
  border-left: 0;
}

@keyframes line-icon-blink {
  0%,
  66.666% {
    opacity: 1;
  }

  66.667%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .landing-page {
    width: 100%;
    min-height: 100dvh;
    display: grid;
    align-content: center;
    padding: 12px;
  }

  .brochure-gallery {
    justify-items: center;
  }

  .brochure-panel {
    width: 100%;
    max-width: 680px;
  }

  .line-chat-link {
    top: 0;
    left: auto;
    right: 12px;
    width: clamp(48px, 15vw, 72px);
    transform: translateY(-66.666%);
  }

  .site-footer {
    display: none;
  }

  .mobile-action-buttons {
    position: fixed;
    left: 12px;
    bottom: 12px;
    display: grid;
    z-index: 20;
  }

  .mobile-action-button--line-order {
    position: fixed;
    right: 12px;
    bottom: 12px;
  }

  .about-dialog[open] {
    display: block;
  }
}
