/**
 * L08 将来时与条件句讲义 · 专题样式（版式外壳见 ../shared/grammar-handout.css）
 */

body.grammar-handout-page.l08-handout {
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 220, 180, 0.38) 0%, transparent 42%),
    radial-gradient(circle at 90% 85%, rgba(200, 230, 255, 0.32) 0%, transparent 40%),
    linear-gradient(168deg, #ffeaa7 0%, #fab1a0 30%, #dfe6e9 100%);
}

body.grammar-handout-page main.sheet.l08-handout {
  max-width: var(--gh-sheet-max, 900px);
}

/* —— 封面（屏幕） —— */
body.grammar-handout-page.l08-handout .handout-cover {
  position: relative;
  margin: -0.25rem -0.5rem 1.25rem;
  padding: 2.5rem 1.5rem 2.75rem;
  border-radius: 10px 24px 12px 20px;
  overflow: hidden;
  text-align: center;
  color: #1a2a3a;
}

body.grammar-handout-page.l08-handout .handout-cover__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, #fff8e1 0%, #fff9f0 42%, #fff 100%),
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(240, 173, 78, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 85%, rgba(129, 199, 132, 0.14), transparent 50%);
  border: 1px solid rgba(240, 173, 78, 0.28);
  border-radius: inherit;
  z-index: 0;
}

body.grammar-handout-page.l08-handout .handout-cover__bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #e85d4c, #f0ad4e, #43a047);
}

body.grammar-handout-page.l08-handout .handout-cover__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(232, 93, 76, 0.07) 0 1px,
      transparent 1px
    ),
    radial-gradient(circle at 80% 70%, rgba(67, 160, 71, 0.06) 0 1px, transparent 1px);
  background-size: 18px 18px, 22px 22px;
  opacity: 0.65;
  pointer-events: none;
}

body.grammar-handout-page.l08-handout .handout-cover__inner {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  margin: 0 auto;
}

body.grammar-handout-page.l08-handout .handout-cover__brand {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #c62828;
}

body.grammar-handout-page.l08-handout .handout-cover__en {
  margin: 0 0 0.35rem;
  font-family: "Georgia", "Times New Roman", "Songti SC", serif;
  font-size: 1.05rem;
  font-style: italic;
  letter-spacing: 0.08em;
  color: #4a7c9b;
}

body.grammar-handout-page.l08-handout .handout-cover__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 5vw, 2.55rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.22;
  color: #0d1b2a;
}

body.grammar-handout-page.l08-handout .handout-cover__rule {
  width: 3.5rem;
  height: 3px;
  margin: 0 auto 1rem;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #f0ad4e, transparent);
}

body.grammar-handout-page.l08-handout .handout-cover__focus {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  font-weight: 500;
  color: #475569;
  letter-spacing: 0.04em;
}

body.grammar-handout-page.l08-handout .handout-section > h2.section-title:first-child {
  margin-top: 0;
}

body.grammar-handout-page.l08-handout .map-hint {
  margin: 0.55rem 0 0;
  font-size: 0.86rem;
  color: var(--gh-ink-soft, #5d4037);
  line-height: 1.55;
}

body.grammar-handout-page.l08-handout .handout-ex-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin: 0.45rem 0 0.55rem;
}

@media screen and (min-width: 640px) {
  body.grammar-handout-page.l08-handout .handout-ex-two-col {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 0.65rem;
  }
}

body.grammar-handout-page.l08-handout .handout-ex-two-col .ex-pair {
  margin: 0;
}

body.grammar-handout-page.l08-handout .mind-wrap {
  margin-bottom: 0.5rem;
}

body.grammar-handout-page.l08-handout .mind-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

@media (max-width: 640px) {
  body.grammar-handout-page.l08-handout .mind-pillars {
    grid-template-columns: 1fr;
  }
}

body.grammar-handout-page.l08-handout .mind-pillar {
  text-align: center;
  padding: 0.75rem 0.55rem;
  border-radius: 16px;
  border: 2px dashed rgba(155, 89, 182, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(243, 229, 245, 0.45) 100%);
  font-size: 0.84rem;
  line-height: 1.45;
}

body.grammar-handout-page.l08-handout .mind-pillar .ico {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.3rem;
}

body.grammar-handout-page.l08-handout .mind-pillar strong {
  display: block;
  color: #6a1b9a;
  margin-bottom: 0.25rem;
}

body.grammar-handout-page.l08-handout table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin: 0.45rem 0;
}

body.grammar-handout-page.l08-handout table.data-table th,
body.grammar-handout-page.l08-handout table.data-table td {
  border: 2px solid rgba(0, 0, 0, 0.1);
  padding: 0.35rem 0.45rem;
  text-align: left;
  vertical-align: top;
}

body.grammar-handout-page.l08-handout table.data-table th {
  background: rgba(74, 144, 217, 0.15);
  color: #0d47a1;
}

body.grammar-handout-page.l08-handout .warn-strip {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 235, 238, 0.85);
  border-left: 5px solid #e53935;
  font-size: 0.84rem;
  margin: 0.5rem 0;
  color: #b71c1c;
  font-weight: 700;
}

body.grammar-handout-page.l08-handout .handout-warn-final {
  margin-top: 0.35rem;
}

body.grammar-handout-page.l08-handout .tip-strip {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(232, 245, 233, 0.9);
  border-left: 5px solid #43a047;
  font-size: 0.84rem;
  margin: 0.5rem 0;
  color: #1b5e20;
}

body.grammar-handout-page.l08-handout .mirror-box {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 213, 79, 0.18), rgba(129, 199, 132, 0.18));
  border: 2px solid rgba(255, 152, 0, 0.4);
  font-size: 0.84rem;
  margin: 0.45rem 0;
  font-family: ui-monospace, Consolas, monospace;
  line-height: 1.5;
}

body.grammar-handout-page.l08-handout .adv-block:not(.handout-chant-block) {
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  border: 2px solid rgba(230, 126, 34, 0.4);
  background: rgba(255, 193, 7, 0.14);
}

body.grammar-handout-page.l08-handout .adv-block h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  color: #e65100;
}

body.grammar-handout-page.l08-handout button.tts-chip {
  font-size: 0.76rem;
  padding: 0.12rem 0.42rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  border: 2px solid #e85d4c;
  background: #fff;
  cursor: pointer;
  vertical-align: middle;
  touch-action: manipulation;
}

body.grammar-handout-page.l08-handout button.tts-chip:hover {
  background: #ffebee;
}

/* 专题打印微调（页边距/分页主规则见 shared/grammar-handout-print.css） */
@media print {
  body.grammar-handout-page.l08-handout button.tts-chip {
    display: none !important;
  }

  body.grammar-handout-page.l08-handout .warn-strip,
  body.grammar-handout-page.l08-handout .tip-strip,
  body.grammar-handout-page.l08-handout .mirror-box,
  body.grammar-handout-page.l08-handout .adv-block:not(.handout-chant-block) {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
