/* ══════════════════════════════════════
   Landing Page
   ══════════════════════════════════════ */

.llm-landing {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Hero ── */
.llm-hero {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 56px 0 64px;
}

.llm-hero-text {
  flex: 1;
  min-width: 0;
}

.llm-badge {
  display: inline-block;
  background: #e8f0fe;
  color: #1a56db;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.llm-hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
  margin: 0 0 12px;
}

.llm-hero-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a56db;
  margin: 0 0 16px;
}

.llm-hero-desc {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.7;
  margin: 0 0 32px;
}

.llm-hero-desc code {
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.llm-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.llm-btn-primary {
  display: inline-block;
  background: #1a56db;
  color: #fff !important;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.2s;
}
.llm-btn-primary:hover { background: #1648c0; }

.llm-btn-secondary {
  display: inline-block;
  background: #fff;
  color: #1a56db !important;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  border: 1.5px solid #1a56db;
  text-decoration: none !important;
  transition: background 0.2s;
}
.llm-btn-secondary:hover { background: #e8f0fe; }

.llm-btn-ghost {
  display: inline-block;
  background: transparent;
  color: #4b5563 !important;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  border: 1.5px solid #d1d5db;
  text-decoration: none !important;
  transition: border-color 0.2s, color 0.2s;
}
.llm-btn-ghost:hover { border-color: #6b7280; color: #111827 !important; }

.llm-hero-img {
  flex: 0 0 52%;
}
.llm-hero-img img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.12);
}

/* ── Features ── */
.llm-features {
  display: flex;
  gap: 20px;
  margin-bottom: 64px;
}

.llm-feature-card {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}

.llm-feat-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 12px;
}

.llm-feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
  border: none !important;
}

.llm-feature-card p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
}

/* ── TOC ── */
.llm-toc-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 24px;
  border: none !important;
}

.llm-toc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.llm-toc-card {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.llm-toc-card:hover {
  border-color: #1a56db;
  box-shadow: 0 4px 16px rgba(26,86,219,0.1);
}

.llm-toc-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1;
  margin-bottom: 8px;
}

.llm-toc-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 10px;
  border: none !important;
}

.llm-toc-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.llm-toc-card ul li {
  font-size: 0.8rem;
  color: #6b7280;
  padding: 3px 0;
  border-top: 1px solid #f1f5f9;
}

.llm-toc-card ul li:first-child {
  border-top: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .llm-hero { flex-direction: column; padding: 40px 0 48px; }
  .llm-hero-img { flex: none; width: 100%; }
  .llm-hero-title { font-size: 2rem; }
  .llm-toc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .llm-features { flex-direction: column; }
  .llm-toc-grid { grid-template-columns: 1fr; }
  .llm-hero-title { font-size: 1.7rem; }
}

/* ── Logo: clickable, rounded ── */
.navbar-brand.logo img {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  object-fit: cover;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.navbar-brand.logo img:hover {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.6);
}

/* ── Logo title text ── */
.logo-title-text {
  margin-left: 8px;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  color: inherit;
}

/* ── Avatar lightbox ── */
#avatar-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9998;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}
#avatar-lightbox img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

/* ── Music button in header ── */
.guige-song-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 0.4rem;
  line-height: 1;
  color: inherit;
}
.guige-song-btn::after {
  content: '看累了听首歌吧';
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1000;
}
.guige-song-btn:hover::after {
  opacity: 1;
}

/* ── Floating video player (bottom-right) ── */
#guige-player {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  background: #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.5);
  z-index: 9999;
  overflow: hidden;
}
#guige-player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #2a2a2a;
  font-size: 12px;
  color: #ccc;
  cursor: move;
  user-select: none;
}
#guige-player-bar span {
  font-size: 13px;
}
#guige-player-close {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}
#guige-player-close:hover {
  color: #fff;
}
#guige-video {
  display: block;
  width: 100%;
  height: 180px;
  background: #000;
}
