:root {
  --ink: #171716;
  --paper: #f6f0e7;
  --paper-soft: rgba(246, 240, 231, 0.76);
  --glass: rgba(23, 23, 22, 0.52);
  --glass-strong: rgba(23, 23, 22, 0.72);
  --line: rgba(246, 240, 231, 0.24);
  --muted: rgba(246, 240, 231, 0.72);
  --rain: #7fb7aa;
  --mint: #a6d8c2;
  --rose: #e4a18b;
  --amber: #d0a35c;
  --clay: #9b6b58;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 34%, rgba(255, 255, 255, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.46));
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

#custom-bg,
#custom-bg-mobile,
#color-overlay,
.rain-canvas {
  position: fixed;
}

#custom-bg,
#custom-bg-mobile {
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: blur(3px) brightness(44%) saturate(112%);
  will-change: filter;
}

#custom-bg-mobile {
  display: none;
}

@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  #custom-bg {
    display: none;
  }

  #custom-bg-mobile {
    display: block;
  }
}

#color-overlay {
  inset: 0;
  z-index: 0;
  background: transparent;
  opacity: 0;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.rain-canvas {
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.7;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 92px;
  font-weight: 700;
}

.brand-mark {
  width: 12px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--mint), var(--rose));
  box-shadow: 0 0 24px rgba(166, 216, 194, 0.42);
}

main,
.site-footer {
  position: relative;
  z-index: 3;
}

main {
  min-height: 0;
  overflow: hidden;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 31vw, 420px);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: max(clamp(20px, 4vh, 48px), env(safe-area-inset-top)) 0
    max(clamp(20px, 4vh, 48px), env(safe-area-inset-bottom));
}

.hero-copy {
  min-width: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.56);
}

.eyebrow,
.work-type {
  margin: 0;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 10px 0 16px;
  font-size: 5rem;
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.22),
    0 10px 42px rgba(0, 0, 0, 0.38);
}

.hero-lead {
  max-width: 650px;
  margin: 0;
  color: var(--paper-soft);
  font-size: 1.2rem;
}

.work-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow);
}

.hero-aside {
  width: 100%;
  display: grid;
  justify-items: end;
  gap: 42px;
}

.datetime-widget,
.weather-widget {
  position: relative;
  width: 100%;
  max-width: 420px;
  color: #fff;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.42);
}

.datetime-widget::before,
.weather-widget::before,
.datetime-widget::after,
.weather-widget::after {
  display: none;
}

.datetime-widget {
  min-height: auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(132px, 0.78fr) 1fr;
  align-items: center;
  column-gap: 28px;
  text-align: right;
}

.analog-clock {
  position: relative;
  grid-row: 1 / span 4;
  justify-self: start;
  width: clamp(136px, 13vw, 190px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle at 45% 42%, rgba(255, 255, 255, 0.08), transparent 0 34%, transparent 70%);
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.2));
  opacity: 0.86;
}

.analog-clock::before,
.analog-clock::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.analog-clock::before {
  inset: 18%;
  background: radial-gradient(circle, rgba(127, 215, 235, 0.2), transparent 0 54%);
  filter: blur(16px);
}

.analog-clock::after {
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 46%);
  backdrop-filter: blur(1.4px);
  -webkit-backdrop-filter: blur(1.4px);
}

.clock-face {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: visible;
}

.clock-ring,
.clock-inner-ring {
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
}

.clock-inner-ring {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-dasharray: 1 7;
}

.clock-tick {
  stroke: rgba(255, 255, 255, 0.4);
  stroke-linecap: round;
  stroke-width: 1.2;
}

.clock-tick.is-major {
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1.8;
}

.clock-number {
  fill: rgba(255, 255, 255, 0.66);
  font-size: 8px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
}

.clock-hand {
  --clock-angle: 0deg;
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 50%;
  width: 3px;
  border-radius: 999px;
  transform: translateX(-50%) rotate(var(--clock-angle));
  transform-origin: 50% 100%;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
}

.clock-hour {
  height: 23%;
  background: rgba(255, 255, 255, 0.88);
}

.clock-minute {
  height: 34%;
  background: rgba(255, 255, 255, 0.78);
}

.clock-second {
  width: 1px;
  height: 38%;
  background: var(--rose);
  box-shadow: 0 0 14px rgba(228, 161, 139, 0.66);
}

.clock-center {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.48);
  transform: translate(-50%, -50%);
}

.datetime-widget .time,
.datetime-widget .date,
.datetime-widget .day-name,
.datetime-widget .day-phase,
.weather-widget > * {
  position: relative;
  z-index: 1;
}

.datetime-widget .time {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
  grid-column: 2;
  font-size: 4.1rem;
  font-weight: 300;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.datetime-widget .time-seconds {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.35rem;
  font-weight: 300;
}

.datetime-widget .date {
  grid-column: 2;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  font-weight: 600;
}

.datetime-widget .day-name {
  grid-column: 2;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.datetime-widget .day-phase {
  grid-column: 2;
  justify-self: end;
  width: fit-content;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
}

.phase-sun {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffc24a;
  box-shadow: 0 0 14px rgba(255, 194, 74, 0.75);
}

.weather-widget {
  padding: 0;
  background: transparent;
}

.weather-header,
.weather-current,
.weather-details,
.weather-hourly {
  position: relative;
  z-index: 1;
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
}

.weather-location {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.location-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff4f8f;
  box-shadow: 0 0 12px rgba(255, 79, 143, 0.85);
}

.weather-current {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.weather-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: #e7efff;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.28));
}

.weather-glyph {
  width: 100%;
  height: 100%;
  overflow: visible;
  stroke-width: 1.65;
  vector-effect: non-scaling-stroke;
}

.weather-glyph--sun,
.weather-glyph--cloud-sun {
  color: #ffd166;
}

.weather-glyph--rain,
.weather-glyph--storm {
  color: #a9e5ff;
}

.weather-glyph--snow,
.weather-glyph--fog {
  color: #e7ddff;
}

.weather-temp {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 0.95;
}

.weather-unit {
  color: rgba(255, 255, 255, 0.64);
  font-size: 1rem;
  font-weight: 600;
}

.weather-desc {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  font-weight: 600;
}

.weather-details,
.weather-hourly {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.weather-details {
  margin-top: 24px;
}

.weather-detail-item,
.weather-hour {
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: 5px;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.detail-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.detail-icon::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.detail-icon.humidity::before {
  border-radius: 999px 999px 999px 2px;
  background: #7fc6ff;
  transform: rotate(-45deg);
}

.detail-icon.wind::before {
  width: 18px;
  height: 2px;
  top: 8px;
  background: #e7ddff;
  box-shadow: 5px -5px 0 -1px #e7ddff, -4px 5px 0 -1px #e7ddff;
}

.detail-icon.temp::before {
  width: 5px;
  left: 6px;
  border-radius: 999px;
  background: #ff77a8;
}

.weather-hourly {
  margin-top: 28px;
}

.weather-hour {
  min-height: 82px;
  padding: 12px 0 0;
}

.weather-hour.is-now {
  outline: 0;
  border-top-color: rgba(169, 229, 255, 0.7);
  box-shadow: 0 -1px 0 rgba(169, 229, 255, 0.28);
}

.weather-hour-time {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
}

.weather-hour-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #e7efff;
}

.weather-hour-temp {
  font-size: 1.05rem;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  max-width: 660px;
  margin-bottom: 32px;
}

.section-heading h2,
.about-copy h2 {
  margin: 8px 0 12px;
  font-size: 2.5rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p,
.about-copy p {
  color: var(--paper-soft);
  margin: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  overflow: hidden;
}

.work-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #2b2a26;
}

.work-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 240, 231, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 240, 231, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.work-visual span {
  position: absolute;
  display: block;
  border-radius: 8px;
}

.visual-a {
  background:
    radial-gradient(circle at 32% 30%, rgba(166, 216, 194, 0.56), transparent 8rem),
    linear-gradient(135deg, #252c2a, #151513);
}

.visual-a span:nth-child(1) {
  width: 44%;
  height: 52%;
  left: 12%;
  top: 18%;
  border: 1px solid rgba(246, 240, 231, 0.36);
  background: rgba(246, 240, 231, 0.08);
}

.visual-a span:nth-child(2) {
  width: 48%;
  height: 2px;
  right: 12%;
  top: 30%;
  background: var(--rose);
}

.visual-a span:nth-child(3) {
  width: 28%;
  height: 28%;
  right: 14%;
  bottom: 16%;
  background: rgba(127, 183, 170, 0.38);
}

.visual-b {
  background:
    linear-gradient(90deg, rgba(208, 163, 92, 0.56), transparent 38%),
    linear-gradient(135deg, #35261f, #161514);
}

.visual-b span:nth-child(1) {
  width: 20%;
  height: 68%;
  left: 14%;
  top: 14%;
  background: var(--paper);
}

.visual-b span:nth-child(2) {
  width: 46%;
  height: 18%;
  left: 42%;
  top: 22%;
  background: rgba(228, 161, 139, 0.74);
}

.visual-b span:nth-child(3) {
  width: 38%;
  height: 18%;
  left: 42%;
  bottom: 22%;
  background: rgba(166, 216, 194, 0.66);
}

.visual-c {
  background:
    radial-gradient(circle at 72% 34%, rgba(228, 161, 139, 0.58), transparent 9rem),
    linear-gradient(135deg, #2d2925, #151513);
}

.visual-c span:nth-child(1) {
  width: 54%;
  height: 54%;
  left: 12%;
  top: 20%;
  background: rgba(246, 240, 231, 0.12);
  border: 1px solid rgba(246, 240, 231, 0.3);
}

.visual-c span:nth-child(2) {
  width: 20%;
  height: 44%;
  right: 16%;
  top: 24%;
  background: rgba(208, 163, 92, 0.64);
}

.visual-c span:nth-child(3) {
  width: 54%;
  height: 1px;
  left: 22%;
  bottom: 18%;
  background: rgba(246, 240, 231, 0.72);
}

.work-info {
  padding: 18px;
}

.work-info h3 {
  margin: 6px 0 8px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.work-info p:last-child {
  margin: 0;
  color: var(--muted);
}

.about {
  max-width: 760px;
}

.about-copy p {
  font-size: 1.06rem;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  position: relative;
  margin: 0 auto;
  padding: 14px 0 max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: rgba(246, 240, 231, 0.68);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.beian-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.site-footer a,
.police-beian {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.police-beian {
  gap: 6px;
}

.police-beian img {
  width: 20px;
  height: 20px;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 8rem;
  }
}

@media (min-width: 1200px) {
  .hero h1 {
    font-size: 10rem;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .hero {
    padding: 18px 0 32px;
  }

  .datetime-widget {
    min-height: auto;
    padding: 0;
    grid-template-columns: 150px 1fr;
    column-gap: 24px;
  }

  .analog-clock {
    width: 150px;
  }

  .datetime-widget .time {
    font-size: 3.35rem;
  }

  .datetime-widget .date {
    margin-top: 14px;
  }

  .datetime-widget .day-phase {
    margin-top: 14px;
  }

  .weather-widget {
    padding: 20px 24px 18px;
  }

  .weather-current {
    margin-top: 18px;
  }

  .weather-icon {
    width: 56px;
    height: 56px;
  }

  .weather-temp {
    font-size: 2.8rem;
  }

  .weather-details {
    margin-top: 16px;
  }

  .weather-detail-item {
    min-height: 58px;
  }

  .weather-hourly {
    margin-top: 20px;
  }

  .weather-hour {
    min-height: 84px;
    padding: 10px 8px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .hero h1 {
    font-size: clamp(5.6rem, 10vw, 7rem);
  }

  .datetime-widget,
  .weather-widget {
    max-width: 340px;
  }

  .datetime-widget {
    grid-template-columns: 112px 1fr;
    column-gap: 18px;
  }

  .analog-clock {
    width: 112px;
  }

  .datetime-widget .time {
    font-size: 3.2rem;
  }

  .weather-widget {
    padding-inline: 0;
  }
}

@media (max-width: 900px) {
  .hero,
  .about {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .hero-aside {
    justify-items: stretch;
    max-width: 520px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 700px) {
  .datetime-widget {
    padding: 0;
  }

  .datetime-widget .time {
    font-size: 2.75rem;
  }
}

@media (max-width: 520px) {
  .hero,
  .section,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    align-content: center;
    gap: 14px;
    padding: max(24px, env(safe-area-inset-top)) 0
      max(28px, env(safe-area-inset-bottom));
  }

  .hero-brand {
    min-height: 32px;
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: 3.45rem;
  }

  .hero-lead {
    font-size: 0.96rem;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading h2,
  .about-copy h2 {
    font-size: 2rem;
  }

  .hero-aside {
    gap: 12px;
    max-width: none;
  }

  .datetime-widget,
  .weather-widget {
    width: 100%;
  }

  .datetime-widget {
    min-height: auto;
    padding: 0;
    grid-template-columns: 86px 1fr;
    column-gap: 14px;
  }

  .analog-clock {
    width: 86px;
  }

  .datetime-widget .time {
    font-size: 2.35rem;
  }

  .datetime-widget .time-seconds {
    font-size: 0.95rem;
  }

  .datetime-widget .date {
    margin-top: 10px;
    font-size: 0.82rem;
  }

  .datetime-widget .day-name {
    font-size: 0.66rem;
  }

  .datetime-widget .day-phase {
    min-height: 28px;
    margin-top: 10px;
    padding: 4px 12px;
    font-size: 0.72rem;
  }

  .weather-widget {
    padding: 16px;
  }

  .weather-header {
    font-size: 0.72rem;
  }

  .weather-current {
    grid-template-columns: 56px 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .weather-icon {
    width: 48px;
    height: 48px;
  }

  .weather-temp {
    font-size: 2.2rem;
  }

  .weather-desc {
    margin-top: 4px;
    font-size: 0.88rem;
  }

  .weather-details {
    margin-top: 12px;
  }

  .weather-detail-item {
    min-height: 46px;
    font-size: 0.78rem;
  }

  .weather-hourly {
    margin-top: 12px;
  }

  .weather-hour {
    min-height: 60px;
    padding: 7px 6px;
  }

  .weather-hour-time {
    font-size: 0.72rem;
  }

  .weather-hour-icon {
    width: 24px;
    height: 24px;
  }

  .weather-hour-temp {
    font-size: 0.86rem;
  }

  .site-footer {
    padding: 12px 0 max(14px, env(safe-area-inset-bottom));
    gap: 4px 12px;
    justify-content: center;
    text-align: center;
    font-size: 0.78rem;
  }

  .beian-links {
    justify-content: center;
    gap: 4px 10px;
  }

  .site-footer a,
  .police-beian {
    min-height: 44px;
  }

  .police-beian img {
    width: 16px;
    height: 16px;
  }

}

@media (max-width: 360px) {
  .hero {
    gap: 10px;
    padding: max(6px, env(safe-area-inset-top)) 0
      max(6px, env(safe-area-inset-bottom));
  }

  .hero-brand {
    min-height: 28px;
    margin-bottom: 6px;
  }

  .hero h1 {
    margin: 6px 0 8px;
    font-size: 2.8rem;
  }

  .hero-lead {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .hero-aside {
    gap: 8px;
  }

  .datetime-widget {
    grid-template-columns: 64px 1fr;
    column-gap: 10px;
  }

  .analog-clock {
    width: 64px;
  }

  .datetime-widget .time {
    font-size: 1.9rem;
  }

  .datetime-widget .time-seconds {
    font-size: 0.8rem;
  }

  .datetime-widget .date {
    margin-top: 5px;
    font-size: 0.72rem;
  }

  .datetime-widget .day-name {
    font-size: 0.58rem;
  }

  .datetime-widget .day-phase {
    min-height: 24px;
    margin-top: 5px;
    padding: 3px 10px;
    font-size: 0.66rem;
  }

  .weather-widget {
    padding: 10px;
  }

  .weather-header {
    font-size: 0.64rem;
  }

  .weather-current {
    grid-template-columns: 48px 1fr;
    gap: 6px;
    margin-top: 6px;
  }

  .weather-icon {
    width: 42px;
    height: 42px;
  }

  .weather-temp {
    font-size: 1.9rem;
  }

  .weather-desc {
    margin-top: 2px;
    font-size: 0.76rem;
  }

  .weather-details {
    gap: 6px;
    margin-top: 6px;
  }

  .weather-detail-item {
    min-height: 36px;
    font-size: 0.68rem;
  }

  .site-footer {
    padding: 6px 0 max(8px, env(safe-area-inset-bottom));
    gap: 2px 6px;
    font-size: 0.64rem;
  }

  .beian-links {
    flex-wrap: nowrap;
    gap: 2px 6px;
  }

  .site-footer a,
  .police-beian {
    min-height: 28px;
    white-space: nowrap;
  }

  .police-beian {
    gap: 3px;
  }

  .police-beian img {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 520px) and (max-height: 600px) {
  .weather-details {
    display: none;
  }
}

@media (max-width: 520px) and (max-height: 720px) {
  .hero {
    padding: 14px 0 24px;
  }

  .hero-brand {
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
  }

  .hero-lead {
    font-size: 0.9rem;
  }

  .datetime-widget {
    min-height: auto;
    padding: 0;
    grid-template-columns: 70px 1fr;
    column-gap: 12px;
  }

  .analog-clock {
    width: 70px;
  }

  .datetime-widget .time {
    font-size: 2.1rem;
  }

  .datetime-widget .date,
  .datetime-widget .day-phase {
    margin-top: 7px;
  }

  .weather-widget {
    padding: 14px;
  }

  .weather-current {
    margin-top: 10px;
  }

  .weather-details {
    margin-top: 10px;
  }

  .weather-hourly {
    display: none;
  }
}

@media (orientation: landscape) and (min-width: 640px) and (max-width: 900px) and (max-height: 520px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    align-items: center;
    gap: 24px;
    padding: 16px 0 18px;
  }

  .hero-brand {
    min-height: 32px;
    margin-bottom: 28px;
  }

  .hero h1 {
    margin: 8px 0 12px;
    font-size: clamp(4rem, 9vw, 5.5rem);
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .hero-aside {
    max-width: none;
    gap: 10px;
  }

  .datetime-widget {
    grid-template-columns: 76px 1fr;
    column-gap: 12px;
  }

  .analog-clock {
    width: 76px;
  }

  .datetime-widget .time {
    font-size: 2.3rem;
  }

  .datetime-widget .time-seconds {
    font-size: 0.9rem;
  }

  .datetime-widget .date {
    margin-top: 7px;
    font-size: 0.78rem;
  }

  .datetime-widget .day-name {
    font-size: 0.64rem;
  }

  .datetime-widget .day-phase {
    min-height: 26px;
    margin-top: 7px;
    padding: 3px 10px;
    font-size: 0.7rem;
  }

  .weather-widget {
    padding: 10px 0 0;
  }

  .weather-header {
    font-size: 0.72rem;
  }

  .weather-current {
    grid-template-columns: 52px 1fr;
    gap: 8px;
    margin-top: 8px;
  }

  .weather-icon {
    width: 46px;
    height: 46px;
  }

  .weather-temp {
    font-size: 2.1rem;
  }

  .weather-desc {
    margin-top: 3px;
    font-size: 0.82rem;
  }

  .weather-details {
    gap: 8px;
    margin-top: 8px;
  }

  .weather-detail-item {
    min-height: 42px;
    font-size: 0.75rem;
  }

  .weather-hourly {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .rain-canvas {
    display: none;
  }

  #custom-bg,
  #custom-bg-mobile {
    transform: none;
  }

  .clock-second,
  .time-seconds {
    display: none;
  }
}
