.country-page {
  width: 100%;
  padding: 20px;
}

/* 过滤容器 */
.country-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5vw;
}

/* 标签栏 */
.country-tab-bar {
  display: flex;
  gap: 3vw;
  flex-wrap: wrap;
}

.country-tab-item {
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
  font-size: 1.25vw;
  color: #333333;
  position: relative;
}

.country-tab-item:hover {
  font-weight: 600;
  font-size: 24px;
}

.country-tab-item.active {
  border-color: #007bff;
  font-weight: 600;

  &::after {
    content: "";
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 100%;
    height: 6px;
    background-image: linear-gradient(90deg, #037CFC 0%, #037cfc00 100%);
  }
}

/* 搜索框 */
.country-search-wrap {
  display: flex;
  align-items: center;
  width: 20vw;
  border: 1.5px solid #037CFC;
  border-radius: 4px;
}

.country-search-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  outline: none;
  height: 2.5vw;
  font-size: 0.85vw;
  border: 0;
}

.country-search-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  background: #037cfc;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  height: 2.5vw;
  font-size: 0.85vw;
}

.country-search-btn img {
  width: 16px;
  height: 16px;
}

.country-search-btn:hover {
  background: #0366d6;
}

/* 网格布局 */
.country-area-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13vw, 1fr));
  gap: 1.2vw;
  min-height: 300px;
}

/* 卡片 */
.country-area-card {
  cursor: pointer;
  position: relative;
  border-radius: 8px;
  padding: 1vw 0.8vw;
  text-align: center;
  transition: all 0.3s;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #fff;
  height: 4.5vw;
  width: 13vw;
}

.country-area-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #007bff;
}

/* 卡片内容 */
.country-card-content {
  display: flex;
  align-items: center;
  gap: 0.8vw;
  z-index: 1;
}

.country-flag-icon {
  /* width: 60px; */
  height: 2vw;
  /* object-fit: cover; */
  border: 1px solid #f0f0f0;
  border-radius: 4px;
}

.country-nation-name {
  font-size: 0.8vw;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hover遮罩 */
/* .hover-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 123, 255, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 8px;
  z-index: 2;
}

.area-card:hover .hover-mask {
  opacity: 1;
} */

/* .mask-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 80%;
} */
/* 
.mask-item {
  padding: 10px 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  transition: all 0.3s;
  font-size: 14px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.mask-item:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
} */

/* 无数据 */
.country-empty-wrap {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
}