/* ———————————————————————————————
   欧美极简高端风 · chinavisamap.com 2026
   完美适配 iPhone SE 等小屏设备
————————————————————————————————— */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fcfdfb;
  color: #111827;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px; /* 缩小内边距，适配小屏 */
}

/* 顶部权威更新条 */
.last-update {
  background: #064e3b;
  color: white;
  text-align: center;
  padding: 8px 12px;
  font-size: 12px; /* 缩小字体，避免换行 */
  font-weight: 500;
  line-height: 1.4;
}

/* ———————————————————————————————
   导航栏：移动端完美适配
————————————————————————————————— */
.header {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0; /* 缩小上下内边距 */
  flex-wrap: wrap; /* 允许换行，避免溢出 */
  gap: 12px; /* 增加间距，防止挤压 */
}

.logo {
  font-size: 18px; /* 缩小Logo字体，适配小屏 */
  font-weight: 700;
  color: #059669;
  white-space: nowrap; /* 强制不换行 */
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px; /* 缩小导航间距 */
  font-size: 14px; /* 缩小导航字体 */
  font-weight: 500;
  flex-wrap: wrap; /* 允许换行 */
}

.nav a {
  color: #374151;
  transition: color 0.2s ease;
  white-space: nowrap; /* 强制不换行 */
}

.nav a:hover {
  color: #059669;
}

.lang {
  margin-left: 8px;
}

.lang a {
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px; /* 缩小语言按钮字体 */
  white-space: nowrap;
}

.lang a.active {
  background: #ecfdf5;
  color: #047857;
}

/* ———————————————————————————————
   英雄区：移动端适配
————————————————————————————————— */
.hero {
  text-align: center;
  padding: 40px 0 30px; /* 缩小上下内边距 */
  max-width: 100%; /* 取消最大宽度限制 */
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(28px, 8vw, 44px); /* 响应式字体，小屏自动缩小 */
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
  line-height: 1.2;
  word-wrap: break-word; /* 允许换行 */
}

.hero p {
  font-size: clamp(14px, 4vw, 18px); /* 响应式字体 */
  color: #4b5563;
  max-width: 100%;
  margin: 0 auto;
  line-height: 1.6;
}

/* ———————————————————————————————
   搜索框：移动端适配
————————————————————————————————— */
.search-box {
  display: flex;
  gap: 8px; /* 缩小间距 */
  max-width: 100%; /* 取消最大宽度限制 */
  margin: 0 auto 40px;
  flex-wrap: wrap; /* 允许换行，小屏自动堆叠 */
}

.search-input {
  flex: 1;
  min-width: 200px; /* 最小宽度，避免挤压 */
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px; /* 保持16px，避免iOS缩放 */
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.search-input:focus {
  outline: none;
  border-color: #10b981;
}

.search-btn {
  padding: 14px 20px;
  background: #059669;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.search-btn:hover {
  background: #047857;
}

/* ———————————————————————————————
   板块样式
————————————————————————————————— */
.section {
  margin-bottom: 40px;
}

.title {
  font-size: clamp(22px, 6vw, 27px); /* 响应式字体 */
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}

.subtitle {
  color: #4b5563;
  font-size: 14px; /* 缩小字体 */
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(16px, 4vw, 18px); /* 响应式字体 */
  font-weight: 600;
  color: #111827;
}

/* ———————————————————————————————
   国家卡片：移动端适配
————————————————————————————————— */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* 缩小卡片最小宽度 */
  gap: 12px; /* 缩小间距 */
  margin-bottom: 20px;
}

.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px; /* 缩小内边距 */
  transition: all 0.22s ease;
}

.card a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: #1f2937;
  font-size: 14px; /* 缩小字体 */
}

.card:hover {
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
}

/* ———————————————————————————————
   政策卡片
————————————————————————————————— */
.policy {
  background: white;
  border-radius: 12px;
  padding: 18px; /* 缩小内边距 */
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
}

.policy h3 {
  margin-bottom: 6px;
}

.policy p {
  color: #4b5563;
  font-size: 14px; /* 缩小字体 */
}

/* ———————————————————————————————
   底部
————————————————————————————————— */
.footer {
  padding: 40px 0;
  text-align: center;
  color: #6b7280;
  font-size: 13px; /* 缩小字体 */
  border-top: 1px solid #e5e7eb;
  margin-top: 40px;
  line-height: 1.5;
}