/**
 * L09 过去进行时讲义 · 专题样式（版式外壳见 ../shared/grammar-handout.css）
 */

body.grammar-handout-page.l09-handout {
  background: linear-gradient(165deg, #f0fdfa 0%, #e6fffa 38%, #f8fafc 100%);
}

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

/* —— 封面（屏幕） —— */
body.grammar-handout-page.l09-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.l09-handout .handout-cover__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, #ccfbf1 0%, #f0fdfa 42%, #fff 100%),
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(13, 148, 136, 0.2), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 85%, rgba(74, 144, 217, 0.12), transparent 50%);
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: inherit;
  z-index: 0;
}

body.grammar-handout-page.l09-handout .handout-cover__bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #0d9488, #14b8a6, #4a90d9);
}

body.grammar-handout-page.l09-handout .handout-cover__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(13, 148, 136, 0.08) 0 1px,
      transparent 1px
    ),
    radial-gradient(circle at 80% 70%, rgba(74, 144, 217, 0.06) 0 1px, transparent 1px);
  background-size: 18px 18px, 22px 22px;
  opacity: 0.65;
  pointer-events: none;
}

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

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

body.grammar-handout-page.l09-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.1em;
  color: #4a7c9b;
}

body.grammar-handout-page.l09-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.l09-handout .handout-cover__rule {
  width: 3.5rem;
  height: 3px;
  margin: 0 auto 1rem;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #0d9488, transparent);
}

body.grammar-handout-page.l09-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.l09-handout .handout-section > h2.section-title:first-child {
  margin-top: 0;
}

body.grammar-handout-page.l09-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.l09-handout .handout-ex-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin: 0.45rem 0 0.65rem;
}

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

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

body.grammar-handout-page.l09-handout .handout-golden-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

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

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

body.grammar-handout-page.l09-handout .intro-strip {
  margin-bottom: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 2px solid rgba(13, 148, 136, 0.35);
  background: linear-gradient(180deg, rgba(204, 251, 241, 0.55), rgba(255, 251, 245, 0.95));
  font-size: 0.88rem;
  line-height: 1.65;
}

body.grammar-handout-page.l09-handout .intro-strip strong {
  color: var(--gh-accent-ink, #0f766e);
}

body.grammar-handout-page.l09-handout .usage-group-title {
  font-size: 0.95rem;
  color: var(--gh-accent-ink, #0f766e);
  margin: 0.9rem 0 0.45rem;
  padding: 0.3rem 0.5rem;
  background: rgba(204, 251, 241, 0.45);
  border-radius: 8px;
  border-left: 4px solid var(--gh-accent, #0d9488);
  font-weight: 900;
}

body.grammar-handout-page.l09-handout .usage-host .usage-group-title:first-child {
  margin-top: 0;
}

body.grammar-handout-page.l09-handout .usage-sub {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--gh-ink-soft, #5d4037);
  margin: 0.45rem 0 0.1rem;
}

body.grammar-handout-page.l09-handout .usage-rule {
  font-size: 0.8rem;
  color: var(--gh-ink-soft, #5d4037);
  margin: 0 0 0.35rem;
  line-height: 1.5;
}

body.grammar-handout-page.l09-handout .syntax-lines {
  font-size: 0.78rem;
  color: #37474f;
  margin: 0.35rem 0 0;
  padding: 0.35rem 0.5rem;
  background: rgba(204, 251, 241, 0.25);
  border-radius: 6px;
  line-height: 1.45;
}

body.grammar-handout-page.l09-handout .syntax-lines div {
  margin: 0.1rem 0;
}

body.grammar-handout-page.l09-handout .syntax-lines .sk {
  font-weight: 800;
  color: var(--gh-accent-ink, #0f766e);
}

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

body.grammar-handout-page.l09-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 0;
  color: #1b5e20;
  line-height: 1.55;
}

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

body.grammar-handout-page.l09-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.l09-handout button.tts-chip:hover {
  background: #ffebee;
}

body.grammar-handout-page.l09-handout .tap-card {
  transition: transform 0.12s ease;
}

@media (hover: hover) {
  body.grammar-handout-page.l09-handout .tap-card:hover {
    transform: scale(1.005);
  }
}

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

  body.grammar-handout-page.l09-handout .intro-strip,
  body.grammar-handout-page.l09-handout .warn-strip,
  body.grammar-handout-page.l09-handout .tip-strip {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.grammar-handout-page.l09-handout .syntax-lines {
    background: #f5f5f5 !important;
    font-size: 7.5pt !important;
  }
}
