/* Portal hub — emerald green theme (matches 总站设计稿) */
.portal-page {
  --ph-green: #059669;
  --ph-green-dark: #047857;
  --ph-green-soft: rgba(5, 150, 105, .12);
  --ph-ink: #111827;
  --ph-muted: #6b7280;
  --ph-border: #e5e7eb;
  --ph-bg: #f3f4f6;
  --ph-card: #fff;
  --ph-orange: #f97316;
  background: var(--ph-bg);
  color: var(--ph-ink);
  min-width: 320px;
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.portal-page a { text-decoration: none; color: inherit; }
.portal-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* Header */
.ph-head {
  background: #fff;
  border-bottom: 1px solid var(--ph-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.ph-head-row {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.ph-logo img {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
.ph-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.ph-nav::-webkit-scrollbar { display: none; }
.ph-nav a {
  flex-shrink: 0;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  border-radius: 8px;
  white-space: nowrap;
}
.ph-nav a:hover,
.ph-nav a.is-on {
  color: var(--ph-green);
  background: var(--ph-green-soft);
}
.ph-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ph-lang select {
  border: 1px solid var(--ph-border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  background: #fff;
  color: #374151;
}
.ph-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.ph-btn-orange {
  background: var(--ph-orange);
  color: #fff;
}
.ph-btn-orange:hover { filter: brightness(.95); }
.ph-btn-green {
  background: var(--ph-green);
  color: #fff;
}
.ph-btn-green:hover { background: var(--ph-green-dark); }
.ph-link {
  font-size: 13px;
  color: #4b5563;
}
.ph-link:hover { color: var(--ph-green); }

/* Hero — 非洲同城：日落 + 草原绿 + 几何纹理 + 城市剪影 */
.ph-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #064e3b;
}
.ph-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ph-hero-art {
  position: absolute;
  inset: 0;
  background:
    url('/templates/sijicms_auto/images/portal-hero-africa.svg') center center / cover no-repeat,
    linear-gradient(135deg, #1e3a5f 0%, #b45309 38%, #059669 72%, #064e3b 100%);
  transform: scale(1.03);
  animation: phHeroPan 28s ease-in-out infinite alternate;
}
.ph-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 82% 18%, rgba(251, 191, 36, .32), transparent 60%),
    linear-gradient(180deg, rgba(15, 23, 42, .18) 0%, rgba(6, 78, 59, .42) 55%, rgba(2, 44, 34, .78) 100%);
  pointer-events: none;
}
.ph-hero-bg::after {
  content: none;
}
@keyframes phHeroPan {
  from { transform: scale(1.03) translateX(0); }
  to   { transform: scale(1.06) translateX(-1.2%); }
}
@media (prefers-reduced-motion: reduce) {
  .ph-hero-art { animation: none; transform: scale(1.03); }
}
.ph-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 52px 0 60px;
  text-align: center;
}
.ph-hero-brand {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: .02em;
  color: #ecfdf5;
  margin: 0 0 10px;
  text-shadow: 0 2px 20px rgba(0,0,0,.45);
}
.ph-hero-desc {
  margin: 0 0 28px;
  font-size: 16px;
  color: rgba(255,255,255,.94);
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.ph-search {
  display: grid;
  /* 国家站：国家 + 关键词 + 搜索（原先多一列城市，去掉后右侧会留白） */
  grid-template-columns: 180px 1fr 112px;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  text-align: left;
}
.ph-search select,
.ph-search input {
  height: 54px;
  border: 0;
  border-right: 1px solid #e5e7eb;
  padding: 0 14px;
  font-size: 14px;
  color: #111827;
  outline: none;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.ph-search input { border-right: 0; }
.ph-search button {
  height: 54px;
  border: 0;
  background: var(--ph-green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ph-search button:hover { background: var(--ph-green-dark); }
.ph-hotwords {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
}
.ph-hotwords a {
  color: rgba(255,255,255,.9);
  border-bottom: 1px dashed rgba(255,255,255,.35);
}
.ph-hotwords a:hover { color: #a7f3d0; }

/* Sections */
.ph-sec {
  padding: 36px 0 8px;
}
.ph-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.ph-sec-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}
.ph-sec-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ph-muted);
}
.ph-more {
  font-size: 13px;
  color: var(--ph-green);
  font-weight: 600;
  white-space: nowrap;
}

/* Hot countries */
.ph-countries {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.ph-country {
  flex: 0 0 132px;
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ph-country:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
  border-color: #a7f3d0;
}
.ph-country img {
  width: 44px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  margin-bottom: 8px;
}
.ph-country .zh {
  display: block;
  font-weight: 700;
  font-size: 14px;
}
.ph-country .en {
  display: block;
  font-size: 12px;
  color: var(--ph-muted);
  margin-top: 2px;
}
.ph-country-all {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ph-green);
  font-weight: 700;
}
.ph-country-all .material-symbols-outlined { font-size: 28px; }

/* Hot cities */
.ph-cities {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.ph-city {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ph-border);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ph-city:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15,23,42,.1);
}
.ph-city-cover {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #064e3b, #0f766e);
}
.ph-city-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ph-city-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(5, 150, 105, .92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.ph-city-body {
  padding: 10px 12px 12px;
}
.ph-city-body .zh {
  font-weight: 800;
  font-size: 15px;
}
.ph-city-body .en {
  font-size: 12px;
  color: var(--ph-muted);
  margin-top: 2px;
}

/* Cats */
.ph-cats {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.ph-cat {
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: 16px;
  padding: 18px 10px 16px;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ph-cat:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
}
.ph-cat-ico {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ph-cat-ico .material-symbols-outlined { font-size: 28px; }
.ph-cat-ico.tone-green { background: #059669; }
.ph-cat-ico.tone-blue { background: #2563eb; }
.ph-cat-ico.tone-orange { background: #f97316; }
.ph-cat-ico.tone-red { background: #ef4444; }
.ph-cat-ico.tone-purple { background: #7c3aed; }
.ph-cat-ico.tone-cyan { background: #0891b2; }
.ph-cat-ico.tone-teal { background: #0d9488; }
.ph-cat-ico.tone-amber { background: #d97706; }
.ph-cat .name {
  display: block;
  font-weight: 700;
  font-size: 14px;
}
.ph-cat .desc {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ph-muted);
}

/* Featured */
.ph-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ph-tab {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--ph-border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
}
.ph-tab.is-on {
  background: var(--ph-green);
  border-color: var(--ph-green);
  color: #fff;
}
.ph-pane { display: none; }
.ph-pane.is-on { display: block; }
.ph-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ph-card {
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ph-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15,23,42,.08);
}
.ph-card-thumb {
  aspect-ratio: 16/10;
  background: #e5e7eb;
  position: relative;
}
.ph-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ph-card-body { padding: 12px; }
.ph-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
}
.ph-card-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ph-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ph-card-price {
  margin-top: 8px;
  color: var(--ph-green);
  font-weight: 800;
  font-size: 15px;
}

/* Value props */
.ph-values {
  margin: 36px 0 48px;
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
}
.ph-value {
  padding: 22px 16px;
  text-align: center;
  border-right: 1px solid var(--ph-border);
}
.ph-value:last-child { border-right: 0; }
.ph-value .material-symbols-outlined {
  font-size: 28px;
  color: var(--ph-green);
  margin-bottom: 8px;
}
.ph-value strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.ph-value span {
  font-size: 12px;
  color: var(--ph-muted);
  line-height: 1.4;
}

/* Footer */
.ph-foot {
  background: #111827;
  color: #9ca3af;
  padding: 40px 0 24px;
  font-size: 13px;
}
.ph-foot a { color: #d1d5db; }
.ph-foot a:hover { color: #fff; }
.ph-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.ph-foot h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
}
.ph-foot p { margin: 0; line-height: 1.6; }
.ph-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ph-foot li { margin-bottom: 8px; }
.ph-foot-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
}
.ph-foot-langs { display: flex; gap: 12px; }
.ph-foot-langs .is-on { color: #34d399; }

@media (max-width: 1100px) {
  .ph-cities { grid-template-columns: repeat(3, 1fr); }
  .ph-cats { grid-template-columns: repeat(4, 1fr); }
  .ph-cards { grid-template-columns: repeat(2, 1fr); }
  .ph-values { grid-template-columns: repeat(3, 1fr); }
  .ph-value:nth-child(3) { border-right: 0; }
}
@media (max-width: 800px) {
  .ph-nav { display: none; }
  .ph-search {
    grid-template-columns: 1fr;
  }
  .ph-search select { border-bottom: 1px solid #e5e7eb; border-right: 0; }
  .ph-search input,
  .ph-search button { border-right: 0; }
  .ph-cities { grid-template-columns: repeat(2, 1fr); }
  .ph-cats { grid-template-columns: repeat(4, 1fr); }
  .ph-values { grid-template-columns: 1fr 1fr; }
  .ph-value { border-right: 0; border-bottom: 1px solid var(--ph-border); }
  .ph-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .ph-cats { grid-template-columns: repeat(2, 1fr); }
  .ph-cards { grid-template-columns: 1fr; }
  .ph-values { grid-template-columns: 1fr; }
  .ph-hide-xs { display: none !important; }
}
