/* 基础主题变量 */
:root {
  --bg: #0b1023;
  --bg-accent: #0e1430;
  --text: #CCCCCCFF;
  --muted: #535964FF;
  --card-bg: linear-gradient(180deg, #90c0ff 0%, #cad1ff 20%, #fff 40%);
  --card-border: rgba(255, 255, 255, 0.14);
  --card-hover-border: #6ab3ff;
  --glow: rgba(58, 160, 255, 0.6);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: #f3f8ff;
  overflow-x: hidden;
}

/* 背景粒子容器 */
#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* 页面内容容器 */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.header {
  height: 360px;
  background: url('/assets/imgs/bg_header.png') no-repeat center;
  background-size: cover;
}

.card-grid {
  width: 100%;
  margin: 8px auto 36px;
  padding: 0 20px 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 16px;
}

/* 分组容器与标题 */
.groups {
  width: 100%;
  max-width: 1260px;
  margin: 77px auto 0;
}

.section {
  margin: 12px 0 28px;
}

.section-header {
  padding: 0 20px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0;
  margin: 0 0 26px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #000000FF;
}

.section-title::before {
  content: "";
  display: flex;
  line-height: 0;
  width: 18px;
  height: 18px;
  border: 1px solid #000;
  border-radius: 50%;
  background-image: radial-gradient(circle, #000 35%, transparent 35%);
}

.section-title .count {
  font-size: 12px;
  color: var(--muted);
}

.section-subtitle {
  margin: 2px 0 4px;
  font-size: 14px;
  color: #b7d6ff;
}

.section-desc {
  color: #6A6D72FF;
  font-size: 14px;
  margin-left: 14px;
  font-weight: 400;
}

.card {
  display: flex;
  flex-direction: column;
  position: relative;
  color: var(--text);
  padding: 22px 24px 24px;
  border-radius: 18px;
  border: 2px solid #DBDCDF;
  background: var(--card-bg);
  box-shadow: 0px 2px 13px 0px rgba(0, 0, 0, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--card-hover-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--card-hover-border), 0 0 16px var(--glow);
}

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

.card-title {
  font-weight: bold;
  font-size: 20px;
  color: #0A1221;
}

.card-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  font-size: 12px;
  color: #b7d6ff;
  border: 1px solid rgba(106, 179, 255, 0.4);
  border-radius: 999px;
  background: rgba(106, 179, 255, 0.12);
}

.card-desc {
  flex: 1;
  margin: 17px 2px 32px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4; /* 限制显示4行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-btn {
  margin-left: 8px;
  padding: 4px 10px;
  font-size: 12px;
  color: #cfe1ff;
  background: rgba(106, 179, 255, 0.12);
  border: 1px solid rgba(106, 179, 255, 0.4);
  border-radius: 999px;
  cursor: pointer;
}

.note-icon {
  position: absolute;
  top: 28px;
  right: 24px;
  display: grid;
  cursor: pointer;
}

.note-icon:hover {
  scale: 1.2;
}

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

.open-btn {
  padding: 10px 40px;
  font-weight: 600;
  font-size: 14px;
  color: #FFFFFF;
  background: linear-gradient(38deg, #1266EB 0%, #5CB4FE 100%);
  border: 1px solid rgba(106, 179, 255, 0.5);
  border-radius: 10px;
  cursor: pointer;
}

.disabled {
  filter: grayscale(1);
  cursor: auto !important;
}

.open-btn:hover {
  background: linear-gradient(38deg, #0F51BD 0%, #216FEC 98%);
}

.play-btn,
.ppt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 41px;
  border-radius: 7px;
  border: 2px solid #216FEC;
  cursor: pointer;
}

.play-btn {
  margin-left: auto;
}


/* .play-btn:hover svg,
.ppt-btn:hover svg {
  scale: 1.2;
} */


.notes-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 1000;
}

.notes-modal {
  width: 420px;
  background: linear-gradient(46deg, #E7E9FF 0%, #D8EFFF 28%, #FFFFFF 100%);
  box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  padding: 26px;
}

.video-modal{
  display: flex;
  flex-direction: column;
  width: 80vw;
  max-height: 100vh;
}

.notes-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
  color: #0A1221;
}

.notes-title>.svg-x {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.notes-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-top: 24px;
}

.notes-actions {
  display: flex;
  justify-content: center;
}

.notes-close {
  padding: 6px 46px;
  font-size: 16px;
  color: #cfe1ff;
  cursor: pointer;
  background: linear-gradient(38deg, #1266EB 0%, #5CB4FE 100%);
  border: 1px solid rgba(106, 179, 255, 0.4);
  border-radius: 4px;
}

.notes-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.notes-form label {
  align-self: center;
  font-size: 14px;
  color: var(--muted);
  display: none;
}

.notes-form input {
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #CCCCCC;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.notes-form button {
  padding: 8px 14px;
  font-size: 14px;
  color: #cfe1ff;
  cursor: pointer;
  background: linear-gradient(38deg, #1266EB 0%, #5CB4FE 100%);
  border: 1px solid rgba(106, 179, 255, 0.4);
  border-radius: 4px;
}

.notes-error {
  color: #ffb4b4;
  font-size: 14px;
  margin-top: 8px;
}

.notes-info {
  color: var(--muted);
  font-size: 14px;
}

.notes-list {
  display: grid;
  gap: 12px;
}

.notes-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--card-border);
  background: #FFFFFF;
  box-shadow: 0px 2px 13px 0px rgba(0, 0, 0, 0.08);
  border-radius: 18px;
}

.notes-row:hover {
  border-color: var(--card-hover-border);
  box-shadow: 0 0 0 1px var(--card-hover-border), 0 0 12px var(--glow);
}

.notes-row-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.role-img {
  width: 46px;
}

.notes-row-right {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.role-badge {
  font-weight: 500;
  font-size: 14px;
  color: #0A1221;
}

.notes-user-box,
.notes-pass-box {
  display: flex;
  align-items: center;
  position: relative;
}


.notes-username {
  flex: 1;
  font-size: 14px;
  border-radius: 8px;
  padding: 6px 10px;
  border: 1px solid #CCCCCC;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.notes-pass {
  flex: 1;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #CCCCCC;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.eye-btn {
  position: absolute;
  right: 0;
  width: 28px;
  height: 28px;
  font-size: 14px;
  color: #cfe1ff;
  background: rgba(106, 179, 255, 0.12);
  border: 1px solid rgba(106, 179, 255, 0.4);
  border-radius: 8px;
  cursor: pointer;
}

.notes-show,
.notes-copy,
.notes-copy-user {
  position: absolute;
  right: 0;
  padding: 0 10px;
  font-size: 14px;
  color: #000000;
  line-height: 0;
  /* background: rgba(106, 179, 255, 0.12); */
  /* border: 1px solid rgba(106, 179, 255, 0.4); */
  /* border-radius: 8px; */
  cursor: pointer;
}

.video-box{
  flex: 1;
  border-radius: 12px;
}

.footer {
  width: 100%;
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  color: #FFFFFF;
  background: #151B26;
}

@media (max-width: 560px) {
  .header {
    padding-top: 36px;
  }

  .logo {
    width: 60px;
    height: 60px;
  }
}