:root {
  /* 品牌主色：磚紅 / 青綠 / 白 */
  --brand-orange: #bd4a27;
  --brand-orange-dark: #9a3b1f;
  --brand-orange-light: #fbf0ec;
  --brand-teal: #3c97a6;
  --brand-teal-dark: #1e7a88;
  --brand-teal-light: #e6f4f6;
  --brand-white: #ffffff;

  --primary: var(--brand-teal);
  --primary-hover: var(--brand-teal-dark);
  --primary-light: var(--brand-teal-light);
  --accent: var(--brand-orange);
  --accent-hover: var(--brand-orange-dark);
  --accent-light: var(--brand-orange-light);
  --bg: #f7fafb;
  --surface: var(--brand-white);
  --text: #1e293b;
  --text-muted: #5a6b75;
  --border: #d4e4e8;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: "Space Grotesk", "Noto Sans TC", system-ui, sans-serif;
  --header-h: 72px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 36rem;
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 0.75rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.lang-switcher button {
  min-width: 2.25rem;
  padding: 0.35rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}

.lang-switcher button:hover {
  color: var(--text);
}

.lang-switcher button.is-active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.lang-switcher button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-link img {
  height: 36px;
  width: 36px;
  object-fit: cover;
  border-radius: 25%;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

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

.nav-desktop a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-desktop a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile ul {
  list-style: none;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.nav-mobile a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-mobile .lang-switcher {
  margin-top: 1rem;
  justify-content: center;
  width: fit-content;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .lang-switcher--mobile {
    display: none;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(60, 151, 166, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--accent);
}

.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 2rem;
}

/* Services */
.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  max-width: 48rem;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Process */
.process-steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  text-align: center;
  position: relative;
}

.process-num {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.process-step h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--border);
}

.portfolio-image-count {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  border-radius: 999px;
  pointer-events: none;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.03);
}

.portfolio-info {
  padding: 1.25rem;
}

.portfolio-info h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.portfolio-info--tags-only {
  padding-block: 0.85rem;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: min(90vw, 1200px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-height: calc(85vh - 4rem);
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox-counter {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.lightbox-caption {
  text-align: center;
  color: white;
  margin-top: 0.35rem;
  font-size: 1rem;
}

.lightbox-caption[hidden] {
  display: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.75rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
  z-index: 1;
}

.lightbox-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.lightbox-prev {
  left: -3.25rem;
}

.lightbox-next {
  right: -3.25rem;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 0.25rem;
  }

  .lightbox-next {
    right: 0.25rem;
  }

  .lightbox-content img {
    max-height: calc(85vh - 5rem);
  }
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), transform var(--transition);
}

.pricing-card:hover {
  border-color: var(--primary);
}

.pricing-card.is-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
  transform: scale(1.02);
}

.pricing-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.pricing-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.pricing-price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.pricing-features li::before {
  content: "。";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.pricing-disclaimer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2rem;
  max-width: 40rem;
  margin-inline: auto;
  white-space: pre-line;
}

/* Contact */
.contact-wrapper {
  display: grid;
  gap: 2rem;
  max-width: 720px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1.2fr;
    max-width: 960px;
    align-items: start;
  }
}

.contact-info {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-info h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--primary-hover);
}

.contact-info ul {
  list-style: none;
}

.contact-info li {
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.contact-info li::before {
  content: "�";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 480px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

label .required {
  color: #dc2626;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(60, 151, 166, 0.2);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #dc2626;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.checkbox-row input {
  width: auto;
  margin-top: 0.25rem;
  accent-color: var(--primary);
}

.checkbox-row label {
  font-weight: 400;
  font-size: 0.85rem;
  margin-bottom: 0;
}

.form-message {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.form-message.is-visible {
  display: block;
}

.form-message.success {
  background: var(--primary-light);
  color: var(--primary-hover);
  border: 1px solid var(--primary);
}

.form-message.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Booth shop */
.booth-section {
  padding-top: 0;
}

.booth-card {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
}

.booth-card-header {
  margin-bottom: 1.5rem;
}

.booth-card-header .section-desc {
  margin-bottom: 0;
}

.booth-card-cta {
  min-width: 10rem;
}

/* Footer */
.site-footer {
  background: var(--brand-teal-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: white;
}

.footer-social a.footer-social-booth {
  width: auto;
  min-width: 44px;
  padding: 0 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.footer-copy {
  font-size: 0.85rem;
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), visibility var(--transition),
    transform var(--transition), background var(--transition);
  z-index: 50;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-hover);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
