﻿/* ===== Common Base Styles ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --color-black: #000000;
  --color-blue: #0098FF;
  --color-blue-soft: #33b0ff;
  --color-bg: #05060a;
  --color-bg-alt: #0b0d14;
  --color-surface: #11131c;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #e8eaf0;
  --color-text-dim: #9aa0b4;
  --color-text-mute: #6b7088;
  --shadow-blue: 0 10px 40px rgba(0, 152, 255, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-zh: "PingFang SC", "Microsoft YaHei", "微軟雅黑", "Hiragino Sans GB", sans-serif;
  --font-en: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-base: var(--font-en), var(--font-zh);
}

html, body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html { overflow-x: clip; }
body { overflow-x: clip; }

body {
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(0, 152, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(0, 152, 255, 0.12), transparent 60%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER / NAVIGATION ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 152, 255, 0.35));
}
.nav-brand-text { line-height: 1.15; }
.nav-brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
}
.nav-brand-sub {
  font-size: 11px;
  color: var(--color-text-mute);
  letter-spacing: 0.3px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-menu > li { position: relative; }
.nav-menu a,
.nav-menu .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--color-text-dim);
  border-radius: var(--radius-sm);
  transition: color .2s ease, background .2s ease;
  font-family: inherit;
  font-weight: 500;
}
.nav-menu a:hover,
.nav-menu .nav-link:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-menu a.active,
.nav-menu .has-dropdown.active > .nav-link {
  color: #fff;
  background: rgba(0, 152, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(0, 152, 255, 0.45);
}
.nav-menu .nav-chev {
  width: 14px; height: 14px;
  transition: transform .2s ease;
  opacity: 0.7;
}
.nav-menu .has-dropdown:hover .nav-chev { transform: rotate(180deg); }

/* 桌面端下拉 */
.nav-menu .nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  padding: 10px;
  list-style: none;
  background: rgba(11, 13, 20, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 152, 255, 0.2);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 100;
}
.nav-menu .nav-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: rgba(11, 13, 20, 0.98);
  border-left: 1px solid rgba(0, 152, 255, 0.2);
  border-top: 1px solid rgba(0, 152, 255, 0.2);
}
.nav-menu .has-dropdown:hover .nav-dropdown,
.nav-menu .has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-menu .nav-dropdown li { list-style: none; }
.nav-menu .nav-dropdown a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  border: 1px solid transparent;
}
.nav-menu .nav-dropdown a:hover {
  background: rgba(0, 152, 255, 0.12);
  border-color: rgba(0, 152, 255, 0.3);
}
.nav-menu .nav-dropdown a.active {
  background: rgba(0, 152, 255, 0.18);
  border-color: rgba(0, 152, 255, 0.5);
  box-shadow: none;
}
.nav-menu .sub-label {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}
.nav-menu .sub-desc {
  font-size: 12px;
  color: var(--color-text-mute);
}

/* 語言切換 */
.nav-menu .nav-lang {
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--color-border);
}
.nav-menu .nav-lang .nav-link {
  padding: 8px 12px;
  gap: 6px;
}
.nav-menu .nav-globe {
  width: 16px; height: 16px;
  opacity: 0.85;
}
.nav-menu .nav-lang-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--color-text-dim);
}
.nav-menu .nav-lang:hover .nav-lang-label { color: #fff; }
.nav-menu .nav-dropdown-lang { min-width: 240px; left: auto; right: 0; transform: translateX(0) translateY(8px); }
.nav-menu .nav-lang:hover .nav-dropdown-lang,
.nav-menu .nav-lang:focus-within .nav-dropdown-lang {
  transform: translateX(0) translateY(0);
}
.nav-menu .nav-dropdown-lang::before { left: auto; right: 24px; transform: rotate(45deg); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-ghost {
  color: var(--color-text-dim);
  border: 1px solid var(--color-border);
  background: transparent;
}
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.2); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #0098FF 0%, #33b0ff 100%);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 42px rgba(0,152,255,0.45); }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-lg svg { width: 18px; height: 18px; }

.nav-mobile { display: none; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #fff;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-menu, .nav-actions { display: none; }
  .nav-mobile {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    background: rgba(5, 6, 10, 0.98);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    padding: 16px 24px 24px;
    z-index: 999;
  }
  .nav-mobile.open { display: block; }
  .nav-mobile ul { list-style: none; }
  .nav-mobile a {
    display: block;
    padding: 14px 12px;
    font-size: 16px;
    color: var(--color-text-dim);
    border-radius: 8px;
  }
  .nav-mobile a.active { color: #fff; background: rgba(0,152,255,0.2); }
  /* 移動端分組摺疊 */
  .nav-mobile .m-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 12px;
    font-size: 16px;
    font-family: inherit;
    color: var(--color-text-dim);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
  }
  .nav-mobile .m-group-toggle .nav-chev {
    width: 16px; height: 16px;
    opacity: 0.7;
    transition: transform .2s ease;
  }
  .nav-mobile .m-group.active > .m-group-toggle {
    color: #fff;
    background: rgba(0,152,255,0.12);
  }
  .nav-mobile .m-group.open > .m-group-toggle .nav-chev { transform: rotate(180deg); }
  .nav-mobile .m-sub {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    padding-left: 14px;
    border-left: 1px solid var(--color-border);
    margin: 4px 0 4px 20px;
  }
  .nav-mobile .m-group.open .m-sub { max-height: 400px; }
  .nav-mobile .m-sub a {
    padding: 12px 12px;
    font-size: 14px;
  }
  .nav-mobile .m-lang {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
  }
  .nav-mobile .m-lang .m-group-toggle {
    gap: 10px;
    justify-content: flex-start;
  }
  .nav-mobile .m-lang .m-group-toggle > span:not(.nav-chev) { flex: 1; text-align: left; }
  .nav-mobile .m-lang .nav-globe { width: 18px; height: 18px; opacity: 0.75; }
  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
  }
  .nav-mobile-actions .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1;
  }
  .nav-mobile-actions .btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 120px;
  background: #07080d;
  border-top: 1px solid var(--color-border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  padding: 60px 0 40px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand img { width: 42px; height: 42px; }
.footer-brand-name { font-size: 16px; font-weight: 700; color: #fff; }
.footer-brand-sub { font-size: 11px; color: var(--color-text-mute); margin-top: 2px; }
.footer-about {
  font-size: 13.5px;
  color: var(--color-text-dim);
  line-height: 1.8;
  max-width: 380px;
}

.footer-contact-list { list-style: none; display: grid; gap: 12px; }
.footer-contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-dim);
  font-size: 14px;
  transition: color .2s ease;
}
.footer-contact-list a:hover { color: #fff; }
.footer-contact-list svg {
  width: 16px; height: 16px;
  color: var(--color-blue-soft);
  flex-shrink: 0;
}

.footer-info {
  font-size: 13px;
  color: var(--color-text-dim);
  line-height: 1.85;
}
.footer-info b { color: #fff; font-weight: 500; }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-mute);
}
.footer-bottom a { color: var(--color-text-dim); }
.footer-bottom a:hover { color: #fff; }

/* ===== Lightbox 圖片查看器 ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 70px;
}
.lightbox.open { display: flex; }
.lightbox-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 152, 255, 0.3);
  background: #0a0c14;
}
.lightbox-caption {
  margin-top: 16px;
  padding: 0 20px;
  font-size: 14px;
  color: #e8eaf0;
  text-align: center;
  max-width: 720px;
  line-height: 1.6;
}
.lightbox-counter {
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-mute);
  letter-spacing: 1px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
  z-index: 10001;
}
.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg { width: 22px; height: 22px; }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 152, 255, 0.2);
  border-color: rgba(0, 152, 255, 0.6);
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }
@media (max-width: 640px) {
  .lightbox { padding: 60px 14px; }
  .lightbox-close, .lightbox-prev, .lightbox-next {
    width: 40px; height: 40px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-col.footer-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 28px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .site-footer { margin-top: 80px; }
}
