:root {
  --bg-top: #0b3c49;
  --bg-bottom: #f4efe4;
  --surface: rgba(255, 252, 246, 0.74);
  --surface-strong: rgba(255, 252, 246, 0.92);
  --line: rgba(11, 60, 73, 0.12);
  --text: #14343e;
  --muted: #61757d;
  --brand: #0f766e;
  --brand-strong: #0b5a54;
  --accent: #f59e0b;
  --danger: #dc2626;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --tabbar-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  background: linear-gradient(180deg, var(--bg-top), #1f5967 30%, #dce7df 70%, var(--bg-bottom));
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--bg-top), #1f5967 30%, #dce7df 70%, var(--bg-bottom));
}

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

button,
input,
select {
  font: inherit;
}

.wc-launch-splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  place-items: center;
  overflow: hidden;
  padding: max(env(safe-area-inset-top), 18px) 24px max(env(safe-area-inset-bottom), 18px);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 248, 235, 0.34), transparent 28%),
    linear-gradient(180deg, #0b3c49 0%, #0f766e 48%, #edf6f1 100%);
  color: #fffaf0;
  opacity: 1;
  transition: opacity 0.42s ease, visibility 0.42s ease;
}

.wc-profile-launch .wc-launch-splash {
  display: grid;
}

.wc-launch-splash.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.wc-launch-splash__halo {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.24), rgba(245, 158, 11, 0));
  transform: translateY(-18px);
}

.wc-launch-splash__card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  animation: wc-launch-rise 0.72s ease both;
}

.wc-launch-splash__card img {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  box-shadow:
    0 22px 46px rgba(7, 26, 32, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.36);
}

.wc-launch-splash__card strong {
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 10px 24px rgba(7, 26, 32, 0.24);
}

.wc-app {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 18px) 16px calc(env(safe-area-inset-bottom) + var(--tabbar-height) + 18px);
}

.wc-topbar {
  color: #fff7ed;
  margin-bottom: 16px;
}

.wc-topbar__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wc-topbar__main h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
}

.wc-topbar__main p {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(255, 247, 237, 0.84);
}

.wc-app-promo {
  position: sticky;
  top: calc(env(safe-area-inset-top) + 10px);
  z-index: 25;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.9);
  color: var(--text);
  box-shadow: 0 16px 36px rgba(7, 26, 32, 0.18);
  backdrop-filter: blur(18px);
}

.wc-app-promo__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(7, 26, 32, 0.12);
}

.wc-app-promo__copy {
  min-width: 0;
}

.wc-app-promo__copy strong,
.wc-app-promo__copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wc-app-promo__copy strong {
  font-size: 15px;
  line-height: 1.2;
}

.wc-app-promo__copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.wc-app-promo__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.wc-hide-app-promo .wc-app-promo {
  display: none;
}

.wc-update-button,
.wc-primary,
.wc-secondary,
.wc-toolbar button {
  border: 0;
  cursor: pointer;
}

.wc-update-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(12px);
}

.wc-update-button.is-loading i {
  animation: wc-spin 0.8s linear infinite;
}

.wc-main {
  display: grid;
  gap: 14px;
}

.wc-hero,
.wc-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.wc-hero {
  padding: 18px;
}

.wc-hero__glow {
  position: absolute;
  inset: -40% auto auto -10%;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.38), rgba(245, 158, 11, 0));
  pointer-events: none;
}

.wc-hero__screen {
  position: relative;
  min-height: 260px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(140deg, rgba(10, 61, 73, 0.96), rgba(19, 78, 74, 0.94)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 44%);
  color: #fef8ef;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wc-hero__date {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.wc-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(254, 248, 239, 0.7);
}

.wc-hero__date strong {
  display: block;
  font-size: 38px;
  line-height: 1;
}

.wc-hero__day {
  text-align: right;
}

.wc-hero__day b {
  display: block;
  font-size: 92px;
  line-height: 0.9;
}

.wc-hero__day span {
  font-size: 15px;
  color: rgba(254, 248, 239, 0.78);
}

.wc-pill-row,
.wc-chip-list,
.wc-weather-meta,
.wc-about-actions,
.wc-segmented,
.wc-result,
.wc-detail-grid,
.wc-grid {
  display: grid;
  gap: 12px;
}

.wc-pill-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.wc-pill {
  display: inline-flex;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #fffbeb;
}

.wc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.wc-copy p,
.wc-muted {
  color: var(--muted);
}

.wc-hero-market {
  margin-top: 14px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.wc-hero-market__label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(254, 248, 239, 0.78);
}

.wc-chip-list--hero {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wc-chip-list--hero span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 14px;
  background: rgba(255, 248, 235, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #17424b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 8px 16px rgba(7, 26, 32, 0.1);
}

.wc-card p,
.wc-card p,
.wc-muted {
  color: var(--muted);
}

.wc-stat-card strong,
.wc-card strong,
.wc-result strong,
.wc-detail-grid strong {
  display: block;
}

.wc-card {
  padding: 18px;
}

.wc-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.wc-card__head h2 {
  margin: 0;
  font-size: 18px;
}

.wc-card__head i {
  color: var(--brand);
}

.wc-chip-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wc-chip-list span,
.wc-weather-meta span,
.wc-result article,
.wc-detail-grid article {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid rgba(11, 60, 73, 0.08);
}

.wc-card--weather strong {
  font-size: 20px;
}

.wc-card--weather {
  color: #f8fbff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(160deg, #1f6f78, #14434c);
  border-color: rgba(255, 255, 255, 0.12);
}

.wc-card--weather .wc-card__head i,
.wc-card--weather strong,
.wc-card--weather b {
  color: inherit;
}

.wc-card--weather h2,
.wc-card--weather p,
.wc-card--weather span {
  color: rgba(248, 251, 255, 0.84);
}

.wc-card--weather .wc-weather-meta span {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.08);
}

.wc-card--weather .wc-weather-meta b {
  color: #f8fbff;
}

.wc-card--weather.is-sunny {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 222, 127, 0.92), rgba(255, 188, 61, 0.18) 20%, transparent 38%),
    linear-gradient(155deg, #62b8d8, #2f7fb4 52%, #19537a);
}

.wc-card--weather.is-cloudy {
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(155deg, #738896, #536673 58%, #3b4c59);
}

.wc-card--weather.is-overcast {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(160deg, #5b6d79, #425461 58%, #2f3f49);
}

.wc-card--weather.is-rainy {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(160deg, #435f77, #27445a 55%, #142c3c);
}

.wc-card--weather.is-foggy {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(160deg, #70858b, #5c7077 52%, #4d6168);
}

.wc-weather-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.wc-weather-meta b {
  display: block;
  margin-top: 6px;
  color: var(--text);
}

.wc-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.wc-toolbar #wcTodayButton {
  white-space: nowrap;
}

.wc-toolbar button,
.wc-toolbar select,
.wc-form input,
.wc-form select,
.wc-segmented a,
.wc-primary,
.wc-secondary {
  min-height: 46px;
  border-radius: 16px;
}

.wc-toolbar button,
.wc-primary,
.wc-secondary {
  padding: 0 14px;
  background: var(--brand);
  color: #fff;
}

.wc-toolbar label,
.wc-form label {
  display: grid;
  gap: 8px;
}

.wc-toolbar span,
.wc-form span,
.wc-result span,
.wc-detail-grid span {
  font-size: 13px;
  color: var(--muted);
}

.wc-toolbar select,
.wc-form input,
.wc-form select {
  width: 100%;
  padding: 0 14px;
  border: 1px solid rgba(11, 60, 73, 0.14);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
}

.wc-week-row,
.wc-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.wc-week-row {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.wc-card--calendar {
  padding: 14px 14px 12px;
}

.wc-day,
.wc-ghost-day {
  min-height: 64px;
  border-radius: 0;
}

.wc-day {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 7px 3px;
  border: 1px solid rgba(11, 60, 73, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  text-align: center;
  overflow: hidden;
}

.wc-day.is-today {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.96), rgba(11, 90, 84, 0.96));
  color: #fff;
}

.wc-day.is-active {
  outline: 2px solid rgba(245, 158, 11, 0.92);
}

.wc-day strong {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  font-size: 17px;
  line-height: 1;
}

.wc-holiday-badge {
  display: inline-grid;
  place-items: center;
  min-width: 14px;
  height: 14px;
  padding: 0 2px;
  border-radius: 4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
}

.wc-day.is-holiday-work .wc-holiday-badge {
  background: #64748b;
}

.wc-day.is-holiday-off {
  border-color: rgba(239, 68, 68, 0.24);
}

.wc-day.is-holiday-work {
  border-color: rgba(100, 116, 139, 0.28);
}

.wc-day small {
  display: block;
  width: 100%;
  margin-top: 0;
  font-size: 10px;
  line-height: 1.2;
  color: inherit;
  opacity: 0.88;
  text-align: center;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.wc-ghost-day {
  visibility: hidden;
  pointer-events: none;
}

.wc-day.has-special small {
  color: #c2410c;
  font-weight: 800;
}

.wc-detail-grid,
.wc-result {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wc-segmented {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wc-segmented a {
  display: grid;
  place-items: center;
  padding: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(11, 60, 73, 0.08);
  color: var(--muted);
}

.wc-segmented a.is-active {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.96), rgba(11, 90, 84, 0.96));
  color: #fff;
}

.wc-form {
  display: grid;
  gap: 12px;
}

.wc-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wc-primary,
.wc-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wc-secondary {
  background: rgba(11, 60, 73, 0.08);
  color: var(--brand-strong);
}

.wc-about-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.wc-qr-card {
  margin-top: 14px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.wc-qr-card img {
  width: min(100%, 260px);
  border-radius: 18px;
}

.wc-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 720px);
  padding: 10px 14px calc(env(safe-area-inset-bottom) + 10px);
  transform: translateX(-50%);
  background: rgba(255, 250, 244, 0.84);
  border-top: 1px solid rgba(11, 60, 73, 0.08);
  backdrop-filter: blur(18px);
}

.wc-tabbar__item {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 18px;
  color: var(--muted);
  font-size: 12px;
}

.wc-tabbar__item i {
  font-size: 18px;
}

.wc-tabbar__item.is-active {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.96), rgba(11, 90, 84, 0.96));
  color: #fff;
}

.wc-toast {
  position: fixed;
  left: 50%;
  top: calc(env(safe-area-inset-top) + 18px);
  z-index: 30;
  max-width: calc(100% - 36px);
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  transform: translateX(-50%);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.28);
}

.wc-toast.is-error {
  background: rgba(185, 28, 28, 0.96);
}

@keyframes wc-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes wc-launch-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  .wc-app {
    padding-left: 12px;
    padding-right: 12px;
  }

  .wc-topbar__main h1 {
    font-size: 26px;
  }

  .wc-topbar__main {
    align-items: flex-end;
  }

  .wc-app-promo {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    min-height: 60px;
    padding: 9px;
    border-radius: 18px;
  }

  .wc-app-promo__icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .wc-app-promo__button {
    min-width: 52px;
    min-height: 36px;
    padding: 0 12px;
  }

  .wc-pill-row,
  .wc-grid,
  .wc-detail-grid,
  .wc-result,
  .wc-about-actions {
    grid-template-columns: 1fr;
  }

  .wc-chip-list,
  .wc-weather-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wc-chip-list--hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wc-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 108px;
    gap: 8px;
  }

  .wc-segmented {
    grid-template-columns: 1fr;
  }

  .wc-toolbar label {
    min-width: 0;
  }

  .wc-toolbar span {
    font-size: 12px;
  }

  .wc-toolbar select,
  .wc-toolbar button {
    min-height: 42px;
  }

  .wc-toolbar button {
    padding: 0 12px;
  }

  .wc-week-row,
  .wc-month-grid {
    gap: 2px;
  }

  .wc-day,
  .wc-ghost-day {
    min-height: 60px;
    border-radius: 0;
  }

  .wc-day {
    gap: 6px;
    padding: 6px 2px;
  }

  .wc-day strong {
    font-size: 16px;
  }

  .wc-day small {
    font-size: 9px;
    line-height: 1.15;
    -webkit-line-clamp: 3;
  }
}
