/**
 * L07 比较级与最高级讲义 · 专题样式（版式外壳见 ../shared/grammar-handout.css）
 */

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

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

/* —— 封面（屏幕） —— */
body.grammar-handout-page.l07-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.l07-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.l07-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.l07-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.l07-handout .handout-cover__inner {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  margin: 0 auto;
}

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

body.grammar-handout-page.l07-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.l07-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.l07-handout .handout-ex-two-col {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 0.65rem;
  }
}

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

body.grammar-handout-page.l07-handout .mind-wrap {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

body.grammar-handout-page.l07-handout .mind-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
}

body.grammar-handout-page.l07-handout .mind-pillar {
  text-align: center;
  padding: 0.75rem 0.55rem;
  border-radius: 12px;
  border: 2px dashed rgba(13, 148, 136, 0.35);
  background: rgba(204, 251, 241, 0.35);
  font-size: 0.88rem;
  line-height: 1.45;
}

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

body.grammar-handout-page.l07-handout .mind-pillar strong {
  display: block;
  color: var(--gh-accent-ink, #0f766e);
  margin-bottom: 0.2rem;
}

body.grammar-handout-page.l07-handout table.data td:nth-child(3),
body.grammar-handout-page.l07-handout table.data td:nth-child(4) {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
}

body.grammar-handout-page.l07-handout .key-term {
  font-weight: 800;
  border-bottom: 2px dotted rgba(13, 148, 136, 0.45);
}

body.grammar-handout-page.l07-handout .warn-strip {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(211, 47, 47, 0.08);
  border-left: 4px solid #e53935;
  font-size: 0.86rem;
  margin: 0.5rem 0;
  color: #b71c1c;
  font-weight: 700;
}

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

body.grammar-handout-page.l07-handout .mirror-box {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(204, 251, 241, 0.3);
  border: 2px solid rgba(13, 148, 136, 0.35);
  font-size: 0.86rem;
  margin: 0.45rem 0;
  line-height: 1.5;
}

body.grammar-handout-page.l07-handout .mirror-box code {
  background: rgba(0, 0, 0, 0.06);
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.88rem;
}

body.grammar-handout-page.l07-handout .adv-block:not(.handout-chant-block) {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  border: 2px solid rgba(13, 148, 136, 0.35);
  background: rgba(204, 251, 241, 0.22);
}

body.grammar-handout-page.l07-handout .adv-block h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--gh-accent-ink, #0f766e);
}

body.grammar-handout-page.l07-handout .adv-block ul {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
}

body.grammar-handout-page.l07-handout .mini-note {
  font-size: 0.82rem;
  color: var(--gh-ink-soft, #5d4037);
  margin: 0.35rem 0 0.5rem;
}

body.grammar-handout-page.l07-handout .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.5rem 0;
}

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

/* 专题打印微调（页边距/分页主规则见 shared/grammar-handout-print.css） */
@media print {
  body.grammar-handout-page.l07-handout .table-scroll {
    overflow: visible !important;
  }

  body.grammar-handout-page.l07-handout button.tts-chip {
    display: none !important;
  }

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