﻿/* ==========================================================================
   Google Custom Search Engine (CSE) Core Layout Stylesheet
   ========================================================================== */

/* 搜尋框容器基本佈局 */
.gsc-control-cse {
  padding: 1em;
  width: auto;
}
.gsc-control-cse *,
.gsc-control-cse :after,
.gsc-control-cse :before {
  box-sizing: content-box;
}

/* 隱藏 Google 預設動態載入的無用框線 */
.gsc-control-cse table.gsc-search-box {
  border-style: none;
  border-width: 0;
  border-spacing: 0 0;
  width: 100%;
  margin-bottom: 10px;
  margin-top: 0;
}

/* 輸入框容器 */
td.gsc-input,
input.gsc-input {
  background: #fff !important;
  padding: 0 !important;
}

/* 文字輸入框樣式 */
input.gsc-input {
  font-family: inherit;
  font-size: 16px;
  width: 100%;
  padding: 6px 12px !important;
  border: 1px solid #dfe1e5;
  border-radius: 4px;
  outline: none;
}
input.gsc-input:focus {
  border-color: #4d90fe;
}

/* 搜尋按鈕 */
button.gsc-search-button,
input.gsc-search-button {
  padding: 6px 16px !important;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background-color: #4d90fe;
  border: 1px solid #3079ed;
  border-radius: 4px;
  cursor: pointer;
}
button.gsc-search-button:hover,
input.gsc-search-button:hover {
  background-color: #357ae8;
  border-color: #2f5bb7;
}

/* 搜尋結果列表 */
.gsc-results-wrapper-visible {
  padding: 15px 0;
}
.gsc-webResult.gsc-result {
  padding: 10px 0;
  border-bottom: 1px solid #ebebeb;
  word-wrap: break-word;
}

/* 搜尋結果標題與連結 */
.gsc-thumbnail-inside,
.gsc-url-top {
  padding-left: 0;
}
a.gs-title:link,
a.gs-title:link * {
  color: #1a0dab;
  text-decoration: none;
}
a.gs-title:visited,
a.gs-title:visited * {
  color: #660099;
}
a.gs-title:hover,
a.gs-title:hover * {
  text-decoration: underline;
}

/* 搜尋結果內文摘要 */
.gs-bkmk-data,
.gs-snippet {
  font-size: 14px;
  line-height: 1.57;
  color: #4d5156;
}

/* 綠色網址/路徑文字 */
.gsc-url-top {
  display: block;
}
.gs-webResult .gs-visibleUrl {
  color: #006621;
  font-size: 14px;
}

/* 分頁導覽 (Pagination) */
.gsc-cursor-box {
  text-align: center;
  margin-top: 20px;
}
.gsc-cursor-page {
  display: inline-block;
  padding: 5px 10px;
  margin: 0 4px;
  color: #1a0dab;
  cursor: pointer;
  border: 1px solid #dfe1e5;
  border-radius: 4px;
}
.gsc-cursor-current-page {
  border-color: transparent;
  color: #000;
  font-weight: bold;
  cursor: default;
}

/* 隱藏清除按鈕的 X 圖示（因其常使用 Google 內嵌的 Base64 圖片，易觸發 style 限制） */
.gsst_a .gscb_a {
  cursor: pointer;
  display: inline-block;
}