:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --brand: #C70019;
  --brand-hover: #A60015;
  --page: #F6F6F6;
  --surface: #FFFFFF;
  --text: #262626;
  --secondary: #595959;
  --line: #E6E6E6;
  --duration: 160ms;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
}

a { -webkit-tap-highlight-color: transparent; }

.site-header {
  flex: none;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 1168px);
  min-height: 76px;
  margin: 0 auto;
  padding: 16px 32px;
}

.brand-mark,
.workstation-mark {
  display: block;
  flex: none;
  object-fit: contain;
}

.brand-mark { border-radius: 9px; }
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: .015em; }

.site-main {
  display: grid;
  flex: 1 0 auto;
  align-items: center;
  padding: 64px 32px 80px;
}

.portal-content { width: min(100%, 1000px); margin: 0 auto; }
.page-heading { margin-bottom: 40px; text-align: center; }

.page-heading h1 {
  margin: 0;
  color: #000000;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.page-heading p { margin: 12px 0 0; color: var(--secondary); font-size: 16px; line-height: 1.6; }

.workstations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workstation-item { min-width: 0; }
.workstation-item:only-child { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 480px; }

.workstation {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 4px 20px rgb(0 0 0 / 3%);
  text-decoration: none;
  transition: transform var(--duration) ease, border-color var(--duration) ease, box-shadow var(--duration) ease;
  touch-action: manipulation;
}

.workstation-mark { border-radius: 15px; }
.workstation-name { margin: 24px 0 0; font-size: 22px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.workstation-description { margin: 8px 0 28px; color: var(--secondary); font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }

.workstation-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; }
.workstation-domain { min-width: 0; color: var(--secondary); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }

.workstation-action {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--surface);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  transition: background-color var(--duration) ease;
}

@media (hover: hover) and (pointer: fine) {
  .workstation:hover { transform: translateY(-3px); border-color: #C2C2C2; box-shadow: 0 10px 32px rgb(0 0 0 / 6%); }
  .workstation:hover .workstation-action { background: var(--brand-hover); }
}

.workstation:active { transform: scale(.985); }
.workstation:focus-visible { outline: 3px solid var(--brand); outline-offset: 5px; }

.site-footer {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  min-height: 76px;
  padding: 12px 24px max(12px, env(safe-area-inset-bottom));
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.6;
}

.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:focus-visible, .fallback-entry a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }
.empty-message, .fallback-entry { color: var(--secondary); font-size: 16px; text-align: center; }
.fallback-entry a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand); }

@media (max-width: 640px) {
  .site-header-inner { min-height: 68px; padding: 14px 24px; gap: 10px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 8px; }
  .brand-name { font-size: 16px; }
  .site-main { padding: 40px 24px 48px; }
  .page-heading { margin-bottom: 32px; }
  .page-heading h1 { font-size: 28px; }
  .page-heading p { margin-top: 10px; }
  .workstations { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .workstation { padding: 28px 24px; }
  .workstation-mark { width: 56px; height: 56px; border-radius: 14px; }
  .workstation-name { margin-top: 24px; }
  .workstation-description { margin-bottom: 24px; }
  .workstation-bottom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .workstation-action { justify-self: end; }
  .site-footer { gap: 0 16px; padding-inline: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration: 0ms; }
  .workstation:is(:hover, :active) { transform: none; }
}
