/* 门户 · 橙白极简 + 高级玻璃 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

.app:has(.pg-portal) .tags-view { display: none; }

.app:has(.pg-portal) {
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(255, 107, 0, 0.1), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(255, 154, 46, 0.08), transparent 50%),
    linear-gradient(180deg, #fff9f4 0%, #f5f6f8 100%);
}

.app:has(.pg-portal) .main {
  position: relative;
  overflow: auto;
  margin: 10px 10px 10px 8px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    radial-gradient(700px 300px at 70% 18%, rgba(255, 107, 0, 0.07), transparent 55%),
    rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 24px 56px rgba(28, 25, 23, 0.06);
}

.app:has(.pg-portal) .main::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 107, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 55% 0%, #000 18%, transparent 72%);
  opacity: 0.85;
  z-index: 0;
}

/* 细腻噪点，增加材质感 */
.app:has(.pg-portal) .main::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.app:has(.pg-portal) .sb {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

.pg-portal {
  --orange: #ff6b00;
  --orange-soft: #ff9a2e;
  --ink: #0f1115;
  --muted: #7a8190;
  --line: rgba(255, 255, 255, 0.58);
  --edge: rgba(255, 107, 0, 0.14);
  --soft: #fff5ec;
  --glass: rgba(255, 255, 255, 0.42);
  --glass-strong: rgba(255, 255, 255, 0.58);
  --glass-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 -1px 0 rgba(255, 107, 0, 0.05) inset,
    0 22px 48px rgba(28, 25, 23, 0.07),
    0 2px 8px rgba(255, 107, 0, 0.04);
  font-family: 'Noto Sans SC', 'Outfit', sans-serif;
  color: var(--ink);
  padding: 0 0 56px;
  position: relative;
  z-index: 1;
}
.pg-portal .pg-hd { display: none; }




/* 全幅纤维光带：横向流动 + 散开/聚拢 */
.portal-flow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.portal-ribbon-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.pg-portal .glass {
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  border: 1px solid var(--line);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

/* Hero */
.portal-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-bottom: 2px;
}
.portal-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 280px at 82% 42%, rgba(255, 107, 0, 0.2), transparent 68%),
    radial-gradient(420px 220px at 18% 70%, rgba(255, 180, 90, 0.1), transparent 70%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.28), transparent 52%);
}
.portal-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 107, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 72% 45%, #000 8%, transparent 66%);
}
.portal-beam {
  position: absolute;
  pointer-events: none;
  width: 2px;
  height: 180%;
  top: -40%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55), rgba(255, 107, 0, 0.18), transparent);
  filter: blur(1px);
  opacity: 0.55;
  animation: portalBeam 9s ease-in-out infinite;
}
.portal-beam.b1 {
  left: 62%;
  transform: rotate(18deg);
}
.portal-beam.b2 {
  left: 74%;
  width: 1px;
  opacity: 0.35;
  transform: rotate(22deg);
  animation-delay: -3s;
  animation-duration: 12s;
}
.portal-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  right: 8%;
  top: 50%;
  margin-top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.22), transparent 68%);
  filter: blur(28px);
  animation: portalPulse 5.5s ease-in-out infinite;
}

.portal-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 40px 28px;
}
.portal-hero-copy {
  padding: 28px 30px 26px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28));
  backdrop-filter: blur(24px) saturate(1.45);
  -webkit-backdrop-filter: blur(24px) saturate(1.45);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 28px 56px rgba(28, 25, 23, 0.07),
    0 0 0 1px rgba(255, 107, 0, 0.04);
  position: relative;
  overflow: hidden;
}
.portal-hero-copy::before {
  content: '';
  position: absolute;
  left: -20%;
  top: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  animation: portalSheen 7s ease-in-out infinite;
  pointer-events: none;
}
.portal-kicker {
  margin: 0 0 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--muted);
}
.portal-kicker span {
  color: var(--orange);
}
.portal-title {
  margin: 0;
  font-family: 'Outfit', 'Noto Sans SC', sans-serif;
  font-size: clamp(44px, 5.4vw, 64px);
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1;
  background: linear-gradient(118deg, #0f1115 12%, #1a1a1a 38%, #ff6b00 72%, #ffb05c 100%);
  background-size: 160% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: portalTitleShift 10s ease-in-out infinite;
}
.portal-title-rule {
  width: 48px;
  height: 2px;
  margin-top: 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(255, 154, 46, 0.2));
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.35);
}
.portal-welcome {
  margin: 16px 0 0;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.portal-desc {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.portal-hero-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 24px 16px;
  border-radius: 32px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.28));
  backdrop-filter: blur(24px) saturate(1.45);
  -webkit-backdrop-filter: blur(24px) saturate(1.45);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 24px 48px rgba(255, 107, 0, 0.1);
  position: relative;
}
.portal-meta {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.portal-orbit {
  position: relative;
  width: 128px;
  height: 128px;
}
.portal-orbit-ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 0, 0.2);
  animation: portalSpin 20s linear infinite;
}
.portal-orbit-ring.r0 {
  inset: 0;
  border-color: rgba(255, 107, 0, 0.1);
  animation-duration: 28s;
  animation-direction: reverse;
}
.portal-orbit-ring.r2 {
  inset: 24px;
  border-style: dashed;
  border-color: rgba(255, 107, 0, 0.32);
  animation-duration: 11s;
  animation-direction: reverse;
}
.portal-orbit-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b00, #ffb05c);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.55);
  left: 50%;
  top: 50%;
  margin: -3px 0 0 -3px;
  transform-origin: 0 0;
}
.portal-orbit-dot.d1 {
  animation: portalDot 12s linear infinite;
}
.portal-orbit-dot.d2 {
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  animation: portalDot2 8s linear infinite reverse;
}
.portal-diamond {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 9px;
  background: linear-gradient(145deg, #ff8a1a 0%, #ff6b00 45%, #e85a00 100%);
  transform: rotate(45deg);
  box-shadow:
    0 0 0 8px rgba(255, 107, 0, 0.08),
    0 0 0 16px rgba(255, 107, 0, 0.04),
    0 14px 28px rgba(255, 107, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.45) inset;
  animation: portalDiamond 4s ease-in-out infinite;
}

/* Body */
.portal-body {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 40px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}



.portal-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 18px;
  border-radius: 22px;
  text-decoration: none !important;
  color: inherit;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 36px rgba(255, 107, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.25s ease;
}
/* 卡片内流动光斑（各卡起点不同） */
.stat-card::before {
  content: '';
  position: absolute;
  width: 140%;
  height: 140%;
  left: -20%;
  top: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 107, 0, 0.12), transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(255, 180, 90, 0.1), transparent 40%);
  animation: portalCardFlow 12s ease-in-out infinite;
  pointer-events: none;
}
.stat-card:nth-child(2)::before {
  animation-delay: -3s;
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 154, 46, 0.11), transparent 45%),
    radial-gradient(circle at 25% 80%, rgba(255, 107, 0, 0.08), transparent 42%);
}
.stat-card:nth-child(3)::before {
  animation-delay: -6s;
  background:
    radial-gradient(circle at 40% 80%, rgba(255, 107, 0, 0.1), transparent 44%),
    radial-gradient(circle at 85% 20%, rgba(255, 200, 120, 0.12), transparent 40%);
}
.stat-card:nth-child(4)::before {
  animation-delay: -9s;
  background:
    radial-gradient(circle at 60% 50%, rgba(255, 140, 50, 0.1), transparent 46%),
    radial-gradient(circle at 15% 20%, rgba(255, 107, 0, 0.07), transparent 40%);
}
.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 107, 0, 0.28) 1px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.12;
  mask-image: linear-gradient(135deg, #000 0%, transparent 70%);
  animation: portalDotDrift 18s linear infinite;
  pointer-events: none;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 0, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 24px 44px rgba(255, 107, 0, 0.1);
  color: inherit;
}
.stat-label {
  position: relative;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 500;
}
.stat-value {
  position: relative;
  z-index: 1;
  font-family: 'Outfit', sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(165deg, #1a1a1a 8%, #2a2a2a 36%, #ff6b00 78%, #ffb05c 100%);
  background-size: 140% 140%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: portalTitleShift 12s ease-in-out infinite;
}
.stat-hint {
  position: relative;
  z-index: 1;
  font-size: 11px;
  color: #a4aab4;
  letter-spacing: 0.04em;
}

.portal-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.portal-section,
.portal-feed {
  border-radius: 24px;
  padding: 20px 20px 18px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 40px rgba(255, 107, 0, 0.05);
  position: relative;
  overflow: hidden;
}
.portal-section::before,
.portal-feed::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(420px 220px at 12% 0%, rgba(255, 107, 0, 0.08), transparent 55%),
    radial-gradient(380px 200px at 100% 100%, rgba(255, 170, 80, 0.07), transparent 50%);
  animation: portalCardFlow 16s ease-in-out infinite;
}
.portal-recent::before {
  animation-delay: -5s;
  background:
    radial-gradient(360px 200px at 90% 0%, rgba(255, 140, 50, 0.08), transparent 55%),
    radial-gradient(300px 180px at 0% 100%, rgba(255, 107, 0, 0.06), transparent 50%);
}
.portal-feed::before {
  animation-delay: -10s;
  background:
    radial-gradient(500px 180px at 50% 0%, rgba(255, 107, 0, 0.07), transparent 55%),
    radial-gradient(320px 200px at 80% 100%, rgba(255, 180, 90, 0.06), transparent 50%);
}
.portal-section::after,
.portal-feed::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 107, 0, 0.22) 1px, transparent 1.5px);
  background-size: 32px 32px;
  opacity: 0.1;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%);
  animation: portalDotDrift 22s linear infinite;
}
.portal-section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.portal-section-hd h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.pg-portal .btn-lk {
  font-size: 12px;
  color: var(--orange);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: opacity 0.2s ease;
}
.pg-portal .btn-lk:hover {
  opacity: 0.75;
}

.app-grid-premium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}
.app-tile {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 18px 8px 14px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.28s ease, background 0.22s ease;
}
.app-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 0, 0.28);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 28px rgba(255, 107, 0, 0.1);
}
/* 统一橙白图标体系：无灰/无黑 */
.app-tile .app-ic {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #ff8a1a, #ff6b00 55%, #e85a00);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 10px 20px rgba(255, 107, 0, 0.28);
  transition: transform 0.28s ease, opacity 0.22s ease;
}
.app-tile .app-ic svg {
  width: 20px;
  height: 20px;
  display: block;
}
.app-tile:hover .app-ic {
  transform: translateY(-1px) scale(1.03);
}
.app-tile.is-soon .app-ic {
  background: linear-gradient(145deg, rgba(255, 154, 46, 0.55), rgba(255, 107, 0, 0.45));
  box-shadow: 0 6px 14px rgba(255, 107, 0, 0.12);
  opacity: 0.85;
}
.app-tile.is-add {
  border-style: dashed;
  border-color: rgba(255, 107, 0, 0.28);
  background: rgba(255, 247, 240, 0.35);
}
.app-tile.is-add .app-ic {
  background: rgba(255, 246, 238, 0.95);
  color: var(--orange);
  border: 1px dashed rgba(255, 107, 0, 0.35);
  box-shadow: none;
}
.app-tile .app-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.app-tile .app-soon {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #c47a3a;
  letter-spacing: 0.08em;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1;
}
.recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  text-decoration: none !important;
  color: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
}
.recent-item:hover {
  background: rgba(255, 247, 240, 0.75);
  transform: translateX(2px);
  color: inherit;
}
.recent-ic {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(145deg, #ff8a1a, #ff6b00);
  box-shadow: 0 6px 14px rgba(255, 107, 0, 0.22);
}
.recent-ic svg {
  width: 15px;
  height: 15px;
  display: block;
}
.recent-title {
  font-size: 13px;
  font-weight: 600;
}
.recent-meta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

@keyframes portalCardFlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  50% { transform: translate3d(4%, -3%, 0) scale(1.06); opacity: 0.85; }
}
@keyframes portalDotDrift {
  0% { background-position: 0 0; }
  100% { background-position: 32px 48px; }
}

.pg-portal .portal-inline-search {
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.pg-portal .portal-inline-search input {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  padding: 0 16px;
  font-size: 13px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pg-portal .portal-inline-search input:focus {
  outline: none;
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 3px rgba(255, 107, 0, 0.1);
}
.pg-portal .portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  border-bottom: none;
  position: relative;
  z-index: 1;
}
.pg-portal .portal-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  padding: 7px 14px;
  margin: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.04em;
  border-bottom: none;
  transition: 0.2s ease;
}
.pg-portal .portal-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
}
.pg-portal .portal-tab.on {
  color: #fff;
  background: linear-gradient(135deg, #ff8a1a, #ff6b00);
  border-color: transparent;
  border-bottom: none;
  font-weight: 600;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 8px 18px rgba(255, 107, 0, 0.28);
}
#portal-feed-list {
  max-height: 380px;
  overflow: auto;
  position: relative;
  z-index: 1;
}
.portal-feed-row {
  display: flex;
  gap: 12px;
  padding: 12px 8px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.portal-feed-row:hover {
  background: rgba(255, 247, 240, 0.7);
  transform: translateX(2px);
}
.portal-feed-row.unread {
  background: rgba(255, 247, 240, 0.4);
}
.portal-feed-row.unread .portal-feed-title { font-weight: 700; }
.portal-feed-ic {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(145deg, #ff8a1a, #ff6b00);
  box-shadow: 0 6px 14px rgba(255, 107, 0, 0.2);
  border: none;
}
.portal-feed-ic svg {
  width: 15px;
  height: 15px;
  display: block;
}
.portal-feed-ic.ann,
.portal-feed-ic.approval,
.portal-feed-ic.notice,
.portal-feed-ic.reminder,
.portal-feed-ic.alert,
.portal-feed-ic.mustread {
  background: linear-gradient(145deg, #ff8a1a, #ff6b00);
  color: #fff;
}
.portal-feed-body { flex: 1; min-width: 0; }
.portal-feed-title {
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--ink);
}
.portal-feed-desc {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.portal-feed-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: #a8aeb8;
}
.portal-list-empty {
  display: none;
  padding: 28px 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

@keyframes portalSpin {
  to { transform: rotate(360deg); }
}
@keyframes portalBeam {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.65; }
}
@keyframes portalPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}
@keyframes portalSheen {
  0%, 100% { transform: translateX(-30%) skewX(-18deg); opacity: 0; }
  40% { opacity: 0.55; }
  70% { transform: translateX(180%) skewX(-18deg); opacity: 0; }
}
@keyframes portalTitleShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes portalDot {
  from { transform: rotate(0deg) translateX(56px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(56px) rotate(-360deg); }
}
@keyframes portalDot2 {
  from { transform: rotate(0deg) translateX(40px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(40px) rotate(-360deg); }
}
@keyframes portalDiamond {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(45deg) scale(1.06); }
}

.portal-work-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.app-grid-3x3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.portal-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 107, 0, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--orange);
  cursor: pointer;
  transition: 0.2s ease;
}
.portal-icon-btn:hover {
  background: #fff;
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.12);
}
.portal-msg-layout {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  min-height: 320px;
}
.portal-msg-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 8px;
  border-right: 1px solid rgba(255, 107, 0, 0.1);
}
.portal-msg-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: 0.15s ease;
}
.portal-msg-nav-item:hover { background: rgba(255, 107, 0, 0.06); color: var(--ink); }
.portal-msg-nav-item.on {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.14), rgba(255, 154, 46, 0.08));
  color: var(--orange);
  font-weight: 600;
}
.portal-msg-nav-count {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  min-width: 18px;
  text-align: right;
  color: inherit;
  opacity: 0.85;
}
.portal-msg-detail {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.portal-msg-detail-hd {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.portal-msg-detail-list {
  flex: 1;
  overflow-y: auto;
  max-height: 340px;
}
.portal-home-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 107, 0, 0.08);
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.portal-home-row:hover { background: rgba(255, 247, 240, 0.8); }
.portal-home-row:last-child { border-bottom: none; }
.portal-home-app,
.portal-home-flow {
  font-size: 12px;
  color: var(--orange);
  font-weight: 500;
  line-height: 1.4;
}
.portal-home-main { min-width: 0; }
.portal-home-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-home-desc {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-home-sender {
  font-size: 12px;
  color: var(--muted);
}
.portal-home-time {
  font-size: 12px;
  color: #a4aab4;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.portal-shortcuts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.portal-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 10px 14px;
  border-radius: 18px;
  text-decoration: none !important;
  color: inherit;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.75);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.portal-shortcut:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 0, 0.28);
  box-shadow: 0 14px 28px rgba(255, 107, 0, 0.1);
  color: inherit;
}
.portal-shortcut-ic {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  background: linear-gradient(145deg, rgba(255, 107, 0, 0.12), rgba(255, 154, 46, 0.06));
}
.portal-shortcut-ic svg { width: 22px; height: 22px; }
.portal-shortcut-name {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}
.portal-app-cfg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}
.portal-app-cfg-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--c-border-light);
  border-radius: 10px;
  background: #fff;
  cursor: default;
}
.portal-app-cfg-name { font-size: 14px; }

@media (max-width: 980px) {
  .portal-hero-inner,
  .portal-body { padding-left: 20px; padding-right: 20px; }
  .portal-stats { grid-template-columns: repeat(2, 1fr); }
  .portal-main-grid,
  .portal-work-grid { grid-template-columns: 1fr; }
  .portal-hero-inner { grid-template-columns: 1fr; }
  .portal-hero-aside { justify-self: start; flex-direction: row; border-radius: 24px; padding: 14px 18px; }
  .portal-orbit { width: 88px; height: 88px; }
  .portal-shortcuts { grid-template-columns: repeat(3, 1fr); }
  .portal-msg-layout { grid-template-columns: 1fr; }
  .portal-msg-nav {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid rgba(255, 107, 0, 0.1);
    padding: 0 0 8px;
  }
  .portal-msg-nav-item { flex: 1; justify-content: center; }
}
@media (max-width: 640px) {
  .portal-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .app-grid-premium,
  .app-grid-3x3 { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 30px; }
  .portal-title { letter-spacing: 0.12em; }
  .portal-shortcuts { grid-template-columns: repeat(2, 1fr); }
  .portal-home-row { grid-template-columns: 1fr; gap: 4px; }
}

/* 门户深色模式 */
[data-theme="dark"] .app:has(.pg-portal) {
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(255, 107, 0, 0.08), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(255, 154, 46, 0.05), transparent 50%),
    linear-gradient(180deg, #141820 0%, #10141c 100%);
}
[data-theme="dark"] .app:has(.pg-portal) .main {
  border-color: var(--c-border);
  background:
    radial-gradient(700px 300px at 70% 18%, rgba(255, 107, 0, 0.06), transparent 55%),
    rgba(28, 34, 45, 0.72);
  box-shadow: var(--shadow-card);
}
[data-theme="dark"] .portal-card,
[data-theme="dark"] .portal-widget,
[data-theme="dark"] .portal-stat-card,
[data-theme="dark"] .portal-msg-item,
[data-theme="dark"] .app-tile {
  background: var(--c-bg-card) !important;
  border-color: var(--c-border) !important;
  color: var(--c-text);
}
[data-theme="dark"] .portal-title,
[data-theme="dark"] .portal-subtitle,
[data-theme="dark"] .stat-label,
[data-theme="dark"] .portal-widget-hd {
  color: var(--c-text-2);
}
[data-theme="dark"] .stat-value,
[data-theme="dark"] .portal-widget-title {
  color: var(--c-text);
}
