:root {
  color-scheme: dark;
  --bg: #0b1114;
  --panel: #f4f8f9;
  --ink: #10181c;
  --muted: #66747b;
  --line: rgba(16, 24, 28, 0.12);
  --cyan: #65d7ee;
  --cyan-dark: #0e8fa8;
  --coral: #ff675f;
  --green: #60df9c;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 0%, rgba(101, 215, 238, 0.22), transparent 24rem),
    radial-gradient(circle at 80% 88%, rgba(255, 103, 95, 0.13), transparent 18rem),
    linear-gradient(145deg, #0b1114 0%, #162126 100%);
  color: var(--ink);
}

button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.remote {
  width: min(420px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background: linear-gradient(180deg, #f9fcfd, #e8f0f2);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.hero {
  position: relative;
  min-height: 218px;
  overflow: hidden;
  background: #11191d;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 18, 0.06), rgba(10, 15, 18, 0.82)),
    linear-gradient(90deg, rgba(10, 15, 18, 0.8), transparent 72%);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sound-toggle {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  min-width: 70px;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero-copy {
  position: absolute;
  z-index: 1;
  inset: auto 22px 20px;
  color: #fff;
}

.hero-copy span {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
p {
  margin: 0;
}

h1 {
  max-width: 11em;
  font-size: clamp(28px, 7.5vw, 38px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 24em;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.55;
}

.screen {
  margin: 16px 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(224, 237, 240, 0.94)),
    radial-gradient(circle at 50% 0%, rgba(101, 215, 238, 0.26), transparent 17rem);
  box-shadow: inset 0 -10px 24px rgba(17, 52, 58, 0.08);
}

.screen-row,
.mode-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.screen-row time,
.mode-row span:last-child {
  margin-left: auto;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(96, 223, 156, 0.85);
}

.mode-row {
  margin-top: 16px;
  font-weight: 800;
}

.temp-control {
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.round-btn {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #111b20;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(17, 27, 32, 0.22);
  cursor: pointer;
}

.temperature {
  text-align: center;
  color: #0a1114;
  font-weight: 900;
  letter-spacing: 0;
}

.temperature strong {
  font-size: 84px;
  line-height: 0.92;
}

.temperature small {
  font-size: 24px;
}

#comfortText {
  min-height: 44px;
  margin-top: 10px;
  color: #43535a;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px 18px 0;
}

.mode-btn {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: #122026;
  font-weight: 900;
  cursor: pointer;
}

.mode-btn.active {
  border-color: rgba(101, 215, 238, 0.9);
  background: #112027;
  color: #fff;
}

.main-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 18px 0;
  padding: 16px;
  border-radius: 20px;
  background: #111b20;
}

.power-btn,
.boost-btn {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.power-btn {
  background: #fff;
  color: #111b20;
}

.boost-btn {
  background: var(--coral);
  color: #fff;
}

.fan-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: center;
  margin: 16px 18px 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.fan-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.fan-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.fan {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #e9f3f5;
  box-shadow: inset 0 0 0 8px #f8fbfc;
  animation: spin 1.1s linear infinite;
}

.fan span {
  position: absolute;
  left: 26px;
  top: 8px;
  width: 9px;
  height: 25px;
  border-radius: 99px 99px 6px 6px;
  background: var(--cyan-dark);
  transform-origin: 3px 21px;
}

.fan span:nth-child(2) {
  transform: rotate(120deg);
}

.fan span:nth-child(3) {
  transform: rotate(240deg);
}

.is-off .status-dot {
  background: #9aa4aa;
  box-shadow: none;
}

.is-off .screen {
  filter: grayscale(0.7);
  opacity: 0.78;
}

.is-off .fan {
  animation-play-state: paused;
  opacity: 0.5;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 380px) {
  .app-shell {
    padding: 12px;
  }

  .remote {
    border-radius: 24px;
  }

  .hero {
    min-height: 202px;
  }

  .temperature strong {
    font-size: 68px;
  }

  .mode-grid {
    gap: 7px;
  }

  .mode-btn {
    font-size: 13px;
  }

  .main-actions {
    gap: 10px;
  }
}
