:root {
  color-scheme: only light;
  --paper: #f5ead0;
  --willow: #6f8f72;
  --panel: #fffaf0;
  --ink: #35291c;
  --muted: #5a4630;
  --bronze: #805321;
  --rule: #d9bf86;
  --radius: clamp(16px, 1.25vw, 24px);
  --gutter: clamp(18px, 2.4vw, 56px);
  --gap: clamp(14px, 1.45vw, 32px);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: radial-gradient(ellipse at top left, #cfe0c873, transparent 41%),
    linear-gradient(155deg, #fcf7e9, var(--paper) 58%, #eeddb5);
  color: var(--ink);
}
* { box-sizing: border-box; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100dvh;
  padding: var(--gap) var(--gutter);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--gap);
}
.scenic-ornaments {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  color: var(--willow);
  pointer-events: none;
}
.scenic-ornaments svg { position: absolute; opacity: .13; mix-blend-mode: multiply; }
.willow { top: 0; left: clamp(40px, 8vw, 100px); width: clamp(92px, 9vw, 180px); }
.scattered-leaves { right: 0; bottom: 0; width: clamp(125px, 15vw, 320px); }
.metrics h2::before, .details h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: .72em;
  margin-inline-end: .42em;
  border-radius: 4px;
  background: var(--willow);
}
.tips li strong::before {
  content: "";
  display: inline-block;
  width: .36em;
  height: .36em;
  margin-inline-end: .48em;
  vertical-align: .18em;
  border-radius: 50%;
  background: var(--willow);
}
.top, .brand, .conditions, footer { display: flex; align-items: center; }
.top, footer { justify-content: space-between; gap: var(--gap); }
.top { border-bottom: 1px solid var(--rule); padding-bottom: clamp(10px, 1vw, 18px); }
.brand, .conditions { gap: var(--gap); }
.brand img { width: clamp(42px, 4.1vw, 72px); height: auto; }
.brand h1 { margin: 0; font-size: clamp(22px, 2.25vw, 46px); font-weight: 650; line-height: 1.12; }
.conditions > div { min-width: 0; text-align: right; }
.conditions strong, .conditions time {
  display: block;
  font-size: clamp(18px, 1.8vw, 36px);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.conditions .weather strong { font-size: clamp(16px, 1.5vw, 30px); }
.conditions small { display: block; margin-top: 3px; color: var(--muted); font-size: clamp(12px, .9vw, 17px); }
button {
  border: 1px solid var(--bronze);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--bronze);
  min-height: 44px;
  min-width: 68px;
  padding: 5px 12px;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}
button:hover { background: var(--bronze); color: var(--panel); }
:is(button, a):focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; }
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1.28fr);
  grid-template-areas: "metrics hero details";
  gap: var(--gap);
}
.metrics {
  grid-area: metrics;
  margin: 0;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: var(--gap);
}
.metrics article { min-width: 0; display: grid; align-content: center; padding: clamp(12px, 1.25vw, 26px); }
.metrics article, .welcome, .details section, .hotlines {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px #7a521a1f;
}
.metrics h2, .details h2 { margin: 0; color: var(--bronze); font: 700 clamp(20px, 1.65vw, 34px)/1.25 "Songti SC", "SimSun", serif; }
.metrics p { margin: 6px 0 0; display: flex; flex-wrap: wrap; column-gap: .3em; align-items: baseline; }
.metrics strong { color: var(--bronze); font-size: clamp(26px, 3.25vw, 70px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.metrics span { color: var(--muted); font-size: clamp(12px, 1vw, 20px); }
.welcome {
  grid-area: hero;
  display: grid;
  grid-template-rows: minmax(220px, 1fr) auto;
  min-width: 0;
  margin: 0;
  padding: clamp(6px, .55vw, 12px);
}
.photo { position: relative; overflow: hidden; border-radius: calc(var(--radius) - 6px); background: #f6ecd7; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.welcome-copy h2 { margin: 0; color: var(--ink); font: 700 clamp(27px, 2.8vw, 60px)/1.12 "Songti SC", "SimSun", serif; }
.welcome-copy p { margin: .35em 0 0; color: var(--muted); font-size: clamp(14px, 1.2vw, 24px); }
figcaption { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding: clamp(10px, 1vw, 22px); }
.photo-caption { display: grid; gap: 5px; justify-items: end; }
.photo-controls:not([hidden]) { display: flex; align-items: center; gap: 6px; }
.photo-controls button { min-width: 44px; padding-inline: 9px; font-size: 13px; }
.photo-controls button:first-child, .photo-controls button:last-child { font-size: 22px; line-height: 1; }
figcaption small { color: var(--muted); font-size: clamp(12px, .84vw, 17px); }
.details {
  grid-area: details;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  justify-content: flex-start;
}
.details section { padding: clamp(15px, 1.35vw, 28px); }
.details h2 { margin-bottom: .55em; }
.details p, .details li { font-size: clamp(14px, 1.08vw, 23px); line-height: 1.55; margin: 0; overflow-wrap: anywhere; }
.details ul { list-style: none; margin: 0; padding: 0; }
.details li + li { margin-top: .56em; }
.details li time { display: block; color: var(--muted); font-size: max(12px, .77em); }
.tips { flex: 1; display: flex; flex-direction: column; }
.tips-header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tips-header h2 { margin: 0; }
.tips-header button { min-height: 36px; min-width: auto; padding-inline: 10px; font-size: clamp(12px, .84vw, 16px); }
.tips li { padding: .43em 0; }
.tips li + li { margin-top: 0; }
.tips li strong { display: block; color: var(--bronze); }
.tips li span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .tips.is-scrolling .tips-window {
    flex: 1 0 clamp(76px, 10vh, 132px);
    overflow: hidden;
    mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent);
  }
  .tips.is-scrolling .tips-track { animation: tips-up 26s linear infinite; }
  .tips.is-scrolling .tips-window:is(:hover, :focus-visible) .tips-track,
  .tips.is-scrolling.is-paused .tips-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .tips-header button, .tips-track [aria-hidden="true"] { display: none; }
  .tips-window { flex: 1 1 0; min-height: clamp(76px, 10vh, 132px); overflow: auto; }
}
@keyframes tips-up { to { transform: translateY(-50%); } }
.hotlines { background: #fffaf0eb; }
footer { color: var(--muted); font-size: clamp(12px, .8vw, 16px); }
.hotlines {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hotline {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: .4em;
  min-height: 44px;
  padding: 10px 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(12px, .92vw, 18px);
  white-space: nowrap;
}
.hotline strong { color: var(--bronze); font-size: 1.25em; font-variant-numeric: tabular-nums; }
.hotlines a:hover strong { text-decoration: underline; text-underline-offset: .18em; }
.hotlines li + li { border-left: 1px solid var(--rule); }
@media (max-width: 1060px) {
  .hotlines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hotlines li:nth-child(3) { border-left: 0; }
  .hotlines li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .hotline { flex-wrap: wrap; row-gap: 2px; }
}
@media (min-width: 961px) and (max-height: 820px) {
  :root { --gap: 14px; }
  .details section { padding: 12px 14px; }
}
@media (max-width: 960px) {
  main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "hero hero" "metrics metrics" "details details"; }
  .welcome { grid-template-rows: minmax(clamp(250px, 55vw, 470px), auto) auto; }
  .metrics { grid-template: none / repeat(4, minmax(0, 1fr)); padding: 0; }
  .metrics article { padding-inline: 14px; }
  .details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tips { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .top { flex-wrap: wrap; }
  .photo-caption { justify-items: start; }
  .conditions { width: 100%; justify-content: space-between; }
  .conditions > div { text-align: left; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details { grid-template-columns: 1fr; }
}
