/* ===== 暗夜极光 · JARVIS ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a12;
  --text: #f0f0f8;
  --muted: #a0a0b8;
  --a: #8b5cf6;
  --a2: #06b6d4;
  --a3: #ec4899;
  --glass: rgba(255,255,255,0.03);
  --glass-h: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-h: rgba(255,255,255,0.18);
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-h: 0 20px 56px rgba(0,0,0,0.6);
  --r: 20px;
  --rs: 12px;
  --sb: 240px;
  --blur: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Noto Sans SC", sans-serif;
  background: var(--bg);
  background-image: radial-gradient(ellipse at top right, #1a0a2e 0%, var(--bg) 60%);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
}

/* === 光晕 === */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.orb-1 { width:600px; height:600px; background:var(--a); top:-200px; right:-100px; animation:o1 20s ease-in-out infinite; }
.orb-2 { width:400px; height:400px; background:var(--a2); bottom:-100px; left:-100px; animation:o2 25s ease-in-out infinite; }
.orb-3 { width:350px; height:350px; background:var(--a3); top:50%; left:50%; animation:o3 18s ease-in-out infinite; }
@keyframes o1 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(-50px,80px)} 66%{transform:translate(30px,-40px)} }
@keyframes o2 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(60px,-60px)} 66%{transform:translate(-40px,50px)} }
@keyframes o3 { 0%,100%{transform:translate(-50%,-50%)} 50%{transform:translate(-30%,-70%)} }

/* === 玻璃效果 === */
.glass {
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.glass:hover { background: var(--glass-h); border-color: var(--border-h); transform: translateY(-4px); box-shadow: var(--shadow-h); }

/* === 侧边栏 === */
.sidebar {
  position: fixed; left:0; top:0; bottom:0;
  width: var(--sb);
  display:flex; flex-direction: column;
  padding: 32px 24px;
  border-radius: 0;
  border-left:none; border-top:none; border-bottom:none;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(0,0,0,0.3);
}
.sidebar-header { text-align:center; margin-bottom:40px; }
.sidebar-avatar {
  width:72px; height:72px; border-radius:50%;
  background:linear-gradient(135deg,var(--a),var(--a2));
  display:flex; align-items:center; justify-content:center;
  font-size:1.8rem; font-weight:700; color:#fff;
  margin:0 auto 16px;
  box-shadow: 0 0 24px rgba(139,92,246,0.4);
}
.sidebar-name { font-size:1.2rem; font-weight:700; letter-spacing:1px; }
.sidebar-role { font-size:0.85rem; color:var(--muted); margin-top:4px; }
.sidebar-nav { display:flex; flex-direction:column; gap:4px; flex:1; }
.sidebar-link {
  display:flex; align-items:center; gap:12px;
  padding:12px 16px; border-radius:var(--rs);
  color:var(--muted); text-decoration:none;
  font-size:0.95rem; transition:all 0.3s ease;
}
.sidebar-link:hover { background:var(--glass-h); color:var(--text); }
.sidebar-link.active { background:rgba(139,92,246,0.15); color:var(--text); font-weight:500; }
.link-icon { font-size:1.2rem; }
.sidebar-footer { padding-top:24px; border-top:1px solid var(--border); }
.sidebar-footer a { display:block; text-align:center; color:var(--muted); text-decoration:none; font-size:0.85rem; transition:color 0.3s; }
.sidebar-footer a:hover { color:var(--a2); }

/* === 主内容 === */
.main { margin-left:var(--sb); flex:1; padding:60px 48px; position:relative; z-index:1; min-height:100vh; }
.page { max-width:900px; margin:0 auto; }
.page-title {
  font-size:2.5rem; font-weight:800; letter-spacing:-1px; margin-bottom:8px;
  background:linear-gradient(135deg,var(--text),var(--muted));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.page-subtitle { color:var(--muted); font-size:1.05rem; margin-bottom:48px; }

/* === Hero === */
.hero-page { display:flex; align-items:center; justify-content:center; min-height:calc(100vh - 120px); }
.hero-content { text-align:center; }
.hero-greeting { font-size:1.2rem; color:var(--muted); margin-bottom:8px; }
.hero-title {
  font-size:5rem; font-weight:900; letter-spacing:-3px; line-height:1;
  margin-bottom:16px;
  background:linear-gradient(135deg,var(--a),var(--a2));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.hero-tagline { font-size:1.2rem; color:var(--muted); font-weight:300; margin-bottom:32px; }
.hero-details { display:inline-flex; align-items:center; gap:24px; padding:20px 32px; margin-bottom:32px; }
.detail-item { display:flex; flex-direction:column; align-items:center; gap:4px; }
.detail-label { font-size:0.75rem; color:var(--muted); text-transform:uppercase; letter-spacing:1px; }
.detail-value { font-size:1rem; font-weight:500; }
.detail-divider { width:1px; height:32px; background:var(--border); }
.hero-actions { display:flex; justify-content:center; gap:16px; }

/* === 按钮 === */
.btn {
  display:inline-block; padding:14px 32px; border-radius:50px;
  font-size:1rem; font-weight:500; text-decoration:none;
  border:none; cursor:pointer; transition:all 0.3s ease;
}
.btn-primary {
  color:#fff;
  background:linear-gradient(135deg,var(--a),var(--a2));
  box-shadow:0 4px 20px rgba(139,92,246,0.3);
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 8px 30px rgba(139,92,246,0.5); }
.btn-ghost { color:var(--text); background:transparent; border:1px solid var(--border); }
.btn-ghost:hover { background:rgba(255,255,255,0.06); border-color:rgba(255,255,255,0.2); }

/* === 卡片网格 === */
.grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:32px; }
.info-card { padding:28px; }
.info-card h3 { font-size:1.05rem; margin-bottom:16px; font-weight:600; }
.info-list { list-style:none; display:flex; flex-direction:column; gap:12px; }
.info-list li { display:flex; flex-direction:column; gap:2px; }
.info-school { font-size:0.95rem; }
.info-time { font-size:0.8rem; color:var(--muted); }
.tag-list { display:flex; flex-wrap:wrap; gap:8px; }
.tag { padding:6px 14px; border-radius:20px; font-size:0.8rem; background:rgba(139,92,246,0.12); color:var(--a); border:1px solid rgba(139,92,246,0.25); }

/* === 时间线 === */
.timeline-card { padding:32px; }
.timeline-title { font-size:1.1rem; margin-bottom:24px; font-weight:600; }
.timeline { position:relative; padding-left:24px; }
.timeline::before { content:''; position:absolute; left:6px; top:0; bottom:0; width:2px; background:linear-gradient(to bottom,var(--a),var(--a2),transparent); }
.timeline-item { position:relative; margin-bottom:24px; }
.timeline-item:last-child { margin-bottom:0; }
.timeline-dot { position:absolute; left:-24px; top:6px; width:10px; height:10px; border-radius:50%; background:var(--a); border:3px solid var(--bg); box-shadow:0 0 10px rgba(139,92,246,0.5); }
.timeline-date { font-size:0.8rem; color:var(--a2); font-weight:600; margin-bottom:4px; }
.timeline-content { font-size:0.95rem; color:var(--muted); }

/* === 作品 === */
.works-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:24px; }
.work-card { padding:0; overflow:hidden; cursor:pointer; border-radius:var(--r); }
.work-cover { width:100%; height:150px; background:linear-gradient(135deg,rgba(139,92,246,0.25),rgba(6,182,212,0.2)); display:flex; align-items:center; justify-content:center; font-size:2.5rem; }
.work-body { padding:20px; }
.work-name { font-size:1.05rem; font-weight:600; margin-bottom:6px; }
.work-desc { color:var(--muted); font-size:0.85rem; margin-bottom:12px; line-height:1.5; }
.work-tags { display:flex; gap:6px; flex-wrap:wrap; }
.work-tag { padding:3px 8px; border-radius:12px; font-size:0.7rem; background:rgba(139,92,246,0.12); color:var(--a); border:1px solid rgba(139,92,246,0.25); }

/* === 碎碎念 === */
.post-list { display:flex; flex-direction:column; gap:16px; }
.post-item { padding:24px 28px; cursor:pointer; border-radius:var(--r); }
.post-date { font-size:0.8rem; color:var(--a2); margin-bottom:8px; font-weight:500; }
.post-title { font-size:1.1rem; font-weight:600; margin-bottom:8px; line-height:1.4; }
.post-excerpt { color:var(--muted); font-size:0.9rem; line-height:1.6; }
.post-more { display:inline-block; margin-top:12px; color:var(--a); text-decoration:none; font-size:0.85rem; transition:color 0.3s; }
.post-more:hover { color:var(--a2); }

/* ===== 签到页 ===== */
.checkin-page { max-width: 700px; }
.checkin-card { padding: 40px 32px; margin-bottom: 24px; text-align: center; }
.checkin-today { margin-bottom: 32px; }
.checkin-status { font-size: 1.1rem; color: var(--muted); margin-bottom: 20px; font-weight: 500; }
.checkin-status.done { color: var(--a2); }
.checkin-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 48px; border-radius: 60px; border: none;
  font-size: 1.15rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--a), var(--a2));
  cursor: pointer; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.35);
}
.checkin-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 36px rgba(139, 92, 246, 0.55); }
.checkin-btn:active { transform: translateY(0) scale(0.98); }
.checkin-btn:disabled { background: rgba(255,255,255,0.06); color: var(--muted); box-shadow: none; cursor: not-allowed; transform: none; border: 1px solid var(--border); }
.checkin-btn:disabled .checkin-icon { opacity: 0.5; }
.checkin-icon { font-size: 1.3rem; line-height: 1; }
.checkin-time { margin-top: 16px; font-size: 0.85rem; color: var(--muted); min-height: 20px; }
.checkin-actions { margin-top: 20px; }
.checkin-clear {
  background: none; border: none;
  color: var(--muted); font-size: 0.8rem;
  cursor: pointer; opacity: 0.5;
  transition: all 0.3s;
  padding: 4px 12px; border-radius: 8px;
}
.checkin-clear:hover { opacity: 1; color: var(--a); background: rgba(139,92,246,0.1); }
.checkin-stats { display: flex; justify-content: center; align-items: center; gap: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-value { font-size: 2rem; font-weight: 800; letter-spacing: -1px; background: linear-gradient(135deg, var(--a), var(--a2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.8rem; color: var(--muted); }
.stat-divider { width: 1px; height: 36px; background: var(--border); }
.checkin-quote { padding: 24px 28px; margin-bottom: 24px; text-align: center; }
.quote-text { font-size: 1.05rem; font-style: italic; color: var(--muted); line-height: 1.6; }
.checkin-calendar { padding: 28px; margin-bottom: 24px; }
.cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.cal-nav { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--glass); color: var(--muted); font-size: 1.1rem; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; }
.cal-nav:hover { background: var(--glass-h); color: var(--text); border-color: var(--border-h); }
.cal-title { font-size: 1.1rem; font-weight: 600; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 0.75rem; color: var(--muted); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 0.85rem; color: var(--muted); transition: all 0.2s; }
.cal-day.empty { visibility: hidden; }
.cal-day.today { border: 2px solid var(--a); font-weight: 700; color: var(--text); }
.cal-day.checked { background: linear-gradient(135deg, var(--a), var(--a2)); color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3); }
.cal-day.checked.today { border-color: transparent; }
.cal-day.other-month { opacity: 0.3; }
.checkin-history { padding: 28px; }
.history-title { font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.history-list { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; }
.history-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--rs); background: rgba(255,255,255,0.02); border: 1px solid transparent; font-size: 0.9rem; }
.history-item:hover { background: var(--glass-h); border-color: var(--border); }
.history-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--a2)); flex-shrink: 0; }
.history-date { color: var(--text); flex: 1; }
.history-time { color: var(--muted); font-size: 0.8rem; }
.history-empty { text-align: center; color: var(--muted); font-size: 0.9rem; padding: 20px 0; }

/* === 响应式 === */
@media (max-width: 768px) {
  .sidebar { width:100%; height:auto; position:fixed; bottom:0; top:auto; flex-direction:row; padding:12px 16px; border-radius:0; border-top:1px solid var(--border); border-right:none; }
  .sidebar-header { display:none; }
  .sidebar-nav { flex-direction:row; justify-content:center; flex:1; }
  .sidebar-link { padding:8px 12px; font-size:0.8rem; }
  .sidebar-link span:not(.link-icon) { display:none; }
  .sidebar-footer { display:none; }
  .main { margin-left:0; margin-bottom:70px; padding:40px 20px; }
  .hero-title { font-size:3rem; }
  .page-title { font-size:2rem; }
  .grid { grid-template-columns:1fr; }
  .hero-details { flex-direction:column; gap:16px; padding:20px; }
  .detail-divider { width:32px; height:1px; }
  .checkin-card { padding: 28px 20px; }
  .checkin-btn { padding: 14px 36px; font-size: 1rem; }
  .checkin-stats { gap: 20px; }
  .stat-value { font-size: 1.6rem; }
  .cal-days { gap: 3px; }
  .cal-day { font-size: 0.75rem; }
}
