/* ============================================
   首页样式文件 - home.css
   风格：磨砂玻璃 + 奶油橙（对角渐变明显）
   布局：圣杯布局（中间内容优先）
   ============================================ */

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

:root {
  /* 奶油橙基调 */
  --primary-color: #f97316;
  --primary-light: #fdba74;
  --primary-dark: #ea580c;

  --bg-gradient-start: #fff7ed;
  --bg-gradient-mid: #fed7aa;
  --bg-gradient-end: #f97316;

  /* 同色系阴影/边框 */
  --shadow-color: rgba(248, 153, 60, 0.28);
  --shadow-color-dark: rgba(234, 88, 12, 0.26);
  --shadow-color-light: rgba(254, 215, 170, 0.45);

  --border-color: rgba(248, 171, 94, 0.45);
  --border-color-light: rgba(254, 215, 170, 0.7);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg,
    var(--bg-gradient-start) 0%,
    var(--bg-gradient-mid) 40%,
    var(--bg-gradient-end) 100%);
  min-height: 100vh;
  color: #3f2a1b;
  line-height: 1.6;
}

/* 顶部导航（磨砂玻璃） */
.navbar-custom {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(254, 215, 170, 0.25));
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 30px var(--shadow-color);
  border-bottom: 1px solid var(--border-color-light);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark) !important;
  letter-spacing: 1px;
}

.nav-link {
  color: rgba(63, 42, 27, 0.85) !important;
  font-weight: 600;
  margin: 0 0.5rem;
  transition: opacity 0.2s ease;
}
.nav-link:hover { opacity: 0.75; }

/* ===============================
   圣杯布局（Holy Grail）
   =============================== */
.holy-grail-container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.holy-grail-main { flex: 1; min-width: 0; }
.holy-grail-sidebar-right { width: 300px; flex-shrink: 0; }

@media (max-width: 992px) {
  .holy-grail-container { flex-direction: column; gap: 1.5rem; }
  .holy-grail-sidebar-right { width: 100%; }
}

/* 磨砂卡片通用 */
.notes-section,
.music-player,
.calendar-section,
.resume-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(254, 215, 170, 0.55));
  border: 1px solid var(--border-color-light);
  box-shadow: 0 16px 48px var(--shadow-color);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-radius: 24px;
}

/* 笔记列表 */
.notes-section { padding: 2rem; margin-bottom: 2rem; }
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid rgba(249, 115, 22, 0.35);
  display: inline-block;
}

.note-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(254, 215, 170, 0.65));
  border: 1px solid var(--border-color);
  border-left: 4px solid rgba(249, 115, 22, 0.55);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}
.note-item:hover {
  box-shadow: 0 14px 36px var(--shadow-color-dark);
  filter: brightness(1.03);
}
.note-title { font-size: 1.1rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 0.5rem; }
.note-date { font-size: 0.85rem; color: rgba(63, 42, 27, 0.65); margin-bottom: 0.5rem; }
.note-preview { font-size: 0.95rem; color: rgba(63, 42, 27, 0.78); }

.notes-empty {
  color: rgba(63, 42, 27, 0.6);
  font-size: 1rem;
  padding: 1.5rem 0;
  margin: 0;
}

/* 右侧模块 */
.music-player, .calendar-section { padding: 1.5rem 1.75rem; margin-bottom: 2rem; }
.music-player-title, .calendar-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  text-align: center;
}
.music-info { text-align: center; margin-bottom: 1.2rem; }
.music-title { font-weight: 800; color: var(--primary-dark); }
.music-artist { font-size: 0.85rem; color: rgba(63, 42, 27, 0.6); }

.music-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* 音乐播放器按钮：最初那版多色（蓝/绿/红），但不缩放避免偏移 */
.music-btn {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: filter 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  position: relative;
}

/* 让 bootstrap-icons 的 ::before 绝对居中，避免播放/停止视觉偏移 */
.music-btn i { display: block; width: 1em; height: 1em; position: relative; pointer-events: none; }
.music-btn i::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  vertical-align: 0;
  line-height: 1;
}

.music-btn:hover { filter: brightness(1.06); box-shadow: 0 6px 16px rgba(0,0,0,0.14); }
.music-btn:active { filter: brightness(0.96); box-shadow: 0 3px 10px rgba(0,0,0,0.14); }

.music-btn.prev, .music-btn.next { background: #3498db; }
.music-btn.prev:hover, .music-btn.next:hover { background: #2980b9; }

.music-btn.play-pause { width: 55px; height: 55px; font-size: 1.3rem; background: #2ecc71; }
.music-btn.play-pause:hover { background: #27ae60; }

.music-btn.stop { background: #e74c3c; }
.music-btn.stop:hover { background: #c0392b; }

/* 日历 */
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.calendar-nav-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.calendar-nav-btn:hover { filter: brightness(1.05); box-shadow: 0 6px 16px var(--shadow-color-dark); }
.calendar-month-year { font-weight: 800; color: var(--primary-dark); }

.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem; margin-bottom: 0.75rem; }
.calendar-weekday { text-align: center; font-size: 0.85rem; font-weight: 700; color: rgba(63,42,27,0.55); padding: 0.5rem 0; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem; }
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid var(--border-color);
  color: rgba(63,42,27,0.85);
  cursor: pointer;
  transition: filter 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.calendar-day:hover { filter: brightness(1.05); box-shadow: 0 4px 12px var(--shadow-color-light); border-color: var(--border-color-light); }
.calendar-day.other-month { opacity: 0.45; }
.calendar-day.today { background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); color: #fff; font-weight: 800; border-color: rgba(255,255,255,0.35); }
.calendar-day.selected { background: linear-gradient(135deg, #fdba74, #f97316); color: #fff; font-weight: 800; border-color: rgba(255,255,255,0.35); }

/* 原型标注小块 */
.proto-box {
  margin-top: 1rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px dashed rgba(234, 88, 12, 0.35);
  color: rgba(63,42,27,0.8);
  font-size: 0.8rem;
}

/* 页面尺寸标注 */
.page-spec {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 280px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.88), rgba(253, 186, 116, 0.82));
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 1rem;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(234, 88, 12, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.85rem;
}
.page-spec__sub { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.35); }

