﻿:root {
  --page-bg: #faf8f5;
  --panel-bg: rgba(250, 248, 245, 0.78);
  --text: #1a0f0f;
  --muted: #5a4040;
  --accent: #8b0012;
  --accent-dark: #b5001a;
  --card-shadow: 0 18px 40px rgba(139, 0, 18, 0.16);
  --soft-shadow: 0 12px 28px rgba(139, 0, 18, 0.14);
  --radius-xl: 30px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0 64px, #f5efea 64px, #faf8f5 100%);
}

body {
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(6px);
}

body::before {
  width: 520px;
  height: 520px;
  left: -180px;
  top: 160px;
  background: radial-gradient(circle, rgba(139, 0, 18, 0.18) 0%, rgba(139, 0, 18, 0.06) 42%, transparent 72%);
}

body::after {
  width: 560px;
  height: 560px;
  right: -180px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(176, 138, 62, 0.2) 0%, rgba(176, 138, 62, 0.08) 38%, transparent 70%);
}

.page-shell {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 20;
  width: min(1560px, calc(100% - 80px));
  margin: 0 auto;
  padding: 8px 0 6px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  filter: drop-shadow(0 6px 14px rgba(139, 0, 18, 0.16));
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.notice-center {
  position: relative;
  z-index: 30;
}

.notice-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid rgba(139, 0, 18, 0.45);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 30px rgba(139, 0, 18, 0.16);
  color: #5a4040;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.user-status {
  position: relative;
  z-index: 30;
}

.user-status__button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(139, 0, 18, 0.6);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(139, 0, 18, 0.12);
  cursor: pointer;
}

.user-status__avatar {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #8b0012;
  font-size: 15px;
  font-weight: 700;
}

.user-status__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  min-width: 180px;
  padding: 14px;
  border: 1px solid rgba(139, 0, 18, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 34px rgba(139, 0, 18, 0.16);
}

.user-status__name {
  font-size: 15px;
  font-weight: 700;
  color: #1a0f0f;
}

.user-status__id {
  margin-top: 4px;
  font-size: 13px;
  color: #9a8080;
}

.user-status__logout {
  width: 100%;
  margin-top: 12px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: #f8e9ea;
  color: #8b0012;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5a4040;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-button svg {
  width: 26px;
  height: 26px;
}

.course-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 46px;
  padding: 0 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #b5001a 0%, #8b0012 100%);
  color: #fff;
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(139, 0, 18, 0.24);
}

.hero-panel {
  position: relative;
  width: 100%;
  padding: 28px 0 18px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-footer {
  width: min(1560px, calc(100% - 80px));
  margin: 10px auto 0;
  padding: 10px 0 6px;
  text-align: center;
}

.site-footer a {
  color: #8f7c7c;
  font-size: 13px;
  text-decoration: none;
}

.site-footer a:hover {
  color: #8b0012;
  text-decoration: underline;
}

.course-grid {
  display: grid;
  width: min(1560px, calc(100% - 80px));
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 26px;
  align-items: stretch;
}

.course-card {
  display: block;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 4px solid rgba(255, 255, 255, 0.897);
  box-shadow: var(--card-shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  text-decoration: none;
  color: inherit;
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 0, 18, 0.54);
  box-shadow: 0 22px 44px rgba(139, 0, 18, 0.2);
}

.course-art {
  aspect-ratio: 1.68 / 1;
  background: linear-gradient(180deg, #f9f1ea, #efe3d8);
  overflow: hidden;
}

.course-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 280ms ease, filter 280ms ease;
}

.course-card:hover .course-art img {
  transform: scale(1.035);
  filter: saturate(1.03) brightness(1.02);
}

.course-card h2 {
  margin: 0;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px 16px;
  background: rgba(255, 255, 255, 0.97);
  font-size: clamp(24px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.course-card--dark h2 {
  letter-spacing: 0;
}


@media (max-width: 1080px) {
  .brand-text {
    font-size: 22px;
  }

  .course-grid {
    gap: 22px;
  }

  .course-card h2 {
    font-size: 22px;
  }
}

@media (max-width: 860px) {
  .page-shell {
    padding-top: 10px;
  }

  .topbar {
    width: min(100%, calc(100% - 28px));
    padding: 6px 0 8px;
    min-height: 58px;
  }

  .hero-panel {
    padding: 24px 0 28px;
    border-radius: 28px;
  }

  .course-grid {
    width: min(100%, calc(100% - 28px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    width: min(100%, calc(100% - 28px));
  }

  .course-button {
    min-width: 84px;
    height: 44px;
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .topbar {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: min(100%, calc(100% - 20px));
  }

  .brand-text {
    font-size: 20px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .topbar-actions {
    gap: 10px;
  }

  .course-grid {
    width: min(100%, calc(100% - 20px));
    grid-template-columns: 1fr;
  }

  .site-footer {
    width: min(100%, calc(100% - 20px));
    margin-top: 8px;
  }

  .course-card h2 {
    min-height: 66px;
    font-size: 21px;
  }
}





