/**
 * 淡青·清新主题：依赖 md2card-pro-theme.css。
 * 参考「白底 + 薄荷青绿」通用工作汇报风；无位图背景，用变量与装饰近似层次。
 *
 * 作用域：#deck[data-theme="fresh"]（预览）与 body[data-theme="fresh"]（导出 / 网页放映）。
 */

#deck[data-theme="fresh"],
body[data-theme="fresh"] {
  --fresh-teal: #2d7d6e;
  --fresh-teal-mid: #3d9b8a;
  --fresh-teal-light: #5ec4b4;
  --fresh-mint-bg: #e8f6f3;
  --fresh-text-heading: #134842;

  --pro-accent: var(--fresh-teal-mid);
  --pro-accent-soft: rgba(45, 125, 110, 0.12);
  --pro-accent-line: rgba(45, 125, 110, 0.38);
  --pro-text: #16302c;
  --pro-text-secondary: #3d534e;
  --pro-text-muted: #6b7f7a;
  --pro-border: #c5e8e0;
  --pro-bg-elevated: #f0faf8;
  --pro-bg-code: #e8f4f1;
  --pro-shadow: 0 4px 6px -1px rgba(19, 72, 66, 0.06),
    0 18px 40px -14px rgba(19, 72, 66, 0.1);
}

/* 预览：画布区背景 */
.preview-canvas-wrap:has(#deck[data-theme="fresh"]) {
  background: linear-gradient(
    165deg,
    var(--fresh-mint-bg) 0%,
    #f2f9f7 42%,
    #e2f0ed 100%
  );
}

/* 网页放映 / 独立 body */
body[data-theme="fresh"].md2card-pro-preview.wd-export {
  background: linear-gradient(
    165deg,
    var(--fresh-mint-bg) 0%,
    #f2f9f7 42%,
    #e2f0ed 100%
  );
}

#deck[data-theme="fresh"] .pro-card,
body[data-theme="fresh"] .pro-card {
  border-color: rgba(45, 125, 110, 0.12);
}

#deck[data-theme="fresh"] .pro-card__top,
body[data-theme="fresh"] .pro-card__top {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--fresh-teal) 0%,
    var(--fresh-teal-mid) 45%,
    var(--fresh-teal-light) 100%
  );
}

#deck[data-theme="fresh"] .pro-card__content h2,
body[data-theme="fresh"] .pro-card__content h2 {
  border-left-color: var(--fresh-teal-mid);
  color: var(--fresh-text-heading);
}

#deck[data-theme="fresh"] .pro-card__content h3,
body[data-theme="fresh"] .pro-card__content h3 {
  color: var(--fresh-text-heading);
}

#deck[data-theme="fresh"] .pro-card__content a,
body[data-theme="fresh"] .pro-card__content a {
  color: var(--fresh-teal);
}

#deck[data-theme="fresh"] .pro-card__content a:hover,
body[data-theme="fresh"] .pro-card__content a:hover {
  color: var(--fresh-teal-light);
}

#deck[data-theme="fresh"] .pro-card__content code,
body[data-theme="fresh"] .pro-card__content code {
  background: var(--pro-bg-code);
  border-color: var(--pro-border);
}

#deck[data-theme="fresh"] .pro-card__content blockquote,
body[data-theme="fresh"] .pro-card__content blockquote {
  border-left-color: var(--fresh-teal-mid);
  background: rgba(232, 246, 243, 0.65);
}

/* 装饰：淡圆（不挡正文） */
#deck[data-theme="fresh"] .preview-card-logical,
body[data-theme="fresh"] .web-deck-slide-inner--themed {
  position: relative;
}

#deck[data-theme="fresh"] .preview-card-logical::before,
body[data-theme="fresh"] .web-deck-slide-inner--themed::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  right: -80px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(94, 196, 180, 0.14) 0%,
    rgba(94, 196, 180, 0.04) 55%,
    transparent 72%
  );
}

#deck[data-theme="fresh"] .preview-card-logical > *,
body[data-theme="fresh"] .web-deck-slide-inner--themed article {
  position: relative;
  z-index: 1;
}
