:root {
  color-scheme: light;
  --bg: #f5f8ff;
  --ink: #13213a;
  --muted: #66718a;
  --line: rgba(38, 87, 154, 0.16);
  --panel: rgba(255, 255, 255, 0.68);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --accent: #0ea5e9;
  --accent-2: #f97316;
  --accent-3: #6366f1;
  --hot: #ec4899;
  --shadow: 0 18px 52px rgba(34, 76, 140, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 14%, rgba(56, 189, 248, 0.35), transparent 31%),
    radial-gradient(circle at 83% 9%, rgba(251, 113, 133, 0.26), transparent 28%),
    radial-gradient(circle at 72% 78%, rgba(250, 204, 21, 0.22), transparent 30%),
    linear-gradient(135deg, #f4f9ff 0%, #f7f1ff 48%, #fff8ed 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: -20%;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 72, 153, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: drift 18s linear infinite;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

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

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.topbar,
.control-panel,
.quick-actions,
.app-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 110px;
  padding: 20px 22px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(239, 246, 255, 0.6)),
    var(--panel);
}

.eyebrow {
  margin: 0 0 6px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  width: fit-content;
  background: linear-gradient(110deg, #0f172a 0%, #2563eb 42%, #ec4899 100%);
  background-clip: text;
  color: transparent;
  font-size: clamp(36px, 5.8vw, 64px);
  line-height: 0.95;
  letter-spacing: 0;
}

.status-copy {
  position: relative;
  flex: 1 1 260px;
  max-width: 360px;
  padding: 14px 18px 14px 22px;
  border-left: 3px solid transparent;
  border-image: linear-gradient(to bottom, #38bdf8, #ec4899) 1;
}

.status-copy::after {
  position: absolute;
  right: 18px;
  bottom: 10px;
  left: 22px;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.65), rgba(236, 72, 153, 0.08));
  animation: glowLine 2.8s ease-in-out infinite;
}

.status-copy span {
  display: block;
  color: #1d4ed8;
  font-size: 16px;
  font-weight: 900;
}

.status-copy strong {
  display: block;
  margin-top: 7px;
  padding-bottom: 10px;
  color: #5f6f8c;
  font-size: 13px;
  line-height: 1.3;
}

.clock {
  display: grid;
  grid-template-columns: auto 92px;
  gap: 12px;
  align-items: center;
  min-width: 250px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(236, 72, 153, 0.12)),
    rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.clock span {
  display: block;
  color: #48617f;
  font-size: 13px;
}

.clock-main span {
  white-space: nowrap;
}

.clock strong {
  display: block;
  margin-top: 3px;
  background: linear-gradient(120deg, #0284c7, #7c3aed);
  background-clip: text;
  color: transparent;
  font-size: 34px;
  line-height: 1;
}

.clock-main {
  text-align: right;
}

.clock-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 0;
}

.clock-info span {
  min-height: 28px;
  padding: 6px 9px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: #315079;
  font-weight: 800;
  text-align: center;
}

.control-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
}

.search {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.search span {
  color: #2563eb;
  font-size: 14px;
  font-weight: 850;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.1);
  color: #315079;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.filter:hover,
.filter.is-active {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: white;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
}

.action {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  font-weight: 800;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.action:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.42);
  background: #ffffff;
}

.action-icon,
.app-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e0f2fe, #fae8ff);
  color: var(--accent);
  font-weight: 900;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.app-card {
  position: relative;
  min-height: 176px;
  padding: 18px;
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
  animation: rise 0.58s both;
}

.app-card::after {
  position: absolute;
  right: -48px;
  bottom: -60px;
  z-index: -1;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  content: "";
  background: color-mix(in srgb, var(--card-color), transparent 72%);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.app-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--card-color), transparent 45%);
  background: rgba(255, 255, 255, 0.92);
}

.app-card:hover::after {
  transform: scale(1.25);
  opacity: 0.86;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-logo img {
  width: 24px;
  height: 24px;
}

.tag {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.app-card h2 {
  margin: 20px 0 8px;
  font-size: 22px;
  letter-spacing: 0;
}

.app-card p {
  min-height: 44px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.visit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  color: color-mix(in srgb, var(--card-color), #17201a 36%);
  font-size: 14px;
  font-weight: 850;
}

.visit span:last-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-color), white 62%);
  color: #111;
}

.empty {
  margin: 36px 0 0;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(48px, 48px, 0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowLine {
  0%,
  100% {
    opacity: 0.55;
    transform: scaleX(0.72);
    transform-origin: left;
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-width: 940px) {
  .topbar {
    flex-wrap: wrap;
  }

  .status-copy {
    order: 3;
    max-width: none;
    flex-basis: 100%;
    padding: 6px 12px 8px 16px;
  }

  .status-copy span,
  .status-copy strong {
    display: inline;
  }

  .status-copy strong {
    margin: 0 0 0 12px;
    padding-bottom: 0;
  }

  .status-copy::after {
    right: 12px;
    bottom: 3px;
    left: 16px;
  }

  .control-panel {
    grid-template-columns: 1fr;
  }

  .filters {
    justify-content: flex-start;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 22px, 1180px);
    padding-top: 8px;
  }

  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .control-panel,
  .quick-actions,
  .app-card {
    box-shadow: 0 14px 34px rgba(27, 36, 30, 0.1);
  }
}

@media (max-width: 520px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    min-height: 0;
    gap: 12px;
    padding: 14px;
  }

  .eyebrow {
    margin-bottom: 4px;
    font-size: 12px;
  }

  h1 {
    font-size: 34px;
  }

  .status-copy {
    padding: 6px 10px 8px 14px;
  }

  .status-copy span {
    font-size: 15px;
  }

  .status-copy strong {
    margin-top: 5px;
    padding-bottom: 8px;
  }

  .clock {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
  }

  .clock strong {
    font-size: 30px;
  }

  .clock-info {
    grid-template-columns: 1fr 1fr;
    margin-top: 10px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.beian-footer {
  padding: 0 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.beian-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: rgba(126, 151, 167, 1);
  font-size: large;
}

.beian-wrapper a {
  color: rgba(126, 151, 167, 1);
  font-size: large;
  text-decoration: none;
  transition: color 0.2s;
}

.beian-wrapper a:hover {
  color: rgba(198, 231, 241, 1);
  text-decoration: underline;
}

.beian-divider {
  color: rgba(0, 0, 0, 0.2);
  user-select: none;
}
