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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-bg: #eff6ff;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0891b2;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 24px rgba(37,99,235,0.12);
  --radius: 8px;
  --accent: #2563eb;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  font-size: 15px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ========== Navbar ========== */
.navbar {
  background: #113435;
  color: #fff;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.8s ease-in-out;
}
.navbar.navbar-hero-1 { 
  background: #113435;
}
.navbar.navbar-hero-2 { 
  background: #828689;
}
.navbar.navbar-hero-3 { 
  background: #555252;
}
.navbar.navbar-hero-4 {
  background: #213843;
}
.navbar-brand { font-size: 1.1rem; font-weight: 600; letter-spacing: 1px; color: #fff; }
.navbar-links { display: flex; gap: 4px; align-items: center; }
.navbar-links a {
  color: rgba(255,255,255,0.82);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.navbar-links a:hover, .navbar-links a.active { background: rgb(59 130 246 / 40%); color: #fff; }
.navbar-user { display: flex; align-items: center; gap: 12px; font-size: 0.88rem; }
.navbar-user .role-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
}
.navbar-user a { color: rgba(255,255,255,0.7); font-size: 0.82rem; }
.navbar-user a:hover { color: #fff; }

/* ========== Navbar Toggle (Mobile) ========== */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.navbar-toggle:hover { background: rgba(255,255,255,0.12); }
.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}
.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== User Dropdown ========== */
.user-dropdown { position: relative; }
.user-dropdown-btn {
  background: none; border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-family: inherit; padding: 4px 8px;
  border-radius: var(--radius); transition: background 0.2s;
}
.user-dropdown-btn:hover { background: rgba(255,255,255,0.12); }
.dropdown-arrow { transition: transform 0.2s; }
.user-dropdown-menu {
  display: none;
  position: absolute; right: 0; top: 42px;
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  min-width: 160px; z-index: 1100;
  overflow: hidden;
}
.user-dropdown-menu.show { display: block; }
.user-dropdown-menu a {
  display: block; padding: 10px 16px; color: var(--text) !important;
  font-size: 0.85rem; transition: background 0.15s;
}
.user-dropdown-menu a:hover { background: var(--primary-bg); color: var(--primary) !important; }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* ========== Container ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 24px 20px 40px; }

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg, #0b1a33 0%, #1d4ed8 100%);
  color: #fff;
  padding: 64px 20px;
  text-align: center;
}
.hero-content h1 { font-size: 1.8rem; margin-bottom: 8px; font-weight: 600; letter-spacing: 2px; }
.hero-content p { font-size: 1rem; opacity: 0.8; }

/* ========== Page Header ========== */
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 1.5rem; margin-bottom: 4px; font-weight: 600; }
.page-header p { color: var(--text-secondary); font-size: 0.92rem; }

/* ========== Section ========== */
.section { margin-bottom: 32px; }
.section-title { font-size: 1.15rem; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.more-link { font-size: 0.85rem; font-weight: 400; }

/* ========== Card Grid ========== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  display: block;
  color: var(--text);
  box-shadow: var(--shadow);
}
.card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); color: var(--text); }
.card-body { padding: 18px; }
.card-body h3 { font-size: 1rem; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-text { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 10px; }
.card-meta { font-size: 0.78rem; color: var(--text-secondary); }
.card-meta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ========== Empty State ========== */
.empty-state { text-align: center; padding: 40px; color: var(--text-secondary); }

/* ========== Auth ========== */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 120px); }
.auth-card { background: #fff; border-radius: var(--radius); padding: 32px; width: 380px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-header h2 { font-size: 1.3rem; margin-bottom: 4px; font-weight: 600; color: var(--primary); }
.auth-header p { color: var(--text-secondary); font-size: 0.88rem; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-footer { text-align: center; margin-top: 16px; font-size: 0.75rem; color: var(--text-secondary); }

/* ========== Forms ========== */
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: border 0.2s;
  font-family: inherit;
  background: #f8fafc;
}
.form-input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-input-sm { padding: 6px 10px; font-size: 0.82rem; }
textarea.form-input { resize: vertical; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.form-card h3 { font-size: 1rem; margin-bottom: 14px; }
.form-card form { display: flex; flex-direction: column; gap: 10px; }
.checkbox-label { font-size: 0.88rem; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.progress-slider { width: 100%; cursor: pointer; accent-color: var(--primary); }

/* ========== Buttons ========== */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-xs { padding: 3px 9px; font-size: 0.7rem; border-radius: var(--radius); }
.btn-block { width: 100%; }

/* ========== Badges ========== */
.badge { font-size: 0.72rem; padding: 2px 8px; border-radius: 10px; font-weight: 600; display: inline-block; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-error { background: #fee2e2; color: #991b1b; }

/* ========== Alerts ========== */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 14px; font-size: 0.88rem; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ========== Detail pages ========== */
.back-link { font-size: 0.85rem; display: inline-block; margin-bottom: 16px; }

.detail-header { margin-bottom: 24px; }
.detail-header h1 { font-size: 1.5rem; margin-bottom: 8px; font-weight: 600; }
.detail-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 10px; }
.detail-desc { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; }

.detail-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; }
.detail-side { display: flex; flex-direction: column; gap: 16px; }
.detail-main { min-width: 0; }

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.panel h3 { font-size: 0.95rem; margin-bottom: 12px; }

/* ========== Members ========== */
.member-list { display: flex; flex-direction: column; gap: 8px; }
.member-item { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--radius); background: #f8fafc; }
.member-name { font-weight: 600; font-size: 0.88rem; }
.member-dept { font-size: 0.75rem; color: var(--text-secondary); margin-left: auto; }

/* ========== Activities ========== */
.activity-list { display: flex; flex-direction: column; gap: 12px; }
.activity-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.activity-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.activity-header h4 { font-size: 0.95rem; }
.activity-content { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 8px; }
.activity-meta { font-size: 0.78rem; color: var(--text-secondary); display: flex; gap: 16px; }
.comment-form { margin-top: 8px; }

/* ========== Checkin ========== */
.checkin-done { text-align: center; padding: 10px; }
.checkin-icon { font-size: 2rem; }
.checkin-note { font-size: 0.82rem; color: var(--text-secondary); margin-top: 4px; }
.checkin-form { display: flex; flex-direction: column; gap: 10px; }

.checkin-list { display: flex; flex-direction: column; gap: 4px; max-height: 200px; overflow-y: auto; }
.checkin-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  padding: 4px 8px;
  border-radius: var(--radius);
  background: #eff6ff;
}
.checkin-date { color: var(--text-secondary); min-width: 80px; }
.checkin-progress { font-weight: 600; color: var(--primary); min-width: 40px; }
.checkin-note-mini { color: var(--text-secondary); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }

/* ========== Quiz ========== */
.quiz-form { display: flex; flex-direction: column; gap: 16px; }
.quiz-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.quiz-item h4 { font-size: 0.92rem; margin-bottom: 10px; }
.quiz-options { display: flex; flex-direction: column; gap: 6px; }
.quiz-option { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; cursor: pointer; padding: 6px 10px; border-radius: var(--radius); transition: background 0.15s; }
.quiz-option:hover { background: var(--primary-bg); }
.quiz-option input[type="radio"] { accent-color: var(--primary); }

/* ========== Stats ========== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.stat-item { text-align: center; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-value { display: block; font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.stat-label { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }

/* ========== Tables ========== */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 16px; }
.table th, .table td { padding: 10px 14px; text-align: left; font-size: 0.87rem; border-bottom: 1px solid var(--border); }
.table th { background: #f1f5f9; font-weight: 600; color: var(--text-secondary); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #f8fafc; }
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); font-size: 0.85rem; }

/* ========== Admin Tabs ========== */
.admin-tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn {
  padding: 8px 18px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  color: var(--text);
  text-decoration: none;
}
.tab-btn:hover, .tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ========== Admin Layout (Sidebar + Content) ========== */
.admin-layout { display: flex; gap: 0; min-height: calc(100vh - 60px); margin: -24px -20px -40px; }
.admin-sidebar {
  width: 220px; min-width: 220px;
  background: #fff; border-right: 1px solid var(--border);
  padding: 12px 0; box-shadow: var(--shadow);
}
.admin-sidebar .sidebar-title {
  font-size: 0.8rem; color: var(--text-secondary); padding: 6px 16px 12px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.sidebar-menu { list-style: none; display: flex; flex-direction: column; }
.sidebar-menu li a {
  display: block; padding: 10px 20px; font-size: 0.88rem; color: var(--text);
  transition: all 0.15s; border-left: 3px solid transparent; cursor: pointer;
}
.sidebar-menu li a:hover { background: var(--primary-bg); color: var(--primary); }
.sidebar-menu li a.active {
  background: var(--primary-bg); color: var(--primary); font-weight: 600;
  border-left-color: var(--primary);
}
.sidebar-menu .sub-menu { padding-left: 16px; }
.sidebar-menu .sub-menu a { font-size: 0.82rem; padding: 7px 20px; }
.sidebar-divider { border: none; border-top: 1px solid var(--border); margin: 6px 0; }

.admin-content { flex: 1; padding: 24px; overflow-y: auto; background: var(--bg); }
.admin-content .tab-pane { display: none; }
.admin-content .tab-pane.active { display: block; }

/* ========== Accordion ========== */
.accordion { display: flex; flex-direction: column; gap: 2px; }
.accordion-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.accordion-header {
  width: 100%; padding: 14px 20px; background: #fff; border: none;
  font-size: 1rem; font-weight: 600; font-family: inherit; color: var(--text);
  cursor: pointer; display: flex; align-items: center; gap: 10px;
  transition: background 0.2s; text-align: left;
}
.accordion-header:hover { background: var(--primary-bg); }
.accordion-header .accordion-icon {
  font-size: 0.8rem; transition: transform 0.3s; display: inline-block;
  color: var(--text-secondary);
}
.accordion-header.open .accordion-icon { transform: rotate(90deg); }
.accordion-body { display: none; padding: 0 20px 20px; }
.accordion-body.show { display: block; }
.accordion-body .form-card:first-child { margin-top: 0; }

/* ========== Announcements ========== */
.announcement-list { display: flex; flex-direction: column; gap: 6px; }
.announcement-item {
  padding: 10px 14px;
  background: #fff;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
}
.announcement-item.top { border-left: 3px solid var(--primary); }
.anno-title { font-size: 0.9rem; font-weight: 600; }
.anno-meta { font-size: 0.75rem; color: var(--text-secondary); }

/* ========== Image Wall ========== */
.image-wall-section {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 4px;
}
.image-wall-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.image-wall-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}
.image-wall-upload-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.image-wall-upload-form input[type="file"] {
  font-size: 0.82rem;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  flex: 1 1 180px;
  min-width: 140px;
}
.image-wall-upload-form input[type="text"],
.image-wall-upload-form input[type="number"] {
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.82rem;
  background: #fff;
  color: var(--text);
  width: 120px;
}
.image-wall-upload-form .btn-upload {
  padding: 7px 18px;
  height: 36px;
  white-space: nowrap;
}
.image-wall-gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}
.image-wall-count {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.image-wall-item {
  position: relative;
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  transition: border-color 0.2s;
}
.image-wall-item:hover { border-color: var(--primary); }
.image-wall-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
}
.image-wall-item .img-delete-btn {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  line-height: 20px;
  text-align: center;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.15s;
}
.image-wall-item:hover .img-delete-btn { opacity: 1; }

/* ========== Exhibition ========== */
.exhibition-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.exhibition-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.2s;
  display: block;
  color: var(--text);
}
.exhibition-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--primary); color: var(--text); }
.exhibition-cover { height: 160px; display: flex; align-items: center; justify-content: center; }
.exhibition-theme-icon { font-size: 3rem; }
.exhibition-info { padding: 16px; }
.exhibition-info h3 { font-size: 1rem; margin-bottom: 4px; }
.exhibition-info p { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 8px; }
.exhibition-meta { font-size: 0.78rem; color: var(--text-secondary); display: flex; gap: 12px; }

/* Exhibition Detail */
.exhibition-space { border-radius: var(--radius); padding: 24px; min-height: 300px; margin-bottom: 20px; }
.exhibition-space.modern { background: linear-gradient(135deg, #eff6ff, #dbeafe); border: 1px solid var(--border); }
.exhibition-space.art { background: linear-gradient(135deg, #fdf2f8, #fce7f3); border: 1px solid var(--border); }
.exhibition-space.classic { background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid var(--border); }

.exhibition-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.exhibit-item { animation: fadeInUp 0.5s ease forwards; animation-delay: var(--delay); opacity: 0; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.exhibit-frame { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.2s; cursor: pointer; }
.exhibit-frame:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,99,235,0.1); }
.exhibit-image { height: 140px; display: flex; align-items: center; justify-content: center; }
.exhibit-icon { font-size: 3rem; }
.exhibit-caption { padding: 12px; }
.exhibit-caption h4 { font-size: 0.9rem; margin-bottom: 4px; }
.exhibit-caption p { font-size: 0.78rem; color: var(--text-secondary); }

/* ========== Visit Stats ========== */
.visit-stats { display: flex; gap: 24px; justify-content: center; }

/* ========== Search ========== */
.search-bar { margin-bottom: 20px; }
.search-form { display: flex; gap: 8px; max-width: 500px; }
.search-form .form-input { flex: 1; }
.nav-search { display: flex; align-items: center; }
.search-input {
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.82rem;
  width: 160px;
  font-family: inherit;
}
.search-input::placeholder { color: rgba(255,255,255,0.5); }
.search-input:focus { outline: none; background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }

/* ========== Report ========== */
.report-overview { margin-bottom: 24px; }
.progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}
.progress-bar span { display: block; height: 100%; background: var(--primary); border-radius: 4px; transition: width 0.4s; }
.progress-bar-mini { display: inline-block; width: 60px; height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; vertical-align: middle; margin-left: 6px; }
.progress-bar-mini span { display: block; height: 100%; background: var(--primary); border-radius: 3px; }

.effect-indicators { display: flex; flex-direction: column; gap: 16px; }
.effect-item { display: flex; align-items: center; gap: 12px; }
.effect-label { min-width: 120px; font-size: 0.88rem; font-weight: 600; }
.effect-item .progress-bar { flex: 1; }
.effect-value { font-size: 0.85rem; color: var(--text-secondary); min-width: 120px; text-align: right; }

/* Report extras */
.page-header { text-align: center; padding: 2rem 0 1rem; }
.page-header h1 { font-size: 1.8rem; color: var(--text); }
.page-header p { color: var(--text-secondary); margin-top: 0.5rem; }
.back-link { display: inline-block; margin-bottom: 1rem; color: var(--text-secondary); font-size: 0.9rem; }
.back-link:hover { color: var(--primary); }
.text-muted { color: var(--text-secondary); }
.tag { display: inline-block; background: var(--primary-bg); color: var(--primary-dark); padding: 1px 6px; border-radius: 3px; font-size: 11px; margin: 1px 2px; white-space: nowrap; }
.table-sm { font-size: 0.85rem; }
.table-sm th, .table-sm td { padding: 6px 8px; white-space: nowrap; }
.table-sm td { vertical-align: middle; }
.report-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ========== Footer ========== */
.footer {
  background: #0f2744;
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 12px;
  font-size: 0.78rem;
  margin-top: 40px;
}

/* ========== Person Card Grid (Report) ========== */
.person-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.person-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.person-card:hover { box-shadow: var(--shadow-hover); }
.person-card-header {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.person-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.person-dept {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: #fff;
  padding: 2px 10px;
  border-radius: 10px;
  flex-shrink: 0;
}
.person-stats-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #e2e8f0;
}
.psm-item {
  background: #fff;
  text-align: center;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.psm-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}
.psm-lbl {
  font-size: 0.7rem;
  color: var(--text-secondary);
}
.psm-wide {
  grid-column: span 2;
}
.psm-wide .progress-bar {
  margin: 0 8px;
}
.person-tags {
  padding: 6px 16px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.person-tags + .person-tags {
  padding-top: 0;
}
.person-tags:last-child {
  padding-bottom: 12px;
}
.person-tags-label {
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .exhibition-grid { grid-template-columns: 1fr; }
  .exhibition-wall { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 1.4rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .auth-card { width: 90%; padding: 24px; }
  .admin-tabs { flex-wrap: nowrap; overflow-x: auto; }

  /* Navbar Mobile */
  .navbar {
    flex-wrap: nowrap;
    height: 56px;
    padding: 0 16px;
  }
  .navbar-toggle {
    display: flex;
    order: 3;
  }
  .navbar-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: inherit;
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
  }
  .navbar-links.show {
    display: flex;
  }
  .navbar-links a {
    padding: 10px 12px;
    font-size: 0.95rem;
    border-radius: 8px;
  }
  .nav-search {
    width: 100%;
    margin-top: 4px;
  }
  .nav-search .search-input {
    width: 100%;
  }
}

/* ========== About Page ========== */
.about-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.about-hero {
  background: url('/img/aboutus.png') no-repeat center center/cover;
  /* background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); */
  color: white;
  padding: 60px 40px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px rgba(37,99,235,0.25);
}
.about-hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  font-weight: 700;
}
.about-hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 16px;
  font-weight: 500;
}
.about-hero-desc {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.about-section {
  margin-bottom: 48px;
}
.about-section h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
  display: inline-block;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.about-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.25s;
}
.about-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}
.about-card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.about-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text);
}
.about-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.about-feature {
  display: flex;
  gap: 16px;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: all 0.2s;
}
.about-feature:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: var(--primary-light);
}
.about-feature-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.about-feature-content h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}
.about-feature-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.about-tech {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
}
.about-tech-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tech-badge {
  background: var(--primary-bg);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
}
.about-tech-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-scenarios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.about-scenario {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.about-scenario h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text);
}
.about-scenario p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.about-contact {
  background: linear-gradient(135deg, var(--primary-bg), #dbeafe);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  border: 1px solid var(--primary-light);
}
.about-contact h2 {
  border-bottom: none;
  margin-bottom: 16px;
}
.about-contact-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.contact-detail {
  font-weight: 500;
  color: var(--text) !important;
}

@media (max-width: 768px) {
  .about-hero { padding: 40px 20px; }
  .about-hero-content h1 { font-size: 1.8rem; }
  .about-hero-subtitle { font-size: 1rem; }
  .about-cards { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .about-scenarios { grid-template-columns: 1fr; }
}