/* 深呼吸 —— 小清新排版
   薄荷、奶油、一点浅粉。没有框架，没有动画库。 */

:root {
  --paper: #fafaf4;
  --ink: #43564d;
  --ink-soft: #7d9187;
  --mint: #a8cfc0;
  --mint-deep: #7fb3a0;
  --pink: #f3dfda;
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC",
           "SimSun", "Noto Serif", Georgia, serif;
  --kai: "Kaiti SC", "STKaiti", "KaiTi",
         "Noto Serif CJK SC", "Source Han Serif SC", serif;
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(175deg, #eef6f0 0%, var(--paper) 55%, #fdf7f2 100%);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 背景里几团柔柔的光 */
.blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
}
.b1 { width: 320px; height: 320px; background: #cfe5da; top: -80px; left: -60px; }
.b2 { width: 280px; height: 280px; background: #f6e4e0; bottom: -60px; right: -40px; }
.b3 { width: 200px; height: 200px; background: #dde9f3; top: 40%; right: 12%; }

main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 24rem;
  padding: 2.2rem 1.25rem 2.5rem;
  text-align: center;
}

/* ---------- 标题 ---------- */

h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--ink);
}

.tagline {
  margin: .6rem 0 0;
  font-family: var(--kai);
  font-size: .95rem;
  color: var(--ink-soft);
}

/* ---------- 呼吸圆 ---------- */

.stage { margin: 2.6rem 0 2.2rem; }

.halo {
  width: 15rem;
  height: 15rem;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 1s ease;
}

.orb {
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #e6f4ee 0%, #c2e0d3 55%, #a8cfc0 100%);
  box-shadow:
    0 18px 40px rgba(127, 179, 160, .35),
    inset 0 -8px 18px rgba(96, 150, 130, .25),
    inset 0 8px 16px rgba(255, 255, 255, .55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  transform: scale(1);
  transition: transform 4s cubic-bezier(.45, .05, .35, 1);
  will-change: transform;
}

.phase {
  font-family: var(--kai);
  font-size: 1.5rem;
  letter-spacing: .25em;
  text-indent: .25em;
  color: #3f6b5a;
}

.count {
  font-size: 1.05rem;
  color: #6d9484;
  font-variant-numeric: tabular-nums;
}

/* 屏息时光环微微亮起 */
.halo.lit {
  box-shadow: 0 0 0 1px rgba(168, 207, 192, .35),
              0 0 60px rgba(168, 207, 192, .55);
}

.rounds {
  margin: 1.4rem 0 0;
  font-family: var(--kai);
  font-size: .88rem;
  color: var(--ink-soft);
}

/* ---------- 控制区 ---------- */

.modes {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.4rem;
}

.mode {
  padding: .35rem 1rem;
  border: 1px solid rgba(127, 179, 160, .5);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: .85rem;
  letter-spacing: .08em;
  cursor: pointer;
  transition: all .2s ease;
}
.mode:hover { border-color: var(--mint-deep); color: var(--ink); }
.mode.active {
  background: var(--mint);
  border-color: var(--mint);
  color: #fff;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
}

.primary {
  min-width: 8rem;
  padding: .6rem 2rem;
  border: none;
  border-radius: 999px;
  background: var(--mint-deep);
  color: #fff;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .2em;
  text-indent: .2em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(127, 179, 160, .35);
  transition: background .2s ease, transform .1s ease;
}
.primary:hover { background: #6da893; }
.primary:active { transform: scale(.97); }

.ghost {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(127, 179, 160, .5);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.05rem;
  cursor: pointer;
  transition: all .2s ease;
}
.ghost:hover { border-color: var(--mint-deep); color: var(--ink); }

.hint {
  margin: 1.4rem 0 0;
  font-family: var(--kai);
  font-size: .85rem;
  color: var(--ink-soft);
}

/* ---------- 页脚 ---------- */

footer { margin-top: 2.6rem; }
footer p {
  margin: 0;
  font-family: var(--kai);
  font-size: .8rem;
  color: var(--ink-soft);
}

@media (max-width: 420px) {
  html { font-size: 16px; }
  .halo { width: 13.5rem; height: 13.5rem; }
  .orb { width: 10rem; height: 10rem; }
}
