/*
 * rwdmodules.css
 * Module/page-specific responsive rules
 */
@media (max-width: 1200px) {
  /* modern/decode */
  .decode-main-grid { grid-template-columns: 1fr; }
  .network-container { height: 300px; }
  .network-node { width: 85px; height: 85px; }

  /* temple */
  .temple-sacred-quarters { grid-template-columns: 1fr; max-width: 800px; }

  /* system */
  .system-focus-matrix { margin: 0 1rem 2rem 1rem; }
}
/* =========================
   ≤ 1024px
========================= */
@media (max-width: 1024px) {
  /* contact base */
  .contact-box > div:last-child { grid-template-columns: 1fr; gap: 2rem; }
  .contact-option-card { padding: 2rem; }

  /* blueprint */
  .blueprint-content-container { grid-template-columns: 1fr; }
  .blueprint-related-sidebar { grid-column: 1; order: 2; }

  /* system: position matrix */
  .position-matrix {
    grid-template-columns: 150px repeat(4, 1fr);
    grid-template-rows: 50px repeat(5, 60px);
    max-width: 800px;
  }

  /* modern/consulting */
  .modern-consultingconsulting-gate::before { display: none; }
  .modern-consultingprocess-flow { flex-direction: column; align-items: stretch; }
  .modern-consultingflow-connector { display: none; }
  .modern-consultingflow-step { min-width: auto; margin-bottom: 1rem; }

  /* phenomenon (tablet) */
  .phenomenon-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
  }

  .modern-phenomenonarticles-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
  }

  .phenomenon-card { padding: 2rem; }

  /* verify */
  .verify-kanban-columns,
  .verify-articles-grid,
  .verify-related-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .verify-detail-cycle {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .verify-cycle-stage { min-width: auto; }

  /* modern-rules */
  .modern-rules-rule-types-horizontal {
    flex-direction: column;
    align-items: center;
  }

  .modern-rules-rule-type-horizontal {
    max-width: 400px;
    width: 100%;
  }

  .modern-rules-dimensions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* =========================
   ≤ 992px
========================= */
@media (max-width: 992px) {
  .contact-options-grid { grid-template-columns: 1fr; max-width: 600px; }
  .reminders-grid { grid-template-columns: 1fr; }
}
/* =========================
   ≤ 980px
========================= */
@media (max-width: 980px) {
  .page-contact .contact-page .contact-grid,
  .page-contact .contact-page .row-top,
  .page-contact .contact-page .row-bottom {
    grid-template-columns: 1fr;
    max-width: 500px;
    gap: 1.5rem;
  }

  .page-contact .contact-page .row-top { margin-bottom: 1.5rem; }
}
/* =========================
   ≤ 900px
========================= */
@media (max-width: 900px) {
  .system-focus-matrix { max-width: 95%; padding: 1.5rem; }

  .matrix-header,
  .matrix-row {
    grid-template-columns: 140px repeat(4, minmax(0, 1fr));
    font-size: 0.85rem;
  }

  .matrix-corner,
  .matrix-system-header { padding: 0.8rem 0.3rem; }

  .matrix-domain-header { padding: 0.8rem 0.2rem; font-size: 0.85rem; }

  .domain-icon { font-size: 1.1rem; }
  .system-icon-small { font-size: 1.1rem; }
  .matrix-cell { padding: 0.3rem; }
}
/* =========================
   ≤ 768px
========================= */
@media (max-width: 768px) {
  .contact-title { font-size: 2.5rem; }
  .contact-subtitle { font-size: 1.1rem; }
  .contact-box { padding: 2rem 1.5rem; }
  .contact-section { padding: 0 1rem; }

  /* ===== Grid ===== */
  .six-chambers,
  .deity-series,
  .guidance-grid,
  .info-grid { grid-template-columns: 1fr; }
/* ===== 聯絡頁（共用） ===== */
  .contact-options { gap: 1rem; }
  .contact-option { padding: 1.5rem; }
  .contact-option-card { padding: 1.8rem; }
  .contact-options-section { padding: 0 .5rem; }
  .analogy-box { flex-direction: column; text-align: center; }

  .contact-box > div:last-child > div:last-child > div > div:last-child,
  .contact-description > div:first-child > div:last-child {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* ===== deity / pantheon ===== */
  .deity-detail-header { padding: 2rem 1.5rem; }

  .deity-profile {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .deity-title { font-size: 2.5rem; letter-spacing: 2px; }

  .deity-essence-section,
  .deity-temple-section,
  .deity-related-section { padding: 1.8rem; }

  .deity-scroll-paper p { text-indent: 1em; }

  .panth-story-main-title { font-size: 1.8rem; }
  .panth-story-pagination { flex-direction: column; gap: 15px; }
  .panth-prev-story,
  .panth-next-story { max-width: 100%; text-align: center; }

  /* ===== page-contact ===== */
  .page-contact .contact-page .contact-header.clean { padding: 3rem 0 2rem; }
  .page-contact .contact-page .contact-title { font-size: 2.25rem; }
  .page-contact .contact-page .contact-section { padding: 2rem 0 3rem; }

  .page-contact .contact-page .card { min-height: 350px; padding: 1.75rem; }
  .page-contact .contact-page .card-free { min-height: 400px; }
  .page-contact .contact-page .free-content { gap: 1rem; }

  .page-contact .contact-page .free-points,
  .page-contact .contact-page .free-guide { padding: 1.25rem; }

  .page-contact .contact-page .card-icon { width: 48px; height: 48px; font-size: 1.5rem; }
  .page-contact .contact-page .card-title { font-size: 1.35rem; }

  .page-contact .contact-page .contact-wrap {
    width: min(1000px, calc(100% - 3rem));
  }

  /* ===== temple: ancient bookmark ===== */
  .temple-ancient-bookmark { width: 320px; height: 160px; }
  .temple-title-main { font-size: 2rem; }
  .temple-spine-seal-circle { width: 40px; height: 40px; }
  .temple-spine-seal-text { font-size: 1.4rem; }
  .temple-content-title { left: 70px; }

  /* ===== temple: sacred page ===== */
  .temple-sacred-header { padding: 4rem 1rem 2rem; }

  .temple-sacred-seal-large {
    width: 180px;
    height: 180px;
    margin-bottom: 3rem;
  }

  .temple-seal-inner-square { width: 110px; height: 110px; }
  .temple-seal-text-vertical span { font-size: 1.6rem; }

  .temple-sacred-title { font-size: 3.5rem; }
  .temple-text-content { font-size: 1.3rem; }

  .temple-sacred-quarters { padding: 1rem; gap: 3rem; }
  .temple-quarter-container { padding: 2rem; }

  .temple-container-icon { width: 120px; height: 120px; }
  .temple-quarter-title { font-size: 2rem; }

  .temple-sacred-btn { padding: 1rem 2.5rem; font-size: 1.1rem; gap: 0.6rem; }
  .temple-btn-icon { font-size: 0.9rem; }

  .temple-center-yin-yang { width: 120px; height: 120px; }
  .temple-inscription-main { font-size: 2rem; }

  /* ===== temple: research compact ===== */
  .temple-research-compact .temple-research-quarter { height: auto; }

  .temple-research-body {
    flex-direction: column;
    padding: 2rem 1.8rem;
    height: auto;
    gap: 2rem;
  }

  .temple-research-left { margin-right: 0; align-items: center; }

  .temple-research-divider {
    width: 80%;
    height: 2px;
    margin: 0 auto;
    flex-direction: row;
    justify-content: space-around;
  }

  .temple-research-stitch {
    position: static;
    transform: none;
    width: 3px;
    height: 12px;
  }

  .temple-research-stitch:nth-child(1),
  .temple-research-stitch:nth-child(2),
  .temple-research-stitch:nth-child(3),
  .temple-research-stitch:nth-child(4),
  .temple-research-stitch:nth-child(5) { top: auto; }

  .temple-research-action { position: static; margin-top: 1.5rem; text-align: center; }
  .temple-research-title { font-size: 2rem; text-align: center; }
  .temple-research-subtitle { text-align: center; }

  /* ===== blueprint ===== */
  .blueprint-value-proposition { flex-direction: column; align-items: center; }
  .value-card { width: 100%; max-width: 280px; }
  .blueprint-value-cards { grid-template-columns: 1fr; gap: 1rem; }
  .blueprint-value-card { margin-top: 1rem; }

  .blueprint-cta-buttons { flex-direction: column; align-items: center; }

  .blueprint-cta-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .blueprint-value-section { padding: 0 1rem; }

  .blueprint-cta-card { padding: 1.5rem; }
  .blueprint-cta-card h3 { font-size: 1.5rem; }

  .blueprint-simple-filter { padding: 1rem; margin: 0 1rem 2rem 1rem; }

  .blueprint-page-title { font-size: 2rem; }

  .blueprint-strategies-grid,
  .blueprint-distribution-grid,
  .blueprint-article-navigation,
  .blueprint-templates-grid,
  .blueprint-related-grid { grid-template-columns: 1fr; }

  .blueprint-filter-row { flex-direction: column; align-items: stretch; }
  .blueprint-filter-btn { width: 100%; text-align: center; }
  .blueprint-article-title { font-size: 1.8rem; }

  /* ===== modern/consulting ===== */
  .modern-consultingconsulting-gate { grid-template-columns: 1fr; }
  .modern-consultinginvestment-breakdown { grid-template-columns: 1fr; }

  .modern-consultingcta-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .modern-consultingcta-actions { flex-direction: column; }
  .modern-consultingdoor-icon { display: none; }

  /* ===== system navigation / decode controls ===== */
  .system-navigation { padding: 1.2rem; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }

  .system-nav-btn {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    flex: 1 0 calc(50% - 0.6rem);
    min-width: 120px;
    justify-content: center;
  }

  .nav-icon { width: 24px; height: 24px; font-size: 1.1rem; }

  .decode-section-header { flex-direction: column; align-items: stretch; gap: 1rem; }
  .section-controls { flex-wrap: wrap; }

  /* ===== system focus matrix ===== */
  .matrix-header,
  .matrix-row {
    grid-template-columns: 120px repeat(4, minmax(0, 1fr));
    font-size: 0.8rem;
  }

  .matrix-corner { padding: 0.6rem 0.3rem; font-size: 0.85rem; }

  .matrix-system-header { padding: 0.6rem 0.3rem; font-size: 0.85rem; gap: 0.4rem; }

  .matrix-domain-header { font-size: 0.8rem; padding: 0.6rem 0.2rem; }

  .domain-icon { font-size: 1rem; margin-bottom: 0.2rem; }

  .heat-bar { width: 60%; }

  .matrix-footer { padding: 1rem; }

  .intensity-scale { flex-direction: column; gap: 0.5rem; }

  /* ===== decode: network & reading paths ===== */
  .reading-paths { grid-template-columns: 1fr; }
  .quick-stats { flex-direction: column; gap: 1rem; align-items: center; }

  /* ===== position matrix (mobile) ===== */
  .position-matrix {
    grid-template-columns: 120px repeat(4, 1fr);
    grid-template-rows: 45px repeat(5, 50px);
    max-width: 600px;
    margin: 1.5rem auto;
  }

  .domain-axis-grid .axis-value,
  .system-axis-grid .axis-value {
    font-size: 0.75rem;
    padding: 0.3rem 0.2rem;
    line-height: 1.1;
  }

  .matrix-corner-block { font-size: 0.8rem; padding: 0.3rem; }

  .point-pulse { width: 30px; height: 30px; }
  .point-center { width: 12px; height: 12px; }

  .axis-value { font-size: 0.8rem; padding: 0.3rem 0.5rem; }

  .point-label {
    position: static;
    transform: none;
    margin-top: 1rem;
    left: auto;
    text-align: center;
  }

  /* ===== modern/decode article ===== */
  .article-content-container {
    padding: 1.5rem;
    margin: 0 1rem;
    width: calc(100% - 2rem);
  }

  .article-content h2::before {
    position: static;
    display: inline-block;
    margin-right: 0.5rem;
  }

  .modern-decode-article-header { padding: 1.5rem; }

  /* ===== sticker / notice layout (your inserted block) ===== */
  
  .section-title { font-size: 2rem; }

  .hero-content { flex-direction: column; text-align: center; gap: 2rem; }
  .compass-simple { width: 150px; height: 150px; }

  .contrast-grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }

  .contrast-divider {
    padding: 1.5rem;
    order: -1;
    min-width: auto;
    min-height: auto;
  }

  .divider-line {
    width: 80%;
    height: 2px;
    background: linear-gradient(to right,
      transparent 0%,
      rgba(0,0,0,0.1) 30%,
      rgba(0,0,0,0.2) 50%,
      rgba(0,0,0,0.1) 70%,
      transparent 100%);
  }

  .sticker-vertical-line {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    margin-top: 2rem;
    height: auto;
  }

  .sticker-vertical-line .divider-sticker {
    width: 80px !important;
    height: 80px !important;
  }

  .divider-label {
    width: 50px;
    height: 50px;
    font-size: 1rem;
    margin: 0 10px;
  }

  .contrast-column { padding: 2rem; }
  .column-header { flex-direction: row; text-align: left; gap: 1rem; }

  .insight-box { flex-direction: column; text-align: center; padding: 2rem; gap: 2rem; }
  .insight-text { font-size: 1.6rem; }

  .timeline-steps { flex-direction: column; gap: 4rem; }

  .hand-drawn-line {
    width: 3px;
    height: 80%;
    left: 50px;
    top: 0;
    bottom: 0;
    transform: none;
  }

  .drawn-line { transform: none; }

  .timeline-step {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 2rem;
  }

  .step-marker { margin-bottom: 0; flex-shrink: 0; }

  .hand-drawn-border { padding: 2rem 1.5rem; }

  .reminder-header { flex-direction: column; text-align: center; gap: 1rem; }
  .reminder-header::after { left: 50%; transform: translateX(-50%); }

  .reminder-header h3 { font-size: 1.6rem; }

  .reminder-emphasis { font-size: 1.2rem; padding: 0.5rem 0.8rem; }

  .reminder-action { padding: 1.5rem; }

  .hand-drawn-button {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
    display: inline-flex;
  }

  .reminder-text { padding: 1.2rem; }
  .reminder-text p { font-size: 1.1rem; }

  .sticker-image { width: 100px; height: 100px; }
  .lightbulb-image { width: 120px; height: 100px; }

  /* ===== phenomenon (mobile) ===== */
  .phenomenon-header {
    padding: 3rem 1.5rem 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
  }

  .modern-phenomenonpage-title { font-size: 2.2rem; }
  .modern-phenomenonpage-description { font-size: 1.1rem; margin: 0 auto; }

  .modern-phenomenonmicroscope-icon {
    right: 1.5rem;
    bottom: 1.5rem;
    width: 60px;
    height: 60px;
  }

  .modern-phenomenon-simple-filter { padding: 1.25rem; margin-bottom: 2rem; }
  .modern-phenomenon-filter-row { justify-content: flex-start; }

  .phenomenon-grid,
  .modern-phenomenonarticles-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .phenomenon-card { padding: 2rem; }

  .phenomenon-heatmap { gap: 1rem; }
  .heatmap-item { padding: 1rem; }
  .heatmap-visual { gap: 0.3rem; }
  .heat-dot { width: 14px; height: 14px; }

  .legend-items { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  .modern-phenomenoncontent-section.modern-phenomenonarticles-section {
    padding: 2.5rem 2rem;
    margin: 2.5rem 0 4rem;
  }

  .modern-phenomenonsection-title { font-size: 1.6rem; }

  .modern-phenomenonarticle-card { padding: 1.75rem; }

  /* phenomenon single */
  #phenomenon-article .inner-page { padding: 1rem; }
  .modern-phenomenon-article-header { padding: 2rem 1.5rem; }
  .modern-phenomenon-article-title { font-size: 1.7rem; }

  .modern-phenomenon-article-meta { flex-direction: column; align-items: flex-start; }

  .modern-phenomenon-article-navigation { flex-direction: column; gap: 1.5rem; }

  .modern-phenomenon-nav-prev,
  .modern-phenomenon-nav-next {
    width: 100%;
    border: none;
    padding: 0;
  }

  .modern-phenomenon-related-grid { grid-template-columns: 1fr; }
  .modern-phenomenon-related-articles { padding: 2rem 1.5rem; }

  /* ===== verify ===== */
  .verify-realtime-stats,
  .verify-metrics-grid { grid-template-columns: repeat(2, 1fr); }

  .verify-filter-row { justify-content: center; }

  .verify-detail-navigation { grid-template-columns: 1fr; }

  .verify-detail-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .verify-detail-reading { margin-left: 0; }

  /* ===== modern-rules ===== */
  .modern-rules-data-header.modern-rules-hero { padding: 2rem 1.5rem; }

  .modern-rules-inner-page { padding: 0 1rem; }
  .modern-rules-page-title { font-size: 2.2rem; }

  .modern-rules-stats-dashboard { grid-template-columns: repeat(2, 1fr); }

  .modern-rules-rule-types-container,
  .modern-rules-dimensions-explanation { padding: 1.5rem; }

  .modern-rules-dimensions-grid,
  .modern-rules-domains-grid,
  .modern-rules-cases-grid { grid-template-columns: 1fr; }

  .modern-rules-cases-header { flex-direction: column; text-align: center; }

  .modern-rules-cases-controls {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }

  .modern-rules-domain-actions { flex-direction: column; }
}
/* =========================
   ≤ 640px
========================= */
@media (max-width: 640px) {
  /* blueprint paper base */
  .blueprint-article-content-wrapper {
    padding: 1rem 0.95rem 0.25rem 0.95rem;
    border-radius: 16px;
  }

  .blueprint-article-content > p:first-of-type { font-size: 1.08rem; }
}
/* =========================
   ≤ 600px
========================= */
@media (max-width: 600px) {
  .system-focus-matrix { padding: 1rem; border-radius: 12px; }

  .matrix-header,
  .matrix-row {
    grid-template-columns: 100px repeat(4, minmax(0, 1fr));
    min-height: 60px;
  }

  .matrix-corner { font-size: 0.8rem; padding: 0.5rem 0.2rem; }

  .matrix-system-header {
    font-size: 0.8rem;
    padding: 0.5rem 0.2rem;
    gap: 0.3rem;
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }

  .system-icon-small { font-size: 1rem; }

  .matrix-domain-header {
    font-size: 0.75rem;
    padding: 0.5rem 0.1rem;
    flex-direction: row;
    gap: 0.2rem;
  }

  .domain-icon { font-size: 0.9rem; margin-bottom: 0; }

  .heat-bar { width: 50%; }

  .heat-count { font-size: 0.8rem; bottom: 0.2rem; }

  .matrix-note { font-size: 0.8rem; text-align: center; }
}
/* =========================
   ≤ 480px
========================= */
@media (max-width: 480px) {
  /* page-contact */
  .page-contact .contact-page .contact-grid { gap: 1rem; }

  .page-contact .contact-page .card { min-height: 320px; padding: 1.5rem; }
  .page-contact .contact-page .card-free { min-height: 380px; }

  .page-contact .contact-page .card-icon { width: 44px; height: 44px; font-size: 1.4rem; }
  .page-contact .contact-page .card-title { font-size: 1.3rem; }

  .page-contact .contact-page .card-actions { flex-direction: column; }

  .page-contact .contact-page .btn { padding: .875rem 1rem; font-size: .9rem; }

  .page-contact .contact-page .contact-note { margin-top: 2rem; padding: 1rem 1.25rem; }

  .page-contact .contact-page .header-container { width: min(800px, calc(100% - 2rem)); }
  .page-contact .contact-page .contact-wrap { width: min(1000px, calc(100% - 2rem)); }

  /* temple: sacred page */
  .temple-sacred-title { font-size: 2.8rem; letter-spacing: 2px; }
  .temple-title-number { font-size: 2rem; }
  .temple-quarter-desc { font-size: 1.2rem; }

  .temple-sacred-btn { padding: 0.8rem 2rem; font-size: 1rem; gap: 0.5rem; }
  .temple-btn-icon { font-size: 0.85rem; }

  /* blueprint */
  .blueprint-cta-card { padding: 1.2rem; }
  .blueprint-cta-card h3 { font-size: 1.3rem; }
  .blueprint-cta-card p { font-size: 1rem; }

  .blueprint-cta-button { padding: 0.8rem 1.5rem; font-size: 0.95rem; }

  .blueprint-header { padding: 2rem 1rem; }
  .blueprint-quick-stats { grid-template-columns: 1fr; }
  .blueprint-meta-badges { flex-direction: column; align-items: flex-start; }

  /* modern/consulting */
  .modern-consultinggate-card { padding: 1.5rem; }
  .modern-consultingtestimonial-card { padding: 1.5rem; }

  .modern-consultinginvestment-header { flex-direction: column; text-align: center; }

  .modern-consultinginvestment-stats { justify-content: space-around; width: 100%; }

  .modern-consultingfeature-item { flex-direction: column; text-align: center; }

  /* system navigation */
  .system-nav-btn { flex: 1 0 100%; }

  .sort-select,
  .view-toggle { flex: 1; min-width: 100%; }

  .article-card-link { padding: 1rem; }

  /* system focus matrix */
  .matrix-header,
  .matrix-row {
    grid-template-columns: 80px repeat(4, minmax(0, 1fr));
    font-size: 0.75rem;
  }

  .matrix-corner {
    font-size: 0.75rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    justify-content: center;
    height: 100%;
  }

  .matrix-system-header {
    font-size: 0.75rem;
    flex-direction: column;
    text-align: center;
    padding: 0.3rem;
  }

  .system-icon-small { font-size: 0.9rem; }

  .matrix-domain-header {
    font-size: 0.7rem;
    flex-direction: column;
    padding: 0.3rem 0.1rem;
  }

  .domain-icon { font-size: 0.8rem; }
  .heat-bar { width: 40%; }

  /* decode: network & articles */
  .network-container { height: 250px; }
  .network-node { width: 70px; height: 70px; }
  .node-icon { font-size: 1.5rem; }
  .node-label { font-size: 0.75rem; }
  .node-count { font-size: 0.7rem; }
  .connection { display: none; }

  .articles-grid-container { grid-template-columns: 1fr; }

  /* position matrix (dedicated) */
  .position-matrix {
    grid-template-columns: 100px repeat(4, 1fr);
    grid-template-rows: 40px repeat(5, 45px);
    max-width: 100%;
    margin: 1rem 0;
  }

  .domain-axis-grid .axis-value,
  .system-axis-grid .axis-value {
    font-size: 0.7rem;
    padding: 0.2rem;
    line-height: 1;
  }

  .matrix-corner-block { font-size: 0.75rem; padding: 0.2rem; }

  /* modern/decode article */
  .article-content-container {
    padding: 1rem;
    margin: 0 0.5rem;
    width: calc(100% - 1rem);
  }

  /* sticker / notice (your 480 block) */
  
  .hero-section { padding: 3rem 1rem; }
  .section-title { font-size: 1.8rem; }

  .sticker-vertical-line { gap: 15px; }

  .sticker-vertical-line .divider-sticker {
    width: 60px !important;
    height: 60px !important;
  }

  .divider-label {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    margin: 0 5px;
  }

  .insight-text { font-size: 1.4rem; }

  .hand-drawn-border { padding: 1.5rem 1rem; }

  .reminder-header h3 { font-size: 1.4rem; }
  .reminder-icon { font-size: 2rem; }

  .reminder-text p { font-size: 1rem; }

  .reminder-emphasis { font-size: 1.1rem; }

  .hand-drawn-button { padding: 0.7rem 1.5rem; font-size: 0.95rem; }

  .reminder-action { padding: 1.2rem; }

  .sticker-image { width: 80px; height: 80px; }
  .lightbulb-image { width: 100px; height: 80px; }

  /* phenomenon 480 (your inserted block) */
  .phenomenon-header { padding: 2.5rem 1.25rem 2rem; }

  .modern-phenomenonpage-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .modern-phenomenonpage-description { font-size: 1rem; }

  .modern-phenomenonmicroscope-icon { display: none; }

  .modern-phenomenon-simple-filter {
    padding: 1rem;
    border-radius: var(--ph-radius-sm);
  }

  .modern-phenomenon-filter-row { gap: 0.5rem; }

  .modern-phenomenon-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .phenomenon-card { padding: 1.75rem; }

  .phenomenon-card > h2 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
  }

  .modern-phenomenonfocus-item {
    padding: 1rem;
    margin: 1rem 0;
  }

  .heatmap-label,
  .heatmap-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .insight-item { padding: 1.25rem; }

  .insight-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .modern-phenomenoncontent-section.modern-phenomenonarticles-section {
    padding: 2rem 1.5rem;
  }

  .modern-phenomenonarticle-card { padding: 1.5rem; }

  .modern-phenomenonarticle-card h3 { font-size: 1.2rem; }

  .modern-phenomenonarticle-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .modern-phenomenonarticle-date {
    margin-left: 0;
    align-self: flex-start;
  }

  /* verify */
  .verify-realtime-stats,
  .verify-metrics-grid,
  .verify-articles-grid { grid-template-columns: 1fr; }

  .verify-header { padding: 2rem 1rem; }
  .verify-page-title { font-size: 2rem; }

  .verify-stat-card,
  .verify-article-card,
  .verify-detail-header { padding: 1.2rem; }

  /* modern-rules */
  .modern-rules-data-header { padding: 2rem 1.5rem; }
  .modern-rules-page-title { font-size: 1.8rem; }

  .modern-rules-stats-dashboard { grid-template-columns: 1fr; }

  .modern-rules-rule-type-horizontal { min-width: 100%; }

  .modern-rules-domain-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .modern-rules-domain-icon { align-self: center; }
}
/* =========================
   Dark mode（not size-based）
========================= */
@media (prefers-color-scheme: dark) {
  .deity-detail-page {
    background-color: var(--paper-dark-bg);
    color: var(--paper-text-light);
  }

  .deity-detail-header,
  .deity-scroll-paper,
  .deity-temple-section,
  .deity-related-section,
  .deity-story-item {
    background: rgba(40, 35, 30, 0.95);
    border-color: var(--ink-wash-dark);
    color: var(--paper-text-light);
  }

  .deity-title,
  .deity-essence-title,
  .deity-stories-title,
  .deity-temple-title,
  .deity-related-title {
    color: var(--gold-light);
  }

  .deity-tag,
  .deity-back-btn {
    background: rgba(60, 50, 40, 0.8);
    border-color: var(--ink-wash-dark);
    color: var(--paper-text-light);
  }

  .deity-scroll-paper p,
  .deity-story-intro,
  .deity-temple-item p,
  .deity-related-card p {
    color: var(--paper-text-light);
  }
}
/* =========================
   Touch device optimizations
========================= */
@media (hover: none) and (pointer: coarse) {
  .phenomenon-card:hover,
  .modern-phenomenonarticle-card:hover,
  .modern-phenomenon-related-card:hover,
  .heatmap-item:hover,
  .insight-item:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .phenomenon-card:active,
  .modern-phenomenonarticle-card:active {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease;
  }

  .heat-dot:hover { transform: none; }
} 
