/* AI三千问 首页 — 暖金暗调 */
:root {
  --bg-deep: #0f0f14;
  --bg-card: #1a1a24;
  --bg-card-hover: #1f1f2c;
  --border: #2a2a36;
  --border-accent: #3a3a46;
  --gold: #c9a96e;
  --gold-dim: #c9a96e88;
  --gold-faint: #c9a96e18;
  --text: #e8e0d4;
  --text-dim: #8a8580;
  --text-muted: #5a5550;
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  background: var(--bg-deep); color: var(--text);
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  min-height: 100vh; line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 20%, var(--gold-faint) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(100,140,200,0.03) 0%, transparent 50%);
}

/* ===== Layout ===== */
.home-wrapper {
  position: relative; z-index: 1;
  max-width: 680px; margin: 0 auto; padding: 3rem 1.2rem 4rem;
}

/* ===== Header ===== */
.home-header { text-align: center; padding: 2rem 0 1.2rem; }
.home-emblem {
  font-size: 3rem; margin-bottom: 0.3rem;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.home-title {
  font-size: 2.6rem; font-weight: 700; letter-spacing: 0.3em;
  background: linear-gradient(135deg, var(--gold) 0%, #e8d5a3 50%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.home-sub {
  font-size: 0.9rem; color: var(--gold-dim); letter-spacing: 0.2em; margin-top: 0.2rem;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

/* ===== Nav ===== */
.home-nav {
  display: flex; justify-content: flex-end; align-items: center; gap: 1rem;
  margin-bottom: 2rem;
}
.home-nav a {
  font-family: "Noto Sans SC", sans-serif; font-size: 0.8rem;
  color: var(--gold-dim); text-decoration: none;
  padding: 0.35rem 0.9rem; border-radius: 20px;
  border: 1px solid transparent; transition: all 0.25s var(--ease);
}
.home-nav a:hover { color: var(--gold); border-color: var(--gold-dim); background: var(--gold-faint); }
.nav-user {
  font-size: 0.8rem; color: var(--text-dim); font-family: "Noto Sans SC", sans-serif;
}
.nav-user span { color: var(--text); margin-right: 0.5rem; }
.nav-user a { margin-left: 0; }

/* ===== Sections ===== */
.home-section { margin: 2.5rem 0; }
.section-head {
  display: flex; align-items: baseline; gap: 0.8rem;
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.section-head .cat {
  font-size: 1.15rem; color: var(--gold); font-weight: 600; letter-spacing: 0.1em;
}
.section-head span:last-child {
  font-size: 0.78rem; color: var(--text-dim);
  font-family: "Noto Sans SC", sans-serif;
}

/* ===== Module Cards ===== */
.module-list { display: flex; flex-direction: column; gap: 0.6rem; }

.module-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.3rem;
  text-decoration: none; color: inherit;
  transition: all 0.3s var(--ease); cursor: pointer;
  position: relative; overflow: hidden;
}
.module-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 50%, var(--gold-faint), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.module-card.active:hover {
  border-color: var(--gold-dim); background: var(--bg-card-hover);
  transform: translateX(6px); box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.module-card.active:hover::after { opacity: 1; }
.module-card.locked { opacity: 0.4; cursor: not-allowed; filter: grayscale(0.3); }
.module-card.locked:hover { opacity: 0.55; transform: none; }

.module-card .icon { font-size: 1.2rem; width: 2.4rem; text-align: center; flex-shrink: 0; opacity: 0.85; }
.module-card .body { flex: 1; min-width: 0; }
.module-card .name {
  display: block; font-size: 0.95rem; font-weight: 600; color: var(--text);
  letter-spacing: 0.06em; margin-bottom: 0.1rem;
}
.module-card .desc {
  display: block; font-size: 0.74rem; color: var(--text-dim);
  font-family: "Noto Sans SC", sans-serif;
}
.module-card .badge {
  font-family: "Noto Sans SC", sans-serif; font-size: 0.68rem;
  padding: 0.2rem 0.6rem; border-radius: 12px; flex-shrink: 0;
}
.module-card.active .badge { background: var(--gold-faint); color: var(--gold); }
.module-card.locked .badge { background: #1a1a24; color: var(--text-muted); border: 1px solid var(--border); }

/* ===== Footer ===== */
.home-footer {
  text-align: center; padding: 3rem 0 1rem;
  font-size: 0.75rem; color: var(--text-muted);
  font-family: "Noto Sans SC", sans-serif; letter-spacing: 0.08em;
}

@media (max-width: 640px) {
  .home-wrapper { padding: 2rem 0.8rem 3rem; }
  .home-header { padding: 1rem 0 0.8rem; }
  .home-emblem { font-size: 2.4rem; }
  .home-title { font-size: 1.6rem; letter-spacing: 0.2em; }
  .home-sub { font-size: 0.78rem; }
  .home-nav { justify-content: center; gap: 0.6rem; margin-bottom: 1.4rem; }
  .home-nav a { font-size: 0.76rem; padding: 0.35rem 0.8rem; }
  .section-head { gap: 0.5rem; }
  .section-head .cat { font-size: 1rem; }
  .section-head span:last-child { font-size: 0.72rem; }
  .module-card { padding: 0.85rem 1rem; gap: 0.7rem; }
  .module-card .icon { font-size: 1rem; width: 1.8rem; }
  .module-card .name { font-size: 0.85rem; }
  .module-card .desc { font-size: 0.7rem; }
  .module-card .badge { font-size: 0.62rem; padding: 0.15rem 0.5rem; }
  .home-footer { padding: 2rem 0 1rem; font-size: 0.7rem; }
}

@media (max-width: 380px) {
  .home-wrapper { padding: 1.5rem 0.6rem 2.5rem; }
  .home-title { font-size: 1.35rem; }
  .module-card.active:hover { transform: none; }
}
