/* 门户 · 橙白极简 + 高级玻璃 */
@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: flex; }

.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;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}
.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: center;
  justify-content: space-between;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.portal-section-hd-actions,
.portal-section-hd-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.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;
}
.portal-row {
  display: grid;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}
.portal-row:last-child { margin-bottom: 0; }
.portal-row-apps,
.portal-row-msg {
  grid-template-columns: 1fr 1fr;
}
.portal-row-apps .portal-shortcuts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.portal-banner-panel {
  min-height: 320px;
  padding: 0;
  overflow: hidden;
}
.portal-carousel {
  position: relative;
  height: 100%;
  min-height: 320px;
  border-radius: inherit;
  overflow: hidden;
}
.portal-carousel-track {
  position: relative;
  height: 100%;
  min-height: 320px;
  background: #fffaf3;
}
.portal-carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 28px 32px;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
  background:
    radial-gradient(520px 220px at 78% 18%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(135deg, var(--slide-a, #1a2744) 0%, var(--slide-b, #ff6b00) 100%);
}
.portal-carousel-slide.on {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}
.portal-carousel-slide.is-leaving {
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}
.portal-carousel-slide.has-cover {
  background: #1a2744;
  padding: 0;
  align-items: flex-end;
}
.portal-carousel-slide[data-ann-id] { cursor: pointer; }
.portal-carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portal-carousel-slide.has-cover .portal-carousel-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding: 28px 32px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 100%);
}
.portal-carousel-copy {
  color: #fff;
  max-width: 320px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.portal-carousel-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  opacity: 0.78;
  font-weight: 600;
}
.portal-carousel-copy h4 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.portal-carousel-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.9;
}
.portal-carousel-dots {
  position: absolute;
  left: 28px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.portal-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: 0.2s ease;
}
.portal-carousel-dot.on {
  width: 20px;
  background: #fff;
}
.portal-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}
.portal-carousel-nav:hover { background: rgba(255, 255, 255, 0.32); }
.portal-carousel-nav.prev { left: 12px; }
.portal-carousel-nav.next { right: 12px; }
.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;
  min-height: 0;
}
.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(--sc-tone, var(--orange));
  background: linear-gradient(145deg, rgba(255, 107, 0, 0.12), rgba(255, 154, 46, 0.06));
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--sc-tone, #ff6b00) 16%, white),
    color-mix(in srgb, var(--sc-tone, #ff6b00) 6%, white)
  );
}
.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: flex;
  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-row.is-dragging { opacity: 0.45; }
.portal-app-cfg-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.portal-app-cfg-name { font-size: 14px; }

.modal.sc-cfg-modal {
  width: 800px;
  max-width: min(800px, calc(100vw - 32px));
}
.modal.sc-cfg-modal .modal-bd {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sc-cfg-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  flex-shrink: 0;
}
.sc-cfg-bar .sc-app-label {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--c-text-2);
  font-weight: 500;
}
.sc-cfg-bar #sc-app-select {
  width: 200px;
  flex: 0 0 200px;
  margin: 0;
}
.sc-cfg-hint {
  font-size: 12px;
  color: var(--c-text-3);
  margin: 0;
  line-height: 1.5;
  flex: 1;
  min-width: 0;
}
@media (max-width: 720px) {
  .sc-cfg-bar { flex-wrap: wrap; }
  .sc-cfg-bar #sc-app-select { flex: 1; width: auto; }
  .sc-cfg-bar .sc-cfg-hint { flex-basis: 100%; }
}
.sc-transfer {
  flex: 1;
  min-height: 280px;
  height: min(420px, calc(85vh - 200px));
  align-items: stretch;
}
.sc-transfer > .transfer-col {
  min-height: 0;
  height: 100%;
}
.sc-transfer .transfer-list {
  min-height: 0;
  overflow-y: auto;
}
.transfer-mid-tip{font-size:12px;text-align:center;margin:0;max-width:52px;line-height:1.4}
.sc-group-hd {
  padding: 8px 12px 4px;
  font-size: 12px;
  color: var(--c-text-3);
  font-weight: 600;
}
.sc-move-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: #fff;
  color: var(--c-primary);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
}
.sc-move-btn:hover {
  border-color: var(--c-primary);
  background: rgba(255, 107, 0, 0.06);
}
.sc-sel-meta {
  flex: 0.9 !important;
  font-size: 12px;
  color: var(--c-text-3);
}
.sc-drag {
  cursor: grab;
  color: var(--c-text-3);
  font-size: 12px;
  letter-spacing: -2px;
  user-select: none;
  flex-shrink: 0;
  padding: 0 2px;
}
.sc-drag:active { cursor: grabbing; }
.transfer-item.is-dragging { opacity: 0.45; }

@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,
  .portal-row-apps,
  .portal-row-msg { 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,
  .portal-row-apps .portal-shortcuts { grid-template-columns: repeat(3, 1fr); }
  .portal-welcome-card .portal-shortcuts { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .portal-banner-panel,
  .portal-carousel,
  .portal-carousel-track { min-height: 220px; }
  .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-welcome-card .portal-shortcuts { grid-template-columns: repeat(7, minmax(0, 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);
}

/* ========== 参考图样式：浅灰底 + 白卡片 ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app:has(.portal-body-ref) {
  background: #f5f6f8;
}
.app:has(.portal-body-ref) .main {
  margin: 0;
  border-radius: 0;
  border: none;
  background: #f5f6f8;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.app:has(.portal-body-ref) .main::before,
.app:has(.portal-body-ref) .main::after {
  display: none;
}
.app:has(.portal-body-ref) .sb {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-right: 1px solid #eceef2;
}

.portal-body-ref {
  max-width: none;
  margin: 0;
  padding: 24px 32px 36px;
  flex: 0 0 auto;
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.portal-welcome-hd,
.portal-welcome-card {
  flex-shrink: 0;
  margin-bottom: 0;
}
.portal-welcome-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(420px 200px at 94% 0%, rgba(255, 176, 96, 0.38), transparent 58%),
    radial-gradient(260px 140px at 4% 110%, rgba(255, 107, 0, 0.07), transparent 55%),
    linear-gradient(180deg, #fff6eb 0%, #ffffff 68%);
  border-radius: 8px;
  padding: 22px 24px 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.portal-welcome-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.portal-welcome-deco::before,
.portal-welcome-deco::after {
  content: '';
  position: absolute;
}
.portal-welcome-deco::before {
  width: 168px;
  height: 168px;
  right: -24px;
  top: -72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 186, 110, 0.55), rgba(255, 186, 110, 0) 68%);
}
.portal-welcome-deco::after {
  width: 64px;
  height: 64px;
  right: 18%;
  top: 22px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 214, 170, 0.7), rgba(255, 140, 50, 0.18));
  transform: rotate(22deg);
}
.portal-welcome-top,
.portal-welcome-card .portal-shortcuts {
  position: relative;
  z-index: 1;
}
.portal-welcome-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.portal-welcome-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  color: #1f2329;
  letter-spacing: 0;
  line-height: 1.4;
}
.portal-wave {
  font-size: 22px;
  line-height: 1;
}
.portal-welcome-desc {
  margin: 0;
  font-size: 13px;
  color: #86909c;
  line-height: 1.6;
}
.portal-cfg-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: #86909c;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.portal-cfg-btn:hover { color: #ff6b00; }
.portal-cfg-ic {
  width: 14px;
  height: 14px;
}

.portal-kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.portal-kpi-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  text-decoration: none !important;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.portal-kpi-item:hover {
  background: #fff;
  color: inherit;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}
.portal-kpi-ic {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.portal-kpi-ic svg {
  width: 18px;
  height: 18px;
}
.portal-kpi-item.is-todo .portal-kpi-ic { color: #ff6b00; background: #fff4e8; }
.portal-kpi-item.is-done .portal-kpi-ic { color: #52c41a; background: #f0f9eb; }
.portal-kpi-item.is-unread .portal-kpi-ic { color: #fa8c16; background: #fff7e6; }
.portal-kpi-item.is-read .portal-kpi-ic { color: #8c9bb5; background: #f4f6f9; }
.portal-kpi-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.portal-kpi-label {
  font-size: 12px;
  color: #86909c;
  line-height: 1.2;
  white-space: nowrap;
}
.portal-kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: #1d2129;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.portal-kpi-item.is-todo .portal-kpi-value { color: #ff6b00; }
.portal-kpi-item.is-muted .portal-kpi-value { color: #4e5969; font-weight: 600; }
@media (max-width: 980px) {
  .portal-kpi { grid-template-columns: 1fr 1fr; gap: 12px; }
}
.portal-body-ref .stat-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 96px;
  padding: 18px 24px 18px 22px;
  border-radius: 16px;
  background: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  text-decoration: none !important;
  color: inherit;
  transform: none;
  overflow: visible;
}
.portal-body-ref .stat-card::before,
.portal-body-ref .stat-card::after { display: none; }
.portal-body-ref .stat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
  color: inherit;
}
.portal-body-ref .stat-card-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}
.portal-body-ref .stat-label {
  font-size: 13px;
  letter-spacing: 0;
  color: #8c9199;
  font-weight: 400;
  line-height: 1;
}
.portal-body-ref .stat-value {
  font-family: inherit;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #111;
  animation: none;
}
.portal-body-ref .stat-hint { display: none; }
.portal-body-ref .stat-card-ic {
  --ic-pale: #feebf3;
  --ic-solid: #f23f5d;
  --ic-solid-hi: #ff6b88;
  width: 64px;
  height: 64px;
  position: relative;
  flex-shrink: 0;
  display: block;
  isolation: isolate;
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: #fff;
}
.portal-body-ref .stat-card-ic::before,
.portal-body-ref .stat-card-ic::after { display: none; }
.portal-body-ref .stat-card-ic-base {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: var(--ic-pale);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--ic-solid) 22%, transparent);
}
.portal-body-ref .stat-card-ic-back {
  position: absolute;
  width: 38px;
  height: 38px;
  left: 8px;
  top: 13px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--ic-solid-hi), var(--ic-solid));
  box-shadow:
    -6px 8px 16px color-mix(in srgb, var(--ic-solid) 42%, transparent),
    0 4px 10px color-mix(in srgb, var(--ic-solid) 28%, transparent);
  z-index: 1;
}
.portal-body-ref .stat-card-ic-glass {
  position: absolute;
  width: 38px;
  height: 38px;
  left: 18px;
  top: 13px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255,255,255,.7), rgba(255,255,255,.22));
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.82);
  box-shadow:
    0 10px 18px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255,255,255,.95);
  z-index: 2;
}
.portal-body-ref .stat-card-ic-glass svg {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--ic-solid) 30%, transparent));
}
.portal-body-ref .tone-todo .stat-card-ic {
  --ic-pale: #feebf3;
  --ic-solid: #f23f5d;
  --ic-solid-hi: #ff6b88;
}
.portal-body-ref .tone-done .stat-card-ic {
  --ic-pale: #eef8e4;
  --ic-solid: #52c41a;
  --ic-solid-hi: #8ee05a;
}
.portal-body-ref .tone-unread .stat-card-ic {
  --ic-pale: #fff4e0;
  --ic-solid: #fa8c16;
  --ic-solid-hi: #ffc53d;
}
.portal-body-ref .tone-read .stat-card-ic {
  --ic-pale: #e8f3ff;
  --ic-solid: #1677ff;
  --ic-solid-hi: #69c0ff;
}

.portal-body-ref .portal-workbench {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-height: 0;
  align-items: stretch;
}
.portal-body-ref .portal-workbench-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  height: max-content;
}
.portal-body-ref .portal-workbench .portal-msg-panel {
  display: flex;
  flex-direction: column;
  height: 0;
  min-height: 100%;
  overflow: hidden;
  align-self: stretch;
}
.portal-body-ref .portal-workbench .portal-msg-panel .portal-section-hd,
.portal-body-ref .portal-workbench .portal-msg-tabs {
  flex-shrink: 0;
}
.portal-body-ref .portal-workbench .portal-msg-detail-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-gutter: stable;
}
.portal-body-ref .portal-workbench .portal-msg-detail-list::-webkit-scrollbar {
  width: 6px;
}
.portal-body-ref .portal-workbench .portal-msg-detail-list::-webkit-scrollbar-track {
  background: transparent;
}
.portal-body-ref .portal-workbench .portal-msg-detail-list::-webkit-scrollbar-thumb {
  background: #e5e6eb;
  border-radius: 6px;
}
.portal-body-ref .portal-workbench .portal-banner-panel {
  flex: 0 0 280px;
  height: 280px;
  min-height: 280px;
  padding: 0;
}
.portal-body-ref .portal-workbench .portal-apps-sec {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.portal-body-ref .portal-row {
  gap: 20px;
  margin-bottom: 0;
  min-height: 0;
  flex: 0 0 auto;
}
.portal-body-ref .portal-row-apps,
.portal-body-ref .portal-row-msg {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.portal-body-ref .portal-row-msg {
  height: 320px;
}
.portal-body-ref .portal-section {
  border-radius: 8px;
  padding: 20px 22px 18px;
  background: #fff;
  border: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
}
.portal-body-ref .portal-shortcuts-sec { display: none; }
.portal-body-ref .portal-section::before,
.portal-body-ref .portal-section::after { display: none; }
.portal-body-ref .portal-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.portal-body-ref .portal-section-hd h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1d2129;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.portal-body-ref .portal-section-hd h3::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: #ff6b00;
}
.portal-more-lk,
.portal-more-btn {
  font-size: 12px;
  color: #86909c;
  text-decoration: none !important;
  white-space: nowrap;
  border: none;
  background: none;
  height: auto;
  padding: 0;
}
.portal-more-lk:hover,
.portal-more-btn:hover { color: #ff6b00; }

.portal-welcome-card .portal-shortcuts {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  overflow: visible;
}
.portal-welcome-card .portal-shortcut {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  min-width: 0;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  background: #f5f6f8;
  border: none;
  box-shadow: none;
  color: #1d2129;
  text-decoration: none !important;
  cursor: pointer;
}
.portal-welcome-card .portal-shortcut:hover {
  transform: none;
  background: #eceef2;
  box-shadow: none;
  border: none;
  color: #1d2129;
}
.portal-welcome-card .portal-shortcut-ic { display: none; }
.portal-welcome-card .portal-shortcut-name {
  font-size: 13px;
  font-weight: 400;
  color: inherit;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.portal-welcome-card .portal-shortcut.is-add {
  min-width: 36px;
  width: 36px;
  padding: 0;
  font-size: 18px;
  font-weight: 400;
  color: #86909c;
  justify-self: start;
}
.portal-welcome-card .portal-shortcut.is-add:hover {
  color: #ff6b00;
  background: #fff7e8;
}

.portal-body-ref #portal-app-grid.app-grid-home,
.portal-body-ref .app-grid-3x3,
.portal-body-ref .app-grid-home {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, 64px);
  gap: 6px 4px;
  height: calc(4 * 64px + 3 * 6px);
  min-height: calc(4 * 64px + 3 * 6px);
  align-content: start;
}
.portal-body-ref .portal-workbench .app-tile {
  height: 64px;
  box-sizing: border-box;
}
.portal-body-ref .app-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
  border-radius: 8px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 12px 24px 12px 8px;
  gap: 10px;
  text-align: left;
  backdrop-filter: none;
  cursor: pointer;
}
.portal-body-ref .app-tile:hover {
  background: #f7f8fa;
  border: none;
  transform: none;
  box-shadow: none;
}
.portal-body-ref .app-tile .app-ic {
  width: 40px;
  height: 40px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--app-tone, #ff6b00);
  background: color-mix(in srgb, var(--app-tone, #ff6b00) 14%, #fff);
  box-shadow: none;
}
.portal-body-ref .app-tile:hover .app-ic { transform: none; }
.portal-body-ref .app-tile .app-ic svg { width: 18px; height: 18px; }
.portal-body-ref .app-tile-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
.portal-body-ref .app-tile .app-name {
  font-size: 13px;
  color: #1d2129;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.portal-body-ref .app-tile .app-desc {
  font-size: 12px;
  color: #86909c;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.portal-body-ref .app-tile-more {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #86909c;
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  cursor: pointer;
  user-select: none;
}
.portal-body-ref .app-tile:hover .app-tile-more,
.portal-body-ref .app-tile:focus-within .app-tile-more {
  opacity: 1;
}
.portal-body-ref .app-tile-more:hover { background: #eceef2; color: #1d2129; }
.portal-body-ref .app-tile-menu {
  position: absolute;
  top: 28px;
  right: 6px;
  z-index: 4;
  min-width: 128px;
  padding: 4px;
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}
.portal-body-ref .app-tile-menu button {
  display: block;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  padding: 7px 10px;
  font-size: 12px;
  color: #1d2129;
  border-radius: 4px;
  cursor: pointer;
}
.portal-body-ref .app-tile-menu button:hover { background: #f7f8fa; color: #ff6b00; }
.portal-body-ref .app-tile.is-soon {
  opacity: 0.55;
  cursor: default;
}
.portal-body-ref .app-tile.is-soon:hover { background: transparent; }
.portal-body-ref .app-tile.is-soon .app-ic {
  color: #c0c4cc;
  background: #f2f3f5;
}
.portal-body-ref .app-tile.is-add {
  border: 1px dashed rgba(255, 107, 0, 0.35);
  background: #fff;
}
.portal-body-ref .app-tile.is-add:hover {
  background: #fff7e8;
  border-color: #ff6b00;
}
.portal-body-ref .app-tile.is-add .app-ic {
  background: transparent;
  color: #ff6b00;
  border-radius: 12px;
}

.portal-msg-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid #f2f3f5;
}
.portal-msg-tab {
  position: relative;
  height: 32px;
  padding: 0 2px 8px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #86909c;
  font-size: 13px;
  cursor: pointer;
}
.portal-msg-tab.on {
  background: transparent;
  color: #ff6b00;
  font-weight: 600;
}
.portal-msg-tab.on::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #ff6b00;
  border-radius: 1px;
}
.portal-msg-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  margin-left: 6px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ff6b00;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  vertical-align: 1px;
}
.portal-msg-tab-badge[hidden] { display: none; }
.portal-msg-tab-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 50%;
  background: #ff6b00;
  vertical-align: 2px;
}
.portal-msg-tab-dot.is-off { display: none; }
.portal-body-ref .portal-msg-panel,
.portal-body-ref .portal-banner-panel {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.portal-body-ref .portal-msg-detail-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.portal-body-ref .portal-msg-pgnt { display: none; }
.portal-msg-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: start;
  padding: 10px 8px 10px 4px;
  border-bottom: 1px solid #f2f3f5;
  cursor: pointer;
  text-decoration: none !important;
  color: inherit;
}
.portal-msg-item:last-child { border-bottom: none; }
.portal-msg-item:hover { background: transparent; }
.portal-msg-dot {
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: #ff6b00;
}
.portal-msg-item.is-read .portal-msg-dot { background: #c9cdd4; }
.portal-msg-item.is-must .portal-msg-title { color: #ff6b00; }
.portal-msg-ic { display: none; }
.portal-msg-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.portal-msg-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d2129;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-msg-desc {
  font-size: 12px;
  color: #86909c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-msg-time,
.portal-msg-meta {
  font-size: 12px;
  color: #c0c4cc;
}
.portal-msg-act {
  align-self: center;
  flex-shrink: 0;
}
.portal-msg-go {
  display: inline-flex;
  align-items: center;
  height: auto;
  padding: 4px 0;
  border-radius: 0;
  background: none;
  color: #ff6b00 !important;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none !important;
  white-space: nowrap;
}
.portal-msg-item:hover .portal-msg-go {
  background: none;
  color: #f25900 !important;
}
.portal-msg-read {
  border: none;
  background: none;
  color: #86909c;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  padding: 4px 0;
}
.portal-msg-read:hover { color: #ff6b00; }

.portal-body-ref .portal-banner-panel { padding: 0; overflow: hidden; }
.portal-body-ref .portal-banner-panel.portal-section {
  min-height: 280px;
  height: 280px;
}
.portal-body-ref .portal-carousel,
.portal-body-ref .portal-carousel-track {
  flex: 1;
  min-height: 100%;
  height: 100%;
}
.portal-body-ref .portal-carousel-slide {
  padding: 32px 36px 40px;
  align-items: center;
}
.portal-body-ref .portal-carousel-art {
  position: absolute;
  right: 6%;
  top: 48%;
  width: 200px;
  height: 168px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}
.portal-body-ref .portal-carousel-art svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 12px 16px rgba(255, 140, 50, 0.18));
}
.portal-body-ref .portal-carousel-slide.has-cover .portal-carousel-art { display: none; }
.portal-body-ref .portal-carousel-slide.slide-a,
.portal-body-ref .portal-carousel-slide.slide-b,
.portal-body-ref .portal-carousel-slide.slide-c {
  background:
    radial-gradient(240px 160px at 82% 46%, rgba(255, 176, 96, 0.22), transparent 64%),
    linear-gradient(180deg, #fffaf3 0%, #ffffff 78%);
}
.portal-body-ref .portal-carousel-copy {
  position: relative;
  z-index: 1;
  max-width: 52%;
  color: #1d2129;
  text-shadow: none;
}
.portal-body-ref .portal-carousel-copy h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: #1d2129;
}
.portal-body-ref .portal-carousel-copy p { display: none; }
.portal-body-ref .portal-carousel-kicker {
  display: block;
  color: #ff6b00;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.portal-body-ref .portal-carousel-slide.has-cover .portal-carousel-copy {
  color: #fff;
  text-shadow: 0 6px 18px rgba(0,0,0,.25);
  max-width: none;
}
.portal-body-ref .portal-carousel-slide.has-cover .portal-carousel-copy h4 { color: #fff; }
.portal-body-ref .portal-carousel-slide.has-cover .portal-carousel-kicker { display: none; }
.portal-carousel-scene,
.pc-float-card,
.pc-chip,
.pc-orb,
.pc-grid { display: none !important; }
.portal-body-ref .portal-carousel-dots {
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
}
.portal-body-ref .portal-carousel-dot {
  width: 6px;
  height: 6px;
  background: #e5e6eb;
}
.portal-body-ref .portal-carousel-dot.on {
  width: 16px;
  border-radius: 6px;
  background: #ff6b00;
  box-shadow: none;
}
.portal-body-ref .portal-icon-btn { display: none; }
.portal-body-ref .portal-carousel-nav { display: none; }

@media (max-width: 1100px) {
  .portal-body-ref .portal-workbench {
    grid-template-columns: 1fr;
  }
  .portal-body-ref .portal-workbench .portal-msg-panel {
    height: auto;
    min-height: 0;
    max-height: 560px;
  }
  .portal-body-ref .portal-workbench .portal-banner-panel {
    height: 280px;
    min-height: 280px;
  }
  .portal-body-ref #portal-app-grid.app-grid-home,
  .portal-body-ref .app-grid-home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .portal-body-ref { padding: 16px 16px 24px; gap: 16px; }
  .portal-body-ref .portal-workbench { grid-template-columns: 1fr; }
  .portal-body-ref .portal-msg-panel { min-height: 280px; }
  .portal-body-ref .portal-banner-panel {
    height: 280px;
    min-height: 280px;
  }
  .portal-body-ref #portal-app-grid.app-grid-home,
  .portal-body-ref .app-grid-home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .portal-body-ref .app-grid-3x3,
  .portal-body-ref #portal-app-grid.app-grid-home,
  .portal-body-ref .app-grid-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(6, 64px);
    height: calc(6 * 64px + 5 * 6px);
    min-height: calc(6 * 64px + 5 * 6px);
  }
  .portal-welcome-title { font-size: 18px; }
}
