/* live.css - 针对生活手记与成长轨迹(/live)的定制视觉样式 */

/* 顶部返回条与页面身份标记 */
.live-back-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 5px;
  background: var(--yellow);
  border: 1.2px solid var(--ink-soft);
  border-radius: 6px 4px 5px 3px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 2px 2px 0 rgba(81, 108, 113, .12);
  transition: transform .2s ease, box-shadow .2s ease;
}

.live-back-bar:hover {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 3px 4px 0 rgba(81, 108, 113, .18);
  color: var(--ink);
}

/* ========================================================
   Hero 照片墙（紧凑轻盈，贴纸手账质感，绝不喧宾夺主，更不遮挡文字）
   ======================================================== */
.live-hero {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 46px;
  align-items: start;
  padding-top: 36px;
  padding-bottom: 48px;
  position: relative;
}

/* 左侧照片区域：小巧精致，两张自然交错叠放（不宽大笨重） */
.live-hero-photo {
  position: relative;
  width: 100%;
  max-width: 185px;
  padding-top: 6px;
}

/* 专用于 Hero 照片墙的紧凑轻量拍立得卡片 */
.hero-polaroid {
  position: relative;
  background: var(--white);
  border: 1.2px solid var(--ink-soft);
  border-radius: 6px 7px 5px 6px;
  padding: 6px 6px 9px;
  box-shadow: 2px 4px 0 rgba(81, 108, 113, .12);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}

.hero-polaroid:hover {
  transform: translateY(-4px) scale(1.05) rotate(0deg) !important;
  box-shadow: 5px 9px 0 rgba(81, 108, 113, .18) !important;
  z-index: 20 !important;
}

.hero-polaroid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(40, 53, 58, .12);
  border-radius: 3px;
  display: block;
}

.hero-polaroid figcaption {
  margin-top: 6px;
  font-family: var(--hand);
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.3;
}

.hero-polaroid figcaption b {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  color: var(--ink);
  margin-bottom: 1px;
}

.hero-polaroid .washi-tape {
  width: 48px;
  height: 14px;
  top: -7px;
}

.hero-polaroid .pushpin {
  width: 13px;
  height: 13px;
  top: -6px;
  left: 10px;
}

/* 左侧两张叠放（尺寸适度缩减，更具设计感） */
.hero-polaroid--left-1 {
  width: 152px;
  max-width: 152px;
  transform: rotate(-3.8deg);
  z-index: 2;
}

.hero-polaroid--left-2 {
  width: 146px;
  max-width: 146px;
  transform: rotate(4.2deg);
  margin-top: -16px;
  margin-left: 16px;
  z-index: 3;
}

/* 中间正文区：保持 Image 2 的自信大字号与宽敞通透间距 */
.hero-copy {
  position: relative;
  min-width: 0;
}

.hero-copy h1 {
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.05;
  margin-top: 14px;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}

/* 右侧点缀微缩照片墙（超紧凑小巧，绝对定位在右上角留白处，与大标题保持 280px+ 极宽安全间隙） */
.hero-right-photos {
  position: absolute;
  top: 18px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 5;
  pointer-events: auto;
}

.hero-polaroid--right-1 {
  width: 128px;
  max-width: 128px;
  transform: rotate(5.2deg);
  z-index: 2;
}

.hero-polaroid--right-2 {
  width: 132px;
  max-width: 132px;
  transform: rotate(-4.2deg);
  margin-top: -14px;
  margin-right: 14px;
  z-index: 3;
}

@media (max-width: 1220px) {
  .hero-right-photos {
    display: none;
  }
}

/* 拍立得相框卡片 */
.polaroid-card {
  position: relative;
  width: 100%;
  max-width: 228px;
  background: var(--white);
  border: 1.3px solid var(--ink-soft);
  border-radius: 7px 9px 6px 8px;
  padding: 9px 9px 12px;
  box-shadow: 4px 6px 0 rgba(81, 108, 113, .14);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, z-index .1s ease;
  cursor: pointer;
}

.polaroid-card:hover {
  transform: translateY(-8px) scale(1.08) rotate(0deg) !important;
  box-shadow: 8px 14px 0 rgba(81, 108, 113, .22) !important;
  z-index: 30 !important;
}

.polaroid-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(40, 53, 58, .15);
  border-radius: 3px;
  display: block;
}

.polaroid-card--tall img {
  aspect-ratio: 3 / 4;
}

.polaroid-card figcaption {
  margin-top: 8px;
  font-family: var(--hand);
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.35;
}

.polaroid-card figcaption b {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  color: var(--ink);
  margin-bottom: 2px;
}

/* 照片角标贴纸 */
.polaroid-badge {
  position: absolute;
  bottom: -9px;
  right: -8px;
  padding: 2px 8px;
  border: 1.2px solid var(--ink-soft);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
  box-shadow: 2px 2px 0 rgba(81, 108, 113, .16);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: .02em;
}

/* 工艺图钉效果 */
.pushpin {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8a7a, #d43d2c);
  box-shadow: 0 2px 4px rgba(0,0,0,.28), inset 0 1px 1px rgba(255,255,255,.7);
  border: 1px solid rgba(140, 30, 20, .4);
  z-index: 4;
  pointer-events: none;
}

.pushpin--yellow {
  background: radial-gradient(circle at 35% 35%, #ffe682, #d4a522);
  border-color: rgba(160, 120, 20, .4);
}

.pushpin--mint {
  background: radial-gradient(circle at 35% 35%, #a6e8bf, #3b9b66);
  border-color: rgba(40, 120, 70, .4);
}

.pushpin--blue {
  background: radial-gradient(circle at 35% 35%, #a8dcf5, #428bb8);
  border-color: rgba(40, 100, 150, .4);
}

/* 和纸胶带贴纸效果 */
.washi-tape {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 72px;
  height: 17px;
  background: rgba(248, 232, 165, .85);
  border-left: 1px dashed rgba(182, 151, 61, .6);
  border-right: 1px dashed rgba(182, 151, 61, .6);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  pointer-events: none;
  z-index: 3;
}

.washi-tape--corner-left {
  top: -8px;
  left: -14px;
  transform: rotate(-32deg);
  width: 58px;
  height: 16px;
}

.washi-tape--corner-right {
  top: -8px;
  right: -14px;
  left: auto;
  transform: rotate(32deg);
  width: 58px;
  height: 16px;
}

.washi-tape--blue {
  background: rgba(217, 235, 244, .88);
  border-color: rgba(103, 148, 168, .6);
}

.washi-tape--peach {
  background: rgba(246, 217, 209, .88);
  border-color: rgba(181, 124, 115, .6);
}

.washi-tape--mint {
  background: rgba(223, 240, 223, .88);
  border-color: rgba(96, 144, 120, .6);
}

.washi-tape--lavender {
  background: rgba(233, 224, 243, .88);
  border-color: rgba(135, 117, 167, .6);
}

/* 手写注解涂鸦 */
.wall-scribble {
  margin-top: 14px;
  font-family: var(--hand);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  user-select: none;
}

.wall-scribble--left {
  transform: rotate(-4deg);
  text-align: left;
  padding-left: 6px;
}

.wall-scribble--right {
  transform: rotate(3deg);
  text-align: right;
  padding-right: 6px;
}

/* 核心能力亮点条（4列横排，与原版一致） */
.impact-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.impact-fact-card {
  padding: 12px 14px;
  border: 1.2px solid var(--ink-soft);
  border-radius: 7px 5px 8px 4px;
  box-shadow: 2px 3px 0 rgba(81, 108, 113, .1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.impact-fact-card strong {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--ink);
}

.impact-fact-card p {
  margin: 0;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.35;
}

.impact-fact-card small {
  display: block;
  font-size: 9px;
  color: var(--muted);
}

/* 章节大故事卡片 */
.story-block {
  margin-bottom: 64px;
}

.story-card {
  background: var(--white);
  border: 1.3px solid var(--ink-soft);
  border-radius: 12px 7px 11px 6px;
  padding: 32px 36px;
  box-shadow: 4px 6px 0 rgba(81, 108, 113, .12);
  position: relative;
}

.story-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1.2px solid var(--line);
  padding-bottom: 18px;
}

.story-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  border: 1px solid var(--ink-soft);
}

.story-badge--leader {
  background: var(--peach);
  color: var(--peach-deep);
  border-color: var(--peach-deep);
}

.story-badge--pm {
  background: var(--blue);
  color: var(--blue-deep);
  border-color: var(--blue-deep);
}

.story-badge--care {
  background: var(--mint);
  color: var(--mint-deep);
  border-color: var(--mint-deep);
}

.story-badge--honor {
  background: var(--yellow);
  color: var(--yellow-deep);
  border-color: var(--yellow-deep);
}

.story-badge--class {
  background: var(--lavender);
  color: #5c437a;
  border-color: #c9b7dd;
}

.story-badge--life {
  background: var(--lavender);
  color: var(--lavender-deep);
  border-color: var(--lavender-deep);
}

.story-meta-date {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.story-title-group h3 {
  margin: 8px 0 4px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--ink);
}

.story-title-group p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* 故事内容双栏：左侧叙事 + 右侧照片集 */
.story-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: start;
}

.story-narrative p {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-top: 0;
  margin-bottom: 16px;
}

.story-keypoints {
  margin: 20px 0;
  padding: 16px 18px;
  background: var(--paper-deep);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.story-keypoints h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: .02em;
}

.story-keypoints ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.story-keypoints li {
  margin-bottom: 6px;
}

.story-keypoints li strong {
  color: var(--ink);
}

.story-callout {
  margin-top: 18px;
}

/* 照片拼贴区 */
.story-gallery {
  display: grid;
  gap: 16px;
}

.gallery-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gallery-item {
  position: relative;
  background: var(--paper);
  border: 1.2px solid var(--ink-soft);
  border-radius: 6px;
  padding: 8px;
  box-shadow: 2px 3px 0 rgba(81, 108, 113, .1);
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(40, 53, 58, .12);
  display: block;
}

.gallery-caption {
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
  font-family: var(--hand);
  line-height: 1.35;
  text-align: center;
}

/* 证书荣誉手账网格 */
.certs-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.cert-card {
  background: var(--white);
  border: 1.2px solid var(--ink-soft);
  border-radius: 8px 5px 7px 4px;
  padding: 12px;
  box-shadow: 3px 4px 0 rgba(81, 108, 113, .1);
  position: relative;
  transition: transform .2s ease;
}

.cert-card:hover {
  transform: translateY(-3px);
}

.cert-card-img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: contain;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px;
  margin-bottom: 8px;
}

.cert-level {
  display: inline-block;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 6px;
  border: 1px solid currentColor;
}

.cert-level--national {
  color: var(--peach-deep);
  background: var(--peach);
}

.cert-level--provincial {
  color: var(--yellow-deep);
  background: var(--yellow);
}

.cert-level--school {
  color: var(--blue-deep);
  background: var(--blue);
}

.cert-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.35;
}

.cert-desc {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* 时间线：本科四年的向上轨迹 */
.timeline-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.timeline-year-card {
  background: var(--white);
  border: 1.3px solid var(--ink-soft);
  border-radius: 8px 5px 7px 4px;
  padding: 20px 18px;
  box-shadow: 3px 4px 0 rgba(81, 108, 113, .1);
  position: relative;
}

.timeline-year-card--y1 {
  transform: rotate(-0.8deg);
}

.timeline-year-card--y2 {
  transform: rotate(0.6deg);
}

.timeline-year-card--y3 {
  transform: rotate(-0.5deg);
}

.timeline-year-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.timeline-year-tag {
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -.03em;
}

.timeline-focus-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid var(--ink-soft);
}

.timeline-year-card ul {
  margin: 0;
  padding-left: 16px;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.timeline-year-card li {
  margin-bottom: 6px;
}

.timeline-year-card li b {
  color: var(--ink);
}

/* 原 PPT 幻灯片查看器折叠框 */
.slide-inspect-details {
  margin-top: 36px;
  border: 1.2px dashed var(--ink-soft);
  border-radius: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .6);
}

.slide-inspect-details summary {
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  color: var(--blue-deep);
  user-select: none;
}

.slide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.slide-thumb-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-deep);
}

.slide-thumb-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.slide-thumb-card p {
  margin: 6px 10px;
  font-size: 10px;
  color: var(--ink-soft);
  font-weight: 700;
}

/* 响应式调整 */
@media (max-width: 1120px) {
  .live-hero {
    grid-template-columns: 180px minmax(0, 1fr) 180px;
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .live-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .photo-wall-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
  }
  
  .story-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .timeline-deck {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .story-card {
    padding: 22px 20px;
  }
}
