
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/SourceSerif4[opsz,wght].ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("../fonts/FiraSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("../fonts/FiraSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("../fonts/FiraSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


    :root {
      --paper: #FFF9F0;
      --paper-deep: #F3E8D6;
      --ink: #252525;
      --indigo: #2C3A6E;
      --indigo-dark: #1F2A52;
      --muted: #5C5A54;
      --soft: #FFF3E4;
      --ok-bg: #E8F4FF;
      --warn-bg: #FFF0D8;
      --max: 960px;
      --ease: cubic-bezier(0.22, 1, 0.36, 1);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--ink);
      font-family: "Fira Sans", system-ui, sans-serif;
      font-weight: 400;
      font-size: 16px;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      background:
        radial-gradient(ellipse 80% 50% at 10% -10%, #FFE6B8 0%, transparent 55%),
        radial-gradient(ellipse 70% 45% at 95% 5%, #B8E4F0 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 100%, #C8F0D8 0%, transparent 45%),
        linear-gradient(180deg, #FFF4E4 0%, #E8F2F8 40%, #F0F7F0 100%);
      min-height: 100vh;
    }
    a { color: var(--indigo); }
    a:hover { color: var(--indigo-dark); }
    button { font: inherit; color: inherit; cursor: pointer; }

    .wall {
      width: min(100% - 20px, var(--max));
      margin: 10px auto 40px;
      background: rgba(255, 249, 240, 0.92);
      border: 1px solid rgba(44, 58, 110, 0.12);
      border-radius: 18px;
      box-shadow:
        0 1px 0 rgba(255,255,255,0.8) inset,
        0 16px 40px rgba(44, 58, 110, 0.1);
      /* visible：否则 sticky 页头计划钮失效 */
      overflow: visible;
      animation: wallIn 0.55s var(--ease) both;
    }
    @keyframes wallIn {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: none; }
    }

    /* —— 历书上沿 —— */
    .spine {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 8px 18px;
      padding: 8px 12px 8px;
      position: sticky;
      top: 0;
      z-index: 30;
      border-radius: 18px 18px 0 0;
      background:
        linear-gradient(90deg,
          #A8C5E2 0%, #B8D98A 18%, #F0C75E 36%,
          #6EC9C0 54%, #E8B86D 72%, #A0B8D8 90%, #A8C5E2 100%);
      background-size: 200% 100%;
      animation: ribbonShift 18s linear infinite;
      box-shadow: 0 8px 18px rgba(44, 58, 110, 0.08);
    }
    @keyframes ribbonShift {
      from { background-position: 0% 50%; }
      to { background-position: 200% 50%; }
    }
    .spine-inner {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 4px 14px;
      width: 100%;
      background: rgba(255, 249, 240, 0.94);
      border-radius: 10px;
      padding: 6px 12px;
      box-shadow: 0 2px 10px rgba(37, 37, 37, 0.06);
    }
    .brand {
      font-family: "Source Serif 4", Georgia, serif;
      font-weight: 600;
      font-size: 1.05rem;
      line-height: 1.25;
      color: var(--ink);
      text-decoration: none;
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      transition: color 0.25s var(--ease);
    }
    .brand:hover { color: var(--indigo); }
    .contacts {
      display: flex;
      flex-wrap: wrap;
      gap: 4px 10px;
      align-items: center;
      font-size: 0.92rem;
      color: var(--muted);
    }
    .contacts a {
      color: var(--ink);
      text-decoration: none;
      border-bottom: 1px solid rgba(44,58,110,0.2);
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      padding: 0 2px;
      transition: color 0.2s, border-color 0.2s;
    }
    .contacts a:hover {
      color: var(--indigo);
      border-bottom-color: var(--indigo);
    }
    .dot { color: #C5C0B4; user-select: none; }

    /* 页头随滚仍可见：站名 + 实心免费计划 */
    .spine-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 12px;
      margin-left: auto;
    }
    .btn-plan-nav {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 36px;
      padding: 0 12px;
      border: none;
      border-radius: 9px;
      background: var(--indigo);
      color: #fff !important;
      font-weight: 500;
      font-size: 0.82rem;
      line-height: 1.2;
      text-decoration: none;
      white-space: nowrap;
      box-shadow: 0 3px 10px rgba(44, 58, 110, 0.28);
      transition: background 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s;
    }
    .btn-plan-nav:hover {
      background: var(--indigo-dark);
      color: #fff !important;
      transform: translateY(-1px);
      box-shadow: 0 5px 14px rgba(44, 58, 110, 0.34);
    }

    .pad { padding: 8px 14px 24px; }

    /* —— 十二月历 —— */
    .kal-head {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-start;
      justify-content: space-between;
      gap: 8px 16px;
      margin: 0 0 4px;
      animation: fadeUp 0.5s var(--ease) 0.05s both;
    }
    #kalendar h1 {
      margin: 0;
      font-family: "Source Serif 4", Georgia, serif;
      font-weight: 600;
      font-size: clamp(1.15rem, 2.4vw, 1.45rem);
      line-height: 1.2;
      color: var(--ink);
      flex: 1 1 220px;
    }
    .btn-plan-hero {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 0 16px;
      border: none;
      border-radius: 10px;
      background: var(--indigo);
      color: #fff !important;
      font-weight: 500;
      font-size: 0.92rem;
      line-height: 1.2;
      text-decoration: none;
      white-space: nowrap;
      flex: 0 0 auto;
      box-shadow: 0 4px 14px rgba(44, 58, 110, 0.3);
      transition: background 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s;
      animation: fadeUp 0.5s var(--ease) 0.08s both;
    }
    .btn-plan-hero:hover {
      background: var(--indigo-dark);
      color: #fff !important;
      transform: translateY(-1px);
      box-shadow: 0 6px 18px rgba(44, 58, 110, 0.36);
    }
    .lead {
      margin: 0 0 4px;
      color: var(--muted);
      max-width: 64ch;
      font-size: 0.9rem;
      animation: fadeUp 0.5s var(--ease) 0.12s both;
    }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: none; }
    }

    .year-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      margin: 0 0 10px;
    }

    .month-cell {
      position: relative;
      border: none;
      border-radius: 16px;
      min-height: 120px;
      padding: 0;
      display: flex;
      flex-direction: column;
      text-align: left;
      cursor: pointer;
      overflow: hidden;
      box-shadow: 0 4px 14px rgba(37, 37, 37, 0.08);
      transition:
        transform 0.28s var(--ease),
        box-shadow 0.28s var(--ease);
      -webkit-tap-highlight-color: transparent;
      animation: cardIn 0.5s var(--ease) both;
      background: #fff;
    }
    .month-cell:nth-child(1) { animation-delay: 0.05s; }
    .month-cell:nth-child(2) { animation-delay: 0.08s; }
    .month-cell:nth-child(3) { animation-delay: 0.11s; }
    .month-cell:nth-child(4) { animation-delay: 0.14s; }
    .month-cell:nth-child(5) { animation-delay: 0.17s; }
    .month-cell:nth-child(6) { animation-delay: 0.2s; }
    .month-cell:nth-child(7) { animation-delay: 0.23s; }
    .month-cell:nth-child(8) { animation-delay: 0.26s; }
    .month-cell:nth-child(9) { animation-delay: 0.29s; }
    .month-cell:nth-child(10) { animation-delay: 0.32s; }
    .month-cell:nth-child(11) { animation-delay: 0.35s; }
    .month-cell:nth-child(12) { animation-delay: 0.38s; }
    @keyframes cardIn {
      from { opacity: 0; transform: translateY(14px) scale(0.97); }
      to { opacity: 1; transform: none; }
    }
    .month-cell:hover,
    .month-cell:focus-visible {
      transform: translateY(-4px);
      box-shadow: 0 12px 28px rgba(37, 37, 37, 0.14);
      outline: none;
    }
    .month-cell.is-selected {
      transform: translateY(-2px);
      box-shadow:
        0 0 0 3px var(--indigo),
        0 14px 30px rgba(44, 58, 110, 0.22);
      z-index: 1;
    }

    .month-art {
      height: 40px;
      position: relative;
      overflow: hidden;
      flex-shrink: 0;
    }
    .month-art::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 40%, rgba(255,255,255,0.15) 100%);
      pointer-events: none;
    }
    .art-sun {
      position: absolute;
      width: 36px; height: 36px;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 35%, #FFF8C8, #F5C542 60%, #E89A20);
      box-shadow: 0 0 18px rgba(245, 197, 66, 0.55);
      top: 12px; right: 14px;
      animation: sunPulse 3.2s ease-in-out infinite;
    }
    @keyframes sunPulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.06); }
    }
    .art-cloud {
      position: absolute;
      width: 48px; height: 18px;
      background: rgba(255,255,255,0.75);
      border-radius: 20px;
      top: 28px; left: 16px;
      box-shadow: 16px -6px 0 -2px rgba(255,255,255,0.65);
    }
    .art-wave {
      position: absolute;
      left: 0; right: 0; bottom: 0;
      height: 22px;
      background:
        radial-gradient(ellipse 40px 18px at 20% 100%, rgba(255,255,255,0.35) 50%, transparent 52%),
        radial-gradient(ellipse 40px 18px at 55% 100%, rgba(255,255,255,0.3) 50%, transparent 52%),
        radial-gradient(ellipse 40px 18px at 85% 100%, rgba(255,255,255,0.35) 50%, transparent 52%);
    }
    .art-palm {
      position: absolute;
      bottom: 6px; left: 10px;
      width: 0; height: 0;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-bottom: 34px solid rgba(30, 80, 50, 0.35);
      transform: rotate(-8deg);
    }
    .art-palm::before {
      content: "";
      position: absolute;
      top: 22px; left: -18px;
      width: 36px; height: 10px;
      background: rgba(40, 110, 60, 0.4);
      border-radius: 50%;
      transform: rotate(-20deg);
    }
    .art-drop {
      position: absolute;
      width: 6px; height: 10px;
      background: rgba(255,255,255,0.55);
      border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
      top: 14px; left: 28%;
      box-shadow: 22px 8px 0 rgba(255,255,255,0.4), 40px 2px 0 rgba(255,255,255,0.45);
      animation: rainFall 2.4s ease-in-out infinite;
    }
    @keyframes rainFall {
      0%, 100% { transform: translateY(0); opacity: 0.7; }
      50% { transform: translateY(6px); opacity: 1; }
    }

    .m1 .month-art { background: linear-gradient(160deg, #7BA3D0 0%, #C5DCF0 55%, #E8F2FA 100%); }
    .m2 .month-art { background: linear-gradient(160deg, #8BA8D8 0%, #D0DCF0 55%, #F0F3FA 100%); }
    .m3 .month-art { background: linear-gradient(160deg, #6CB89A 0%, #B8E4C8 55%, #E8F7EF 100%); }
    .m4 .month-art { background: linear-gradient(160deg, #8BC45A 0%, #D0ECA0 50%, #F4FAD8 100%); }
    .m5 .month-art { background: linear-gradient(160deg, #2EB8B0 0%, #7EDCD4 50%, #D8F8F4 100%); }
    .m6 .month-art { background: linear-gradient(160deg, #F0A820 0%, #F8D868 45%, #FFF6DC 100%); }
    .m7 .month-art { background: linear-gradient(160deg, #2A9A8C 0%, #6ECAB8 50%, #D8F4EC 100%); }
    .m8 .month-art { background: linear-gradient(160deg, #1E8A7A 0%, #58B8A8 50%, #D0F0E8 100%); }
    .m9 .month-art { background: linear-gradient(160deg, #4AA888 0%, #90D0B0 50%, #E4F6EC 100%); }
    .m10 .month-art { background: linear-gradient(160deg, #E09840 0%, #F0C878 50%, #FFF0DC 100%); }
    .m11 .month-art { background: linear-gradient(160deg, #D8A070 0%, #F0D0B0 50%, #FFF5EB 100%); }
    .m12 .month-art { background: linear-gradient(160deg, #7090C0 0%, #B0C8E4 55%, #EBF0F8 100%); }

    .month-body {
      padding: 4px 8px 6px;
      display: flex;
      flex-direction: column;
      gap: 2px;
      flex: 1;
      background: #fff;
    }
    .m1 .month-body { background: linear-gradient(180deg, #F4F8FC, #fff); }
    .m2 .month-body { background: linear-gradient(180deg, #F6F8FC, #fff); }
    .m3 .month-body { background: linear-gradient(180deg, #F2FAF6, #fff); }
    .m4 .month-body { background: linear-gradient(180deg, #F6FAF0, #fff); }
    .m5 .month-body { background: linear-gradient(180deg, #F0FAF8, #fff); }
    .m6 .month-body { background: linear-gradient(180deg, #FFFBF0, #fff); }
    .m7 .month-body { background: linear-gradient(180deg, #F0FAF6, #fff); }
    .m8 .month-body { background: linear-gradient(180deg, #EEF8F4, #fff); }
    .m9 .month-body { background: linear-gradient(180deg, #F2FAF6, #fff); }
    .m10 .month-body { background: linear-gradient(180deg, #FFF8F0, #fff); }
    .m11 .month-body { background: linear-gradient(180deg, #FFF8F2, #fff); }
    .m12 .month-body { background: linear-gradient(180deg, #F4F6FA, #fff); }

    .month-num {
      font-family: "Source Serif 4", Georgia, serif;
      font-weight: 600;
      font-size: 0.72rem;
      letter-spacing: 0.08em;
      color: var(--indigo);
      line-height: 1;
      opacity: 0.85;
    }
    .month-name {
      font-family: "Source Serif 4", Georgia, serif;
      font-weight: 600;
      font-size: 0.98rem;
      line-height: 1.2;
      color: var(--ink);
      margin: 2px 0 0;
    }
    .month-temp {
      font-weight: 500;
      font-size: 1rem;
      color: var(--ink);
      margin-top: 4px;
      letter-spacing: -0.01em;
    }
    .month-temp span {
      font-weight: 400;
      font-size: 0.78rem;
      color: var(--muted);
      margin-left: 2px;
    }
    .month-hint {
      margin-top: auto;
      padding-top: 2px;
      font-size: 0.68rem;
      color: var(--muted);
      line-height: 1.3;
    }
    .month-open {
      margin-top: 4px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 30px;
      padding: 0 8px;
      border: none;
      background: var(--indigo);
      color: #fff;
      font-size: 0.8rem;
      font-weight: 500;
      border-radius: 7px;
      text-decoration: none;
      pointer-events: none;
      transition: background 0.25s var(--ease), transform 0.25s var(--ease);
      width: 100%;
    }
    .month-cell:hover .month-open {
      background: var(--indigo-dark);
    }
    .month-cell.is-selected .month-open {
      background: var(--indigo-dark);
      box-shadow: 0 2px 8px rgba(44, 58, 110, 0.35);
    }

    .aside-note {
      margin: 0 0 20px;
      padding: 12px 14px;
      border-radius: 12px;
      border-left: 4px solid #F0A820;
      background: linear-gradient(90deg, #FFF6DC, #FFFBF0);
      color: var(--muted);
      font-size: 0.92rem;
      max-width: 72ch;
      box-shadow: 0 2px 8px rgba(240, 168, 32, 0.08);
    }

    .month-toast {
      display: none;
      margin: 0 0 12px;
      padding: 12px 14px;
      background: linear-gradient(90deg, #E8F0FF, #F4F8FF);
      border: 1px solid #C5CEE4;
      border-radius: 12px;
      color: var(--ink);
      font-size: 0.9rem;
      animation: fadeUp 0.3s var(--ease);
    }
    .month-toast.show { display: block; }
    .month-toast strong {
      font-family: "Source Serif 4", Georgia, serif;
      font-weight: 600;
    }

    .photo-note {
      margin: 0 0 6px;
      font-size: 0.7rem;
      color: var(--muted);
      font-style: italic;
    }

    /* —— 双月比较 —— */
    #sravnenie-vhoda {
      margin: 8px 0 28px;
      padding: 18px;
      border-radius: 16px;
      border: 1px solid rgba(44, 58, 110, 0.12);
      background:
        linear-gradient(135deg, rgba(168, 197, 226, 0.25), rgba(240, 199, 94, 0.18) 50%, rgba(110, 201, 192, 0.22));
      box-shadow: 0 4px 16px rgba(44, 58, 110, 0.06);
    }
    #sravnenie-vhoda h2 {
      margin: 0 0 14px;
      font-family: "Source Serif 4", Georgia, serif;
      font-weight: 600;
      font-size: 1.2rem;
    }
    .cmp-row {
      display: flex;
      flex-wrap: wrap;
      gap: 12px 14px;
      align-items: flex-end;
    }
    .field {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 140px;
      flex: 1 1 140px;
    }
    .field label {
      font-size: 0.82rem;
      color: var(--muted);
      letter-spacing: 0.02em;
    }
    .field select {
      min-height: 44px;
      padding: 0 12px;
      border: 1px solid rgba(44, 58, 110, 0.2);
      border-radius: 10px;
      background: rgba(255,255,255,0.92);
      color: var(--ink);
      font: inherit;
      appearance: auto;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .field select:focus {
      outline: none;
      border-color: var(--indigo);
      box-shadow: 0 0 0 3px rgba(44, 58, 110, 0.15);
    }
    .btn-indigo {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 0 18px;
      border: none;
      border-radius: 10px;
      background: var(--indigo);
      color: #fff;
      font-weight: 500;
      font-size: 0.95rem;
      text-decoration: none;
      white-space: nowrap;
      transition: background 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s;
      box-shadow: 0 4px 12px rgba(44, 58, 110, 0.25);
    }
    .btn-indigo:hover {
      background: var(--indigo-dark);
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(44, 58, 110, 0.3);
    }
    .cmp-alert {
      display: none;
      margin-top: 12px;
      padding: 10px 12px;
      background: var(--warn-bg);
      border: 1px solid #E0D3BC;
      border-radius: 10px;
      color: var(--ink);
      font-size: 0.92rem;
    }
    .cmp-alert.show { display: block; }
    .cmp-confirm {
      display: none;
      margin-top: 12px;
      padding: 10px 12px;
      background: var(--ok-bg);
      border: 1px solid #C5CEE4;
      border-radius: 10px;
      font-size: 0.92rem;
    }
    .cmp-confirm.show { display: block; }

    .text-links {
      margin: 14px 0 0;
      display: flex;
      flex-wrap: wrap;
      gap: 8px 18px;
      font-size: 0.92rem;
    }
    .text-links .soon {
      color: var(--muted);
      opacity: 0.8;
      font-style: italic;
      min-height: 44px;
      display: inline-flex;
      align-items: center;
    }

    /* —— 数据说明 —— */
    #istochnik {
      margin: 0 0 28px;
      padding: 18px;
      border-radius: 16px;
      background: #fff;
      border: 1px solid rgba(44, 58, 110, 0.1);
      box-shadow: 0 4px 16px rgba(37, 37, 37, 0.04);
    }
    #istochnik h2 {
      margin: 0 0 12px;
      font-family: "Source Serif 4", Georgia, serif;
      font-weight: 600;
      font-size: 1.2rem;
    }
    .source-block {
      margin: 0 0 14px;
      font-size: 0.92rem;
      color: var(--ink);
      max-width: 74ch;
    }
    .source-block p { margin: 0 0 8px; }
    .chart-title {
      margin: 14px 0 10px;
      font-weight: 500;
      font-size: 0.95rem;
    }
    .temp-chart {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 6px 10px;
      align-items: center;
      margin: 0 0 10px;
      max-width: 680px;
    }
    .temp-chart .lab {
      font-size: 0.78rem;
      color: var(--muted);
      text-align: right;
      min-width: 2.6em;
    }
    .temp-chart .bar-wrap {
      height: 20px;
      background: #F4F0E8;
      border-radius: 10px;
      overflow: hidden;
      position: relative;
    }
    .temp-chart .bar {
      height: 100%;
      border-radius: 10px;
      min-width: 2px;
      transition: width 0.6s var(--ease);
    }
    .temp-chart .val {
      font-weight: 500;
      font-size: 0.86rem;
      min-width: 3.6em;
    }
    .precip-hold {
      margin: 12px 0;
      padding: 12px 14px;
      background: linear-gradient(90deg, #F0F7F4, #F8FBF9);
      border: 1px dashed #A8C8B8;
      border-radius: 12px;
      font-size: 0.92rem;
      color: var(--muted);
    }
    .source-block a { word-break: break-all; }

    /* —— 页脚 —— */
    .foot {
      margin-top: 4px;
      padding: 20px;
      border-radius: 16px;
      background:
        linear-gradient(135deg, rgba(44, 58, 110, 0.08), rgba(240, 168, 32, 0.12));
      border: 1px solid rgba(44, 58, 110, 0.12);
    }
    .foot-lead {
      margin: 0 0 12px;
      max-width: 56ch;
    }
    .foot-plan-alert {
      display: none;
      margin: 0 0 10px;
      padding: 10px 12px;
      background: var(--warn-bg);
      border: 1px solid #E0D3BC;
      border-radius: 10px;
      font-size: 0.92rem;
    }
    .foot-plan-alert.show { display: block; }
    .foot-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 14px;
    }
    .foot-contacts {
      margin: 0 0 10px;
      font-size: 0.92rem;
      color: var(--muted);
      display: flex;
      flex-wrap: wrap;
      gap: 4px 10px;
      align-items: center;
    }
    .foot-contacts a {
      color: var(--ink);
      text-decoration: none;
      border-bottom: 1px solid rgba(44,58,110,0.2);
      min-height: 44px;
      display: inline-flex;
      align-items: center;
    }
    .foot-contacts a:hover {
      color: var(--indigo);
      border-bottom-color: var(--indigo);
    }
    .project {
      margin: 0 0 4px;
      font-size: 0.9rem;
      color: var(--muted);
    }
    .duty {
      margin: 0;
      font-size: 0.86rem;
      color: var(--muted);
      max-width: 62ch;
    }

    /* 桌面 800 高：十二月必须完整落在首屏（含实心计划钮） */
    @media (min-width: 761px) and (max-height: 860px) {
      .wall { margin: 6px auto 16px; }
      .pad { padding: 2px 14px 8px; }
      .spine { padding: 5px 8px; }
      .spine-inner { padding: 3px 8px; gap: 4px 10px; }
      .brand { min-height: 32px; font-size: 0.98rem; }
      .contacts a { min-height: 32px; }
      .btn-plan-nav { min-height: 32px; padding: 0 10px; font-size: 0.78rem; }
      .kal-head { margin-bottom: 2px; gap: 6px 12px; }
      #kalendar h1 { font-size: 1.12rem; }
      .btn-plan-hero { min-height: 36px; padding: 0 12px; font-size: 0.84rem; }
      .lead { font-size: 0.78rem; margin-bottom: 2px; line-height: 1.3; }
      .photo-note { display: none; }
      .year-grid { gap: 5px; margin-bottom: 6px; }
      .month-hint { display: none; }
      .month-art { height: 22px; }
      .month-cell { min-height: 0; border-radius: 12px; }
      .month-body { padding: 2px 7px 4px; gap: 0; }
      .month-num { font-size: 0.64rem; }
      .month-name { font-size: 0.86rem; margin: 0; }
      .month-temp { margin-top: 0; font-size: 0.9rem; }
      .month-open { min-height: 22px; font-size: 0.68rem; margin-top: 1px; padding: 0 6px; }
      .art-sun { width: 16px; height: 16px; top: 3px; right: 6px; }
      .art-cloud { top: 8px; left: 6px; width: 28px; height: 8px; }
      .art-palm { transform: scale(0.55) rotate(-8deg); transform-origin: bottom left; }
      .art-drop { transform: scale(0.8); }
      .aside-note { margin: 0 0 4px; padding: 6px 10px; font-size: 0.78rem; }
    }

    @media (max-width: 760px) {
      .wall { width: min(100% - 12px, var(--max)); margin-top: 6px; border-radius: 14px; }
      .spine { padding: 6px 8px; }
      .spine-inner {
        padding: 6px 8px;
        border-radius: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
      }
      .brand { font-size: 0.98rem; min-height: 28px; }
      .spine-actions {
        margin-left: 0;
        width: 100%;
        justify-content: stretch;
        gap: 6px;
      }
      .btn-plan-nav {
        flex: 1 1 auto;
        width: 100%;
        min-height: 40px;
        font-size: 0.84rem;
        white-space: normal;
        text-align: center;
        padding: 6px 10px;
      }
      .contacts {
        font-size: 0.78rem;
        width: 100%;
        justify-content: space-between;
        gap: 2px 8px;
      }
      .contacts a { min-height: 32px; }
      .pad { padding: 4px 8px 18px; }
      .kal-head {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        margin-bottom: 2px;
      }
      #kalendar h1 { font-size: 1.05rem; flex: 0 0 auto; }
      .btn-plan-hero {
        width: 100%;
        min-height: 42px;
        font-size: 0.88rem;
        white-space: normal;
        text-align: center;
        padding: 8px 12px;
      }
      .lead { font-size: 0.76rem; margin-bottom: 2px; line-height: 1.3; }
      .photo-note { display: none; }
      .year-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        margin-bottom: 6px;
      }
      .month-cell { min-height: 0; border-radius: 10px; }
      .month-art { height: 18px; }
      .art-sun { width: 14px; height: 14px; top: 2px; right: 5px; }
      .art-cloud { display: none; }
      .art-palm { display: none; }
      .art-drop { transform: scale(0.7); top: 4px; }
      .month-body { padding: 2px 5px 3px; gap: 0; }
      .month-num { font-size: 0.58rem; }
      .month-name { font-size: 0.78rem; margin: 0; }
      .month-temp { font-size: 0.86rem; margin-top: 0; }
      .month-hint { display: none; }
      .month-open {
        font-size: 0.6rem;
        padding: 0 3px;
        min-height: 20px;
        border-radius: 5px;
        margin-top: 1px;
      }
      .aside-note { margin: 0 0 8px; padding: 6px 8px; font-size: 0.74rem; }
      #sravnenie-vhoda, #istochnik, .foot { padding: 14px; border-radius: 12px; }
    }

    /* 手机首屏高度：十二月 3×4 仍进视口 */
    @media (max-width: 760px) and (max-height: 900px) {
      .wall { margin-top: 4px; }
      .spine { padding: 4px 6px; }
      .spine-inner { padding: 4px 6px; gap: 4px; }
      .brand { font-size: 0.92rem; min-height: 24px; }
      .btn-plan-nav { min-height: 34px; font-size: 0.78rem; padding: 4px 8px; }
      .contacts { display: none; }
      .pad { padding: 2px 6px 12px; }
      .kal-head { gap: 4px; }
      #kalendar h1 { font-size: 0.98rem; flex: 0 0 auto; }
      .btn-plan-hero { min-height: 36px; font-size: 0.8rem; padding: 6px 10px; }
      .lead { font-size: 0.7rem; margin-bottom: 2px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
      .year-grid { gap: 4px; margin-bottom: 4px; }
      .month-art { height: 14px; }
      .month-body { padding: 1px 4px 2px; }
      .month-name { font-size: 0.72rem; }
      .month-temp { font-size: 0.8rem; }
      .month-open { min-height: 18px; font-size: 0.56rem; }
      .aside-note { margin: 0 0 6px; padding: 5px 7px; font-size: 0.68rem; line-height: 1.3; }
    }
    @media (max-width: 340px) {
      .year-grid { grid-template-columns: repeat(2, 1fr); }
      .month-cell { min-height: 156px; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }
  

/* —— 内页共用 —— */
.inner-hero {
  margin: 0 0 18px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(44, 58, 110, 0.12);
  background:
    linear-gradient(135deg, rgba(168, 197, 226, 0.28), rgba(240, 199, 94, 0.16) 55%, rgba(110, 201, 192, 0.2));
  box-shadow: 0 4px 16px rgba(44, 58, 110, 0.06);
  animation: fadeUp 0.45s var(--ease) both;
}
.inner-hero .month-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.inner-hero .month-art-inline {
  width: 56px;
  height: 36px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.inner-hero h1 {
  margin: 0 0 10px;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  line-height: 1.25;
  color: var(--ink);
}
.inner-hero .lede-temp {
  margin: 0;
  font-weight: 500;
  font-size: 1.05rem;
}
.prose {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(44, 58, 110, 0.1);
  box-shadow: 0 2px 10px rgba(37, 37, 37, 0.04);
}
.prose p {
  margin: 0 0 12px;
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.55;
}
.prose p:last-child { margin-bottom: 0; }
.climate-card {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #F4F8FC, #FFF9F0);
  border: 1px solid rgba(44, 58, 110, 0.12);
}
.climate-card h2 {
  margin: 0 0 10px;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
}
.climate-card p { margin: 0; max-width: 72ch; }
.stat-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 12px 0;
}
@media (min-width: 640px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
}
.stat-pill {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(44, 58, 110, 0.1);
}
.stat-pill .k {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.stat-pill .v {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--indigo);
}
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.btn-ghost-indigo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1.5px solid var(--indigo);
  background: transparent;
  color: var(--indigo);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s;
}
.btn-ghost-indigo:hover {
  background: rgba(44, 58, 110, 0.08);
  color: var(--indigo-dark);
}
.neighbor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 18px;
  font-size: 0.95rem;
}
.neighbor-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.compare-table {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}
.compare-row-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(44, 58, 110, 0.1);
}
@media (min-width: 700px) {
  .compare-row-card {
    grid-template-columns: 8rem 1fr 1fr;
    align-items: start;
  }
}
.compare-row-card .dim {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  color: var(--indigo);
}
.compare-row-card .col p { margin: 0; font-size: 0.95rem; }
.compare-row-card .col .tag {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.activity-card {
  margin: 0 0 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(44, 58, 110, 0.1);
  border-left: 4px solid var(--indigo);
}
.activity-card h3 {
  margin: 0 0 8px;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
}
.activity-card p { margin: 0 0 8px; max-width: 72ch; }
.activity-card p:last-child { margin-bottom: 0; }
.activity-card a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}
.pad.inner-pad { padding-top: 10px; }
.spine .brand { text-decoration: none; }

/* anchors used as month cells */
a.month-cell {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-align: left;
  width: 100%;
}
.text-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--indigo);
  text-decoration: none;
  border-bottom: 1px solid rgba(44,58,110,0.25);
}
.text-links a:hover {
  color: var(--indigo-dark);
  border-bottom-color: var(--indigo-dark);
}

/* GEO:begin */
.geo-brief {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--indigo, #2C3A6E);
  background: #F4F0E8;
  border-radius: 0 12px 12px 0;
  max-width: 74ch;
}
.geo-brief h2 { margin: 0 0 8px; font-size: 1.05rem; font-family: "Source Serif 4", Georgia, serif; font-weight: 600; }
.geo-brief p { margin: 0 0 8px; }
.geo-brief p:last-child { margin-bottom: 0; }
.geo-brief ul { margin: 6px 0 0; padding-left: 1.15em; }
.geo-brief a { word-break: break-all; }
.source-block a { word-break: break-all; }
/* GEO:end */

@media (max-width: 480px) {
  main, section, article, fieldset, .mast-right, .spine-actions { min-inline-size: 0; }
  p, li, a, h1, h2, h3, legend { overflow-wrap: anywhere; }
  .brand, .btn-plan-nav { white-space: normal; }
  .mast-right, .spine-actions, .btn-plan { max-inline-size: 100%; }
}

@media (max-width: 480px) { .btn-indigo { box-sizing: border-box; max-inline-size: 100%; min-inline-size: 0; white-space: normal; overflow-wrap: anywhere; text-align: center; } }
