/* ============================================================
   CineMind — Cinematic Movie Tracking
   Dark theme · Glassmorphism · Gradient · Animations
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: #06060a;
  --bg-dark: #0a0a12;
  --bg-card: rgba(18, 18, 28, 0.72);
  --bg-card-hover: rgba(26, 26, 40, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.15);
  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.6);
  --text-muted: rgba(240, 240, 245, 0.38);
  --accent: #f5c518;
  --accent-glow: rgba(245, 197, 24, 0.3);
  --accent-2: #7c3aed;
  --accent-3: #ec4899;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Noto Sans SC', -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---- Particle Canvas ---- */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: var(--transition);
  padding: 18px 0;
  background: rgba(6, 6, 10, 0.60);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
#navbar.scrolled {
  background: rgba(6, 6, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}
.logo-icon {
  width: 32px; height: 32px;
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}
.logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #f5c518, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }
.nav-search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: var(--transition);
}
.nav-search-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--border-bright);
}

/* 移动端汉堡按钮（默认隐藏，<900px 显示） */
.nav-menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  color: var(--text-secondary);
  border: none; cursor: pointer;
  border-radius: 10px;
  transition: var(--transition);
}
.nav-menu-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

/* 移动端抽屉式导航面板（默认隐藏） */
.nav-mobile-panel {
  display: none;
  flex-direction: column;
  padding: 8px 20px 20px;
  gap: 4px;
}
.nav-mobile-link {
  display: block;
  padding: 13px 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(245,197,24,0.08), transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(124,58,237,0.1), transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(236,72,153,0.08), transparent 60%);
  z-index: 0;
}
.hero-poster-strip {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  display: flex;
  gap: 12px;
  opacity: 0.06;
  z-index: 0;
  overflow: hidden;
}
.hero-poster-strip img {
  width: 200px;
  height: 300px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 8px;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 40px;
  animation: heroFadeIn 1.2s ease-out;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.badge-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}
.title-line { display: block; }
.title-accent {
  background: linear-gradient(135deg, #f5c518 0%, #ec4899 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
  background-size: 200% 200%;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 1px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  background: linear-gradient(135deg, #f5c518, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, #f5c518, #f59e0b);
  color: #1a1a1a;
  box-shadow: 0 4px 20px rgba(245,197,24,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(245,197,24,0.4);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
}
.douban-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
  color: var(--text-muted);
  font-size: 12px;
}
.douban-divider::before,
.douban-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.cookie-panel {
  margin-top: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cookie-panel .douban-cookie-input {
  width: 100%;
  min-height: 88px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
}
.cookie-panel .douban-cookie-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.12);
}
.cookie-panel .douban-cookie-input::placeholder {
  color: var(--text-muted);
  font-family: inherit;
}
.btn-small {
  padding: 6px 16px;
  font-size: 13px;
  background: rgba(245,197,24,0.1);
  color: var(--accent);
  border: 1px solid rgba(245,197,24,0.3);
}
.btn-small:hover {
  background: rgba(245,197,24,0.2);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
  z-index: 2;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 40px;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0.8;
}
.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ============================================================
   ACCOUNTS
   ============================================================ */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
  gap: 20px;
  margin-bottom: 32px;
}
.account-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(20px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.account-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-color, var(--accent));
  opacity: 0;
  transition: var(--transition);
}
.account-card:hover::before { opacity: 1; }
.account-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
}
.account-card.linked::before { opacity: 0.6; }
.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.account-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
}
.account-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
}
.status-linked {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
}
.status-unlinked {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}
.account-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.account-username {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.account-count {
  font-size: 13px;
  color: var(--text-muted);
}
.account-count strong {
  color: var(--accent);
  font-size: 20px;
  font-family: 'Bebas Neue', sans-serif;
}
.account-action {
  margin-top: 12px;
  width: 100%;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.account-action.linked {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.account-action.unlinked {
  background: rgba(245,197,24,0.1);
  color: var(--accent);
  border-color: rgba(245,197,24,0.3);
}
.account-action:hover { border-color: var(--border-bright); }
.account-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.account-actions .account-action { margin-top: 0; flex: 1; }
.account-action.view {
  background: rgba(34,197,94,0.08);
  color: #4ade80;
  border-color: rgba(34,197,94,0.25);
}
.account-action.view.active {
  background: rgba(34,197,94,0.2);
  border-color: rgba(34,197,94,0.5);
}
.account-action.unlink {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.account-action.unlink:hover {
  color: #f87171;
  border-color: rgba(248,113,113,0.4);
}
.account-action.cookie {
  background: rgba(59,130,246,0.08);
  color: #60a5fa;
  border-color: rgba(59,130,246,0.25);
}
.account-action.cookie:hover {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.5);
}
.account-card.active {
  border-color: rgba(245,197,24,0.5);
  box-shadow: 0 0 0 1px rgba(245,197,24,0.15), 0 8px 30px rgba(245,197,24,0.08);
}
.account-card.active::before { opacity: 1; }
.account-icon-wrap.add {
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-weight: 400;
  font-size: 26px;
}
.add-card { border-style: dashed; opacity: 0.85; }

.sync-status {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  backdrop-filter: blur(20px);
}
.sync-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}
.sync-progress {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 2px;
  transition: width 0.6s ease;
}
.sync-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}
.sync-meta { color: var(--text-tertiary); font-size: 12px; }
.sync-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.sync-actions .btn {
  padding: 8px 16px;
  font-size: 13px;
}
.btn-danger { color: #ff6b6b; }
.btn-danger:hover { color: #ff5252; border-color: #ff6b6b; }
.sync-text {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================================
   POSTER WALL
   ============================================================ */
.wall-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.wall-top-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.wall-top-row .search-box {
  flex: 1;
  min-width: 220px;
}
.wall-top-row .sort-dropdown {
  flex-shrink: 0;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  min-width: 260px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.1);
}
.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  flex: 1;
}
.search-box input::placeholder { color: var(--text-muted); }

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.filter-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-bright);
}
.filter-tab.active {
  background: rgba(245,197,24,0.12);
  color: var(--accent);
  border-color: rgba(245,197,24,0.4);
}
.sort-dropdown select {
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(10px);
}
.sort-dropdown select option { background: var(--bg-dark); }

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.poster-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 2/3;
  background: var(--bg-card);
  animation: posterIn 0.5s ease-out backwards;
}
@keyframes posterIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.poster-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 5;
}
.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}
.poster-card:hover img {
  filter: brightness(0.5);
}
.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
}
.poster-card:hover .poster-overlay { opacity: 1; }
.poster-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}
.poster-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.poster-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}
.star-rating {
  display: flex;
  gap: 2px;
}
.star { color: rgba(255,255,255,0.2); font-size: 11px; }
.star.filled { color: var(--accent); }
.poster-rating-num {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.poster-badge {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 8px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  z-index: 2;
}
.empty-state {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
  font-size: 16px;
}

/* ============================================================
   USER PROFILE
   ============================================================ */
.profile-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.persona-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.persona-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,197,24,0.08), transparent 70%);
  pointer-events: none;
}
.persona-avatar {
  position: relative;
  flex-shrink: 0;
}
.avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #f5c518, #ec4899, #7c3aed, #f5c518);
  animation: rotate 4s linear infinite;
}
@keyframes rotate {
  to { transform: rotate(360deg); }
}
.avatar-inner {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.avatar-emoji { font-size: 44px; }
.persona-info { flex: 1; }
.persona-label {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.persona-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #f5c518, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.persona-desc {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 16px;
  max-width: 500px;
}
.persona-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.persona-tag {
  padding: 5px 14px;
  background: rgba(245,197,24,0.08);
  border: 1px solid rgba(245,197,24,0.2);
  border-radius: 16px;
  font-size: 12px;
  color: var(--accent);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(20px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.profile-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
}
.profile-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
}
.profile-card:hover::after { opacity: 1; }
.card-icon {
  width: 36px; height: 36px;
  color: var(--accent);
  margin-bottom: 12px;
}
.card-icon svg { width: 100%; height: 100%; }
.card-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.card-value {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.card-detail {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ---- Taste Section ---- */
.taste-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
}
.subsection-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
}
.taste-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.radar-chart-wrap {
  position: relative;
  height: 320px;
}
.taste-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.taste-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.taste-bar-label {
  width: 60px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.taste-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.taste-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-out;
}
.taste-bar-value {
  width: 36px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-align: right;
  flex-shrink: 0;
}

/* ============================================================
   STATISTICS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(20px);
  transition: var(--transition);
}
.chart-card:hover {
  border-color: var(--border-bright);
}
.chart-large { grid-column: span 2; }
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.chart-header h3 {
  font-size: 16px;
  font-weight: 700;
}
.chart-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}
.chart-body {
  position: relative;
  height: 240px;
}
.chart-large .chart-body { height: 280px; }

/* ---- Summary Card ---- */
.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.summary-card::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,0.06), transparent 70%);
  pointer-events: none;
}
.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.summary-header h3 {
  font-size: 20px;
  font-weight: 700;
}
.summary-year {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--accent);
  letter-spacing: 2px;
}
/* Year selector (monthly trend + annual summary) */
.chart-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.year-select {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: rgba(240, 240, 245, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.year-select:hover,
.year-select:focus {
  border-color: var(--accent);
}
.year-select option {
  background: #1a1a2e;
  color: #eee;
}
.year-select-large {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--accent);
  letter-spacing: 2px;
  background: rgba(245, 197, 24, 0.06);
  border: 1px solid rgba(245, 197, 24, 0.28);
  padding: 2px 10px;
}
.year-select-large option {
  font-family: inherit;
}
.summary-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.summary-item {
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.summary-item-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.summary-item-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.summary-item-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  position: relative;
  z-index: 1;
  padding: 60px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-icp {
  margin-top: 6px;
  font-size: 12px;
}
.footer-icp a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-icp a:hover {
  color: var(--accent);
}
/* 自愿支持按钮 */
.support-btn {
  margin-top: 16px;
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}
.support-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
/* 支持弹窗二维码区域 */
.support-qr-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 20px 0 8px;
}
.support-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.support-qr-frame {
  width: 160px;
  height: 160px;
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  background: #fff; /* 收款码是白底 */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.support-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.support-qr-frame.qr-missing {
  border-style: dashed;
  background: rgba(255,255,255,0.03);
}
.qr-placeholder {
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 12px;
  display: none;
}
.support-qr-frame.qr-missing .qr-placeholder {
  display: flex;
}
.support-qr-name {
  font-size: 13px;
  color: var(--text-secondary);
}
.support-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-dark);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 10;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-bright);
}
.modal-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
}
.modal-poster {
  padding: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.modal-poster img {
  width: 100%;
  max-width: 240px;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.modal-info {
  padding: 32px 32px 32px 0;
}
.modal-info h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}
.modal-original-title {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.modal-tag {
  padding: 4px 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}
.modal-ratings {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
}
.modal-rating-item {
  text-align: center;
}
.modal-rating-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--accent);
}
.modal-rating-label {
  font-size: 11px;
  color: var(--text-muted);
}
.modal-info-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}
.modal-info-label {
  color: var(--text-muted);
  min-width: 60px;
  flex-shrink: 0;
}
.modal-info-value {
  color: var(--text-secondary);
}
.modal-summary {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================================
   DOUBAN MODAL
   ============================================================ */
.modal-narrow {
  max-width: 520px;
}
.douban-modal-content {
  padding: 48px 40px;
  text-align: center;
}
.douban-modal-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.douban-icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #00b51d, #007722);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 183, 29, 0.3);
  animation: doubanFloat 3s ease-in-out infinite;
}
@keyframes doubanFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.douban-modal-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}
.douban-modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}
.douban-form {
  text-align: left;
}
.douban-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.douban-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  margin-bottom: 6px;
}
.douban-input:focus {
  border-color: #00b51d;
  box-shadow: 0 0 0 3px rgba(0, 183, 29, 0.12);
}
.douban-input::placeholder { color: var(--text-muted); }
.douban-textarea { resize: vertical; min-height: 48px; }
.douban-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.douban-hint code {
  background: rgba(255,255,255,0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}
.douban-hint-dim {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  opacity: 0.7;
  font-size: 11px;
}
.douban-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin: 12px 0;
}
.douban-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 14px;
  margin: 12px 0;
  background: rgba(245,197,24,0.06);
  border: 1px solid rgba(245,197,24,0.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--accent);
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(245,197,24,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.douban-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ---- Douban QR login ---- */
.douban-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.douban-tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 9px;
  cursor: pointer;
  transition: var(--transition);
}
.douban-tab:hover { color: var(--text-primary); }
.douban-tab.active {
  background: rgba(245,197,24,0.15);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.douban-pane { text-align: center; }

/* ---- Sync toast ---- */
.sync-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 16px 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.sync-toast.show { transform: translateX(0); }
.sync-toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sync-toast-icon.running {
  background: rgba(245,197,24,0.15);
  color: var(--accent);
}
.sync-toast-icon.done {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
}
.sync-toast-icon.error {
  background: rgba(239,68,68,0.15);
  color: #f87171;
}
.sync-toast-body { flex: 1; }
.sync-toast-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.sync-toast-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.sync-toast-track {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 10px;
  display: none;
}
.sync-toast.has-progress .sync-toast-track { display: block; }
.sync-toast-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f5c518, #fbbf24);
  border-radius: 2px;
  transition: width 0.8s ease;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: inline-flex; }
  .nav-mobile-panel.open { display: flex; }
  .section { padding: 60px 20px; }
  .nav-inner { padding: 0 20px; }
  .hero-content { padding: 0 20px; }
  .hero-stats { gap: 24px; }
  .persona-card { flex-direction: column; text-align: center; padding: 24px; }
  .persona-tags { justify-content: center; }
  .taste-content { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .chart-large { grid-column: span 1; }
  .modal-content { grid-template-columns: 1fr; }
  .modal-poster { padding: 24px; }
  .modal-info { padding: 0 24px 24px; }
  .poster-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}
@media (max-width: 600px) {
  .wall-controls { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 100%; }
  .hero-title { font-size: 42px; }
  .poster-grid { grid-template-columns: repeat(2, 1fr); }
}
