/* Visitor toolkit widgets */
.toolkit {
  padding: 100px 5%;
  background: var(--cf-white);
}
.toolkit__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.toolkit__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.toolkit__row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}
.widget {
  background: var(--cf-cream);
  border: 1px solid var(--cf-border);
  border-radius: 20px;
  padding: 28px;
  overflow: hidden;
}
.widget__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.widget__head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}
.widget__head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--cf-muted);
  flex: 1 1 100%;
}
.widget__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cf-red), var(--cf-gold));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* Phase product finder */
.phase-finder__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.phase-tab {
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 100px;
  border: 1px solid var(--cf-border);
  background: var(--cf-white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--cf-text);
  transition: all 0.25s var(--ease);
}
.phase-tab:hover { border-color: var(--cf-gold); }
.phase-tab.is-active {
  background: var(--cf-red);
  color: #fff;
  border-color: var(--cf-red);
}
.phase-tab small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 2px;
}
.phase-finder__search {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--cf-border);
  border-radius: 10px;
  font-size: 15px;
  background: var(--cf-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%235c5c6d' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") 14px center no-repeat;
  margin-bottom: 16px;
}
.phase-finder__search:focus {
  outline: none;
  border-color: var(--cf-red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}
.phase-finder__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--cf-muted);
}
.phase-finder__meta strong { color: var(--cf-red); }
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
.product-list::-webkit-scrollbar { width: 6px; }
.product-list::-webkit-scrollbar-thumb {
  background: var(--cf-gold-light);
  border-radius: 3px;
}
.product-chip {
  padding: 10px 12px;
  background: var(--cf-white);
  border: 1px solid var(--cf-border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}
.product-chip:hover {
  border-color: var(--cf-gold);
  background: var(--cf-gold-pale);
}
.product-chip mark {
  background: var(--cf-gold-light);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

/* Location widget */
.location-widget__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.location-info dl {
  margin: 0;
  font-size: 14px;
}
.location-info dt {
  font-weight: 800;
  color: var(--cf-red);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 14px 0 6px;
}
.location-info dt:first-child { margin-top: 0; }
.location-info dd {
  margin: 0;
  color: var(--cf-text);
  line-height: 1.5;
}
.location-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.area-badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--cf-white);
  border: 1px solid var(--cf-border);
}
.area-badge span { color: var(--cf-red); font-weight: 800; }
.location-map {
  border-radius: 14px;
  overflow: hidden;
  background: var(--cf-gold-pale);
  border: 1px solid var(--cf-border);
  min-height: 260px;
  position: relative;
}
.location-map__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
}
.location-map__placeholder p {
  margin: 0;
  font-size: 13px;
  color: var(--cf-muted);
}
.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  display: block;
}
.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.location-actions a {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--cf-border);
  background: var(--cf-white);
  color: var(--cf-red);
  transition: all 0.2s;
}
.location-actions a:hover {
  background: var(--cf-red);
  color: #fff;
  border-color: var(--cf-red);
}

/* China apps widget */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}
.app-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--cf-white);
  border: 1px solid var(--cf-border);
  border-radius: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.app-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.app-card__icon--wechat { background: #07c160; }
.app-card__icon--alipay { background: #1677ff; color: #fff; }
.app-card__icon--maps { background: #2932e1; color: #fff; }
.app-card__icon--didi { background: #ff7f41; color: #fff; }
.app-card__icon--trip { background: #2577e3; color: #fff; }
.app-card__icon--1688 { background: #ff6a00; color: #fff; }
.app-card__icon--translate { background: #4285f4; color: #fff; }
.app-card__icon--fair { background: var(--cf-red); color: #fff; }
.app-card__icon--meituan { background: #ffc300; }
.app-card__icon--vpn { background: #5c5c6d; color: #fff; }
.app-card h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
}
.app-card p {
  margin: 0;
  font-size: 12px;
  color: var(--cf-muted);
  line-height: 1.4;
}
.app-card__tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cf-red);
  letter-spacing: 0.3px;
}
.apps-tip {
  margin-top: 16px;
  padding: 14px;
  background: var(--cf-gold-pale);
  border-radius: 10px;
  font-size: 13px;
  color: var(--cf-text);
  border-left: 3px solid var(--cf-gold);
}

@media (max-width: 1024px) {
  .toolkit__row { grid-template-columns: 1fr; }
  .location-widget__body { grid-template-columns: 1fr; }
  .location-map { min-height: 220px; }
}
@media (max-width: 768px) {
  .toolkit { padding: 64px 16px; }
  .widget { padding: 20px; }
  .phase-finder__tabs { gap: 6px; }
  .phase-tab { flex: 1 1 calc(50% - 6px); text-align: center; font-size: 12px; }
  .phase-tab small { font-size: 9px; }
  .product-list { max-height: 260px; grid-template-columns: 1fr 1fr; }
  .apps-grid { max-height: none; grid-template-columns: 1fr; }
  .location-actions a { flex: 1 1 100%; text-align: center; }
}
