@charset "UTF-8";

/* ==========================================================================
   NetSetMan 粵語官網 - 全站通用樣式 common.css
   主題色: #5C8FC9 | 淺色主題
   ========================================================================== */

:root {
  --brand: #5C8FC9;
  --brand-dark: #3F6FA8;
  --brand-darker: #2E5687;
  --brand-light: #8FB4DD;
  --brand-soft: #EAF1FA;
  --brand-softer: #F5F9FD;

  --ink: #1B2733;
  --ink-soft: #4A5A6A;
  --ink-muted: #7B8A99;
  --line: #E2E9F1;
  --bg: #FFFFFF;
  --bg-alt: #F7FAFD;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(46, 86, 135, .06);
  --shadow: 0 12px 34px rgba(46, 86, 135, .10);
  --shadow-lg: 0 24px 60px rgba(46, 86, 135, .16);

  --nav-h: 72px;
  --maxw: 1200px;

  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* 通用區塊標題 */
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 10px;
}
.section-desc {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.85;
  max-width: 680px;
  text-wrap: pretty;
}
.section-head { text-align: center; }
.section-head .section-desc {
  margin-inline: auto;
  position: relative;
  padding-top: 18px;
}
/* 居中標題描述上方的裝飾短線 */
.section-head .section-desc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
}

/* 通用按鈕 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(92, 143, 201, .38);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(92, 143, 201, .46); }
.btn-ghost {
  background: #fff;
  color: var(--brand-dark);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand-light); color: var(--brand-darker); }

/* ==========================================================================
   導航欄 nav (由 nav.js 注入)
   ========================================================================== */
/* 通欄浮動玻璃導航：呼應軟件“網絡配置”主題 */
/* 讓注入容器不生成盒子，使 sticky 相對 <body> 計算，才能正確置頂懸浮 */
#site-nav { display: contents; }
.site-nav {
  position: sticky;
  top: 14px;
  z-index: 1000;
  padding: 0;
  background: transparent;
  border: 0;
}
.site-nav__inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 12px 0 14px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(226, 233, 241, .9);
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(46, 86, 135, .08);
  transition: box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.site-nav.is-scrolled .site-nav__inner {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 38px rgba(46, 86, 135, .16);
  border-color: rgba(143, 180, 221, .5);
}

.site-nav__brand { display: flex; align-items: center; gap: 12px; }
/* logo 置於帶網絡環紋理的圓角徽標中 */
.site-nav__mark {
  position: relative;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #EAF1FA, #FFFFFF);
  border: 1px solid rgba(143, 180, 221, .55);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.8), 0 4px 12px rgba(92,143,201,.18);
}
.site-nav__logo { width: 28px; height: 28px; object-fit: contain; }
.site-nav__brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.site-nav__brand-name {
  display: flex; align-items: center; gap: 7px;
  font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: .01em;
}
.site-nav__brand-by { font-size: 11px; color: var(--ink-muted); font-weight: 500; }

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .15s ease, background .15s ease;
}
.site-nav__link svg { width: 16px; height: 16px; opacity: .7; transition: opacity .15s ease, transform .15s ease; }
.site-nav__link:hover { color: var(--brand-dark); background: var(--brand-soft); }
.site-nav__link:hover svg { opacity: 1; transform: translateY(-1px); }

.site-nav__actions { display: flex; align-items: center; gap: 10px; padding-left: 6px; }
.site-nav__actions .btn { padding: 10px 18px; font-size: 14px; }

/* 語言切換（桌面端下拉） */
.lang-switch { position: relative; }
.lang-switch__btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 12px; border-radius: 11px;
  background: #fff; border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.lang-switch__btn:hover { border-color: var(--brand-light); color: var(--brand-dark); background: var(--brand-soft); }
.lang-switch__btn > svg:first-child { width: 17px; height: 17px; flex: none; opacity: .8; }
.lang-switch__btn > svg:last-child { width: 14px; height: 14px; flex: none; opacity: .6; transition: transform .2s ease; }
.lang-switch.is-open .lang-switch__btn { border-color: var(--brand-light); color: var(--brand-dark); }
.lang-switch.is-open .lang-switch__btn > svg:last-child { transform: rotate(90deg); }
.lang-switch__cur { white-space: nowrap; }
.lang-switch__menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 180px;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(226, 233, 241, .9); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(46, 86, 135, .18);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.lang-switch.is-open .lang-switch__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switch__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  transition: background .15s ease, color .15s ease;
}
.lang-switch__opt:hover { background: var(--brand-soft); color: var(--brand-dark); }
.lang-switch__opt.is-active { color: var(--brand-dark); background: var(--brand-soft); cursor: default; }
.lang-switch__opt svg { width: 16px; height: 16px; flex: none; color: var(--brand); }

/* 語言切換（移動端） */
.mobile-menu__lang { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.mobile-menu__lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobile-menu__lang-opt {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 10px; border-radius: 12px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--line);
  transition: border-color .18s ease;
}
.mobile-menu__lang-opt:hover { border-color: var(--brand-light); }
.mobile-menu__lang-opt span { white-space: nowrap; }
.mobile-menu__lang-opt svg { width: 15px; height: 15px; flex: none; color: var(--brand); }
.mobile-menu__lang-opt.is-active { border-color: var(--brand-light); background: var(--brand-soft); color: var(--brand-dark); }

.site-nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  position: relative;
  margin-left: auto;
}
.site-nav__toggle span,
.site-nav__toggle span::before,
.site-nav__toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.site-nav__toggle span { top: 50%; margin-top: -1px; }
.site-nav__toggle span::before { top: -7px; }
.site-nav__toggle span::after { top: 7px; }
.site-nav__toggle.is-open span { background: transparent; }
.site-nav__toggle.is-open span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.site-nav__toggle.is-open span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* 移動端彈出菜單 */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(20, 39, 64, .35);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(86%, 360px);
  height: 100%;
  background: linear-gradient(180deg, #fff 0%, var(--brand-softer) 100%);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px 32px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__title {
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px;
}
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease;
}
.mobile-menu__link:hover { transform: translateX(4px); border-color: var(--brand-light); }
.mobile-menu__link svg { width: 18px; height: 18px; color: var(--brand); }
.mobile-menu__actions { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.mobile-menu__actions .btn { width: 100%; justify-content: center; padding: 15px; font-size: 16px; }

/* ==========================================================================
   頁腳 footer (由 footer.js 注入)
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #21385A 0%, #16263B 100%);
  color: #C8D6E6;
  padding: 64px 0 0;
  margin-top: 0;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.site-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.site-footer__logo {
  width: 44px; height: 44px; object-fit: contain;
  background: #fff; border-radius: 12px; padding: 6px;
}
.site-footer__brand > span { display: flex; flex-direction: column; line-height: 1.15; }
.site-footer__brand-name { font-size: 20px; font-weight: 800; color: #fff; }
.site-footer__brand-by { font-size: 12px; color: #8DA3BD; }
.site-footer__about { font-size: 14px; line-height: 1.85; color: #A9BBD0; max-width: 420px; }
.site-footer__col-title {
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; margin-bottom: 18px;
}
.site-footer__contact-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: #C8D6E6; margin-bottom: 16px;
}
.site-footer__contact-item svg {
  width: 20px; height: 20px; flex: none; color: var(--brand-light);
}
.site-footer__contact-item a:hover { color: #fff; }
.site-footer__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(143, 180, 221, .14);
  border: 1px solid rgba(143, 180, 221, .28);
  font-size: 13px; color: #BFD2E8; margin-top: 6px;
}
.site-footer__badge svg { width: 16px; height: 16px; color: var(--brand-light); }
.site-footer__bottom {
  padding: 24px 0;
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; justify-content: space-between;
  font-size: 13px; color: #8DA3BD;
}

@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 36px; }
}

/* ==========================================================================
   響應式
   ========================================================================== */
@media (max-width: 960px) {
  .site-nav__links { display: none; }
  .site-nav__actions { display: none; }
  .site-nav__toggle { display: block; }
  /* 浮動玻璃欄在移動端兩側留出間距，避免貼邊 */
  .site-nav__inner { width: auto; margin-inline: 16px; padding: 0 14px; }
}
