:root {
  --bg: #edf2ef;
  --panel: #ffffff;
  --panel-2: #f8faf8;
  --panel-3: #f3f6f4;
  --line: #d7dfda;
  --line-strong: #b9c7c0;
  --text: #17231f;
  --muted: #607069;
  --faint: #87948e;
  --green: #176047;
  --cyan: #167b80;
  --amber: #dc6b37;
  --rose: #bb4f58;
  --purple: #6656a8;
  --shadow: 0 30px 80px rgba(25, 51, 41, .13);
  --utility: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

html { background: var(--bg); }

body {
  color: var(--text);
  background:
    radial-gradient(circle at 9% 4%, rgba(220, 107, 55, .09), transparent 24%),
    radial-gradient(circle at 94% 24%, rgba(23, 96, 71, .08), transparent 22%),
    linear-gradient(rgba(23, 96, 71, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 96, 71, .035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  background:
    linear-gradient(118deg, transparent 0 48%, rgba(255,255,255,.56) 48% 49%, transparent 49% 100%);
  opacity: .5;
}

.shell {
  width: min(1280px, calc(100% - 40px));
  padding: 22px 0 42px;
}

.topbar { margin-bottom: 18px; }

.mark {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px 4px 14px 4px;
  color: #f6fbf8;
  background: var(--green);
  box-shadow: 0 9px 22px rgba(23, 96, 71, .22);
}

.brand-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.brand-subtitle {
  color: var(--faint);
  font-family: var(--utility);
  font-size: 11px;
}

.status {
  min-height: 42px;
  padding: 9px 13px;
  border-color: var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 24px rgba(25,51,41,.06);
  font-family: var(--utility);
}

.status-dot {
  width: 9px;
  height: 9px;
  background: #21a474;
  box-shadow: 0 0 0 5px rgba(33, 164, 116, .12);
}

.frame {
  overflow: hidden;
  border-color: rgba(185, 199, 192, .9);
  border-radius: 24px 7px 24px 7px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
}

.frame-bar {
  min-height: 46px;
  padding: 0 18px;
  border-bottom: 0;
  color: #d9e7df;
  background: #173d31;
}

.window-dots span { width: 9px; height: 9px; }
.window-dots span:nth-child(1) { background: #f28b61; }
.window-dots span:nth-child(2) { background: #efc56c; }
.window-dots span:nth-child(3) { background: #68c79e; }

.path {
  color: rgba(225, 238, 231, .63);
  font-family: var(--utility);
  font-size: 11px;
}

.hero {
  gap: 28px;
  padding: 38px;
  border-bottom-color: var(--line);
  background:
    linear-gradient(112deg, rgba(23,96,71,.045), transparent 43%),
    #fff;
}

.prompt {
  margin-bottom: 16px;
  color: var(--amber);
  font-family: var(--utility);
  font-size: 12px;
  letter-spacing: .05em;
}

h1 {
  max-width: 760px;
  color: #10251d;
  font-family: "Arial Narrow", "HarmonyOS Sans SC", "PingFang SC", sans-serif;
  font-size: clamp(38px, 5.1vw, 68px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.045em;
}

.intro {
  max-width: 650px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.quick-stats { gap: 8px; margin-top: 22px; }

.quick-stat {
  padding: 7px 11px;
  border-color: var(--line);
  border-radius: 6px 12px 6px 12px;
  color: var(--muted);
  background: #f7faf8;
  font-family: var(--utility);
  font-size: 11px;
}

.clock-card {
  position: relative;
  min-height: 232px;
  overflow: hidden;
  padding: 22px;
  border: 0;
  border-radius: 18px 5px 18px 5px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255,255,255,.05), transparent 45%),
    #173d31;
  box-shadow: 0 20px 44px rgba(23,61,49,.22);
}

.clock-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 92px;
  height: 7px;
  background: var(--amber);
}

.clock-card::after {
  content: "UTC+08";
  position: absolute;
  right: -22px;
  bottom: 18px;
  color: rgba(255,255,255,.055);
  font: 900 54px/1 var(--utility);
  transform: rotate(-90deg);
}

.clock-head { color: rgba(235,244,239,.67); font-family: var(--utility); }

.digital-clock {
  margin-top: 24px;
  color: #fff;
  font-family: var(--utility);
  font-size: clamp(38px, 6vw, 58px);
  letter-spacing: -.05em;
  text-shadow: none;
}

.date-display { color: rgba(235,244,239,.76); }
.clock-card .quick-stat { position: relative; z-index: 1; color: #dce9e2; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.06); }

.content { background: #f7f9f8; }
.main { padding: 30px; }
.side { padding: 30px; border-color: var(--line); background: #eef3f0; }

.section-title { margin-bottom: 18px; }
.section-title h2 { color: var(--text); font-size: 17px; font-weight: 750; }
.section-note { color: var(--faint); font-family: var(--utility); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.apps {
  counter-reset: app-manifest;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.app {
  counter-increment: app-manifest;
  position: relative;
  min-height: 192px;
  overflow: hidden;
  padding: 18px 18px 17px 21px;
  border-color: var(--line);
  border-radius: 16px 5px 16px 5px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 10px 26px rgba(25,51,41,.055);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.app::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--cyan);
}

.app:nth-child(2)::before { background: var(--rose); }
.app:nth-child(3)::before { background: var(--purple); }
.app:nth-child(4)::before { background: var(--green); }
.app:nth-child(5)::before { background: var(--amber); }

.app::after {
  content: "0" counter(app-manifest);
  position: absolute;
  right: 14px;
  bottom: 8px;
  color: rgba(23,35,31,.045);
  font: 900 52px/1 var(--utility);
  pointer-events: none;
}

.app:hover {
  transform: translateY(-3px);
  border-color: #a9bbb2;
  background: #fff;
  box-shadow: 0 18px 36px rgba(25,51,41,.11);
}

.app:focus-visible {
  outline: 3px solid rgba(220,107,55,.35);
  outline-offset: 3px;
}

.app-icon {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 13px 4px 13px 4px;
  color: var(--green);
  background: #e9f3ee;
  font-family: var(--utility);
  box-shadow: inset 0 0 0 1px rgba(23,96,71,.10);
}

.app-icon.cyan { color: var(--cyan); background: #e8f4f4; border: 0; }
.app-icon.amber { color: #a05a1c; background: #fff1df; border: 0; }
.app-icon.rose { color: var(--rose); background: #faecee; border: 0; }
.app-icon.purple { color: var(--purple); background: #f0edfa; border: 0; }

.tag {
  padding: 5px 8px;
  border-color: #c8ded4;
  border-radius: 5px 10px 5px 10px;
  color: var(--green);
  background: #edf7f2;
  font-family: var(--utility);
  font-size: 10px;
}

.tag.locked { border-color: #ead1b9; color: #a05a1c; background: #fff5e9; }
.tag.soon { border-color: var(--line); color: var(--muted); background: #f4f6f5; }

.app h3 { margin: 17px 0 8px; color: var(--text); font-size: 18px; font-weight: 750; }
.app p { color: var(--muted); font-size: 13px; line-height: 1.68; }
.app-action { position: relative; z-index: 1; color: var(--amber); font-family: var(--utility); font-size: 11px; letter-spacing: .02em; }

.metrics { gap: 11px; margin-bottom: 18px; }
.metric {
  padding: 15px;
  border-color: var(--line);
  border-radius: 13px 4px 13px 4px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 22px rgba(25,51,41,.045);
}
.metric-label { color: var(--amber); font-family: var(--utility); font-size: 10px; letter-spacing: .08em; }
.metric-value { color: var(--text); font-size: 15px; }
.metric-sub { color: var(--muted); }

.calendar {
  padding: 15px;
  border-color: var(--line);
  border-radius: 16px 5px 16px 5px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 26px rgba(25,51,41,.05);
}

.calendar-header button {
  border-color: var(--line);
  border-radius: 10px 4px 10px 4px;
  color: var(--green);
  background: #edf4f0;
}
.calendar-header button:hover { border-color: #9db8aa; color: var(--amber); }
.calendar-month { color: var(--text); font-family: var(--utility); }
.calendar-day { color: var(--faint); }
.calendar-date { color: var(--muted); font-family: var(--utility); }
.calendar-date:not(:empty):hover { border-color: var(--line-strong); color: var(--text); }
.calendar-date.current { border-color: var(--green); color: #fff; background: var(--green); }

.footer { margin-top: 18px; color: #788780; font-family: var(--utility); }

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) 380px; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 18px, 1280px); padding-top: 10px; }
  .topbar { gap: 10px; }
  .status { justify-content: flex-start; }
  .frame { border-radius: 18px 5px 18px 5px; }
  .frame-bar { padding: 0 12px; }
  .path { max-width: 68%; }
  .hero, .main, .side { padding: 20px; }
  h1 { font-size: clamp(35px, 11vw, 48px); }
  .clock-card { min-height: 205px; }
  .apps { grid-template-columns: 1fr; }
  .app { min-height: 176px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
