/* Protocol Online - 自定义样式表 */

/* 导入Roboto字体 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* 基础样式设置 */
body {
  font-family: 'Roboto', Arial, sans-serif !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 容器和布局优化 */
#wrap {
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 导航菜单美化 */
#container {
  background: #006f00 !important;
  border-radius: 0;
}

#tabnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  background: #006f00;
}

#tabnav a {
  padding: 12px 20px;
  color: #fff;
  font-weight: 500;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background 0.3s;
}

#tabnav a:hover, #tabnav a.active {
  background-color: #009900;
}

/* 搜索框美化 */
#searchbox {
  background-color: #edf2cb;
  padding: 15px;
}

#searchbox input[type="text"] {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#searchbox input[type="text"]:focus {
  border-color: #006f00;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,111,0,0.1);
}

/* 按钮样式优化 */
input[type="submit"], button {
  background-color: #006f00;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

input[type="submit"]:hover, button:hover {
  background-color: #009900;
}

/* 浅色按钮样式 */
.light-button, 
input[value="Search"], 
input[value="Go"], 
input[value="Search Archives"] {
  background-color: #e9e9e9 !important;
  color: #000 !important;
  border: 1px solid #ddd !important;
}

.light-button:hover, 
input[value="Search"]:hover, 
input[value="Go"]:hover, 
input[value="Search Archives"]:hover {
  background-color: #f0f0f0 !important;
}

/* 内容区域样式 */
#content {
  border: 1px solid #e0e0e0;
  border-radius: 0;
  padding: 20px;
}

.title {
  font-size: 18px;
  color: #006f00;
  border-bottom: 1px solid #e0e0e0;
}

/* 分类列表美化 */
#left strong a, #right strong a {
  color: #006f00;
  font-size: 16px;
}

#left a, #right a {
  transition: color 0.2s;
}

#left a:hover, #right a:hover {
  color: #006f00;
}

/* 特色框美化 */
.box > div {
  border: 1px solid #e0e0e0;
  border-radius: 0;
}

.feature h4, .featurebox h4 {
  color: #006f00;
  border-bottom: 1px solid #e0e0e0;
}

/* 统一列表样式 */
.feature a, .featurebox a, 
.feature li, .featurebox li {
  display: block;
  position: relative;
  padding-left: 15px;
  margin: 5px 0;
}

.feature a:before, .featurebox a:before,
.feature li:before, .featurebox li:before {
  content: "•";
  color: #006f00;
  position: absolute;
  left: 0;
}

/* 右侧栏美化 */
.featurebox {
  border: 1px solid #e0e0e0;
  border-radius: 0;
  margin-bottom: 15px;
}

/* 表格美化 */
table {
  border-collapse: collapse;
  width: 100%;
}

table td, table th {
  padding: 8px;
  border-bottom: 1px solid #e0e0e0;
}

/* 页脚美化 */
#bar {
  height: 5px;
  background-color: #006f00;
}

#footer {
  padding: 20px 0;
  text-align: center;
  color: #666;
}

ul.f li a:hover {
  color: #006f00;
}

/* 隐藏Google品牌元素 */
.gsc-branding, .gcsc-branding, .gsc-control-cse,
.gsc-wrapper img, .gsc-result-info, 
.gs-visibleUrl, .gs-per-result-labels, 
#cse-search-box + script, .cse-branding-logo, .cse-branding-text,
img[src*="cse/images"], .gs-branding {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  max-height: 0 !important;
  max-width: 0 !important;
  overflow: hidden !important;
}

/* 响应式布局调整 */
@media (max-width: 992px) {
  #content-wrap {
    flex-direction: column;
  }
  
  #main {
    width: 100%;
  }
  
  #right-col {
    width: 100%;
  }
}

@media (max-width: 768px) {
  #tabnav {
    flex-direction: column;
  }
  
  #tabnav a {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  #left, #right {
    width: 100% !important;
    float: none !important;
  }
  
  .box {
    flex-direction: column;
  }
  
  #searchbox form {
    flex-direction: column;
    align-items: stretch;
  }
} 