/* ===== 门户导航首页（index.html 专用） ===== */

.portal-view {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 12% -10%, #dbeafe 0%, rgba(219, 234, 254, 0) 60%),
    radial-gradient(700px 420px at 100% 0%, #e0e7ff 0%, rgba(224, 231, 255, 0) 55%),
    linear-gradient(180deg, #f7faff 0%, #eef3fb 100%);
}

.portal-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.13) 0%, rgba(37, 99, 235, 0) 70%);
  bottom: -160px;
  right: -90px;
  pointer-events: none;
}

.portal-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 0 30px;
}

.portal-top-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-top-right .user-chip {
  padding-left: 0;
  border-left: 0;
  gap: 6px;
  font-size: 14px;
}

.portal-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 46px 20px 34px;
}

.portal-hero h1 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
}

.portal-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 2px;
}

.portal-grid {
  position: relative;
  z-index: 1;
  flex: 1;
  align-content: start;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 6px 30px 30px;
}

.portal-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 168px;
  padding: 22px 20px 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.portal-card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-md);
}

.pc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.pc-icon .icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.9;
}

.pc-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.pc-desc {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.pc-go {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.pc-go .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.portal-card:hover .pc-go .icon {
  transform: translateX(3px);
}

.portal-card.soon {
  cursor: default;
  background: rgba(255, 255, 255, 0.66);
}

.portal-card.soon:hover {
  transform: none;
  border-color: rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-sm);
}

.portal-card.soon .pc-icon {
  background: linear-gradient(135deg, #94a3b8, #cbd5e1);
  box-shadow: none;
}

.portal-card.soon .pc-name,
.portal-card.soon .pc-desc {
  color: #94a3b8;
}

.pc-tag {
  margin-top: auto;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: #94a3b8;
  font-size: 12px;
}

.portal-foot {
  position: relative;
  z-index: 1;
  padding: 16px 0 22px;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
}

#modalAuth .auth-card {
  animation: pop-in 0.18s ease;
}

@media (max-width: 720px) {
  .portal-top {
    padding: 0 18px;
  }

  .portal-hero {
    padding: 30px 16px 24px;
  }

  .portal-hero h1 {
    font-size: 24px;
  }

  .portal-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    padding: 4px 18px 24px;
  }

  .portal-card {
    min-height: 150px;
    padding: 18px 16px 14px;
  }
}
