/* ============================================================
   Azure — 柠檬美式咖啡 设计系统
   深咖啡底色 + 奶咖层次 + 柠檬黄点缀，Suno 式深色卡片风
   ============================================================ */

:root {
  --bg: #131009;          /* 深浓缩底 */
  --bg-2: #1c1710;        /* 卡片底 */
  --bg-3: #282014;        /* 悬浮层次 */
  --bg-4: #33291a;        /* 输入框等 */
  --cream: #f2ead9;       /* 主文字 奶咖 */
  --muted: #a89880;       /* 次要文字 */
  --faint: #6f6350;       /* 弱提示 */
  --lemon: #f2d024;       /* 柠檬黄主色 */
  --lemon-soft: #ffe86b;
  --lemon-dim: rgba(242, 208, 36, 0.14);
  --coffee: #b07a3e;      /* 咖啡棕 */
  --line: rgba(242, 234, 217, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* 背景氛围：柠檬光晕 + 咖啡渐变 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px 400px at 85% -5%, rgba(242, 208, 36, 0.07), transparent 70%),
    radial-gradient(800px 500px at -10% 110%, rgba(176, 122, 62, 0.12), transparent 70%);
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(19, 16, 9, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lemon);
  box-shadow: 0 0 12px rgba(242, 208, 36, 0.7);
}
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 15px;
  color: var(--muted);
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--cream); background: var(--bg-3); }
.nav-links a.active {
  color: #131009;
  background: var(--lemon);
  font-weight: 600;
}

/* ---------- 通用板块 ---------- */
.page { padding: 48px 0 140px; }

.hero { padding: 32px 0 40px; }
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
}
.hero h1 em {
  font-style: normal;
  color: var(--lemon);
}
.hero p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  max-width: 640px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 48px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "";
  width: 8px; height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--lemon), var(--coffee));
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 99px;
  background: var(--lemon);
  color: #131009;
  transition: all 0.2s;
}
.btn:hover { background: var(--lemon-soft); transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: var(--bg-3);
  color: var(--cream);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-4); }

/* ---------- 音乐生成面板 ---------- */
.gen-panel {
  background: linear-gradient(145deg, var(--bg-2), #221b10);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  margin-top: 32px;
}
.gen-panel label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin: 18px 0 8px;
}
.gen-panel label:first-child { margin-top: 0; }
.gen-panel textarea,
.gen-panel input[type="text"] {
  width: 100%;
  background: var(--bg-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: var(--font);
  font-size: 15px;
  padding: 14px 16px;
  resize: vertical;
  transition: border-color 0.2s;
}
.gen-panel textarea { min-height: 90px; }
.gen-panel textarea:focus,
.gen-panel input:focus { outline: none; border-color: var(--lemon); }

.style-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.style-tags .tag {
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--bg-4);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}
.style-tags .tag:hover { color: var(--cream); }
.style-tags .tag.on {
  background: var(--lemon-dim);
  border-color: var(--lemon);
  color: var(--lemon);
}
.gen-actions { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.gen-status { font-size: 14px; color: var(--muted); }
.gen-status.error { color: #ff8f6b; }
.gen-status.ok { color: var(--lemon); }
.gen-result {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  display: none;
}
.gen-result audio { width: 100%; }

/* ---------- 音乐卡片网格 ---------- */
.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.track-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.track-card:hover { transform: translateY(-4px); border-color: rgba(242, 208, 36, 0.35); }
.track-cover {
  aspect-ratio: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.track-cover .note {
  font-size: 54px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.cover-a { background: linear-gradient(135deg, #f2d024 0%, #b07a3e 60%, #4a3115 100%); }
.cover-b { background: linear-gradient(135deg, #3b2c15 0%, #b07a3e 55%, #f2d024 130%); }
.cover-c { background: linear-gradient(160deg, #1c1710 0%, #6b4d22 55%, #d9a82e 120%); }
.cover-d { background: linear-gradient(135deg, #8a5a2b 0%, #3a2a12 70%, #f2d024 160%); }
.cover-e { background: linear-gradient(150deg, #f7e27a -20%, #c98f2e 45%, #241a0c 100%); }
.cover-f { background: linear-gradient(135deg, #2e2413 0%, #7a5a26 50%, #ffe86b 140%); }

.track-cover .play-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 16, 9, 0.45);
  opacity: 0;
  transition: opacity 0.2s;
}
.track-card:hover .play-hint { opacity: 1; }
.play-hint span {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--lemon);
  color: #131009;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  padding-left: 4px;
}
.track-card.playing { border-color: var(--lemon); }
.track-card.playing .play-hint { opacity: 1; background: rgba(19,16,9,0.25); }

.track-info { padding: 14px 16px 16px; }
.track-info h3 { font-size: 16px; font-weight: 700; }
.track-info .tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.track-info .tags span {
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-4);
  padding: 2px 8px;
  border-radius: 99px;
}
.track-prompt {
  margin-top: 10px;
  font-size: 12px;
  color: var(--faint);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 底部播放器 ---------- */
.player-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: rgba(28, 23, 16, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.player-bar.show { transform: translateY(0); }
.player-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.player-cover {
  width: 48px; height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.player-meta { min-width: 0; flex-shrink: 1; }
.player-meta .t {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-meta .s { font-size: 12px; color: var(--muted); }
.player-ctrl { display: flex; align-items: center; gap: 8px; }
.player-ctrl button {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--cream);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.player-ctrl button:hover { background: var(--bg-4); }
.player-ctrl .main-btn {
  width: 44px; height: 44px;
  background: var(--lemon);
  color: #131009;
  font-size: 17px;
}
.player-ctrl .main-btn:hover { background: var(--lemon-soft); }
.player-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.player-progress .time { font-size: 12px; color: var(--muted); width: 40px; text-align: center; flex-shrink: 0; }
.progress-track {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--bg-4);
  cursor: pointer;
  position: relative;
}
.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 3px;
  background: var(--lemon);
}
.player-volume { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.player-volume input { width: 80px; accent-color: var(--lemon); }

/* ---------- 博客 ---------- */
.post-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.post-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  display: block;
}
.post-card:hover { transform: translateY(-3px); border-color: rgba(242, 208, 36, 0.35); }
.post-card .date { font-size: 13px; color: var(--coffee); font-weight: 600; }
.post-card h2 { font-size: 20px; margin-top: 6px; }
.post-card p { margin-top: 8px; color: var(--muted); font-size: 15px; }

.post-reader { margin-top: 28px; }
.post-reader .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 20px;
}
.post-reader .back:hover { color: var(--lemon); }
.post-reader h1.title { font-size: 34px; line-height: 1.35; }
.post-reader .meta { color: var(--coffee); font-size: 14px; margin: 10px 0 28px; font-weight: 600; }

.md-body { font-size: 16.5px; }
.md-body h1, .md-body h2, .md-body h3 { margin: 32px 0 14px; line-height: 1.4; }
.md-body h1 { font-size: 26px; } .md-body h2 { font-size: 22px; } .md-body h3 { font-size: 19px; }
.md-body p { margin: 14px 0; color: #ddd2bd; }
.md-body ul, .md-body ol { margin: 14px 0 14px 24px; color: #ddd2bd; }
.md-body li { margin: 6px 0; }
.md-body a { color: var(--lemon); border-bottom: 1px dashed rgba(242,208,36,0.4); }
.md-body img { max-width: 100%; border-radius: var(--radius-sm); margin: 16px 0; }
.md-body blockquote {
  border-left: 3px solid var(--lemon);
  padding: 4px 0 4px 16px;
  margin: 18px 0;
  color: var(--muted);
  background: var(--bg-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.md-body code {
  background: var(--bg-4);
  color: var(--lemon-soft);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 14px;
  font-family: "SF Mono", Consolas, Menlo, monospace;
}
.md-body pre {
  background: #0d0b06;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  overflow-x: auto;
  margin: 18px 0;
}
.md-body pre code { background: none; padding: 0; color: #e8ddc4; font-size: 14px; }
.md-body hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }

/* ---------- 关于页 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
.about-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.about-card h3 {
  font-size: 17px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.about-card h3 .ico {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--lemon-dim);
  color: var(--lemon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.about-card p { color: var(--muted); font-size: 15px; }
@media (min-width: 720px) { .about-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 32px;
  margin-top: 60px;
  color: var(--faint);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .nav-inner { gap: 12px; }
  .nav-links a { padding: 7px 12px; font-size: 14px; }
  .player-volume { display: none; }
  .player-meta .s { display: none; }
  .page { padding-bottom: 120px; }
}
