
* 
{
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* 讓寬度計算包含邊框，排版才不會跑掉 */
}

body {
    font-family: "Microsoft JhengHei", "Heiti TC", sans-serif; /* 微軟正黑體 */
    line-height: 4;
    color: #635b5b;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- 導覽列 (Navbar) --- */
.navbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between; /* 讓內容散開 */
    padding: 10px 5%;
    background-color: #fff;
}

.navbar .logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.navbar .logo img {
    height: 60px;
    margin-right: 10px;
}

.nav-links {
    display: flex !important;
    list-style: none !important; /* 徹底移除黑點 */
    margin: 0 20px 0 auto !important; /* margin-left: auto 把它推向右邊，並與翻譯元件留間距 */
    padding: 0 !important;
    gap: 20px;
}

.nav-links li {
    list-style: none !important;
    margin: 0 !important;
}

.nav-links a {
    line-height: 1.5 !important; /* 壓制 global.css 的 line-height: 4 */
    display: block;
    white-space: nowrap; /* 防止文字換行 */
}

.nav-links a:hover {
    color: #2b7cff; /* 比 #ddd 清楚很多 */
}

/* --- 頁尾 (Footer) --- */
.site-footer {
    background-color: #f9f9f9;
    padding: 40px 10%;
    border-top: 1px solid #ddd;
    margin-top: 50px;
}

.site-footer h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.site-footer p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
}

/* 確保翻譯元件顯示且靠最右 */
#google_translate_element {
    display: flex !important;
    align-items: center;
    margin-left: 0 !important;
    flex-shrink: 0; /* 防止被擠壓 */
    line-height: 1.2 !important;
}

/* Google 翻譯下拉：變好看 */
.goog-te-gadget {
  font-size: 14px;
}

.goog-te-gadget select {
  color: #111;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
}

.goog-te-gadget select:hover {
  border-color: #2b7cff;
}

/* 可選：把 Google 預設 icon 隱藏，會更乾淨 */
.goog-te-gadget img {
  display: none;
}

/* ✅ contact 頁：外層有 site-header，也一起置頂（不影響其他頁） */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
}

/* ✅ 保險：避免 sticky 被 contact 的外層 overflow 擋掉 */
.site-header,
.nav-inner,
.right-group {
  overflow: visible;
}
