/* 青柠生活助手 — 清新配色（绿 / 陶土 / 米白），无蓝紫主色 */
:root {
  --bg: #f7f4ef;
  --surface: #fffcf7;
  --surface-2: #f0ebe3;
  --text: #2c2a26;
  --text-muted: #6b6560;
  --primary: #3d7c5a;
  --primary-hover: #2f6348;
  --accent: #c45c3e;
  --accent-soft: #e8a090;
  --leaf: #7cb87a;
  --border: #e5dfd4;
  --shadow: 0 12px 40px rgba(44, 42, 38, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary);
  background: var(--surface-2);
  text-decoration: none;
}

/* 主内容区 */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* 首页 Hero */
.hero {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(61, 124, 90, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.hero p.lead {
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* 三大功能区卡片 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.card-zone {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-zone:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(44, 42, 38, 0.12);
}

.card-zone .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.card-zone.learn .icon {
  background: rgba(124, 184, 122, 0.25);
}
.card-zone.work .icon {
  background: rgba(196, 92, 62, 0.15);
}
.card-zone.life .icon {
  background: rgba(61, 124, 90, 0.15);
}

.card-zone h2 {
  margin: 0;
  font-size: 1.2rem;
}
.card-zone p {
  margin: 0;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: rgba(61, 124, 90, 0.08);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  filter: brightness(1.05);
}

/* 子页工具区 */
.page-title {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
}
.page-desc {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 40rem;
}

.tool-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.tool-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--text);
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  margin-bottom: 1rem;
}
textarea {
  min-height: 100px;
  resize: vertical;
}

.output-box {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-top: 0.5rem;
  border-left: 4px solid var(--leaf);
  white-space: pre-wrap;
  font-size: 0.95rem;
  color: var(--text);
  min-height: 3rem;
}

.output-box.accent-border {
  border-left-color: var(--accent);
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--primary);
}

/* 番茄钟 */
.timer-display {
  font-variant-numeric: tabular-nums;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--primary);
  margin: 1rem 0;
  letter-spacing: 0.05em;
}

.timer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.pill-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pill {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.pill:hover {
  border-color: var(--leaf);
}
.pill.is-active {
  background: rgba(61, 124, 90, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* 心情打卡 */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.mood-btn {
  aspect-ratio: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}
.mood-btn:hover {
  transform: scale(1.05);
  border-color: var(--accent-soft);
}
.mood-btn.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 92, 62, 0.2);
}

/* 页脚 */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .timer-display {
    font-size: 2rem;
  }
}
