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

:root {
  --bg: #0d0f14;
  --bg2: #13161e;
  --surface: #1a1d27;
  --surface2: #21253a;
  --border: rgba(255,255,255,0.07);
  --accent: #7c6af7;
  --accent2: #a78bfa;
  --accent-glow: rgba(124,106,247,0.25);
  --text: #e8eaf0;
  --text2: #9499b0;
  --text3: #5a5f7a;
  --green: #34d399;
  --orange: #fb923c;
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Noto Serif SC', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background orbs */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.orb-1 { width: 600px; height: 600px; background: #7c6af7; top: -200px; left: -100px; animation: drift 20s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; background: #06b6d4; bottom: 100px; right: -100px; animation: drift 25s ease-in-out infinite reverse; }
.orb-3 { width: 300px; height: 300px; background: #f472b6; top: 50%; left: 50%; animation: drift 18s ease-in-out infinite 5s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 24px;
  background: rgba(13,15,20,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-icon { font-size: 20px; color: var(--accent2); }
.logo-text { font-weight: 600; font-size: 16px; letter-spacing: 0.02em; }
.nav { display: flex; gap: 4px; }
.nav-link {
  color: var(--text2); text-decoration: none; font-size: 14px;
  padding: 6px 14px; border-radius: 8px; transition: all 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--surface); }

/* Hero */
.hero {
  position: relative; z-index: 1;
  padding: 140px 24px 80px;
  text-align: center;
}
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(124,106,247,0.15); border: 1px solid rgba(124,106,247,0.3);
  color: var(--accent2); font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 24px;
  text-transform: uppercase;
}
.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700; line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}
.hero-desc { color: var(--text2); font-size: 17px; line-height: 1.7; margin-bottom: 40px; }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 32px; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 36px; font-weight: 700; color: var(--accent2); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text3); margin-top: 4px; display: block; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Reports section */
.reports-section { position: relative; z-index: 1; padding: 20px 24px 80px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.section-title { font-size: 22px; font-weight: 600; }
.filter-tabs { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 10px; }
.filter-btn {
  background: none; border: none; color: var(--text2); font-size: 13px;
  padding: 6px 16px; border-radius: 7px; cursor: pointer; transition: all 0.2s;
}
.filter-btn.active { background: var(--surface2); color: var(--text); }
.filter-btn:hover:not(.active) { color: var(--text); }

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Report card */
.report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.report-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0; transition: opacity 0.25s;
}
.report-card:hover { border-color: rgba(124,106,247,0.3); transform: translateY(-3px); box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(124,106,247,0.1); }
.report-card:hover::before { opacity: 1; }

.card-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-date {
  font-size: 12px; color: var(--text3); font-weight: 500;
  background: var(--surface2); padding: 4px 10px; border-radius: 6px;
  letter-spacing: 0.03em;
}
.card-day { font-size: 11px; color: var(--text3); }
.card-title { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 10px; line-height: 1.4; }
.card-preview { font-size: 14px; color: var(--text2); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px; padding: 3px 9px; border-radius: 5px;
  background: rgba(124,106,247,0.12); color: var(--accent2); border: 1px solid rgba(124,106,247,0.2);
}
.card-read { font-size: 12px; color: var(--text3); display: flex; align-items: center; gap: 4px; }
.card-read::after { content: '→'; transition: transform 0.2s; }
.report-card:hover .card-read::after { transform: translateX(4px); }

/* About section */
.about-section { position: relative; z-index: 1; padding: 0 24px 80px; }
.about-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
  display: flex; gap: 32px; align-items: flex-start;
  max-width: 700px;
}
.about-avatar {
  width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: white;
}
.about-content h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.about-content p { color: var(--text2); font-size: 15px; line-height: 1.7; }

/* Footer */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 24px; text-align: center; }
.footer p { color: var(--text3); font-size: 13px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; max-width: 680px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  padding: 40px; position: relative;
  transform: translateY(20px); transition: transform 0.25s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: var(--surface2); border: none; color: var(--text2);
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  font-size: 14px; transition: all 0.2s;
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-date { font-size: 13px; color: var(--text3); display: block; margin-bottom: 10px; }
.modal-title { font-size: 26px; font-weight: 700; margin-bottom: 14px; line-height: 1.3; }
.modal-tags { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.modal-body { color: var(--text2); font-size: 15px; line-height: 1.85; }
.modal-body h3 { color: var(--text); font-size: 16px; margin: 24px 0 10px; }
.modal-body ul { padding-left: 20px; }
.modal-body li { margin-bottom: 8px; }
.modal-body p { margin-bottom: 14px; }
.modal-body strong { color: var(--text); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }

/* Empty state */
.empty-state { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--text3); }
.empty-state p { font-size: 15px; }

@media (max-width: 600px) {
  .hero { padding: 120px 20px 60px; }
  .about-card { flex-direction: column; gap: 20px; padding: 28px; }
  .modal { padding: 28px 20px; }
  .section-header { flex-direction: column; align-items: flex-start; }
}

/* 周报样式 */
.weekly-card {
  border-left: 3px solid var(--green);
}

.weekly-badge {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--green), #10b981);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.tab-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 8px;
}

/* 周报模态框内容样式 */
.modal-body h3 {
  color: var(--accent2);
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 12px;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  margin: 16px 0;
  line-height: 1.8;
  color: var(--text);
}

.modal-body ul {
  margin: 12px 0;
  padding-left: 24px;
}

.modal-body li {
  margin: 8px 0;
  color: var(--text2);
}
