/* country-selector.css - 下拉组件样式（LinCup品牌蓝） */

/* ====== 下拉容器 ====== */
.country-selector-wrap {
  position: relative;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
}

.cs-label {
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 触发按钮 */
.cs-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1.5px solid #2563eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  min-width: 180px;
  max-width: 240px;
  transition: all 0.2s;
  user-select: none;
}
.cs-trigger:hover {
  background: #f0f4ff;
  border-color: #1d4ed8;
}
.cs-trigger .cs-placeholder {
  font-size: 13px;
  color: #94a3b8;
  flex: 1;
}
.cs-trigger.cs-selected .cs-placeholder {
  color: #1e293b;
  font-weight: 500;
}
.cs-trigger .cs-arrow {
  font-size: 11px;
  color: #2563eb;
  transition: transform 0.2s;
}
.cs-trigger.cs-selected .cs-arrow {
  color: #1d4ed8;
}

/* 下拉面板 */
.cs-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border: 1.5px solid #2563eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18);
  width: 300px;
  z-index: 999;
  overflow: hidden;
}

/* 搜索框 */
.cs-search {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  outline: none;
  background: #f8faff;
}

/* 国家列表 */
.cs-list {
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cs-list::-webkit-scrollbar { width: 5px; }
.cs-list::-webkit-scrollbar-track { background: #f1f5f9; }
.cs-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.cs-item {
  display: flex;
  flex-direction: column;
  padding: 9px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}
.cs-item:last-child { border-bottom: none; }
.cs-item:hover { background: #f0f4ff; }
.cs-item.cs-item-active { background: #eff6ff; }

.cs-name-zh {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
}
.cs-name-en {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* 按钮禁用态（未选国家时） */
.btn-disabled,
a.btn-disabled {
  pointer-events: none !important;
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

/* ====== 场景内容区域样式 ====== */
.scenario-container {
  margin: 20px 0;
  padding: 0;
}

/* 提示框 */
.scenario-alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
  border-left: 4px solid;
}
.alert-warning {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}
.alert-danger {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
  font-weight: 500;
}
.alert-info {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1e40af;
}

/* 场景板块 */
.scenario-section {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}

.scenario-heading {
  font-size: 15px;
  color: #1e293b;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
}

/* 规则列表 */
.scenario-rules {
  list-style: none;
  padding: 0;
  margin: 0;
}
.scenario-rules li {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.8;
  padding: 4px 0 4px 16px;
  position: relative;
}
.scenario-rules li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: bold;
}

/* 材料清单 */
.scenario-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.scenario-items li {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.8;
  padding: 4px 0 4px 16px;
  position: relative;
}
.scenario-items li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #2563eb;
}

/* 第三国红色高亮分区 */
.zone-danger {
  border-color: #fca5a5 !important;
  background: #fff5f5 !important;
}
.zone-danger .scenario-heading {
  color: #dc2626;
  border-bottom-color: #fca5a5;
}

/* 空状态 */
.scenario-empty {
  text-align: center;
}

/* ====== 移动端适配 ====== */
@media (max-width: 640px) {
  .country-selector-wrap {
    width: 100%;
  }
  .cs-trigger {
    min-width: unset;
    width: 100%;
  }
  .cs-dropdown {
    width: calc(100vw - 32px);
    left: -16px;
  }
  .cs-label {
    display: none;
  }
}