:root {
  color-scheme: light;
  --bg: #f8f1e7;
  --bg-accent: #f0d9bf;
  --ink: #241e19;
  --muted: #6f6157;
  --accent: #c0392b;
  --accent-2: #1e6f5c;
  --card: #fffaf4;
  --shadow: 0 16px 34px rgba(36, 30, 25, 0.1);
  --shadow-soft: 0 8px 18px rgba(36, 30, 25, 0.06);
  --border: 1px solid rgba(36, 30, 25, 0.12);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --ease-standard: 180ms ease;
  --font-sans:
    "IBM Plex Sans", "LXGW WenKai", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  --font-serif:
    "Noto Serif SC", "Source Han Serif SC", "STSong", "Songti SC", serif;
  --bg-grad-start: #fff4e8;
  --bg-grad-mid: #f8f1e7;
  --bg-grad-end: #f5eadb;
  --grid-line: rgba(36, 30, 25, 0.06);
  --orb-one: radial-gradient(circle, #f7c59f 0%, rgba(247, 197, 159, 0) 70%);
  --orb-two: radial-gradient(circle, #b7d7cc 0%, rgba(183, 215, 204, 0) 70%);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141a20;
  --bg-accent: #1c252e;
  --ink: #edf2f7;
  --muted: #afbac6;
  --accent: #de7f5b;
  --accent-2: #67bea0;
  --card: #1c252e;
  --shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 8px 18px rgba(0, 0, 0, 0.26);
  --border: 1px solid rgba(237, 242, 247, 0.16);
  --bg-grad-start: #202b35;
  --bg-grad-mid: #141a20;
  --bg-grad-end: #10161d;
  --grid-line: rgba(237, 242, 247, 0.08);
  --orb-one: radial-gradient(circle, #de7f5b 0%, rgba(222, 127, 91, 0) 68%);
  --orb-two: radial-gradient(circle, #67bea0 0%, rgba(103, 190, 160, 0) 68%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: radial-gradient(
    circle at top left,
    var(--bg-grad-start) 0%,
    var(--bg-grad-mid) 45%,
    var(--bg-grad-end) 100%
  );
  min-height: 100vh;
  line-height: 1.6;
  padding: 48px 8vw 64px;
  position: relative;
  overflow-x: hidden;
}

.bg-orb {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.28;
  z-index: 0;
}

.bg-orb--one {
  top: -120px;
  right: 8vw;
  background: var(--orb-one);
}

.bg-orb--two {
  bottom: 10vh;
  left: -120px;
  background: var(--orb-two);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.theme-toggle-floating {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition:
    transform var(--ease-standard),
    background-color var(--ease-standard),
    border-color var(--ease-standard);
}

.theme-toggle-floating:hover {
  transform: translateY(-1px);
  border-color: rgba(192, 57, 43, 0.45);
  background: rgba(255, 255, 255, 0.96);
}

.hero__theme-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.hero__theme-label {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  font-weight: 700;
}

:root[data-theme="dark"] .theme-toggle-floating {
  background: rgba(28, 37, 46, 0.94);
}
