:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #e6eaf1;
  --text: #17202b;
  --muted: #68748a;
  --soft: #eef2f8;
  --accent: #2f6fed;
  --accent-dark: #235fd0;
  --accent-soft: #eaf1fe;
  --cyan: #18b8c9;
  --green: #12a150;
  --green-soft: #e8f8ef;
  --danger: #d93025;
  --radius: 26px;
  --shadow: 0 18px 45px rgba(26, 44, 78, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(47, 111, 237, 0.09), transparent 34%),
    radial-gradient(circle at 92% 4%, rgba(24, 184, 201, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 46%, #eef2f8 100%);
}

body::before {
  content: "";
  position: fixed;
  left: 50%;
  top: -220px;
  width: 760px;
  height: 420px;
  transform: translateX(-50%);
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 237, 0.1), transparent 70%);
  filter: blur(8px);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 56px);
  border-bottom: 1px solid rgba(230, 234, 241, 0.9);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.admin-link {
  color: var(--muted);
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: #fff;
  transition: 0.2s ease;
}

.admin-link:hover {
  color: var(--accent);
  border-color: rgba(47, 111, 237, 0.4);
  background: var(--accent-soft);
}

.page {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 100px;
}

.hero {
  text-align: center;
  margin-bottom: 52px;
  animation: rise 0.7s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(47, 111, 237, 0.5);
}

.hero h1,
.subpage-head h1,
.login-box h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(38px, 6vw, 66px);
  letter-spacing: -0.035em;
  line-height: 1.06;
  font-weight: 800;
}

.hero-sub {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 38px 34px 30px;
  min-height: 230px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: rise 0.7s ease both;
}

.portal-card:nth-child(1) {
  animation-delay: 0.06s;
}

.portal-card:nth-child(2) {
  animation-delay: 0.12s;
}

.portal-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 237, 0.14), transparent 68%);
  transition: transform 0.4s ease;
}

.portal-card:nth-child(2)::before {
  background: radial-gradient(circle, rgba(24, 184, 201, 0.13), transparent 68%);
}

.portal-card::after {
  content: "进入 →";
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.portal-card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 111, 237, 0.26);
  box-shadow: 0 24px 55px rgba(26, 44, 78, 0.14);
}

.portal-card:hover::before {
  transform: scale(1.2);
}

.card-art {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.card-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 27px;
  border-radius: 17px;
  background: linear-gradient(135deg, #4b86ff, #2f6fed);
  box-shadow: 0 12px 26px rgba(47, 111, 237, 0.24);
}

.portal-card:nth-child(2) .card-icon {
  background: linear-gradient(135deg, #29c8d8, #159db1);
  box-shadow: 0 12px 26px rgba(24, 184, 201, 0.22);
}

.card-title {
  position: relative;
  z-index: 1;
  font-size: 28px;
  font-weight: 800;
}

.card-desc {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.subpage-head {
  margin-bottom: 30px;
  animation: rise 0.65s ease both;
}

.subpage-head h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-top: 12px;
}

.subpage-head p {
  color: var(--muted);
  font-size: 16px;
}

.back-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.back-link:hover {
  color: var(--accent-dark);
}

.subpage-hero {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--soft);
  margin-bottom: 28px;
  animation: rise 0.7s ease both;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.entry-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 10px 28px rgba(26, 44, 78, 0.055);
  transition: 0.22s ease;
  animation: rise 0.6s ease both;
}

.entry-item:nth-child(1) {
  animation-delay: 0.08s;
}

.entry-item:nth-child(2) {
  animation-delay: 0.14s;
}

.entry-item:nth-child(3) {
  animation-delay: 0.2s;
}

a.entry-item:hover {
  border-color: rgba(47, 111, 237, 0.28);
  box-shadow: 0 16px 38px rgba(26, 44, 78, 0.12);
  transform: translateX(4px);
}

.entry-list.theme-teal a.entry-item:hover {
  border-color: rgba(24, 184, 201, 0.32);
}

.entry-icon {
  flex: none;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  font-size: 26px;
  border-radius: 17px;
  background: linear-gradient(135deg, #4b86ff, #2f6fed);
  box-shadow: 0 12px 26px rgba(47, 111, 237, 0.24);
}

.entry-list.theme-teal .entry-live .entry-icon {
  background: linear-gradient(135deg, #29c8d8, #159db1);
  box-shadow: 0 12px 26px rgba(24, 184, 201, 0.24);
}

.entry-soon .entry-icon {
  background: linear-gradient(135deg, #e8edf5, #d4dbe8);
  box-shadow: none;
}

.entry-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.entry-body strong {
  font-size: 17px;
}

.entry-body small {
  color: var(--muted);
  line-height: 1.5;
}

.entry-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.entry-arrow {
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  transition: transform 0.22s ease;
}

.entry-list.theme-teal .entry-arrow {
  color: #159db1;
}

a.entry-item:hover .entry-arrow {
  transform: translateX(4px);
}

.entry-soon {
  opacity: 0.58;
  cursor: not-allowed;
}

.status {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

.status.ready {
  color: var(--green);
  background: var(--green-soft);
}

.status.pending {
  color: var(--muted);
  background: var(--soft);
}

.login-wrap {
  display: flex;
  justify-content: center;
  padding-top: 32px;
}

.login-box {
  width: min(430px, 100%);
  padding: 36px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  animation: rise 0.65s ease both;
}

.login-box h1 {
  font-size: 30px;
  margin-bottom: 22px;
}

.login-box label {
  display: block;
  margin-bottom: 15px;
}

.login-box label span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 7px;
}

.login-box input {
  width: 100%;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 15px;
  outline: none;
  transition: 0.2s ease;
}

.login-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.11);
}

.login-box button,
.ghost-button {
  width: 100%;
  margin-top: 9px;
  color: #fff;
  background: linear-gradient(135deg, #4b86ff, #2f6fed);
  border: 0;
  border-radius: 13px;
  padding: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(47, 111, 237, 0.2);
  transition: 0.2s ease;
}

.login-box button:hover,
.ghost-button:hover {
  background: linear-gradient(135deg, #3f78f7, #235fd0);
  transform: translateY(-1px);
}

.form-error {
  color: var(--danger);
  font-size: 14px;
  margin: 0 0 12px;
}

.admin-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.admin-placeholder {
  width: 100%;
  padding: 50px 30px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 22px;
  background: var(--card);
  animation: rise 0.65s ease both;
}

.admin-placeholder .card-icon {
  margin: 0 auto 16px;
}

.admin-placeholder h2 {
  margin: 0 0 10px;
}

.admin-placeholder p {
  color: var(--muted);
}

.ghost-button {
  width: auto;
  padding: 10px 20px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.ghost-button:hover {
  background: var(--soft);
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px 16px 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 48px 0 68px;
  }

  .entry-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .entry-meta {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
}
