/* 小境空间总控门户 — 视觉层级与产品栅格参考 Unity 官网（深色、分带、大卡片） */

:root {
  --portal-bg: #0d0d0f;
  --portal-bg-elevated: #111114;
  --portal-surface: #16161a;
  --portal-surface-hover: #1e1e24;
  --portal-border: rgba(255, 255, 255, 0.07);
  --portal-border-strong: rgba(255, 255, 255, 0.12);
  --portal-text: #ececf1;
  --portal-muted: rgba(236, 236, 241, 0.65);
  --portal-faint: rgba(236, 236, 241, 0.4);
  --portal-accent: #ff7a18;
  --portal-accent-soft: rgba(255, 122, 24, 0.14);
  --portal-blue: #6eb6ff;
  --portal-blue-soft: rgba(110, 182, 255, 0.12);
  --portal-max: 1280px;
  --portal-radius-lg: 16px;
  --portal-radius-md: 12px;
  --portal-font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

html.portal-page,
html.portal-page body {
  margin: 0;
  padding: 0;
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--portal-font);
  background: var(--portal-bg);
  color: var(--portal-text);
  -webkit-font-smoothing: antialiased;
}

.portal-skip {
  position: absolute;
  left: -9999px;
}

/* —— 顶栏 —— */
.portal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 15, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--portal-border);
}

.portal-header-inner {
  max-width: var(--portal-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--portal-text);
}

.portal-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--portal-accent), #ff9a4d);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #0a0a0a;
}

.portal-brand-text {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.portal-nav a {
  color: var(--portal-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.portal-nav a:hover {
  color: var(--portal-text);
  background: rgba(255, 255, 255, 0.06);
}

.portal-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #0a0a0a;
  background: var(--portal-text);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.portal-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.portal-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--portal-text);
  background: transparent;
  border: 1px solid var(--portal-border);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.portal-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

/* —— Hero —— */
.portal-hero {
  position: relative;
  padding: 72px 24px 96px;
  overflow: hidden;
}

.portal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -25%, rgba(110, 182, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 45% at 95% 20%, rgba(255, 122, 24, 0.07), transparent),
    radial-gradient(ellipse 40% 50% at 0% 80%, rgba(110, 182, 255, 0.05), transparent),
    linear-gradient(180deg, #121218 0%, var(--portal-bg) 72%);
  pointer-events: none;
}

.portal-inline-link {
  color: var(--portal-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 182, 255, 0.35);
  transition: color 0.15s, border-color 0.15s;
}

.portal-inline-link:hover {
  color: #9dccff;
  border-bottom-color: rgba(157, 204, 255, 0.55);
}

.portal-hero-inner {
  position: relative;
  max-width: var(--portal-max);
  margin: 0 auto;
}

.portal-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--portal-accent);
  margin-bottom: 16px;
}

.portal-hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: min(100%, 22em);
}

.portal-hero-lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--portal-muted);
  max-width: 52ch;
  margin-bottom: 28px;
}

.portal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.portal-chip {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--portal-muted);
  border: 1px solid var(--portal-border);
}

.portal-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* —— 区块标题 —— */
.portal-section {
  padding: 72px 24px 80px;
  border-top: 1px solid var(--portal-border);
}

.portal-section--band {
  background: var(--portal-bg-elevated);
  border-top-color: transparent;
  box-shadow: inset 0 1px 0 var(--portal-border);
}

.portal-section-head {
  max-width: var(--portal-max);
  margin: 0 auto 40px;
}

.portal-section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

.portal-section-head p {
  margin: 0;
  font-size: 16px;
  color: var(--portal-muted);
  max-width: 60ch;
}

/* —— 解决方案卡片 —— */
.portal-grid {
  max-width: var(--portal-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

@media (min-width: 1100px) {
  .portal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portal-card {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  border-radius: var(--portal-radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%),
    var(--portal-surface);
  border: 1px solid var(--portal-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  min-height: 220px;
}

a.portal-card:hover {
  border-color: var(--portal-border-strong);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
    var(--portal-surface-hover);
  transform: translateY(-3px);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 122, 24, 0.12);
}

.portal-card.portal-card--disabled {
  pointer-events: none;
  opacity: 0.55;
}

.portal-card-icon {
  font-size: 28px;
  margin-bottom: 14px;
  line-height: 1;
}

.portal-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.portal-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--portal-muted);
  flex: 1;
}

.portal-card-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--portal-accent-soft);
  color: var(--portal-accent);
}

.portal-badge--live {
  background: var(--portal-blue-soft);
  color: var(--portal-blue);
}

.portal-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--portal-text);
}

a.portal-card:hover .portal-card-link {
  color: var(--portal-accent);
}

/* —— 资源条 —— */
.portal-resources {
  max-width: var(--portal-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-resource {
  flex: 1 1 160px;
  padding: 20px 22px;
  border-radius: 10px;
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  text-decoration: none;
  color: var(--portal-text);
  transition: border-color 0.15s, background 0.15s;
}

.portal-resource:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--portal-surface-hover);
}

.portal-resource strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.portal-resource span {
  font-size: 13px;
  color: var(--portal-muted);
}

/* —— 合作与页脚 —— */
.portal-partners {
  max-width: var(--portal-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
}

.portal-partner {
  font-size: 14px;
  color: var(--portal-muted);
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--portal-border);
  background: rgba(255, 255, 255, 0.02);
}

.portal-footer {
  padding: 56px 24px 0;
  border-top: 1px solid var(--portal-border);
  margin-top: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
}

.portal-footer-inner {
  max-width: var(--portal-max);
  margin: 0 auto;
  padding-bottom: 40px;
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  font-size: 14px;
  color: var(--portal-muted);
}

.portal-footer h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--portal-faint);
  margin: 0 0 14px;
}

.portal-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.portal-footer li {
  margin-bottom: 10px;
}

.portal-footer a {
  color: var(--portal-muted);
  text-decoration: none;
}

.portal-footer a:hover {
  color: var(--portal-text);
}

/* 页脚法律信息 — Unity 式底栏：居中、弱对比、备案可点 */
.portal-footer-legal {
  max-width: var(--portal-max);
  margin: 0 auto;
  padding: 28px 24px 36px;
  border-top: 1px solid var(--portal-border);
  text-align: center;
}

.portal-footer-copyright {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--portal-muted);
}

.portal-footer-icp {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.portal-footer-icp a {
  color: var(--portal-faint);
  text-decoration: none;
  transition: color 0.15s;
}

.portal-footer-icp a:hover {
  color: var(--portal-muted);
}

@media (max-width: 720px) {
  .portal-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-nav {
    width: 100%;
    justify-content: flex-start;
  }
}
.logo {
    
  font-size: 1.5rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-items: center;
}

.logo img {
 
  height: 40px;
  width: auto;
}