:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --red: #bf1e2e;
  --gold: #c79a4b;
  --blue: #1769e8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f4f6f8;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.portal-shell,
.manager-shell {
  width: min(100%, 900px);
  margin: 0 auto;
  padding-bottom: 34px;
}

.portal-hero {
  min-height: 420px;
  padding: calc(22px + env(safe-area-inset-top)) 22px 34px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(10, 17, 29, 0.94), rgba(28, 35, 49, 0.72)),
    url("./assets/hengdu/hengdu-banner.jpg") center / cover;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.brand-row img {
  width: 150px;
  max-width: 48vw;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.portal-hero h1 {
  margin: 88px 0 12px;
  font-size: clamp(42px, 11vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.portal-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.68;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: -54px 16px 0;
}

.entry-card {
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

.entry-card span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.entry-card strong {
  display: block;
  margin-top: 42px;
  font-size: 24px;
  line-height: 1.15;
}

.entry-card p {
  min-height: 72px;
  margin: 12px 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.entry-card em {
  color: var(--blue);
  font-style: normal;
  font-weight: 900;
}

.entry-card.main-card {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #111827, #681f2a);
}

.entry-card.main-card p,
.entry-card.main-card span {
  color: rgba(255, 255, 255, 0.76);
}

.entry-card.main-card em {
  color: #fff;
}

.mini-nav {
  display: flex;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 16px 12px;
  color: var(--blue);
  font-weight: 900;
}

.manager-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 16px;
  align-items: end;
  margin: 0 16px;
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #1769e8, #123a72);
}

.manager-hero span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 900;
}

.manager-hero h1 {
  margin: 10px 0;
  font-size: clamp(30px, 8vw, 48px);
  line-height: 1.05;
}

.manager-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.manager-hero img {
  width: 136px;
  height: 168px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  background: #dbeafe;
}

.manager-card {
  margin: 14px 16px 0;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.1);
}

.manager-card h2 {
  margin: 0 0 14px;
}

.manager-profile {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.manager-profile img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}

.manager-profile h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.manager-profile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.manager-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.manager-stats div {
  padding: 13px;
  border-radius: 8px;
  background: #f8fafc;
}

.manager-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.manager-stats strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
}

.team-bridge-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.team-bridge-copy strong {
  display: block;
  font-size: 20px;
}

.team-bridge-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.team-bridge-copy a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

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

  .entry-card {
    min-height: 190px;
  }

  .entry-card strong {
    margin-top: 34px;
  }

  .manager-hero {
    grid-template-columns: 1fr;
  }

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

  .team-bridge-copy {
    grid-template-columns: 1fr;
  }
}
