/* ============================================
   Hexo Butterfly Theme Style - Pure CSS
   ============================================ */

:root {
  /* Butterfly Color Palette */
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --secondary-color: #6366f1;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  --bg-color: #f9fafb;
  --bg-card: #ffffff;
  --bg-dark: #111827;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Layout */
  --header-height: 60px;
  --max-width: 1200px;
  --sidebar-width: 280px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
               'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  min-height: 100vh;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Layout Components
   ============================================ */

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.logo img {
  height: 36px;
  width: auto;
}

.logo-text {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  padding: 8px 16px;
  color: var(--text-color);
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.nav-item:hover,
.nav-item.active {
  color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Theme Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-dropdown-toggle:hover {
  color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 100px;
  overflow: hidden;
  z-index: 100;
}
.nav-dropdown-menu.show {
  display: block;
}
.nav-dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.nav-dropdown-item:hover {
  background: var(--border-light);
  color: var(--primary-color);
}
.nav-dropdown-item.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Search */
.search-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-light);
}

.search-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}

/* Main Content */
#main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 20px;
  padding-top: calc(var(--header-height) + 30px);
  min-height: calc(100vh - 200px);
}

/* Sidebar Layout */
.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 1024px) {
  .layout.has-sidebar {
    grid-template-columns: 3001fr px;
  }
}

/* ============================================
   Card Components
   ============================================ */

.card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-title a {
  color: var(--text-color);
}

.card-title a:hover {
  color: var(--primary-color);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.875rem;
  color: var(--text-lighter);
  margin-bottom: 12px;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-excerpt {
  color: var(--text-light);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  transition: var(--transition);
}

.tag:hover {
  background: var(--primary-color);
  color: white;
}

/* ============================================
   Article List
   ============================================ */

.article-list {
  display: grid;
  gap: 20px;
}

.article-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .article-item {
    grid-template-columns: 1fr;
  }
}

.article-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.article-item .card-image img {
  height: 160px;
}

.article-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-title {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-title a {
  color: var(--text-color);
}

.article-title a:hover {
  color: var(--primary-color);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.875rem;
  color: var(--text-lighter);
  margin-bottom: 12px;
}

/* ============================================
   Article Detail
   ============================================ */

.article-detail {
  max-width: 800px;
  margin: 0 auto;
}

.article-header {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 30px;
}

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.article-info-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.article-cover {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.article-content p {
  margin-bottom: 1.5em;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 2em 0 1em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--border-light);
}

.article-content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin: 1.5em 0 0.75em;
}

.article-content img {
  border-radius: var(--border-radius-sm);
  margin: 1.5em 0;
}

.article-content pre {
  background: var(--bg-dark);
  color: #e5e7eb;
  padding: 1.5em;
  border-radius: var(--border-radius-sm);
  overflow-x: auto;
  margin: 1.5em 0;
}

.article-content code {
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.9em;
}

/* ============================================
   Video Page
   ============================================ */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.video-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.video-cover {
  position: relative;
  aspect-ratio: 16/9;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.video-card:hover .video-play-btn {
  background: var(--primary-color);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent white;
  margin-left: 4px;
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 3px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
}

.video-vip-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-lighter);
}

/* Video Player */
.video-player {
  background: #000;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.video-player video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

/* ============================================
   User/Member Page
   ============================================ */

.user-profile {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.user-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.user-name {
  font-size: 1.5rem;
  font-weight: 600;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  margin-left: 10px;
}

.user-stats {
  display: flex;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-lighter);
}

/* Login Form */
.login-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 40px;
}

.login-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

.login-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-color);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  width: 100%;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-light);
}

.btn-vip {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
}

.btn-vip:hover {
  opacity: 0.9;
}

/* VIP Content */
.vip-content {
  position: relative;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.1));
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
  overflow: hidden;
}

.vip-lock {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
}

.vip-lock-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.vip-lock-icon svg {
  width: 30px;
  height: 30px;
  color: white;
}

.vip-lock-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 10px;
}

.vip-lock-btn {
  padding: 10px 24px;
}

/* ============================================
   Sidebar
   ============================================ */

.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.widget {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 1rem;
  font-weight: 600;
  padding-bottom: 10px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--primary-color);
  border-radius: 2px;
}

.category-list {
  list-style: none;
}

.category-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.category-item:last-child {
  border-bottom: none;
}

.category-item a {
  display: flex;
  justify-content: space-between;
  color: var(--text-color);
}

.category-item a:hover {
  color: var(--primary-color);
}

.category-count {
  color: var(--text-lighter);
  font-size: 0.875rem;
}

/* ============================================
   Pagination
   ============================================ */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  background: var(--bg-card);
  color: var(--text-color);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.page-item:hover,
.page-item.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.page-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   Footer
   ============================================ */

#footer {
  background: var(--bg-dark);
  color: #9ca3af;
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: #9ca3af;
}

.footer-links a:hover {
  color: white;
}

.footer-copyright {
  font-size: 0.875rem;
}

#scroll-top-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--primary-color, #3b82f6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  text-decoration: none;
}
#scroll-top-button.show {
  opacity: 1;
  visibility: visible;
}
#scroll-top-button:hover {
  transform: translateY(-2px);
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.hidden { display: none; }
.block { display: block; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius); }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.bg-white { background: white; }
.bg-gray { background: var(--bg-color); }
.bg-primary { background: var(--primary-color); }

.text-white { color: white; }
.text-gray { color: var(--text-color); }
.text-primary { color: var(--primary-color); }

/* Loading */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 16px 24px;
  background: var(--bg-card);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  animation: slideIn 0.3s ease;
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }
  
  .header-inner {
    padding: 0 15px;
  }
  
  .nav {
    display: none;
  }
  
  .article-header h1 {
    font-size: 1.75rem;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .user-header {
    flex-direction: column;
    text-align: center;
  }
  
  .user-stats {
    justify-content: center;
  }
}

/* Mobile Nav */
.mobile-nav-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-nav-btn {
    display: flex;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
  }
  
  .nav.active {
    display: flex;
  }
}

/* Search Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}
.modal.show { display: flex; }
.modal-dialog {
  background: var(--bg-card);
  border-radius: 12px;
  width: 90%;
  max-width: 560px;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-lighter);
  line-height: 1;
  flex-shrink: 0;
}
.modal-close:hover {
  color: var(--text-color);
}
#local-search-input {
  width: 100%;
  border: none;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  outline: none;
  background: transparent;
  color: var(--text-color);
}
.modal-body { padding: 0; }
.search-result-item {
  display: block;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
  text-decoration: none;
  transition: background 0.2s;
}
.search-result-item:hover { background: var(--border-light); }
.search-result-item:last-child { border-bottom: none; }
.search-result-title { font-weight: 600; margin-bottom: 0.2rem; }
.search-result-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-4 { padding: 2rem; }
.text-center { text-align: center; }
.text-gray { color: var(--text-light); }
