*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --bg: #060c1f;
  --bg-1: #0a1430;
  --bg-2: #0f1a3d;
  --bg-card: rgba(16, 28, 60, 0.55);
  --border: rgba(99, 145, 255, 0.18);
  --border-2: rgba(99, 145, 255, 0.32);
  --text: #d8e4ff;
  --text-2: #a0b0d8;
  --text-3: #6b7da3;
  --primary: #4f8bff;
  --primary-2: #6ea8ff;
  --cyan: #22d3ee;
  --green: #34d399;
  --orange: #fb923c;
  --yellow: #facc15;
  --red: #ef4444;
  --pink: #f472b6;
  --blue: #60a5fa;
  --purple: #a78bfa;
}

html, body { width: 100%; height: 100%; overflow: hidden; }

body {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(79,139,255,0.18), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(96,165,250,0.12), transparent 50%),
    linear-gradient(180deg, #050a1a 0%, #0a1226 100%);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  font-size: 14px;
}

.app { width: 100vw; height: 100vh; min-width: 0; min-height: 0; display: flex; flex-direction: column; }

.topbar,
.navbar {
  display: none !important;
}

/* ====== 顶部状态栏 ====== */
.topbar {
  height: 56px; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 0 32px;
  background: linear-gradient(180deg, rgba(20,35,75,0.9), rgba(10,20,48,0.4));
  border-bottom: 1px solid var(--border);
  position: relative; flex-shrink: 0;
}
.topbar::after {
  content:''; position:absolute; bottom:-1px; left:50%; transform:translateX(-50%);
  width:60%; height:1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.topbar-left, .topbar-right {
  display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--text-2);
}
.topbar-right { justify-content: flex-end; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item b { color: var(--primary-2); font-weight: 600; }
.topbar-item.ok { color: var(--green); }
.topbar-item.ok::before { content:''; width:6px;height:6px;border-radius:50%; background:var(--green); box-shadow:0 0 8px var(--green); }
.topbar-center { text-align: center; }
.topbar-title {
  font-size: 30px; font-weight: 700; letter-spacing: 4px;
  background: linear-gradient(180deg, #fff 0%, #9bbcff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(79,139,255,0.5);
}
.topbar-subtitle { font-size: 12px; color: var(--text-3); letter-spacing: 6px; margin-top: 2px; }
.dot { width:8px;height:8px;border-radius:50%;display:inline-block; }
.dot.live { background:var(--green); box-shadow:0 0 10px var(--green); animation:pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ====== 导航栏 ====== */
.navbar {
  height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 32px; background: rgba(10,20,48,0.5); border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 28px; border-radius: 8px;
  font-size: 15px; color: var(--text-2); cursor: pointer; transition: all .2s;
}
.nav-item:hover { color: var(--text); background: rgba(79,139,255,0.08); }
.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(79,139,255,0.25), rgba(110,168,255,0.15));
  border: 1px solid var(--border-2);
  box-shadow: 0 0 20px rgba(79,139,255,0.3), inset 0 0 20px rgba(79,139,255,0.1);
  position: relative;
}
.nav-item.active::after {
  content:''; position:absolute; left:50%; bottom:-12px; transform:translateX(-50%);
  width:30px; height:2px; background:var(--primary); box-shadow:0 0 8px var(--primary);
}

/* ====== 主体三栏 ====== */
.main {
  flex: 1; display: grid;
  grid-template-columns: clamp(240px, 18vw, 300px) minmax(0, 1fr) clamp(240px, 18vw, 300px);
  gap: 14px; padding: 14px 14px 10px; overflow: hidden;
  min-width: 0; min-height: 0;
}
.col { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; }
.col::-webkit-scrollbar { width: 3px; }
.col::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }

/* ====== 卡片通用 ====== */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; backdrop-filter: blur(8px); position: relative;
}
.card::before {
  content:''; position:absolute; top:0; left:14px; right:14px; height:1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity:.6;
}
.card-header {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text);
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}
.card-ico { width:4px; height:14px; border-radius:2px; background:linear-gradient(180deg,var(--primary),var(--cyan)); box-shadow:0 0 6px var(--primary); flex-shrink:0; }
.card-more { margin-left:auto; font-size:11px; color:var(--text-3); cursor:pointer; font-weight:400; text-decoration:none; }
.card-more:hover { color:var(--primary-2); }

/* ==================================================================== */
/* 左侧 - 活动概览                                                       */
/* ==================================================================== */
.card-overview { flex-shrink: 0; }
.ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ov-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 6px;
  background: rgba(15,26,61,0.3); border: 1px solid var(--border);
}
.ov-icon { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; display: block; }
.ov-body { display: flex; flex-direction: column; }
.ov-num { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.2; }
.ov-label { font-size: 10px; color: var(--text-3); }

/* ==================================================================== */
/* 左侧 - 近期动态                                                       */
/* ==================================================================== */
.card-timeline { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.card-timeline .card-header { flex-shrink: 0; }
.tl-list { flex: 1; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; padding-right: 2px; justify-content: space-evenly; }
.tl-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 8px; border-radius: 4px; transition: background .12s;
}
.tl-item:hover { background: rgba(79,139,255,0.04); }
.tl-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
  margin-top: 3px; position: relative;
}
.tl-dot::after {
  content:''; position:absolute; top:12px; left:4px; width:2px; height:28px;
  background: var(--border); opacity:.3;
}
.tl-item:last-child .tl-dot::after { display: none; }
.tl-blue { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.tl-green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.tl-orange { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.tl-purple { background: var(--purple); box-shadow: 0 0 8px var(--purple); }
.tl-cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.tl-body { display: flex; gap: 8px; min-width: 0; }
.tl-date { font-size: 13px; color: var(--cyan); font-weight: 600; flex-shrink: 0; min-width: 40px; }
.tl-text { font-size: 12px; color: var(--text-2); line-height: 1.4; }

/* ==================================================================== */
/* 中间 - 活动风采头部展示区                                              */
/* ==================================================================== */
.card-header-section { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.card-header-section .section-title-wrap { flex-shrink: 0; }
.card-header-section .tag-bar { flex-shrink: 0; }
.card-header-section .hero-card { flex: 1; min-height: 0; }

.section-title-wrap {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px; justify-content: center;
}
.section-title-line {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.section-title-text {
  font-size: 18px; font-weight: 700; letter-spacing: 4px;
  background: linear-gradient(180deg, #fff 0%, #9bbcff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(79,139,255,0.4);
}

.tag-bar { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.tb-btn {
  font-size: 11px; padding: 4px 12px; border-radius: 14px;
  color: var(--text-3); cursor: pointer; transition: all .15s;
  border: 1px solid transparent; white-space: nowrap;
}
.tb-btn:hover { color: var(--text-2); border-color: var(--border-2); }
.tb-btn.active { color: #fff; background: linear-gradient(135deg,var(--primary),var(--primary-2)); border-color: transparent; box-shadow:0 0 8px rgba(79,139,255,0.3); }

.hero-card {
  display: flex; gap: 10px; border-radius: 8px; overflow: hidden;
  min-height: 160px;
}
.hero-left {
  flex: 1; position: relative; border-radius: 8px; overflow: hidden;
  min-height: 160px; display: flex; align-items: flex-end;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6,12,31,0.88) 0%, rgba(6,12,31,0.5) 50%, transparent 80%);
}
.hero-content {
  position: relative; z-index: 1; padding: 16px; max-width: 75%;
}
.hero-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.hero-sub { font-size: 11px; color: var(--text-2); margin-bottom: 6px; }
.hero-highlights { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
.hero-highlights li { font-size: 11px; color: var(--text-3); position: relative; padding-left: 12px; }
.hero-highlights li::before { content:'▸'; position:absolute; left:0; color: var(--primary-2); }
.hero-btn {
  padding: 5px 16px; font-size: 11px; font-family: inherit;
  border-radius: 6px; border: 1px solid var(--primary);
  background: linear-gradient(135deg, rgba(79,139,255,0.2), rgba(110,168,255,0.1));
  color: var(--primary-2); cursor: pointer; transition: all .15s;
}
.hero-btn:hover { background: linear-gradient(135deg, rgba(79,139,255,0.35), rgba(110,168,255,0.2)); }

.hero-right {
  width: 160px; flex-shrink: 0; display: grid;
  grid-template-columns: 1fr 1fr; gap: 6px;
}
.hero-thumb {
  border-radius: 6px; overflow: hidden;
  background: linear-gradient(135deg, rgba(15,26,61,0.6), rgba(30,50,90,0.3));
  border: 1px solid var(--border); min-height: 72px;
  position: relative;
}
.hero-thumb::after {
  content: '📷'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); font-size: 20px; opacity: .4;
}
.hero-thumb:nth-child(1) { background: linear-gradient(135deg, #1a2a5a, #0d1f47); }
.hero-thumb:nth-child(2) { background: linear-gradient(135deg, #2a1a5a, #1a0d47); }
.hero-thumb:nth-child(3) { background: linear-gradient(135deg, #3a2a1a, #2a1d0d); }
.hero-thumb:nth-child(4) { background: linear-gradient(135deg, #1a3a3a, #0d2d2d); }

/* ==================================================================== */
/* 中间 - 近期活动展示卡片                                                */
/* ==================================================================== */
.recent-cards {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
}
.recent-cards::-webkit-scrollbar { height: 3px; }
.recent-cards::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }

.rc-item {
  min-width: 210px; max-width: 210px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); cursor: pointer; transition: all .2s;
  background: rgba(15,26,61,0.3);
}
.rc-item:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.rc-img { height: 80px; position: relative; }
.rc-body { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.rc-title { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-meta { font-size: 10px; color: var(--text-3); }
.rc-desc { font-size: 10px; color: var(--text-2); line-height: 1.3; }
.rc-people { font-size: 10px; color: var(--cyan); margin-top: 2px; }

/* ==================================================================== */
/* 中间 - 年度活动轨迹                                                    */
/* ==================================================================== */
.year-track {
  padding: 4px 4px 8px;
  overflow-x: auto;
}
.year-track::-webkit-scrollbar { height: 3px; }
.year-track::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }

/* Nodes container with axis line */
.yt-nodes {
  display: flex; align-items: center; gap: 8px;
  position: relative; padding: 14px 0 10px;
  justify-content: space-between;
  width: 100%;
}
.yt-nodes::before {
  content: '';
  position: absolute; left: 24px; right: 24px; top: 50%;
  transform: translateY(-50%);
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(79,139,255,0.5) 5%, rgba(79,139,255,0.3) 50%, rgba(79,139,255,0.5) 95%, transparent);
  box-shadow: 0 0 12px rgba(79,139,255,0.2);
  pointer-events: none;
}

/* Each node item */
.yt-node-item {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; min-width: 0; max-width: 140px;
  position: relative; z-index: 1;
  cursor: pointer;
  transition: all .2s;
}
.yt-node-item:hover .yt-dot {
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(79,139,255,0.5);
}
.yt-node-item:hover .yt-count {
  color: var(--primary-2);
}

/* Count above dot */
.yt-count {
  font-size: 14px; color: var(--text-2); font-weight: 700;
  margin-bottom: 8px; transition: color .2s;
  white-space: nowrap;
}

/* The circular dot */
.yt-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 0 10px rgba(79,139,255,0.4);
  transition: all .25s;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

/* Current month - larger + glow */
.yt-node-item.yt-current .yt-dot {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  box-shadow: 0 0 22px rgba(251,146,60,0.5), 0 0 40px rgba(251,146,60,0.2);
  animation: ytPulse 2s ease-in-out infinite;
}
@keyframes ytPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(251,146,60,0.4), 0 0 32px rgba(251,146,60,0.15); }
  50% { box-shadow: 0 0 28px rgba(251,146,60,0.6), 0 0 48px rgba(251,146,60,0.25); }
}

/* Month label */
.yt-label {
  font-size: 13px; color: var(--text-3);
  margin-bottom: 3px; transition: color .2s;
}
.yt-node-item.yt-current .yt-label {
  color: var(--orange); font-weight: 700;
  text-shadow: 0 0 10px rgba(251,146,60,0.25);
}

/* Event name */
.yt-event {
  font-size: 11px; color: var(--text-3);
  text-align: center; max-width: 120px; line-height: 1.3;
  transition: color .2s;
}
.yt-node-item.yt-current .yt-event {
  color: var(--text-2);
}

/* Ellipsis separator */
.yt-ellipsis {
  font-size: 22px; color: var(--text-3);
  flex-shrink: 0; padding: 0 6px;
  align-self: center; margin-top: -6px;
}

/* ==================================================================== */
/* 右侧 - 重点活动                                                       */
/* ==================================================================== */
.card-focus { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.card-focus .card-header { flex-shrink: 0; }
.focus-list { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fc-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 6px;
  background: rgba(15,26,61,0.3); border: 1px solid var(--border);
}
.fc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fc-title { font-size: 12px; font-weight: 600; color: var(--text); }
.fc-date { font-size: 10px; color: var(--text-3); }
.fc-tag {
  font-size: 10px; padding: 2px 8px; border-radius: 4px;
  white-space: nowrap; flex-shrink: 0;
}
.fc-done { color: var(--green); border: 1px solid var(--green); background: rgba(52,211,153,0.08); }
.fc-going { color: var(--orange); border: 1px solid var(--orange); background: rgba(251,146,60,0.08); }
.fc-prep { color: var(--blue); border: 1px solid var(--blue); background: rgba(96,165,250,0.08); }

/* ==================================================================== */
/* 右侧 - 活动日历                                                       */
/* ==================================================================== */
.card-calendar { flex-shrink: 0; }
.cal-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.cal-btn {
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1; border-radius: 4px;
  border: 1px solid var(--border); background: rgba(15,26,61,0.4);
  color: var(--text-2); cursor: pointer; font-family: inherit; transition: all .12s;
}
.cal-btn:hover { border-color: var(--primary-2); color: var(--text); }
.cal-month { font-size: 12px; color: var(--text); font-weight: 500; min-width: 72px; text-align: center; }

.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; margin-bottom: 8px; }
.cal-dow { text-align: center; font-size: 10px; color: var(--text-3); padding: 4px 0; }
.cal-day {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 4px; font-size: 11px; color: var(--text-2);
  background: rgba(15,26,61,0.2); position: relative; cursor: pointer; transition: all .12s;
}
.cal-day:hover { background: rgba(79,139,255,0.08); }
.cal-day.other { opacity: .25; }
.cal-day.dots .cal-dot-row { display: flex; gap: 2px; margin-top: 1px; }
.cal-day .cal-dot-row { display: flex; gap: 2px; }
.cal-day .cd-mini { width: 4px; height: 4px; border-radius: 50%; display: inline-block; }

.cal-legend { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.cal-legend span { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--text-3); }
.cl-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.cl-blue { background: var(--blue); }
.cl-green { background: var(--green); }
.cl-orange { background: var(--orange); }
.cl-purple { background: var(--purple); }
.cl-cyan { background: var(--cyan); }
.cl-yellow { background: var(--yellow); }

/* ==================================================================== */
/* 右侧 - 智小喵助手                                                     */
/* ==================================================================== */
.card-ai-bot { flex-shrink: 0; }
.ai-bot {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 8px 0 4px;
}
.ai-bot-avatar {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(79,139,255,0.3);
  box-shadow: 0 0 16px rgba(79,139,255,0.25);
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,26,61,0.5);
}
.ai-bot-img { width: 52px; height: 52px; object-fit: contain; display: block; margin-top: 14px; }
.ai-bot-bubble {
  font-size: 11px; color: var(--text-2); line-height: 1.5;
  text-align: center; padding: 10px 14px;
  background: rgba(15,26,61,0.4); border: 1px solid var(--border);
  border-radius: 12px; position: relative; max-width: 90%;
}
.ai-bot-bubble::before {
  content:''; position:absolute; top:-6px; left:50%; transform:translateX(-50%);
  width:10px; height:10px; background:rgba(15,26,61,0.4);
  border-top:1px solid var(--border); border-left:1px solid var(--border);
  rotate:45deg;
}
.ai-bot-btn {
  padding: 6px 24px; font-size: 12px; font-family: inherit;
  border-radius: 8px; border: 1px solid var(--primary);
  background: linear-gradient(135deg, rgba(79,139,255,0.2), rgba(110,168,255,0.1));
  color: var(--primary-2); cursor: pointer; transition: all .15s;
}
.ai-bot-btn:hover { background: linear-gradient(135deg, rgba(79,139,255,0.35), rgba(110,168,255,0.2)); }

/* ====== 滚动条全局 ====== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
