:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #302e3d;
  background: #f6f5f7;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(ellipse at 13% 5%, #fbfafc 0, transparent 48%), #f6f5f7; }
button, a { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid #7764ac; outline-offset: 4px; }

.page { width: min(1200px, calc(100% - 80px)); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.site-header { height: 100px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e2e0e8; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark { width: 39px; height: 39px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #343243; color: #faf9fd; font-family: Georgia, serif; font-weight: 700; font-size: 25px; line-height: 1; letter-spacing: -3px; padding-right: 4px; }
.brand-mark span { color: #cfb2ea; }
.brand-name { font-size: 16px; font-weight: 650; letter-spacing: -.03em; }
.brand-name span { padding-left: 5px; font-size: 14px; font-weight: 500; letter-spacing: .03em; }
.header-note { display: flex; align-items: center; gap: 8px; color: #8d8a9a; font-size: 12px; letter-spacing: .04em; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #a18bc3; }

main { flex: 1; }
.hero { position: relative; min-height: max(560px, calc(100svh - 100px)); display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero-content { position: relative; z-index: 1; padding: 40px 0 64px; text-align: center; }
.hero-label { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 0 0 26px; color: #8d839b; font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.hero-label span { width: 7px; height: 7px; border-radius: 50%; background: #a889cb; box-shadow: 0 0 0 5px rgba(168, 137, 203, .13), 0 0 18px rgba(153, 112, 198, .5); }
.hero h1 { margin: 0; color: #6146a2; font-size: clamp(66px, 10vw, 144px); font-weight: 650; letter-spacing: -.07em; line-height: 1.2; }
.hero h1 span { color: #bf6486; letter-spacing: -.06em; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero h1 { background: linear-gradient(105deg, #416dc2 0%, #8050b2 19%, #bb467d 37%, #b86631 55%, #398b89 72%, #416dc2 88%, #8050b2 100%); background-size: 200% 100%; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: text-shimmer 9s ease-in-out infinite; }
}
.hero-subtitle { margin: 22px 0 0; color: #90899a; font-size: 13px; letter-spacing: .14em; }
.hero-art { position: absolute; width: min(780px, 95vw); height: min(410px, 52vw); min-height: 220px; left: 50%; top: 50%; transform: translate(-50%, -54%); pointer-events: none; }
.hero-glow { position: absolute; inset: -20%; border-radius: 50%; background: radial-gradient(ellipse at 35% 45%, rgba(191, 207, 245, .54), transparent 48%), radial-gradient(ellipse at 65% 40%, rgba(231, 191, 226, .49), transparent 48%), radial-gradient(ellipse at 55% 68%, rgba(247, 215, 194, .34), transparent 50%); filter: blur(22px); animation: glow-breathe 7s ease-in-out infinite; }
.hero-orbit { position: absolute; border: 1px solid rgba(137, 130, 175, .24); border-radius: 50%; }
.hero-orbit::after { position: absolute; width: 6px; height: 6px; border-radius: 50%; content: ""; background: #9c9ad7; box-shadow: 0 0 12px #abb6ef; }
.hero-orbit-outer { inset: 7% 0; animation: orbit-outer 32s linear infinite; }
.hero-orbit-outer::after { top: 30%; left: 1.8%; }
.hero-orbit-inner { inset: 21% 12%; border-color: rgba(180, 137, 172, .18); animation: orbit-inner 26s linear infinite; }
.hero-orbit-inner::after { right: 2%; bottom: 28%; width: 4px; height: 4px; background: #d49db4; box-shadow: 0 0 12px #e4acc8; }
.hero-star { position: absolute; top: 11%; right: 15%; color: #c9a2c9; font-size: 15px; animation: star-shine 4s ease-in-out infinite; }
.hero-scroll { position: absolute; bottom: 38px; display: flex; align-items: center; gap: 10px; color: #91899c; font-size: 12px; text-decoration: none; }
.hero-scroll span { display: inline-grid; width: 25px; height: 25px; place-items: center; border: 1px solid #ded9e6; border-radius: 50%; font-size: 14px; }
.hero-scroll:hover { color: #695987; }
@keyframes text-shimmer { 0%, 15% { background-position: 100% 0; } 55%, 100% { background-position: 0 0; } }
@keyframes glow-breathe { 0%, 100% { opacity: .7; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes orbit-outer { from { transform: rotate(-12deg); } to { transform: rotate(348deg); } }
@keyframes orbit-inner { from { transform: rotate(14deg); } to { transform: rotate(-346deg); } }
@keyframes star-shine { 0%, 100% { opacity: .45; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
.time-calendar { padding: 70px 0 72px; scroll-margin-top: 20px; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 31px; }
.eyebrow, .clock-caption { margin: 0; color: #9691a2; font-size: 10px; font-weight: 700; letter-spacing: .19em; }
.intro h2 { margin: 14px 0 10px; font-size: clamp(30px, 3.1vw, 40px); line-height: 1.2; font-weight: 600; letter-spacing: -.05em; }
.intro-description { margin: 0; color: #918d99; font-size: 14px; line-height: 1.7; }
.dashboard { display: grid; grid-template-columns: 1.18fr 1fr; gap: 18px; }
.panel { position: relative; min-width: 0; min-height: 430px; border: 1px solid rgba(70, 60, 92, .08); border-radius: 18px; box-shadow: 0 16px 40px rgba(52, 43, 66, .035), 0 2px 8px rgba(52, 43, 66, .025); }
.clock-panel { display: flex; flex-direction: column; overflow: hidden; padding: 29px 31px 23px; background: radial-gradient(circle at 86% 48%, #f3effa 0, transparent 36%), linear-gradient(145deg, #edeaf5, #e2e5f3); }
.calendar-panel { padding: 29px 31px 23px; background: rgba(255, 255, 255, .9); }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-top > div { display: flex; align-items: center; gap: 12px; }
.panel-top h2 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.section-number { color: #a49daf; font-size: 10px; letter-spacing: .08em; }
.timezone { color: #898396; font-size: 11px; white-space: nowrap; }
.clock-content { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 10px; }
.digital-clock { min-width: 0; padding-bottom: 5px; }
.clock-caption { margin-bottom: 15px; color: #9890a7; }
.clock { display: flex; align-items: baseline; white-space: nowrap; color: #353248; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(64px, 7.2vw, 96px); font-weight: 300; letter-spacing: -.085em; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-colon { margin: 0 .025em; color: #88809d; font-weight: 250; }
.seconds { margin-left: 13px; color: #918ba4; font-size: 20px; font-weight: 400; letter-spacing: -.03em; }
.full-date { margin: 20px 0 0; color: #716b82; font-size: 14px; letter-spacing: .03em; }
.clock-dial { width: clamp(112px, 13vw, 170px); flex: 0 0 auto; }
.dial-outer, .dial-inner { fill: none; stroke: #b8b4ce; stroke-width: .8; }
.dial-inner { stroke: #d1cde0; stroke-width: .6; }
.dial-marks { fill: none; stroke: #a6a0ba; stroke-width: 1.4; stroke-linecap: round; }
.hour-hand, .minute-hand, .second-hand { stroke-linecap: round; }
.hour-hand { stroke: #6d6583; stroke-width: 3; }
.minute-hand { stroke: #6d6583; stroke-width: 2; }
.second-hand { stroke: #bc7e92; stroke-width: 1; }
.dial-center { fill: #6d6583; }
.clock-footer, .calendar-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 17px; color: #9d95a9; border-top: 1px solid rgba(113, 103, 135, .17); font-size: 11px; }
.clock-footer span:last-child { font-size: 6px; color: #ad9dc2; }

.today-button { padding: 7px 10px; border: 1px solid #eae7ef; border-radius: 8px; background: #f9f8fb; color: #827b91; font-size: 11px; }
.today-button:hover { background: #f1eef6; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 29px; }
.calendar-heading h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.month-controls { display: flex; gap: 5px; }
.month-controls button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid #ece9ef; border-radius: 8px; background: #fff; color: #82798e; }
.month-controls button:hover { background: #f5f2f8; }
.month-controls span { display: block; font-size: 22px; line-height: 1; transform: translateY(-1px); }
.weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.weekdays { margin-top: 23px; color: #aaa5b2; font-size: 11px; }
.weekdays span { padding: 5px 0; }
.calendar-days { margin-top: 8px; row-gap: 4px; }
.calendar-week { display: contents; }
.calendar-day { height: 33px; display: grid; place-items: center; color: #666071; font-size: 12px; font-variant-numeric: tabular-nums; }
.calendar-day span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; }
.calendar-day.outside { color: #d0ccd4; }
.calendar-day.today span { background: #696082; color: #fff; font-weight: 650; }
.calendar-footer { margin-top: 15px; border-color: #f0edf2; color: #aaa3b0; }
.calendar-footer span:first-child { display: flex; align-items: center; gap: 7px; }
.calendar-footer i { width: 7px; height: 7px; border-radius: 50%; background: #a18bb6; }
.noscript { color: #8e8798; font-size: 13px; }
.site-footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #e2e0e8; color: #a8a3b0; font-size: 11px; letter-spacing: .04em; }
.site-footer span:last-child { font-size: 9px; letter-spacing: .13em; }

@media (max-width: 1050px) {
  .page { width: min(100% - 56px, 1200px); }
  .clock-panel, .calendar-panel { padding-left: 24px; padding-right: 24px; }
  .clock { font-size: clamp(58px, 7vw, 76px); }
  .clock-dial { width: clamp(105px, 13vw, 140px); }
  .seconds { margin-left: 8px; font-size: 17px; }
}
@media (max-width: 760px) {
  .page { width: calc(100% - 36px); }
  .site-header { height: 76px; }
  .hero { min-height: max(480px, calc(100svh - 76px)); }
  .hero h1 { font-size: clamp(60px, 15vw, 92px); }
  .hero-art { width: 110%; height: 240px; }
  .hero-scroll { bottom: 30px; }
  .time-calendar { padding: 48px 0; }
  .intro { margin-bottom: 24px; }
  .dashboard { grid-template-columns: 1fr; gap: 14px; }
  .panel { min-height: 0; }
  .clock-panel { min-height: 310px; }
  .clock { font-size: clamp(62px, 12vw, 88px); }
  .clock-dial { width: clamp(116px, 28vw, 165px); }
  .calendar-panel { padding-bottom: 22px; }
  .calendar-day { height: 38px; }
  .calendar-day span { width: 34px; height: 34px; }
}
@media (max-width: 420px) {
  .page { width: calc(100% - 28px); }
  .brand-name { font-size: 15px; }
  .header-note { font-size: 11px; }
  .clock-panel, .calendar-panel { padding-left: 19px; padding-right: 19px; }
  .clock { font-size: 59px; }
  .clock-dial { width: 100px; }
  .seconds { margin-left: 6px; font-size: 15px; }
  .full-date { font-size: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  button { transition: background-color .16s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero-glow, .hero-orbit, .hero-star { animation: none; }
}
