/* 头部区域 */
/* Global Site /sites/{id}/：内容不足一屏时，灰色页脚与 .icp 贴视口底部（与 areaid 无关，同模板） */
body > .container {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main.site-page {
  flex: 1 0 auto;
}

.site-page {
  font-family: 'Roboto';
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1D1D1F;
}
.site-title {
  font-size: 20px;
  font-weight: 600;
  color: #222;
}
.filter-area {
  display: flex;
  align-items: flex-end;
  gap: 15px;
}

.select-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #d0d0d0;
  padding: 4px;
  border-radius: 40px;
  position: relative;
  width: 240px;
}
.field-label {
  font-size: 13px;
  color: #666;
  line-height: 1;
}
.continent-select {
  border-radius: 6px;
  background: #fff;
  appearance: none;
  cursor: pointer;
  font-size: 15px;
  color: #333;
  width: 100%;
  outline: none;
}

.search-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.search-box {
  position: relative;
  padding: 10px 20px;
  padding-left: 30px;
  width: 220px;
  background: #eee;
  border-radius: 20px;
}
.search-input {
  font-size: 12px;
  outline: none;
  width: 100%;
  height: 100%;
  background: none;
}
.search-input::placeholder {
  color: #1D1D1F;
}
.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  cursor: pointer;
}
.site-header .arrow-icon {
  width: 10px;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.select2-container--default .select2-selection--single {
  border: none !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border: none;
  display: none;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  display: none;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder, .select2-results {
  font-family: 'Roboto';
  font-weight: 300;
  font-size: 15px;
  color: #1D1D1F;
}
.site-header .select2-container--default .select2-results>.select2-results__options {
  max-height: auto;
}
.flags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 32px;
  padding-bottom: 50px;
}
.site-empty-results {
  grid-column: 1 / -1;
  margin: 24px 0 48px;
  font-size: 15px;
  color: #666;
  text-align: center;
}
/* Global Site：底部分页箭头由模板控制，当前页 countrys ≥36 条时带 .is-visible（见 en/site.html） */
.site-pages-nav {
  display: none;
}
.site-pages-nav.is-visible {
  display: flex;
}
.flag-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.flag-card:hover {
  transform: translateY(-5px);
}
.flag-img {
  width: 100px;
  height: 66px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.country-name {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}
@media screen and (max-width: 800px) {
  .site-header {
    padding-left: 20px;
    padding-right: 20px;
  }
  .filter-area {
    flex-wrap: wrap;
  }
  .search-wrapper,.select-wrapper {
    width: 100%;
  }
  .search-box {
    width: 100%;
    padding-left: 40px;
  }
}