:root {
  --hw-accent: #4f46e5;
  --hw-accent-soft: #eef2ff;
  --hw-border: rgba(15, 23, 42, 0.08);
  --hw-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --hw-shadow-hover: 0 14px 40px rgba(15, 23, 42, 0.10);
}

/* 顶部标题区更有层次 */
.publication-header {
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 26%);
}

/* 自定义标题 */
.hw-title {
  max-width: 1100px;
  margin: 0 auto;
  line-height: 1.18;
  font-size: 2.6rem;
  font-weight: 800;
}

.hw-title-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72em;
  font-weight: 700;
  line-height: 1.25;
}

/* 课程项目关键词标签 */
.hw-meta {
  margin-top: 1rem;
}

.hw-chip {
  display: inline-block;
  margin: 0.3rem 0.35rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.10);
  border: 1px solid rgba(79, 70, 229, 0.18);
  color: #3730a3;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}

/* 各模块统一做成轻卡片 */
.hw-section .container {
  background: #ffffff;
  border: 1px solid var(--hw-border);
  border-radius: 20px;
  box-shadow: var(--hw-shadow);
  padding: 2rem 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hw-section .container:hover {
  transform: translateY(-2px);
  box-shadow: var(--hw-shadow-hover);
}

/* 摘要更好读 */
.content.has-text-justified p {
  font-size: 1.02rem;
  line-height: 1.85;
}

/* 轮播项基础样式 */
.results-carousel .item {
  border-radius: 18px;
  background: #fafafa;
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 10px;
}

/* 统一图片展示框 */
.image-demo-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 14px;
  overflow: hidden;
  padding: 12px;
}

.image-demo-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

/* 统一视频展示框 */
.video-demo-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 14px;
  overflow: hidden;
  padding: 12px;
}

.video-demo-frame video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

/* 标题区域高度统一 */
.results-carousel .subtitle {
  min-height: 3.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0.9rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
}

/* 单视频展示 */
.video-single {
  max-width: 900px;
  margin: 0 auto;
}

.video-single video {
  display: block;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

/* Poster 外框 */
.poster-shell {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  background: #fff;
}

/* 邮箱链接弱化一点 */
.publication-authors a[href^="mailto:"] {
  color: #475569;
  text-decoration: none;
}

.publication-authors a[href^="mailto:"]:hover {
  color: var(--hw-accent);
  text-decoration: underline;
}

/* 按钮更细致一点 */
.publication-links .button {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.publication-links .button:hover {
  transform: translateY(-1px);
}

/* 移动端 */
@media screen and (max-width: 768px) {
  .hw-title {
    font-size: 2rem;
    max-width: 95%;
  }

  .hw-title-sub {
    font-size: 0.78em;
  }

  .hw-section .container {
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }

  .hw-chip {
    font-size: 0.8rem;
    padding: 0.36rem 0.68rem;
  }

  .results-carousel .subtitle {
    min-height: 4.2em;
  }
}
