/* ============================================================
   OneCommander 繁體中文官網 - 公共樣式 common.css
   主題色: #2698D1
   說明: 字型不使用 Google Fonts，使用系統字型棧
   ============================================================ */

/* ---------- 全域性重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1f2937;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: #2698d1;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1a7aac;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- 中英文混排排版 ---------- */
/* 用於強制在中英文之間留出微小空隙的工具類 */
.text-cjk-en {
  word-spacing: 0.05em;
}

/* ---------- 通用容器 ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 通用按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #2698d1 0%, #1a7aac 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(38, 152, 209, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(38, 152, 209, 0.45);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: #4b5563;
  border-color: #e5e7eb;
}

.btn-ghost:hover {
  border-color: #2698d1;
  color: #2698d1;
  background: rgba(38, 152, 209, 0.06);
}

/* ============================================================
   導航欄 Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

/* Logo 區域 */
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.site-header .brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.site-header .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-header .brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.2px;
}

.site-header .brand-sub {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
  letter-spacing: 0.3px;
}

/* 主選單 */
.site-header .nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.site-header .nav-menu a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 15px;
  color: #374151;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.site-header .nav-menu a:hover,
.site-header .nav-menu a.active {
  color: #2698d1;
  background: rgba(38, 152, 209, 0.08);
}

/* 右側操作按鈕 */
.site-header .nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- 語言切換器 (桌面端) ---- */
.lang-switcher {
  position: relative;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  transition: all 0.2s ease;
  font-family: inherit;
}
.lang-trigger:hover {
  border-color: #2698d1;
  color: #2698d1;
  background: rgba(38, 152, 209, 0.04);
}
.lang-trigger .globe { width: 16px; height: 16px; flex-shrink: 0; }
.lang-trigger .label { white-space: nowrap; }
.lang-trigger .chev {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
  opacity: 0.6;
}
.lang-switcher.is-open .lang-trigger {
  border-color: #2698d1;
  color: #2698d1;
}
.lang-switcher.is-open .lang-trigger .chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.25);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1050;
}
.lang-switcher.is-open .lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-menu a:hover {
  background: rgba(38, 152, 209, 0.08);
  color: #2698d1;
}
.lang-menu a.is-current {
  background: rgba(38, 152, 209, 0.1);
  color: #2698d1;
  font-weight: 600;
}
.lang-menu a .text { flex: 1; }
.lang-menu a .code {
  font-family: "Consolas", "Menlo", monospace;
  font-size: 10px;
  letter-spacing: 0.8px;
  color: #94a3b8;
  padding: 2px 6px;
  background: #f1f5f9;
  border-radius: 5px;
  text-transform: uppercase;
}
.lang-menu a.is-current .code {
  color: #2698d1;
  background: rgba(38, 152, 209, 0.15);
}
.lang-menu a .check {
  width: 14px;
  height: 14px;
  color: #2698d1;
  opacity: 0;
  flex-shrink: 0;
}
.lang-menu a.is-current .check { opacity: 1; }

/* 漢堡按鈕 */
.site-header .hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.site-header .hamburger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #1f2937;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.site-header .hamburger span:nth-child(1) { top: 15px; }
.site-header .hamburger span:nth-child(2) { top: 21px; }
.site-header .hamburger span:nth-child(3) { top: 27px; }

.site-header .hamburger.is-open span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.site-header .hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.site-header .hamburger.is-open span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* 移動端抽屜選單 */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100%;
  background: #ffffff;
  box-shadow: -20px 0 60px rgba(15, 23, 42, 0.18);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-drawer.is-open .mobile-drawer-panel {
  transform: translateX(0);
}

/* 抽屜裝飾背景 */
.mobile-drawer-panel::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(38, 152, 209, 0.18), transparent 70%);
  pointer-events: none;
}

.mobile-drawer-header {
  position: relative;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-drawer-brand img {
  width: 32px;
  height: 32px;
}

.mobile-drawer-brand .name {
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
}

.mobile-drawer-brand .sub {
  font-size: 11px;
  color: #94a3b8;
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: background 0.2s;
}

.mobile-drawer-close:hover {
  background: #e2e8f0;
}

.mobile-drawer-nav {
  flex: 1;
  padding: 16px 16px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
}

.mobile-drawer-nav li {
  margin: 4px 0;
}

.mobile-drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-size: 16px;
  color: #1f2937;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.2s ease;
  position: relative;
}

.mobile-drawer-nav a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: background 0.2s;
}

.mobile-drawer-nav a:hover,
.mobile-drawer-nav a.active {
  background: linear-gradient(
    90deg,
    rgba(38, 152, 209, 0.1),
    rgba(38, 152, 209, 0)
  );
  color: #2698d1;
}

.mobile-drawer-nav a:hover::before,
.mobile-drawer-nav a.active::before {
  background: #2698d1;
}

.mobile-drawer-footer {
  padding: 20px 24px 28px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer-footer .btn {
  width: 100%;
}

/* 移動端抽屜 - 語言切換區 */
.mobile-drawer-lang {
  padding: 16px 20px 0;
}
.mobile-drawer-lang-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-drawer-lang-title svg { width: 14px; height: 14px; color: #2698d1; }
.mobile-drawer-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mobile-drawer-lang-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
}
.mobile-drawer-lang-grid a:hover {
  border-color: #2698d1;
  color: #2698d1;
}
.mobile-drawer-lang-grid a.is-current {
  background: rgba(38, 152, 209, 0.1);
  border-color: #2698d1;
  color: #2698d1;
  font-weight: 600;
}
.mobile-drawer-lang-grid a .code {
  font-family: "Consolas", "Menlo", monospace;
  font-size: 10px;
  letter-spacing: 0.8px;
  color: #94a3b8;
  text-transform: uppercase;
}
.mobile-drawer-lang-grid a.is-current .code { color: #2698d1; }

/* ---------- 回應式 ---------- */
@media (max-width: 960px) {
  .site-header .nav-menu {
    display: none;
  }
  .site-header .nav-actions .btn,
  .site-header .nav-actions .lang-switcher {
    display: none;
  }
  .site-header .hamburger {
    display: block;
  }
}

@media (max-width: 480px) {
  .site-header .header-inner {
    height: 64px;
  }
  .site-header .brand-logo {
    width: 32px;
    height: 32px;
  }
  .site-header .brand-name {
    font-size: 16px;
  }
}

/* ============================================================
   子頁面通用樣式 (Pricing / Pro / Download / Support 等)
   ============================================================ */

/* 頁面 Hero 頭部 */
.page-hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(38, 152, 209, 0.14), transparent 60%),
    radial-gradient(700px 420px at -5% 80%, rgba(38, 152, 209, 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
  text-align: center;
}

.page-hero .page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 14px;
  position: relative;
  font-family: "JetBrains Mono", "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #2698d1;
  margin-bottom: 22px;
}

.page-hero .page-eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2698d1, #66c6f0);
}

.page-hero .page-title {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
  letter-spacing: -0.6px;
  margin: 0 0 20px;
}

.page-hero .page-title .accent {
  background: linear-gradient(135deg, #2698d1 0%, #66c6f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero .page-lead {
  font-size: 17px;
  line-height: 1.8;
  color: #475569;
  max-width: 720px;
  margin: 0 auto;
}

.page-hero .page-lead strong { color: #0f172a; font-weight: 600; }

/* 通用內容區 */
.page-section {
  padding: 64px 0;
}

.page-section.section-tight { padding: 40px 0; }
.page-section.section-loose { padding: 96px 0; }
.page-section.section-light { background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%); }

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px;
  letter-spacing: -0.4px;
}

.section-heading p {
  font-size: 15px;
  line-height: 1.8;
  color: #64748b;
  margin: 0;
}

/* 通用內容卡片 (Prose) */
.prose-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 36px 40px;
  box-shadow: 0 16px 40px -28px rgba(15, 23, 42, 0.18);
}

.prose-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 14px;
  letter-spacing: -0.2px;
}

.prose-card p,
.prose-card li {
  font-size: 15px;
  line-height: 1.85;
  color: #475569;
}

.prose-card p { margin: 0 0 14px; }
.prose-card p:last-child { margin-bottom: 0; }

.prose-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose-card ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.prose-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(38, 152, 209, 0.12);
  border: 2px solid #2698d1;
}

.prose-card ul li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2698d1;
}

.prose-card strong { color: #0f172a; font-weight: 600; }
.prose-card a { color: #2698d1; font-weight: 500; }
.prose-card a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .page-hero { padding: 56px 0 48px; }
  .page-section { padding: 48px 0; }
  .page-section.section-loose { padding: 64px 0; }
  .prose-card { padding: 28px 22px; }
}

/* ============================================================
   頁尾 Footer
   ============================================================ */
.site-footer {
  position: relative;
  padding: 64px 0 32px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4f9 100%);
  color: #475569;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(38, 152, 209, 0.5),
    transparent
  );
}

.site-footer .footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer .footer-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer .footer-logo {
  width: 44px;
  height: 44px;
}

.site-footer .footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}

.site-footer .footer-brand-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.site-footer .footer-description {
  font-size: 14px;
  line-height: 1.8;
  color: #64748b;
  max-width: 520px;
}

.site-footer .footer-description .en {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #94a3b8;
  font-style: italic;
}

.site-footer .footer-contact {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 4px 24px rgba(38, 152, 209, 0.06);
}

.site-footer .footer-contact-title {
  font-size: 13px;
  font-weight: 600;
  color: #2698d1;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.site-footer .footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer .footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #334155;
}

.site-footer .footer-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(38, 152, 209, 0.1);
  color: #2698d1;
  flex-shrink: 0;
}

.site-footer .footer-contact-list a {
  color: #334155;
  font-weight: 500;
}

.site-footer .footer-contact-list a:hover {
  color: #2698d1;
}

.site-footer .footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #dbe5ee;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #94a3b8;
}

.site-footer .footer-bottom .reseller {
  color: #64748b;
}

.site-footer .footer-bottom .reseller strong {
  color: #2698d1;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 48px 0 24px;
  }
  .site-footer .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .site-footer .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
