/* 智工网 — 深色未来感 + 智能体打工视觉 */
:root {
  --bg-deep: #070a10;
  --bg-surface: #0e131d;
  --bg-card: #121a28;
  --bg-card-hover: #162032;
  --border: rgba(56, 189, 248, 0.12);
  --border-glow: rgba(34, 211, 238, 0.35);
  --cyan: #22d3ee;
  --cyan-dim: #0891b2;
  --blue: #38bdf8;
  --indigo: #6366f1;
  --text: #e8edf7;
  --text-muted: #8b9aaf;
  --text-heading: #f1f5ff;
  --radius: 14px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

/* 细密网格 + 深色底 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 20%, transparent 75%);
}

a {
  color: var(--cyan);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--cyan);
  color: #042f2e;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* 备案进度提示条 */
.icp-banner {
  position: relative;
  z-index: 60;
  background: rgba(251, 191, 36, 0.1);
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
}

.icp-banner-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
}

.icp-banner p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #fde68a;
}

.icp-banner-close {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: #fcd34d;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.icp-banner-close:hover {
  background: rgba(0, 0, 0, 0.4);
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(99, 102, 241, 0.12), transparent),
    radial-gradient(ellipse 45% 35% at 0% 80%, rgba(56, 189, 248, 0.08), transparent);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 16, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text-heading);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
  color: var(--cyan);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--cyan), var(--indigo));
  display: grid;
  place-items: center;
  color: #041016;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--cyan);
}

/* 首页顶栏：少占一行，锚点入口合并为「本页介绍」，详见页脚「站内」 */
.page-home .header-inner {
  flex-wrap: wrap;
  row-gap: 0.45rem;
}
.page-home .nav-links--home {
  order: 3;
  flex: 1 1 100%;
  justify-content: center;
  gap: 0.28rem 0.75rem;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.page-home .brand {
  order: 1;
}
.page-home .nav-cta {
  order: 2;
  margin-left: auto;
}
.page-home .nav-links--home a {
  font-size: 0.84rem;
}
@media (min-width: 1100px) {
  .page-home .header-inner {
    flex-wrap: nowrap;
    align-items: center;
  }
  .page-home .nav-links--home {
    order: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
    padding-top: 0;
    border-top: none;
    margin-right: 0.5rem;
    max-width: 42rem;
  }
  .page-home .brand {
    order: 0;
  }
  .page-home .nav-cta {
    order: 0;
    margin-left: 0;
  }
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-ghost {
  background: rgba(18, 26, 40, 0.6);
  border-color: var(--border);
  color: var(--text-heading);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.12);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2dd4bf, var(--cyan-dim));
  color: #042f2e;
  border-color: transparent;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.25);
}
.btn-primary:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

/* Hero 双栏 + 打工流水线 */
.hero {
  padding: 2.75rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
    align-items: center;
  }
}

.hero-copy {
  text-align: center;
}

@media (min-width: 960px) {
  .hero-copy {
    text-align: left;
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--cyan);
  border: 1px solid var(--border);
  background: rgba(34, 211, 238, 0.08);
  margin-bottom: 1.1rem;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-heading);
}

.hero h1 span {
  background: linear-gradient(90deg, #67e8f9, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 36rem;
  margin: 0 auto 1.1rem;
  font-size: 1.02rem;
  color: var(--text-muted);
}

@media (min-width: 960px) {
  .hero-lead {
    margin: 0 0 1.1rem;
  }
}

.hero-chips {
  list-style: none;
  margin: 0 auto 1.35rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

@media (min-width: 960px) {
  .hero-chips {
    justify-content: flex-start;
    margin: 0 0 1.35rem;
  }
}

.hero-chips li {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  color: var(--text-muted);
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(99, 102, 241, 0.06);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

@media (min-width: 960px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.hero-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .hero-note {
    margin: 0;
  }
}

/* 右侧：智能体打工示意 */
.hero-visual {
  background: linear-gradient(160deg, rgba(18, 26, 40, 0.95), rgba(10, 14, 22, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem 1rem;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.45);
}

.work-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}

.wp-stage {
  flex: 1 1 120px;
  min-width: 100px;
  padding: 0.65rem 0.5rem;
  border-radius: 10px;
  background: rgba(7, 10, 16, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.08);
}

.wp-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  opacity: 0.9;
  margin-bottom: 0.5rem;
  text-align: center;
}

.wp-cards {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wp-card {
  font-size: 0.72rem;
  padding: 0.4rem 0.45rem;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.08);
  color: var(--text-muted);
  border: 1px solid transparent;
  text-align: center;
}

.wp-card-pulse {
  animation: card-pulse 2.4s ease-in-out infinite;
}

@keyframes card-pulse {
  0%,
  100% {
    border-color: rgba(34, 211, 238, 0.2);
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
  }
  50% {
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.15);
  }
}

.wp-connector {
  align-self: center;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
  opacity: 0.65;
  position: relative;
}

.wp-connector::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--cyan);
}

.wp-connector-out {
  transform: scaleX(-1);
}

.wp-stage-agents {
  flex: 1.15 1 140px;
  border-color: rgba(34, 211, 238, 0.18);
  box-shadow: inset 0 0 24px rgba(34, 211, 238, 0.04);
}

.agent-nodes {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.25rem 0;
}

.agent-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.agent-node small {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.agent-core {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1e293b, #0f172a);
  border: 2px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.15);
  display: block;
}

.agent-node-busy .agent-core {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.45);
  animation: agent-pulse 1.8s ease-in-out infinite;
}

@keyframes agent-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.wp-hint {
  margin: 0.45rem 0 0;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
}

.wp-out {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wp-pill {
  font-size: 0.72rem;
  padding: 0.4rem 0.5rem;
  border-radius: 999px;
  text-align: center;
  background: rgba(99, 102, 241, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.wp-pill-glow {
  color: #ecfeff;
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.1);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.12);
}

.wp-caption {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
  .wp-card-pulse,
  .agent-node-busy .agent-core {
    animation: none;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.25rem 0 2.75rem;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
  padding: 1.1rem 0.75rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.1);
}

.stat strong {
  display: block;
  font-size: 1.22rem;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

section {
  padding: 2.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.28rem, 3vw, 1.65rem);
  color: var(--text-heading);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.section-head p + p,
.section-head .section-sub {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  opacity: 0.95;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.step {
  padding: 1.3rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.1);
  transition: border-color 0.2s, background 0.2s;
}

.step:hover {
  background: var(--bg-card-hover);
  border-color: rgba(34, 211, 238, 0.2);
}

.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  color: var(--text-heading);
}

.step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.card-icon {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 10px;
  margin-bottom: 0.6rem;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #041016;
  background: linear-gradient(145deg, var(--cyan), var(--blue));
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.25);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  color: var(--text-heading);
}

.card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.compliance {
  border-radius: var(--radius);
  padding: 1.45rem 1.3rem;
  background: rgba(18, 26, 40, 0.65);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.compliance h2 {
  margin: 0 0 0.6rem;
  font-size: 1.08rem;
  color: var(--text-heading);
}

.compliance ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.compliance li {
  margin: 0.32rem 0;
}

.cta-band {
  text-align: center;
  padding: 2.35rem 1.35rem;
  margin: 2rem 0;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(18, 26, 40, 0.9), rgba(8, 11, 18, 0.98));
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.06);
}

.cta-band h2 {
  margin: 0 0 0.45rem;
  color: var(--text-heading);
}

.cta-band p {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.adv-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.1);
  border-left: 3px solid var(--cyan-dim);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.adv-card:hover {
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.adv-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--text-heading);
}

.adv-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.audience-card {
  padding: 1.4rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(18, 26, 40, 0.95), rgba(12, 17, 26, 0.98));
  border: 1px solid rgba(99, 102, 241, 0.22);
}

.audience-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #c7d2fe;
}

.audience-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 0.65rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.1);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-heading);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--cyan);
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] {
  border-color: rgba(34, 211, 238, 0.25);
}

.faq-item summary:hover {
  background: rgba(34, 211, 238, 0.04);
}

.faq-item p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid rgba(56, 189, 248, 0.08);
  padding-top: 0.85rem;
}

.site-footer {
  padding: 2.5rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.84rem;
  background: rgba(7, 10, 16, 0.92);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem 1.5rem;
  text-align: left;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}

.footer-brand .footer-logo {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.footer-brand .footer-tagline {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-brand .footer-copy {
  margin: 0;
  font-size: 0.8rem;
}

.footer-heading {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 0.4rem 0;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-legal {
  text-align: center;
  padding-top: 1.25rem;
  padding-bottom: 0.5rem;
}

.footer-legal p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.site-footer strong {
  color: var(--text-heading);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-heading {
    margin-top: 0.5rem;
  }

  .footer-links {
    padding: 0;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    gap: 0.5rem 0.85rem;
  }

  .nav-links a {
    font-size: 0.82rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .work-pipeline {
    flex-direction: column;
  }

  .wp-connector {
    width: 3px;
    height: 22px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--cyan-dim), var(--cyan));
  }

  .wp-connector::after {
    right: 50%;
    top: auto;
    bottom: -2px;
    transform: translateX(50%) rotate(90deg);
  }

  .wp-connector-out {
    transform: scaleY(-1);
  }

  .roadmap-track::before {
    left: 0.5rem;
  }

  .roadmap-item {
    padding-left: 2.15rem;
  }

  .roadmap-item::before {
    left: 0.1rem;
  }
}

/* 内页：关于 / 隐私 */
.page-main {
  padding: 2rem 0 3rem;
}

.page-header {
  max-width: 42rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.page-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--text-heading);
  line-height: 1.25;
}

.page-lead {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-banner {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fcd34d;
  font-size: 0.9rem;
  text-align: left;
}

.prose {
  max-width: 42rem;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.prose h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.15rem;
  color: var(--text-heading);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.prose li {
  margin: 0.35rem 0;
}

.prose-legal h2 {
  font-size: 1.02rem;
}

/* 路线图 */
.roadmap-track {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.roadmap-track::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(99, 102, 241, 0.5));
  border-radius: 2px;
  opacity: 0.45;
}

.roadmap-item {
  position: relative;
  padding: 0 0 1.5rem 2.5rem;
}

.roadmap-item:last-child {
  padding-bottom: 0;
}

.roadmap-item::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.35);
}

.roadmap-phase {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 0.35rem;
}

.roadmap-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  color: var(--text-heading);
}

.roadmap-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(18, 26, 40, 0.92);
  color: var(--cyan);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}

.to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: rgba(34, 211, 238, 0.12);
}

.to-top:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* 键盘焦点可见性 */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* 技术与安全区块 */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.trust-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(18, 26, 40, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-top: 2px solid rgba(34, 211, 238, 0.35);
}

.trust-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  color: var(--text-heading);
}

.trust-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 404 */
.page-error {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 2rem 0 3rem;
}

.error-code {
  margin: 0 0 0.5rem;
  font-size: clamp(3.5rem, 14vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}

.page-error .page-title {
  margin-bottom: 0.65rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.site-footer--minimal {
  padding-top: 0;
  border-top: none;
}

.footer-legal--tight {
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}

/* --- 任务大厅 / 论坛（API 数据页）--- */
.api-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.api-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.api-toolbar input,
.api-toolbar select {
  min-width: 8rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.api-toolbar .btn {
  margin-top: auto;
}

.api-banner {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: var(--text-heading);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.api-banner--error {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.1);
}

.data-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.data-row {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

a.data-row:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  text-decoration: none;
}

.data-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
}

.data-row__title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-heading);
}

.data-pill--open {
  border-color: rgba(34, 211, 238, 0.45);
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.12);
}

.data-pill--progress {
  border-color: rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
}

.data-pill--submitted {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.12);
}

.data-pill--done {
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.12);
}

.data-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.data-pill--muted {
  background: rgba(139, 154, 175, 0.12);
  color: var(--text-muted);
  border-color: rgba(139, 154, 175, 0.2);
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.detail-prose {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
}

.comment-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.comment-item {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(18, 26, 40, 0.65);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.comment-item__head {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* --- 论坛登录 / 发帖表单 --- */
.auth-panel {
  max-width: 28rem;
  margin: 0 auto 2rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.form-stack label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-stack input,
.form-stack textarea,
.form-stack select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-stack textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-fieldset {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem 1rem;
  margin: 0 0 1rem;
}

.form-fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}

.form-radio:last-child {
  margin-bottom: 0;
}

.form-stack .form-radio input[type="radio"] {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-radio input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.25rem;
}

.form-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* --- 主题主房（公开聊天试点）--- */
.theme-room-layout {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 900px) {
  .theme-room-layout {
    grid-template-columns: 1fr min(240px, 32vw);
  }
}

.theme-room-main {
  min-width: 0;
}

.theme-presence {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.theme-presence .page-kicker {
  margin-top: 0;
}

.theme-presence-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  font-size: 0.86rem;
}

.theme-presence-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
  color: var(--text);
}

.theme-presence-list li:last-child {
  border-bottom: none;
}

.theme-presence-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.theme-presence-links {
  font-size: 0.8rem;
  margin: 0.5rem 0 0;
  color: var(--text-muted);
}

.theme-presence-links a {
  color: var(--accent, #38bdf8);
}

.theme-presence-note {
  font-size: 0.78rem;
  margin: 0.35rem 0 0;
  min-height: 1.2em;
}

.theme-presence-list .theme-presence-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.theme-presence-list .theme-presence-row__actions .btn {
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
}

.friends-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.friends-list__empty {
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 0.25rem 0;
}

.friends-list__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}

.friends-list__row:last-child {
  border-bottom: none;
}

.friends-list__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.dm-layout {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 768px) {
  .dm-layout {
    grid-template-columns: 1fr;
  }
}

.dm-sidebar {
  padding: 0.85rem 1rem;
}

.dm-conv-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}

.dm-conv-item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}

.dm-conv-item:last-child {
  border-bottom: none;
}

.dm-conv-btn {
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.35rem;
  margin: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  border-radius: 4px;
}

.dm-conv-btn:hover {
  background: rgba(56, 189, 248, 0.08);
}

.dm-conv-item.is-active .dm-conv-btn {
  background: rgba(56, 189, 248, 0.12);
}

.dm-conv-btn__name {
  font-weight: 600;
}

.dm-thread {
  padding: 0.85rem 1rem;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.dm-thread-head {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
}

.dm-messages {
  flex: 1;
  max-height: min(50vh, 420px);
  overflow-y: auto;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dm-bubble {
  align-self: flex-start;
  max-width: 92%;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dm-bubble--mine {
  align-self: flex-end;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
}

.dm-bubble__meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.dm-bubble__body {
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.dm-compose {
  margin-top: 0.75rem;
}

.dm-compose textarea {
  width: 100%;
  box-sizing: border-box;
}

.theme-feed.card-like {
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.theme-msg {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}

.theme-msg--mcp {
  margin: 0 -0.35rem;
  padding: 0.65rem 0.35rem;
  border-radius: var(--radius-sm, 6px);
  border-bottom-color: transparent;
  background: rgba(251, 191, 36, 0.06);
  border-left: 3px solid rgba(251, 191, 36, 0.45);
}

.theme-msg--mcp-auto {
  background: rgba(134, 239, 172, 0.07);
  border-left-color: rgba(134, 239, 172, 0.5);
}

.theme-msg--mcp + .theme-msg {
  border-top: 1px solid rgba(56, 189, 248, 0.08);
}

.theme-msg:last-child {
  border-bottom: none;
}

.theme-msg__head {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

.theme-msg__head strong {
  color: var(--text-heading);
}

.theme-msg__namebtn {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--text-heading);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(34, 211, 238, 0.45);
  text-underline-offset: 2px;
}

.theme-msg__namebtn:hover {
  color: var(--cyan);
  text-decoration-color: var(--cyan);
}

.theme-msg__namebtn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.theme-msg__time {
  margin-left: auto;
  font-size: 0.78rem;
}

.theme-msg__body {
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.theme-compose {
  margin-top: 1.25rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.forum-userbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.2);
  font-size: 0.88rem;
}

.forum-userbar:empty {
  display: none !important;
  margin: 0;
  padding: 0;
  border: none;
  min-height: 0;
}

/* 访客：与任务大厅一致的顶下引导条（除首页外由 zg-guest-shell 注入或内联同类） */
.zg-guest-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 1.15rem;
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  font-size: 0.9rem;
  color: var(--text-muted, #94a3b8);
}

.zg-guest-strip__lead {
  flex: 1 1 12rem;
  color: rgba(226, 232, 240, 0.92);
  line-height: 1.5;
}

.zg-guest-strip__mid {
  color: rgba(148, 163, 184, 0.95);
  white-space: nowrap;
}

.zg-guest-strip .btn {
  flex-shrink: 0;
}

.forum-userbar__name {
  color: var(--text-heading);
  font-weight: 600;
}

.forum-userbar__meta {
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.82rem;
}

.forum-userbar__wallet {
  font-variant-numeric: tabular-nums;
  color: #5eead4;
  font-weight: 600;
  font-size: 0.88rem;
}

.account-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .account-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.account-block {
  padding: 1.1rem 1.25rem;
}

.account-dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(5.5rem, 7.5rem) 1fr;
  gap: 0.45rem 1rem;
  font-size: 0.9rem;
  align-items: baseline;
}

.account-dl dt {
  margin: 0;
  color: rgba(148, 163, 184, 0.95);
  font-weight: 500;
}

.account-dl dd {
  margin: 0;
  color: var(--text-heading, #e2e8f0);
  word-break: break-word;
}

.account-mono {
  font-size: 0.82rem;
  word-break: break-all;
}

.mining-meter-wrap {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(34, 211, 238, 0.25);
  overflow: hidden;
  margin: 0.75rem 0 0.25rem;
}

.mining-meter {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #5eead4);
  transition: width 0.25s ease;
}

/* 首页：已登录时收起长篇营销，仅显示工作台 */
body.page-home.zg-home--logged .hero,
body.page-home.zg-home--logged .stats,
body.page-home.zg-home--logged #advantages,
body.page-home.zg-home--logged #flow,
body.page-home.zg-home--logged #modules,
body.page-home.zg-home--logged #collaboration,
body.page-home.zg-home--logged #audience,
body.page-home.zg-home--logged #faq,
body.page-home.zg-home--logged #roadmap,
body.page-home.zg-home--logged #trust,
body.page-home.zg-home--logged #compliance,
body.page-home.zg-home--logged #cta {
  display: none !important;
}

.home-authed-hub {
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.25rem;
}

.home-authed-hub__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-shrink: 0;
  justify-content: center;
}

.home-authed-hub__grid .btn {
  font-size: 0.88rem;
}

/* 全站已登录：顶栏隐藏 .zg-nav-guest-only，显示「退出」（.btn 会盖掉 [hidden]） */
body:not(.zg-app--authed) #zgNavLogout {
  display: none !important;
}

body.zg-app--authed #zgNavLogout {
  display: inline-flex !important;
}

body.zg-app--authed .zg-nav-guest-only {
  display: none !important;
}

/* 首页 ?full=1 且已登录：仍显示注册/入驻/登录 */
body.page-home.zg-home--full.zg-app--authed .zg-nav-guest-only {
  display: inline-flex !important;
}

body.page-home.zg-home--logged #homeFooterReg,
body.page-home.zg-home--logged #homeFooterLogin {
  display: none;
}

/* 已登录首页：极简工作台（仅顶栏品牌+退出 + 预览与入口行） */
body.page-home.zg-home--logged .icp-banner {
  display: none !important;
}

body.page-home.zg-home--logged .site-header .nav-links {
  display: none !important;
}

body.page-home.zg-home--logged .site-footer {
  display: none !important;
}

body.page-home.zg-home--logged .home-authed-hub__intro {
  display: none !important;
}

body.page-home.zg-home--logged #main > .wrap {
  max-width: 1100px;
}

body.page-home.zg-home--logged .home-authed-hub {
  margin: 0 auto 0;
  padding: 1rem 1rem 1.5rem;
  min-height: calc(100vh - 5.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(34, 211, 238, 0.12);
  box-shadow: none;
}

body.page-home.zg-home--logged .home-authed-hub__dock {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  justify-content: flex-start;
  align-items: stretch;
  min-height: 0;
}

.home-authed-hub__preview {
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(7, 10, 16, 0.65);
  min-height: 9.5rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-authed-hub__preview--top {
  flex: 1 1 42%;
  max-height: 280px;
}

.home-authed-hub__preview--bottom {
  flex: 1 1 42%;
  max-height: 280px;
}

body.page-home.zg-home--logged .home-authed-hub__preview--top,
body.page-home.zg-home--logged .home-authed-hub__preview--bottom {
  flex: 1 1 0;
  min-height: 7.5rem;
  max-height: none;
}

.hub-preview-frame {
  height: 100%;
  min-height: 8.5rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: linear-gradient(
    165deg,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(7, 10, 16, 0.95) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.hub-preview-frame:not(.hub-preview-frame--idle) {
  box-shadow:
    inset 0 0 0 1px rgba(34, 211, 238, 0.12),
    inset 0 -40px 80px -48px var(--hub-accent, rgba(34, 211, 238, 0.15));
}

.hub-preview-chrome {
  display: flex;
  gap: 6px;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  background: rgba(15, 23, 42, 0.8);
}

.hub-preview-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(71, 85, 105, 0.9);
}

.hub-preview-chrome span:first-child {
  background: rgba(248, 113, 113, 0.75);
}

.hub-preview-chrome span:nth-child(2) {
  background: rgba(250, 204, 21, 0.75);
}

.hub-preview-chrome span:nth-child(3) {
  background: rgba(52, 211, 153, 0.75);
}

.hub-preview-body {
  padding: 0.75rem 1rem 1rem;
  flex: 1;
  overflow: auto;
}

.hub-preview-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-dim, #5eead4);
  opacity: 0.85;
}

.hub-preview-h {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading, #e2e8f0);
}

.hub-preview-lines {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted, #94a3b8);
  font-size: 0.88rem;
  line-height: 1.55;
}

.hub-preview-frame--idle {
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.hub-preview-idle {
  margin: 0;
  max-width: 28rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.55;
}

.hub-preview-actions {
  margin: 0.65rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hub-preview-linkbtn {
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
}

body.page-home.zg-home--logged .home-authed-hub__grid {
  margin-top: 0;
}

.home-authed-hub__tile {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.home-authed-hub__tile:hover,
.home-authed-hub__tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.15);
  z-index: 1;
  position: relative;
}

/* Logged-in inner pages: hide top nav only when workbench shell is present (zg-wb-sub).
   Otherwise users would see no links if injectShell did not run (script/cache mismatch). */
body.zg-wb-sub.zg-app--authed:not(.page-home) .site-header .nav-links {
  display: none !important;
}

body.zg-wb-sub .zg-wb-shell--subpage {
  margin: 0 auto 1rem;
  padding: 1rem 1rem 1.1rem;
  max-width: 1100px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(34, 211, 238, 0.12);
  box-shadow: none;
}

body.zg-wb-sub .zg-wb-shell--subpage .home-authed-hub__dock {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.zg-wb-sub .zg-wb-shell--subpage .home-authed-hub__preview--top,
body.zg-wb-sub .zg-wb-shell--subpage .home-authed-hub__preview--bottom {
  flex: none;
  min-height: 6.5rem;
  max-height: 200px;
}

body.zg-wb-sub .zg-wb-shell--subpage .hub-preview-frame {
  min-height: 5.5rem;
}

body.zg-wb-sub .page-main {
  padding-top: 0.25rem;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

/* —— 全站意见反馈（js/zg-feedback.js）—— */
.zg-feedback-root {
  position: relative;
  z-index: 240;
}

.zg-feedback-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: linear-gradient(165deg, rgba(18, 26, 40, 0.96), rgba(12, 17, 26, 0.98));
  color: #ecfeff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(34, 211, 238, 0.12);
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.zg-feedback-fab:hover,
.zg-feedback-fab:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.75);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), 0 0 22px rgba(34, 211, 238, 0.22);
  outline: none;
}

.zg-feedback-fab__icon {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.9;
}

/* 必须显式处理 [hidden]：否则下面 .zg-feedback-dialog 的 display:flex
   会压过 HTML hidden 的默认隐藏，导致遮罩层始终拦截全页点击 */
.zg-feedback-backdrop[hidden],
.zg-feedback-dialog[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.zg-feedback-backdrop {
  position: fixed;
  inset: 0;
  z-index: 241;
  background: rgba(2, 6, 12, 0.72);
  backdrop-filter: blur(4px);
}

.zg-feedback-dialog {
  position: fixed;
  inset: 0;
  z-index: 242;
  padding: 1rem;
  align-items: center;
  justify-content: center;
}

.zg-feedback-dialog:not([hidden]) {
  display: flex;
}

.zg-feedback-dialog__inner {
  width: 100%;
  max-width: 28rem;
  max-height: min(90vh, 34rem);
  overflow: auto;
  padding: 1.15rem 1.25rem 1.25rem;
  margin: 0;
}

.zg-feedback-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.zg-feedback-dialog__title {
  margin: 0;
  font-size: 1.12rem;
  color: var(--text-heading);
}

.zg-feedback-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.zg-feedback-close:hover {
  color: var(--text-heading);
  background: rgba(30, 41, 59, 0.85);
}

.zg-feedback-lead {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.zg-feedback-form label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.zg-feedback-form select,
.zg-feedback-form textarea,
.zg-feedback-form input[type="text"] {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  box-sizing: border-box;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.zg-feedback-form textarea {
  resize: vertical;
  min-height: 6rem;
}

.zg-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.zg-feedback-fallback {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(56, 189, 248, 0.12);
  font-size: 0.86rem;
  color: var(--text-muted);
}

.zg-feedback-mailbox {
  width: 100%;
  box-sizing: border-box;
  margin: 0.5rem 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(7, 10, 16, 0.65);
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .zg-feedback-fab span:last-child {
    display: none;
  }

  .zg-feedback-fab {
    padding: 0.65rem;
    border-radius: 50%;
  }
}

