/* ===========================
   SyncBack 全域性共享樣式
   =========================== */

/* 重置與基礎 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #383838;
  line-height: 1.7;
  background: #fff;
}

/* ===========================
   導航欄 navbar 樣式
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* 導航欄在深色 Hero 上時的樣式 */
.navbar:not(.scrolled) .navbar-title {
  color: #fff;
}

.navbar:not(.scrolled) .navbar-by {
  color: rgba(255, 255, 255, 0.45);
}

.navbar:not(.scrolled) .navbar-link {
  color: rgba(255, 255, 255, 0.7);
}

.navbar:not(.scrolled) .navbar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.navbar:not(.scrolled) .navbar-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.navbar:not(.scrolled) .btn-download {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.navbar:not(.scrolled) .btn-download:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.navbar:not(.scrolled) .hamburger-line {
  background: #fff;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.navbar-logo {
  height: 36px;
  width: auto;
}

.navbar-title {
  font-size: 20px;
  font-weight: 700;
  color: #1C5980;
  letter-spacing: -0.3px;
}

.navbar-by {
  font-size: 11px;
  color: #999;
  font-weight: 400;
  align-self: flex-end;
  margin-bottom: 2px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-link {
  text-decoration: none;
  color: #555;
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.navbar-link:hover {
  color: #1C5980;
  background: rgba(28, 89, 128, 0.06);
}

.navbar-link.active {
  color: #1C5980;
  background: rgba(28, 89, 128, 0.1);
  font-weight: 600;
}

/* 下拉選單 */
.navbar-dropdown {
  position: relative;
}

.navbar-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #555;
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.navbar-dropdown-trigger:hover {
  color: #1C5980;
  background: rgba(28, 89, 128, 0.06);
}

.navbar-dropdown-trigger svg {
  transition: transform 0.2s ease;
}

.navbar-dropdown:hover .navbar-dropdown-trigger svg {
  transform: rotate(180deg);
}

.navbar-dropdown-trigger.has-active {
  color: #1C5980;
  font-weight: 600;
}

.navbar-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 8px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(4px);
  transition: all 0.2s ease;
  z-index: 100;
}

.navbar-dropdown:hover .navbar-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.navbar-dropdown-item {
  display: block;
  text-decoration: none;
  color: #555;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 8px;
  transition: all 0.15s ease;
  font-weight: 500;
  white-space: nowrap;
}

.navbar-dropdown-item:hover {
  color: #1C5980;
  background: rgba(28, 89, 128, 0.06);
}

.navbar-dropdown-item.active {
  color: #1C5980;
  background: rgba(28, 89, 128, 0.08);
  font-weight: 600;
}

/* 深色導航欄下拉選單樣式 */
.navbar:not(.scrolled) .navbar-dropdown-trigger {
  color: rgba(255, 255, 255, 0.7);
}

.navbar:not(.scrolled) .navbar-dropdown-trigger:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.navbar:not(.scrolled) .navbar-dropdown-trigger.has-active {
  color: #fff;
}

/* 移動端下拉分組標籤 */
.navbar-mobile-group-label {
  font-size: 11px;
  color: #aaa;
  font-weight: 600;
  padding: 12px 16px 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* 語言切換器 */
.navbar-lang {
  position: relative;
}

.navbar-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.navbar-lang-trigger:hover {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.02);
}

.navbar-lang-trigger svg {
  transition: transform 0.2s ease;
}

.navbar-lang:hover .navbar-lang-trigger svg {
  transform: rotate(180deg);
}

.navbar-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 6px;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.2s ease;
  z-index: 100;
}

.navbar-lang:hover .navbar-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #555;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.15s ease;
  font-weight: 500;
  white-space: nowrap;
}

.navbar-lang-item:hover {
  color: #1C5980;
  background: rgba(28, 89, 128, 0.06);
}

.navbar-lang-item.is-current {
  color: #1C5980;
  background: rgba(28, 89, 128, 0.06);
  font-weight: 600;
}

.navbar-lang-item .lang-flag {
  font-size: 15px;
  line-height: 1;
}

/* 深色導航欄語言切換器 */
.navbar:not(.scrolled) .navbar-lang-trigger {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.15);
}

.navbar:not(.scrolled) .navbar-lang-trigger:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

/* 移動端語言切換 */
.navbar-mobile-lang {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 16px 4px;
}

.navbar-mobile-lang-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  color: #888;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.navbar-mobile-lang-item:hover {
  color: #1C5980;
  border-color: rgba(28, 89, 128, 0.2);
}

.navbar-mobile-lang-item.is-current {
  color: #1C5980;
  border-color: rgba(28, 89, 128, 0.2);
  background: rgba(28, 89, 128, 0.04);
  font-weight: 600;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #1C5980;
  font-size: 14px;
  padding: 8px 18px;
  border: 1px solid rgba(28, 89, 128, 0.3);
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.btn-download:hover {
  border-color: #1C5980;
  background: rgba(28, 89, 128, 0.04);
}

.btn-download svg {
  flex-shrink: 0;
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  padding: 8px 22px;
  background: linear-gradient(135deg, #1C5980 0%, #2980b9 100%);
  border-radius: 8px;
  transition: all 0.25s ease;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(28, 89, 128, 0.25);
}

.btn-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(28, 89, 128, 0.35);
}

.btn-buy svg {
  flex-shrink: 0;
}

/* 漢堡選單 */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.navbar-hamburger:hover {
  background: rgba(0, 0, 0, 0.04);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #383838;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-hamburger.is-active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.navbar-hamburger.is-active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 移動端選單 */
.navbar-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.navbar-mobile-menu.is-open {
  display: flex;
}

.navbar-mobile-link {
  text-decoration: none;
  color: #555;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.navbar-mobile-link:hover,
.navbar-mobile-link.active {
  color: #1C5980;
  background: rgba(28, 89, 128, 0.06);
}

.navbar-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar-mobile-actions .btn-download,
.navbar-mobile-actions .btn-buy {
  text-align: center;
  justify-content: center;
  padding: 12px 18px;
}

/* 移動端選單按鈕始終使用淺色背景下的顏色，不受深色 Hero 狀態影響 */
.navbar:not(.scrolled) .navbar-mobile-menu .btn-download {
  color: #1C5980;
  border-color: rgba(28, 89, 128, 0.3);
  background: transparent;
}

.navbar:not(.scrolled) .navbar-mobile-menu .btn-download:hover {
  color: #1C5980;
  border-color: #1C5980;
  background: rgba(28, 89, 128, 0.04);
}

.navbar:not(.scrolled) .navbar-mobile-menu .btn-buy {
  color: #fff;
  background: linear-gradient(135deg, #1C5980 0%, #2980b9 100%);
}

.navbar:not(.scrolled) .navbar-mobile-menu .navbar-mobile-link {
  color: #555;
}

.navbar:not(.scrolled) .navbar-mobile-menu .navbar-mobile-link:hover,
.navbar:not(.scrolled) .navbar-mobile-menu .navbar-mobile-link.active {
  color: #1C5980;
  background: rgba(28, 89, 128, 0.06);
}

@media (max-width: 768px) {
  .navbar-menu,
  .navbar-actions {
    display: none;
  }

  .navbar-hamburger {
    display: flex;
  }
}

/* ===========================
   頁尾 footer 樣式 - 重新設計
   =========================== */
.site-footer {
  background: #080f18;
  color: rgba(255, 255, 255, 0.7);
  padding: 0;
  margin-top: 0;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 頁尾上半部分 - 兩列 */
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding: 48px 0 36px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* 品牌列 */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo {
  height: 36px;
  width: auto;
  opacity: 0.9;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  display: block;
  line-height: 1.2;
}

.footer-brand-by {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  display: block;
  margin-top: 2px;
}

.footer-brand-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  max-width: 320px;
}

/* 聯絡列 */
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.footer-contact-item:hover {
  color: #fff;
}

.footer-contact-item svg {
  opacity: 0.5;
  flex-shrink: 0;
}

/* 分割線 */
.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

/* 頁尾底部 */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.footer-bottom-notice {
  text-align: right;
}

.footer-notice {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.5;
  margin-bottom: 2px;
}

.footer-notice-en {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    padding: 36px 0 28px;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-brand-desc {
    max-width: none;
    margin: 0 auto;
  }

  .footer-contact-item {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .footer-bottom-notice {
    text-align: center;
  }
}
