/* ── 第一页 · 时钟 + 周历 ── */
.p1-hero {
  grid-column: 1 / -1;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 0 0 6px;
}

.p1-hero .hero-time {
  flex-shrink: 0;
}

.p1-hero .wg-weekcal {
  margin-top: 2px;
}

/* ── 周历 · 透明灰刊物风 ── */
.wg-weekcal {
  position: relative;
  width: 100%;
  padding: 14px 12px 12px 14px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto auto auto;
  gap: 0 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow:
    0 6px 24px rgba(100, 110, 125, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(22px) saturate(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
  padding-bottom: 14px;
}

.wg-weekcal__custom-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.wg-weekcal.has-custom-bg .wg-weekcal__custom-bg {
  opacity: 0.9;
}

.wg-weekcal.has-custom-bg {
  background: rgba(255, 255, 255, 0.16);
}

.wg-weekcal__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: soft-light;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
}

.wg-weekcal__rule {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  height: 1px;
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(160, 168, 178, 0.25) 30%, rgba(160, 168, 178, 0.35) 50%, rgba(160, 168, 178, 0.25) 70%, transparent);
  pointer-events: none;
}

.wg-weekcal__month {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  color: rgba(72, 78, 86, 0.88);
  padding-right: 4px;
  position: relative;
  z-index: 2;
}

.wg-weekcal__month em {
  display: block;
  font-style: normal;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(130, 138, 148, 0.75);
  margin-top: 4px;
  font-family: "Jost", "Noto Sans SC", sans-serif;
}

.wg-weekcal__grid {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px 4px;
  position: relative;
  z-index: 2;
  padding: 4px 0;
}

.wg-weekcal__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.wg-weekcal__dow {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(140, 148, 158, 0.75);
  font-family: "Noto Serif SC", serif;
}

.wg-weekcal__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(72, 78, 86, 0.82);
  font-variant-numeric: tabular-nums;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.wg-weekcal__col.is-today .wg-weekcal__num {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  background: rgba(110, 118, 128, 0.72);
  box-shadow:
    0 2px 8px rgba(100, 110, 125, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.wg-weekcal__col.is-today .wg-weekcal__dow {
  color: rgba(90, 98, 108, 0.9);
  font-weight: 500;
}

.wg-weekcal__deco {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  padding: 2px;
}

.wg-weekcal__art {
  position: absolute;
  inset: 2px;
  border-radius: 11px;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.35) 0%, transparent 42%),
    linear-gradient(145deg, rgba(248, 250, 252, 0.98), rgba(228, 232, 238, 0.92));
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(176, 184, 194, 0.72);
  box-shadow:
    0 3px 10px rgba(100, 110, 125, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: rotate(2deg);
}

.wg-weekcal.has-custom-art .wg-weekcal__art {
  background-color: transparent;
}

.wg-weekcal__art::after {
  content: "WEEK";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.75);
  font-family: "Jost", sans-serif;
}

.wg-weekcal.has-custom-art .wg-weekcal__art::after {
  display: none;
}

.wg-weekcal__foot {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(160, 168, 178, 0.2);
  position: relative;
  z-index: 2;
}

.wg-weekcal__vol {
  margin: 0;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(130, 138, 148, 0.8);
  font-family: "Jost", sans-serif;
}

.wg-weekcal__issue {
  margin: 0;
  font-size: 8px;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: rgba(120, 128, 138, 0.75);
}

.wg-weekcal__tail {
  grid-column: 1 / -1;
  grid-row: 4;
  position: relative;
  z-index: 2;
  margin-top: 4px;
  padding: 8px 6px 0;
  text-align: center;
}

.wg-weekcal__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.wg-weekcal__ornament-line {
  display: block;
  width: min(28%, 52px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(158, 166, 176, 0.42));
}

.wg-weekcal__ornament-line:last-child {
  background: linear-gradient(90deg, rgba(158, 166, 176, 0.42), transparent);
}

.wg-weekcal__ornament-mark {
  font-size: 5px;
  line-height: 1;
  color: rgba(140, 148, 158, 0.55);
  transform: scale(0.85);
}

.wg-weekcal__quote {
  margin: 0;
  font-family: "Noto Serif SC", "Cormorant Garamond", serif;
  font-size: 10px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: rgba(82, 88, 96, 0.82);
}

.wg-weekcal__sig {
  margin: 5px 0 0;
  font-family: "Jost", "Noto Sans SC", sans-serif;
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(130, 138, 148, 0.62);
}

.p1-hero [data-miya-copy].is-editing,
.wg-weekcal__quote.is-editing,
.wg-weekcal__sig.is-editing {
  outline: 1px dashed rgba(150, 160, 175, 0.5);
  outline-offset: 2px;
}

/* ── MEMO + 四应用 ── */
.p1-dock {
  grid-column: 1 / -1;
  grid-row: 4 / 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 8px;
  align-items: center;
  padding: 4px 0 2px;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.p1-dock .wg-memo {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  align-self: center;
  padding: 0;
}

.p1-dock .ic--dock1 { grid-column: 3; grid-row: 1; }
.p1-dock .ic--dock2 { grid-column: 4; grid-row: 1; }
.p1-dock .ic--dock3 { grid-column: 3; grid-row: 2; }
.p1-dock .ic--dock4 { grid-column: 4; grid-row: 2; }

@media (max-height: 700px) {
  .p1-hero { gap: 4px; padding: 0 0 4px; }
  .hero-time { padding: 2px 0 4px; }
  .hero-time__num { font-size: 48px; }
  .wg-weekcal { padding: 12px 10px 12px 12px; }
  .wg-weekcal__tail { padding-top: 6px; margin-top: 2px; }
  .wg-weekcal__quote { font-size: 9px; }
  .wg-weekcal__sig { font-size: 6px; letter-spacing: 0.18em; }
  .wg-weekcal__month { font-size: 20px; }
  .wg-weekcal__num { width: 22px; height: 22px; font-size: 10px; }
  .wg-weekcal__deco { width: 46px; height: 46px; }
}
