/* 寒山书院 · 运营看板 样式 */

.dashboard-body {
  background: #F5F4F0;
  min-height: 100vh;
  font-family: var(--font-sans);
}

.dashboard-header {
  background: #FFFFFF;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.dashboard-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-brand-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: #1A1A1A;
  letter-spacing: 0.05em;
}

.dashboard-brand-en {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 11px;
  color: #888;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dashboard-welcome {
  font-size: 13px;
  color: #666;
}

.dashboard-exit {
  font-size: 13px;
  color: #A8332E;
  text-decoration: none;
  padding: 6px 16px;
  border: 1px solid #A8332E;
  transition: all 0.2s;
}

.dashboard-exit:hover { background: #A8332E; color: white; }

.dashboard-main { padding: 40px 0 80px; }

.dashboard-main .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.dashboard-hero {
  margin-bottom: 40px;
}

.dashboard-hero h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: #1A1A1A;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.dashboard-hero-sub {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.dashboard-hero-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #A8332E;
  letter-spacing: 0.05em;
}

/* 关键指标 */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.dashboard-stat {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 24px;
  border-radius: 4px;
  position: relative;
}

.dashboard-stat-label {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.dashboard-stat-num {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1;
  margin-bottom: 8px;
}

.dashboard-stat-num .unit {
  font-size: 20px;
  color: #888;
  margin-left: 2px;
}

.dashboard-stat-change {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 2px;
}

.dashboard-stat-change.up { background: rgba(0, 200, 83, 0.1); color: #00C853; }
.dashboard-stat-change.down { background: rgba(255, 107, 53, 0.1); color: #FF6B35; }

.dashboard-stat-trend {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: 30px;
  opacity: 0.6;
}

/* 详情网格 */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.dashboard-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 28px;
  border-radius: 4px;
}

.dashboard-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: #1A1A1A;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-link {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #A8332E;
  text-decoration: none;
  font-weight: 400;
}

/* 流量来源 */
.dashboard-source-item {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.source-label { font-size: 13px; color: #555; }

.source-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.source-fill {
  height: 100%;
  background: linear-gradient(90deg, #A8332E 0%, #C8443C 100%);
  border-radius: 3px;
}

.source-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #1A1A1A;
  text-align: right;
  font-weight: 500;
}

/* 热门页面 */
.dashboard-pages {
  list-style: none;
  counter-reset: page;
}

.dashboard-pages li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  counter-increment: page;
  font-size: 14px;
}

.dashboard-pages li:last-child { border-bottom: none; }

.dashboard-pages li::before {
  content: counter(page);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #A8332E;
  font-weight: 600;
  margin-right: 12px;
  min-width: 20px;
  display: inline-block;
}

.page-name {
  flex: 1;
  font-family: var(--font-mono);
  color: #1A1A1A;
  font-size: 13px;
}

.page-views {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #555;
}

.page-views em { font-style: normal; color: #999; margin-left: 4px; }

/* 预约列表 */
.dashboard-bookings {
  list-style: none;
}

.dashboard-bookings li {
  display: grid;
  grid-template-columns: 80px 1fr 100px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 13px;
}

.dashboard-bookings li:last-child { border-bottom: none; }

.booking-name { font-weight: 500; color: #1A1A1A; }
.booking-course { color: #555; }
.booking-time { color: #A8332E; text-align: right; font-family: var(--font-mono); font-size: 12px; }

/* 待办 */
.dashboard-todo-list {
  list-style: none;
}

.dashboard-todo-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 14px;
  color: #1A1A1A;
}

.dashboard-todo-list li:last-child { border-bottom: none; }

.dashboard-todo-list input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: #A8332E;
  cursor: pointer;
}

.dashboard-todo-list label { cursor: pointer; }

/* 提示 */
.dashboard-notice {
  background: #FFF8E1;
  border-left: 4px solid #FFA000;
  padding: 20px 28px;
  font-size: 13px;
  color: #5A4500;
  line-height: 1.7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.notice-link {
  color: #5A4500;
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .dashboard-main .container,
  .dashboard-header-inner { padding: 0 20px; }
}
