/* 导航站 CMS 核心现代设计系统与高档毛玻璃样式 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  /* 现代 HSL 配色调色盘 (暗黑高档风格) */
  --bg-base: hsl(222, 47%, 11%);
  --bg-panel: hsl(223, 47%, 14%);
  --bg-card: hsl(223, 40%, 18%);
  --bg-glass: rgba(13, 20, 38, 0.65);
  
  --text-main: hsl(210, 38%, 95%);
  --text-muted: hsl(215, 20%, 65%);
  --text-inverse: hsl(222, 47%, 11%);
  
  --accent-blue: hsl(200, 100%, 55%);
  --accent-purple: hsl(270, 95%, 68%);
  --accent-gradient: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  --accent-glow: 0 0 25px rgba(138, 43, 226, 0.35);
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(138, 43, 226, 0.5);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 0 40px rgba(138, 43, 226, 0.1);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-round: 50%;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --sidebar-width: 260px;
}

/* 全局重置与基础样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(at 10% 10%, rgba(31, 58, 138, 0.15) 0px, transparent 50%),
    radial-gradient(at 90% 10%, rgba(109, 40, 217, 0.15) 0px, transparent 50%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* 链接样式 */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* 主容器布局 */
.app-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* 1. 左侧侧边栏 (Sidebar) */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-panel);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: var(--transition-smooth);
}

.sidebar-logo {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-glass);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
  font-family: var(--font-display);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text.d-md-none {
  display: none;
}

.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 20px 12px;
}

.sidebar-menu::-webkit-scrollbar {
  width: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 6px;
  color: var(--text-muted);
  font-weight: 500;
  gap: 12px;
}

.menu-item i {
  font-size: 18px;
}

.menu-item:hover, .menu-item.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.menu-item.active {
  background: var(--accent-gradient);
  color: var(--text-inverse);
  box-shadow: var(--accent-glow);
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link:hover {
  color: var(--text-main);
}

/* 2. 主页面区 (Main Content) */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  padding: 30px 40px;
  transition: var(--transition-smooth);
}

/* 顶部 Header */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

.admin-badge {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  padding: 8px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.admin-badge:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(0, 145, 249, 0.15);
}

/* 广播公告区 (Bulletin Box) */
.bulletin-box {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.bulletin-icon {
  color: hsl(45, 100%, 60%);
  font-size: 16px;
  animation: pulse 2s infinite;
}

.bulletin-carousel {
  flex: 1;
  height: 20px;
  overflow: hidden;
  position: relative;
}

.bulletin-track {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.bulletin-item {
  height: 20px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bulletin-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bulletin-close:hover {
  color: var(--text-main);
}

/* 3. 搜索栏区域 (Search Bar) */
.search-container {
  max-width: 680px;
  margin: 0 auto 50px auto;
  position: relative;
}

.search-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  padding: 6px 10px 6px 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.search-wrapper:focus-within {
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-lg);
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 16px;
  outline: none;
  padding: 8px 0;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  background: var(--accent-gradient);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.search-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--accent-glow);
}

/* 4. 网址导航卡片与分类面板 */
.category-section {
  margin-bottom: 50px;
  scroll-margin-top: 30px;
}

/* 1. 品牌视觉中心 (Brand Hero Section) */
.brand-hero-section {
  text-align: center;
  margin-bottom: 24px;
  margin-top: 10px;
}

.brand-hero-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.brand-hero-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.category-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* 卡片高拟物毛玻璃悬浮效果 (URL Card) */
.url-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.url-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  opacity: 0;
  z-index: 0;
  transition: var(--transition-smooth);
}

.url-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: 0 10px 20px -5px rgba(0, 145, 249, 0.15), 0 0 15px rgba(138, 43, 226, 0.05);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-glass);
  z-index: 1;
}

.card-info {
  flex: 1;
  min-width: 0;
  z-index: 1;
}

.card-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff; /* 纯白高对比度 */
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55) !important; /* 精致半透明，拉开明暗对比 */
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 5. 推荐文章组件 */
.articles-section {
  margin-top: 60px;
  border-top: 1px solid var(--border-glass);
  padding-top: 40px;
}

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

.article-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: 0 10px 20px -5px rgba(138, 43, 226, 0.15);
}

.article-image {
  height: 160px;
  background: var(--bg-card);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.article-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* 6. 独立详情页面渲染 (site/article.html) */
.detail-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 30px;
}

.back-btn:hover {
  color: var(--accent-blue);
}

/* 网址详情内页 */
.site-detail-header {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 30px;
}

.site-large-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
}

.site-detail-meta h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #ffffff; /* 高对比度亮白 */
  margin-bottom: 6px;
}

.site-title-desc {
  font-size: 20px; /* 再小一号，拉开视觉对比 */
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
}

.site-meta-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-badge {
  background: rgba(0, 208, 132, 0.04);
  border: 1px solid rgba(0, 208, 132, 0.15);
  padding: 3px 10px;
  border-radius: 30px;
  font-size: 11.5px;
  color: #00d084;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag-badge:hover {
  background: rgba(0, 208, 132, 0.08);
  border-color: rgba(0, 208, 132, 0.3);
  transform: translateY(-1px);
}

.url-card-tag {
  display: inline-block;
  background: rgba(0, 208, 132, 0.05);
  border: 1px solid rgba(0, 208, 132, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: #00d084;
  font-weight: 500;
  line-height: 1.2;
}

.site-meta-info-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.site-meta-info-line .meta-info-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 400;
}

.article-content-body {
  font-size: 14px;
  line-height: 1.8;
  color: #e2e8f0 !important; /* 护眼高对比度灰白 */
  margin-bottom: 24px;
}

.section-card-title {
  margin-bottom: 20px;
  font-family: var(--font-display);
  border-left: 4px solid var(--accent-blue);
  padding-left: 12px;
  font-size: 15px;
  color: var(--text-main);
  font-weight: 600;
}

.faq-title {
  font-weight: 600;
  color: var(--text-main);
  font-size: 13.5px;
}

.faq-answer {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* 面包屑与通用返回导航 */
.breadcrumb {
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 400;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.breadcrumb a:hover {
  color: var(--text-main);
}

.breadcrumb-separator {
  margin: 0 8px;
  opacity: 0.35;
  font-size: 11px;
  user-select: none;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
  transition: var(--transition-smooth);
}

.back-btn:hover {
  color: var(--text-main);
  transform: translateX(-4px);
}

/* 标签归档页面特化样式 */
.tag-archive-card {
  margin-bottom: 30px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.tag-archive-card .archive-icon {
  font-size: 28px;
  line-height: 1;
}

.tag-archive-title {
  font-size: 17px;
  font-family: var(--font-display);
  color: var(--text-main);
  margin-bottom: 4px;
  display: inline-block;
  position: relative;
  font-weight: 700;
}

.tag-archive-title span {
  color: var(--accent-blue);
  font-weight: 800;
}

.tag-archive-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 208, 132, 0.2);
  border-radius: 2px;
  z-index: -1;
}

.tag-archive-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 400;
}

.site-meta-info-line .meta-info-split {
  display: none;
}

.site-description-block {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 40px;
}

.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-gradient);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 16px;
  box-shadow: var(--shadow-md);
}

.btn-visit:hover {
  transform: scale(1.02);
  box-shadow: var(--accent-glow);
}

/* 文章详情内页 */
.article-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 30px;
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-info-line {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  gap: 20px;
}

.article-banner {
  width: 100%;
  height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  border: 1px solid var(--border-glass);
}

.article-content-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-main);
}

.article-content-body h1, .article-content-body h2, .article-content-body h3 {
  font-family: var(--font-display);
  margin: 30px 0 15px 0;
}

.article-content-body p {
  margin-bottom: 20px;
}

.article-content-body a {
  color: var(--accent-blue);
  border-bottom: 1px dotted var(--accent-blue);
}

.article-content-body a:hover {
  color: var(--accent-purple);
}

/* 7. 后台管理页面 (admin.html) */
.login-panel {
  max-width: 420px;
  margin: 100px auto 0 auto;
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
}

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

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

.form-control {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  outline: none;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(0, 145, 249, 0.1);
}

.btn-primary {
  width: 100%;
  background: var(--accent-gradient);
  border: none;
  color: white;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  box-shadow: var(--accent-glow);
}

/* 后台控制台布局 */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 20px;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1px;
  margin-bottom: 30px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 24px;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-smooth);
}

.tab-btn:hover, .tab-btn.active {
  color: var(--text-main);
}

.tab-btn.active {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.admin-grid-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.admin-list-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  max-height: 600px;
  overflow-y: auto;
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--border-glass);
}

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

.btn-danger {
  background: hsl(0, 80%, 60%);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
}

.btn-danger:hover {
  background: hsl(0, 90%, 50%);
}

.btn-update {
  background: var(--accent-blue);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  transition: var(--transition-smooth);
}

.btn-update:hover {
  background: hsl(205, 100%, 45%);
  box-shadow: 0 0 10px rgba(0, 145, 249, 0.3);
}

.admin-sort-input {
  width: 60px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: white;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  text-align: center;
  outline: none;
}

.admin-sort-input:focus {
  border-color: var(--accent-blue);
}

/* 简易富文本编辑器预览设计 */
.editor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.editor-preview {
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  height: 300px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
}

/* 提示框 */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: hsl(0, 85%, 65%);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: hsl(150, 85%, 45%);
}

/* 关键帧动画 */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* 响应式适配 */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    padding: 20px;
  }
  
  .header-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    margin: -20px -20px 25px -20px;
    padding: 12px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo-text.d-md-none {
    display: block !important;
    font-size: 20px;
    font-family: var(--font-display);
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    filter: drop-shadow(0 2px 8px rgba(0, 208, 132, 0.2));
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 20px;
  }
  
  .mobile-menu-btn:active {
    transform: scale(0.92);
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(0, 145, 249, 0.2);
  }
  
  .brand-hero-section {
    display: none !important;
  }
  
  .admin-grid-layout {
    grid-template-columns: 1fr;
  }
  
  .editor-layout {
    grid-template-columns: 1fr;
  }

  /* 网址详情页移动端适配重构 */
  .site-detail-header {
    display: grid !important;
    grid-template-columns: 50px 1fr !important;
    grid-template-areas:
      "title title"
      "logo meta"
      "logo tags" !important;
    gap: 10px 16px !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
    align-items: center !important;
  }

  .site-detail-meta {
    display: contents !important;
  }

  .site-detail-meta h1 {
    grid-area: title !important;
    font-size: 20px !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
  }

  .site-title-desc {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.55) !important;
    display: inline !important;
  }

  .site-large-icon {
    grid-area: logo !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: var(--radius-sm) !important;
    margin: 0 !important;
    box-shadow: 0 0 15px rgba(0, 208, 132, 0.2) !important;
    align-self: center !important;
  }

  .site-meta-tags {
    grid-area: tags !important;
    justify-content: flex-start !important;
  }

  .visit-actions-panel {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 18px !important;
    gap: 16px !important;
  }

  .visit-actions-panel > div:first-child {
    min-width: 0 !important;
    text-align: center !important;
  }

  .visit-actions-panel > div:first-child > div {
    justify-content: center !important;
  }

  .visit-actions-panel > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .visit-actions-panel .btn-primary,
  .visit-actions-panel .btn-visit {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .qr-card {
    display: none !important;
  }

  .hot-recommend-card {
    margin-top: 0 !important;
  }

  /* 消除 Safari/WebKit 默认 details 实心小三角兼容性问题 */
  .site-main-col summary::-webkit-details-marker {
    display: none !important;
  }
  
  .site-main-col summary {
    list-style: none !important;
  }

  /* 移动端留言板验证码与提交按钮全宽重排 */
  .feedback-action-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .feedback-action-row > div:first-child {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .feedback-action-row > div:first-child > input {
    flex: 1 !important;
    width: 0 !important;
    min-width: 0 !important;
  }

  .feedback-action-row #btnSubmitFeedback {
    width: 100% !important;
    padding: 12px !important;
    font-size: 13.5px !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* 垂直空间与内边距瘦身 */
  .app-container {
    padding: 20px 12px !important;
  }

  .back-btn {
    margin-bottom: 16px !important;
    font-size: 13px !important;
  }

  .visit-actions-panel,
  .site-info-card,
  .faq-card,
  .security-panel,
  .speed-panel,
  .hot-recommend-card,
  .feedback-card,
  .category-friend-links {
    padding: 16px !important;
  }



  /* 详情页超长标题与面包屑折行自适应 */
  .breadcrumb-nav {
    flex-wrap: wrap !important;
    row-gap: 6px !important;
  }

  .site-meta-tags {
    gap: 8px 10px !important;
  }

  /* 重新测速按钮触控质感优化 */
  #btnRetestSpeed {
    padding: 12px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
  }

  /* 防止验证码文字折行与挤压变形 */
  #captchaBox {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* 移动端元数据与小标签排版大优化 */
  .site-meta-info-line {
    justify-content: flex-start !important;
    gap: 14px !important; /* 空白分隔距离微增，视觉上更加透气优雅 */
    margin-top: 6px !important;
  }

  .site-meta-info-line .meta-info-item {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 11px !important;
    color: var(--text-muted) !important;
  }

  .site-meta-tags {
    justify-content: flex-start !important;
    margin-top: 8px !important;
    gap: 6px 8px !important;
  }

  /* 移动端隐藏返回前台首页的冗余文字按钮 */
  .back-btn {
    display: none !important;
  }

  /* 移动端排版及字体自适应微调 */
  .brand-hero-title {
    font-size: 26px !important;
  }
  
  .brand-hero-subtitle {
    font-size: 12px !important;
  }

  .meta-info-item {
    font-size: 11px !important;
  }
}

/* 站长深度评测文章在网址内页的排版美化样式 */
.review-item .article-content-body h1 {
  font-size: 20px;
  margin: 24px 0 12px 0;
  color: var(--accent-blue);
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 8px;
}

.review-item .article-content-body h2 {
  font-size: 18px;
  margin: 20px 0 10px 0;
  color: var(--accent-purple);
}

.review-item .article-content-body h3 {
  font-size: 16px;
  margin: 16px 0 8px 0;
  color: var(--text-main);
}

.review-item .article-content-body p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 16px;
  opacity: 0.9;
}

.review-item .article-content-body strong {
  color: var(--accent-blue);
  font-weight: 600;
}

.review-item .article-content-body a {
  color: var(--accent-purple);
  border-bottom: 1px dotted var(--accent-purple);
  font-weight: 500;
}

.review-item .article-content-body a:hover {
  color: var(--accent-blue);
  border-bottom-style: solid;
}

/* 二级分类/子分类标签过滤样式 */
.category-header {
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 左对齐，让子标签紧随大分类名称横向展开 */
  flex-wrap: wrap;
  gap: 25px; /* 大标题与子标签栏之间的间距 */
}

.category-subtags {
  display: flex;
  gap: 16px; /* 标签项之间稍微宽敞的间距，提升精致感 */
  align-items: center;
  flex-wrap: wrap;
}

.subtag-btn {
  padding: 6px 10px; /* 水平方向留有舒适的点击与视觉间距 */
  font-size: 14px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-weight: 500;
  outline: none;
  position: relative; /* 核心：设为相对定位供伪元素定位 */
}

.subtag-btn:hover {
  color: var(--text-main);
  background: transparent;
}

.subtag-btn.active {
  color: var(--accent-blue) !important; /* 选中时文字颜色高亮为亮蓝色 */
  font-weight: 600; /* 加粗文字以强化对比 */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* 荧光笔高亮线：利用伪元素实现更细、精准对位以及发光高显眼度的黄色高光底线 */
.subtag-btn.active::after {
  content: '';
  position: absolute;
  bottom: 2px;  /* 精确控制底线到文字底部的距离 */
  left: 8px;    /* 配合 padding 限制高光条的宽度，仅覆盖文字而不超出两端 */
  right: 8px;
  height: 4px;  /* 粗细控制在 4px，粗细极适中且有精致感 */
  background: rgba(254, 240, 138, 0.95) !important; /* 超高亮度的荧光黄 (#fef08a)，暗底色下极为耀眼 */
  border-radius: 2px; /* 圆角处理，还原手绘荧光笔的柔和过渡 */
  z-index: -1;  /* 置于文字下方，不遮挡字型 */
  box-shadow: 0 0 12px rgba(254, 240, 138, 0.7); /* 暗色底色下带有温润发光，极为醒目显眼 */
}
