/* en-buy-2.css  ->  extracted from template/en/buy.html  @Xeron 20261118 */
/* Where to buy 升级样式 + LOGO放大 + 无冲突类名 */
.where-buy {
  padding: 70px 0;
  background: #f8f9fa;
  width: min(1440px, calc(100% - 44px));
    margin: 0 auto;
    border-radius: 36px;
    margin-bottom: 52px;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-header {
  text-align: center;
  margin-bottom: 50px;
}
.page-header h1 {
  font-size: 42px;
  font-weight: 700;
  color: #1a2b48;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.page-header p {
  font-size: 17px;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 搜索框 */
.search-box {
  max-width: 650px;
  margin: 0 auto 45px;
}
.search-box input {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  outline: none;
  transition: all 0.25s ease;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.search-box input:focus {
  border-color: #1a2b48;
  box-shadow: 0 0 0 3px rgba(26,43,72,0.1);
}

/* 筛选按钮 */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
}
.tab {
  padding: 13px 24px;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s ease;
  color: #333;
  white-space: nowrap;
}
.tab:hover {
  border-color: #ccd1d9;
  background: #f1f3f7;
}
.tab.active {
  background: #1a2b48;
  color: #fff;
  border-color: #1a2b48;
  box-shadow: 0 4px 12px rgba(26,43,72,0.15);
}

/* 代理商卡片（类名已改为 distributor-item，无冲突） */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.distributor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #222;
  background: #fff;
  border-radius: 16px;
  padding: 32px 20px;
  transition: all 0.26s ease;
  box-shadow: 0 3px 12px rgba(0,0,0,0.04);
  border: 1px solid #f0f2f7;
}
.distributor-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.09);
  border-color: #e0e6ed;
}

/* LOGO 放大 */
.distributor-item img {
  width: 100%;
  max-width: 180px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 18px;
}
.distributor-item .country {
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
}

/* 响应式 */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .page-header h1 { font-size: 34px; }
  .where-buy { padding: 50px 0; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap:16px; }
  .distributor-item { padding:24px 14px; }
  .tab { padding:11px 18px; font-size:14px; }
}
