/* JTNav Front — Clean Modern */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-alpha: rgba(37,99,235,0.06);
  --primary-alpha-md: rgba(37,99,235,0.12);
  --bg: #f5f6f8;
  --card-bg: #fff;
  --border: #eef1f5;
  --text: #1a1a1a;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
}

body { background: var(--bg); }

/* ---- Header ---- */
.front-header {
  background: var(--card-bg); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 16px 32px; height: 56px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; color: var(--text); text-decoration: none;
  letter-spacing: -0.02em;
}
.site-logo .logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px; background: var(--primary);
}
.site-logo .logo-img {
  width: 32px; height: 32px; border-radius: 8px; object-fit: cover;
}
.site-logo:hover { color: var(--text); text-decoration: none; }

.search-box {
  display: flex; align-items: center;
  background: var(--bg); border: 1px solid transparent;
  border-radius: 10px; padding: 0; width: 320px; height: 40px;
  transition: all 0.2s;
}
.search-box:focus-within {
  border-color: var(--primary); background: var(--card-bg);
  box-shadow: 0 0 0 3px var(--primary-alpha);
}
.search-box input {
  border: none; background: none; outline: none;
  flex: 1; font-size: 14px; padding: 0 0 0 16px; color: var(--text); min-width: 0;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: none; background: none;
  cursor: pointer; color: var(--text-muted); flex-shrink: 0;
  border-radius: 0 10px 10px 0; transition: all 0.15s;
}
.search-btn:hover { color: var(--primary); background: var(--primary-alpha); }
.search-btn svg { width: 16px; height: 16px; }

/* ---- Main Layout ---- */
.front-layout {
  max-width: 1120px; margin: 0 auto; padding: 28px 32px;
  display: flex; gap: 24px; align-items: flex-start;
}

/* ---- Main Content ---- */
.front-main { flex: 1; min-width: 0; }

/* ---- Category Section ---- */
.cat-section {
  background: var(--card-bg); border-radius: 12px;
  padding: 24px; margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.cat-section-header {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
  justify-content: space-between;
}
.cat-section-header::before {
  content: ''; width: 4px; height: 16px;
  background: var(--primary); border-radius: 2px; flex-shrink: 0;
}
.cat-section-title {
  flex: 1;
}

/* 可点击区域样式 */
.clickable-area {
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.clickable-area:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.clickable-area::after {
  content: '→';
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 18px;
  color: var(--primary);
  opacity: 0;
  transition: all 0.2s;
}

.clickable-area:hover::after {
  opacity: 1;
  transform: translateX(5px);
}

/* ---- Site Cards ---- */
.site-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.site-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 10px;
  transition: all 0.2s; cursor: pointer; text-decoration: none;
}
.site-card:hover {
  border-color: #dde2e8;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.08);
  text-decoration: none; transform: translateY(-1px);
}
.site-card .card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); font-size: 20px; flex-shrink: 0; overflow: hidden;
}
.site-card .card-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.site-card .card-icon .favicon-fallback { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 20px; }
.site-card .card-info { flex: 1; min-width: 0; overflow: hidden; }
.site-card .card-name {
  font-size: 14px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.site-card .card-desc {
  font-size: 12px; color: var(--text-muted); line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 3px;
  cursor: default;
}

.site-card .card-desc:hover {
  color: var(--text);
}
.site-card-wrapper { position: relative; overflow: hidden; }
.site-card-wrapper .top-tag {
  position: absolute; top: -4px; right: -4px;
  font-size: 10px; background: #fbbf24; color: #fff;
  padding: 2px 8px; border-radius: 6px; font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---- Top Recommend Section ---- */
.top-section {
  background: var(--card-bg); border-radius: 12px;
  padding: 24px; margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.top-section .section-header {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.top-section .section-header::before {
  content: ''; width: 4px; height: 16px;
  background: #f59e0b; border-radius: 2px; flex-shrink: 0;
}

/* ---- Ad Banners ---- */
.ad-banner { margin-bottom: 16px; position: relative; }
.ad-banner a { display: block; }
.ad-banner::after {
  content: '广告'; position: absolute; top: 6px; right: 6px;
  font-size: 10px; color: rgba(255,255,255,0.6); background: rgba(0,0,0,0.2);
  padding: 1px 6px; border-radius: 3px; pointer-events: none; line-height: 1.4;
}
.ad-banner-top { border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.ad-banner-top img { width: 100%; max-height: 200px; object-fit: cover; display: block; }
.ad-banner-mid { border-radius: 10px; overflow: hidden; margin: 20px 0; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.ad-banner-mid img { width: 100%; max-height: 200px; object-fit: cover; display: block; }
.ad-sidebar-item { border-radius: 10px; overflow: hidden; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); position: relative; }
.ad-sidebar-item a { display: block; }
.ad-sidebar-item img { width: 100%; max-height: 300px; object-fit: cover; display: block; }
.ad-sidebar-item::after {
  content: '广告'; position: absolute; top: 4px; right: 4px;
  font-size: 10px; color: rgba(255,255,255,0.6); background: rgba(0,0,0,0.2);
  padding: 1px 5px; border-radius: 3px; pointer-events: none; line-height: 1.4;
}
.ad-mobile-bottom { border-radius: 10px; overflow: hidden; margin: 0 auto 16px; max-width: 1120px; padding: 0 32px; position: relative; }
.ad-mobile-bottom a { display: block; }
.ad-mobile-bottom img { width: 100%; max-height: 150px; object-fit: cover; display: block; border-radius: 10px; }
.ad-mobile-bottom::after {
  content: '广告'; position: absolute; top: 10px; right: 40px;
  font-size: 10px; color: rgba(255,255,255,0.6); background: rgba(0,0,0,0.2);
  padding: 1px 5px; border-radius: 3px; pointer-events: none; line-height: 1.4;
}

/* ---- Carousel ---- */
.carousel {
  position: relative; margin-bottom: 20px;
  border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.carousel::after {
  content: '广告'; position: absolute; top: 6px; right: 6px;
  font-size: 10px; color: rgba(255,255,255,0.6); background: rgba(0,0,0,0.2);
  padding: 1px 6px; border-radius: 3px; pointer-events: none; z-index: 6; line-height: 1.4;
}
.carousel-track {
  display: flex; transition: transform 0.5s ease;
}
.carousel-slide { width: 100%; flex-shrink: 0; }
.carousel-slide a { display: block; }
.carousel-slide img { width: 100%; max-height: 200px; object-fit: cover; display: block; }
.carousel-dots {
  position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 6px; z-index: 5;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.7); cursor: pointer; transition: all 0.2s;
}
.carousel-dot.active { background: #fff; width: 20px; border-radius: 4px; }

/* ---- Sidebar ---- */
.front-sidebar {
  width: 240px; flex-shrink: 0; position: sticky; top: 72px;
}
.sidebar-card {
  background: var(--card-bg); border-radius: 12px; padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04); margin-bottom: 16px;
}
.sidebar-card-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.sidebar-card-title::before {
  content: ''; width: 3px; height: 14px;
  background: var(--primary); border-radius: 2px; flex-shrink: 0;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; font-size: 13px; color: var(--text-secondary);
  border-radius: 8px; transition: all 0.15s; text-decoration: none;
}
.sidebar-nav a:hover { background: var(--primary-alpha); color: var(--primary); text-decoration: none; }
.sidebar-nav a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.sidebar-nav .cat-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); flex-shrink: 0;
}
.sidebar-nav a.active .cat-dot { background: var(--primary); }

/* ---- Footer ---- */
.front-footer {
  background: var(--card-bg); border-top: 1px solid var(--border);
  padding: 24px 32px; text-align: center;
}
.front-footer .footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 8px; }
.front-footer .footer-links a { font-size: 13px; color: var(--text-muted); transition: color 0.15s; }
.front-footer .footer-links a:hover { color: var(--primary); text-decoration: none; }
.front-footer .copyright { font-size: 12px; color: #c5cad2; }
.front-footer .copyright a { color: #c5cad2; }
.front-footer .copyright a:hover { color: var(--text-muted); text-decoration: none; }

/* ---- Detail Page ---- */
.detail-page { max-width: 1120px; margin: 0 auto; padding: 32px 40px; }
.detail-back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--text-muted); margin-bottom: 20px; transition: color 0.15s;
}
.detail-back:hover { color: var(--primary); text-decoration: none; }

/* 详情页卡片 - 大气设计 */
.detail-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.04);
}

.detail-main {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
}

/* 左侧大图标 - 更大更醒目 */
.detail-icon-box {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
  overflow: hidden;
  position: relative;
}

.detail-icon-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.detail-icon-box img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50% !important;
  position: relative;
  z-index: 1;
}

.detail-icon-box .favicon-fallback {
  font-size: 48px;
  position: relative;
  z-index: 1;
}

/* 右侧信息区域 */
.detail-main-info {
  flex: 1;
  min-width: 0;
}

.detail-tag {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.detail-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.detail-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0 0 24px 0;
}

/* 操作按钮组 - 更加大气 */
.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.detail-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
  color: #fff;
}

.detail-link-btn.secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 4px 16px rgba(245, 87, 108, 0.3);
}

.detail-link-btn.secondary:hover {
  box-shadow: 0 8px 24px rgba(245, 87, 108, 0.4);
}

/* 分割线 */
.detail-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 32px 0;
}

/* 详细介绍内容 */
.detail-content-body {
  font-size: 15px;
  line-height: 2;
  color: #374151;
}

.detail-content-body img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.detail-content-body h1,
.detail-content-body h2,
.detail-content-body h3 {
  margin: 24px 0 16px;
  font-weight: 700;
  color: #1f2937;
}

.detail-content-body h1 { font-size: 24px; }
.detail-content-body h2 { font-size: 20px; }
.detail-content-body h3 { font-size: 18px; }

.detail-content-body p { margin: 12px 0; }

.detail-content-body ul,
.detail-content-body ol {
  margin: 12px 0;
  padding-left: 28px;
}

.detail-content-body li { margin: 8px 0; }

.detail-content-body blockquote {
  margin: 20px 0;
  padding: 16px 24px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  border-left: 4px solid #667eea;
  color: #4b5563;
  font-style: normal;
  border-radius: 0 12px 12px 0;
}

.detail-content-body a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.detail-content-body a:hover {
  text-decoration: underline;
}

/* 额外信息区域 */
.detail-extra-info {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

.detail-extra-info p {
  margin: 8px 0;
  font-size: 14px;
  color: #4b5563;
}

.detail-extra-info strong {
  color: #1f2937;
  font-weight: 600;
}

/* 可点击的邀请码样式 */
.invite-code-clickable {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  user-select: none;
}

.invite-code-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.invite-code-clickable:active {
  transform: translateY(0);
}

.extra-content {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  line-height: 1.8;
  color: #4b5563;
}

.related-section {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 32px;
  margin-top: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.04);
}

.related-section .section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ---- Search Results ---- */
.search-results {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px 28px;
}

.search-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 32px 28px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
  text-align: center;
  position: relative;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.search-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.search-header strong {
  color: #fff;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.search-section {
  margin-bottom: 40px;
}

.search-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 4px solid #667eea;
  position: relative;
}

.search-section-title::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.search-empty {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.search-empty .empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.35;
}

.search-empty p {
  font-size: 14px;
  color: #9ca3af;
  margin: 8px 0;
}

/* 搜索页面移动端适配 */
@media (max-width: 768px) {
  .search-results {
    padding: 0 12px 20px;
  }
  
  .search-header {
    padding: 24px 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
  }
  
  .search-section {
    margin-bottom: 24px;
  }
  
  .search-section-title {
    font-size: 15px;
    margin-bottom: 14px;
  }
  
  .search-empty {
    padding: 60px 16px;
    border-radius: 10px;
  }
  
  .search-empty .empty-icon {
    font-size: 32px;
  }
  
  .search-empty p {
    font-size: 13px;
  }
}

/* ---- Submit Page ---- */
.submit-page { max-width: 640px; margin: 0 auto; padding: 28px 32px; }
.submit-card {
  background: var(--card-bg); border-radius: 12px;
  padding: 28px; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.submit-card h2 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.submit-intro { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.submit-flash { padding: 10px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 20px; }
.submit-flash-success { background: #ecfdf5; color: #059669; border: 1px solid #d1fae5; }
.submit-flash-error { background: #fef2f2; color: #dc2626; border: 1px solid #fee2e2; }
.submit-card .form-group { margin-bottom: 16px; }
.submit-card .form-group label {
  display: block; font-size: 13px; color: #374151; margin-bottom: 6px; font-weight: 600;
}
.submit-card .form-group label .required { color: #ef4444; }
.submit-card .form-group input,
.submit-card .form-group select,
.submit-card .form-group textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid #e2e8f0;
  border-radius: 10px; font-size: 14px; background: var(--card-bg);
  color: var(--text); transition: all 0.2s; box-sizing: border-box;
}
.submit-card .form-group textarea { resize: vertical; min-height: 60px; }
.submit-card .form-group input:focus,
.submit-card .form-group select:focus,
.submit-card .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-alpha-md);
}
.captcha-group { display: flex; align-items: center; gap: 12px; }
.captcha-group img { height: 40px; border-radius: 8px; border: 1px solid #e2e8f0; cursor: pointer; }
.captcha-group input { width: 120px; }
.captcha-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.btn-submit { width: 100%; margin-top: 8px; }

/* ===== 移动端公告轮播样式 ===== */
.mobile-notice-carousel {
  display: none;
  margin: 12px 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
  min-height: 44px;
  cursor: pointer;
  z-index: 10;
}

.mobile-notice-carousel:hover {
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.mobile-notice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  overflow: hidden;
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: center;
}

.mobile-notice-item.active {
  opacity: 1;
  transform: translateX(0);
}

.mobile-notice-item.prev {
  opacity: 0;
  transform: translateX(-100%);
}

.mobile-notice-item .notice-important-tag {
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.mobile-notice-text {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-notice-date {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  flex-shrink: 0;
}

/* ===== 侧边栏公告样式 ===== */
.sidebar-notice-card {
  margin-bottom: 16px;
}

.sidebar-notice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
}

/* ===== 侧边栏公告卡片样式 ===== */
.sidebar-notice-card {
  padding: 0;
}

.sidebar-notice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.sidebar-notice-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.02);
  border-radius: 8px;
  transition: all 0.2s;
  color: var(--text);
  cursor: pointer;
  position: relative;
}

.sidebar-notice-item:hover {
  background: rgba(37,99,235,0.06);
  transform: translateX(3px);
}

.sidebar-notice-title {
  flex: 1;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.sidebar-notice-date {
  font-size: 11px;
  color: #9ca3af;
  flex-shrink: 0;
}

/* ===== 公告列表样式 ===== */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notice-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.notice-item:hover {
  background: rgba(37,99,235,0.04);
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.1);
}

.notice-important-tag {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  letter-spacing: 0.5px;
}

.notice-item-title {
  flex: 1;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-item-date {
  font-size: 12px;
  color: #9ca3af;
  flex-shrink: 0;
}

/* ===== 公告详情页样式 ===== */
.notice-detail-page {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 24px;
  transition: all 0.2s;
  text-decoration: none;
}

.detail-back:hover {
  color: #2563eb;
}

.notice-detail-header {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
}

.notice-detail-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.important-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #ef4444;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  flex-shrink: 0;
}

.notice-meta {
  display: flex;
  gap: 20px;
  color: #6b7280;
  font-size: 13px;
}

.notice-summary {
  background: rgba(37,99,235,0.06);
  border-left: 4px solid #2563eb;
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: 8px;
  color: #475569;
  line-height: 1.8;
  font-size: 15px;
}

.notice-detail-content {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  line-height: 1.8;
  color: var(--text);
}

.notice-detail-content h1,
.notice-detail-content h2,
.notice-detail-content h3 {
  margin: 24px 0 16px;
  color: var(--text);
}

.notice-detail-content p {
  margin-bottom: 16px;
}

.notice-detail-content ul,
.notice-detail-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.notice-detail-content li {
  margin-bottom: 8px;
}

.notice-detail-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

.notice-detail-footer {
  text-align: center;
  padding: 20px 0;
}

/* ===== 公告列表页样式 ===== */
.notice-list-page {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.notice-list-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.notice-list-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.notice-list-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.notice-list-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.notice-list-title svg {
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.notice-list-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  margin: 0;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.notice-empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.notice-empty .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.notice-empty p {
  color: #9ca3af;
  font-size: 15px;
}

.notice-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notice-list-item {
  display: block;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
}

.notice-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.notice-list-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-4px);
  border-color: rgba(102, 126, 234, 0.2);
}

.notice-list-item:hover::before {
  opacity: 1;
}

.notice-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.notice-item-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.3s;
}

.notice-list-item:hover .notice-item-title {
  color: #667eea;
}

.notice-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.notice-item-date {
  font-size: 14px;
  color: #9ca3af;
  font-weight: 500;
}

.notice-arrow {
  color: #9ca3af;
  transition: transform 0.2s;
}

.notice-list-item:hover .notice-arrow {
  transform: translateX(4px);
  color: var(--primary);
}

.notice-item-summary {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
  margin: 12px 0 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  padding-left: 0;
}

.notice-list-footer {
  text-align: center;
  padding: 24px 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .notice-list-page { padding: 0 12px; margin: 16px auto; }
  .notice-list-header { padding: 16px 20px !important; margin-bottom: 12px !important; border-radius: 12px !important; }
  .notice-list-title { font-size: 20px !important; margin-bottom: 8px !important; }
  .notice-list-container { gap: 10px !important; }
  .notice-list-item { padding: 14px 16px !important; border-radius: 12px !important; }
  .notice-item-left { gap: 10px !important; margin-bottom: 8px !important; }
  .notice-item-title { font-size: 15px !important; }
  .notice-item-right { margin-bottom: 6px !important; }
  .notice-item-date { font-size: 12px !important; }
  .notice-item-summary { font-size: 13px !important; line-height: 1.5 !important; margin-top: 8px !important; -webkit-line-clamp: 2 !important; }
  .notice-important-tag { padding: 3px 8px !important; font-size: 11px !important; }
  .notice-list-footer { padding: 16px 0 !important; }
  .notice-detail-page { padding: 0 16px; margin: 20px auto; }
  .notice-detail-header { padding: 20px; }
  .notice-detail-title { font-size: 22px; }
  .notice-detail-content { padding: 20px; }
}

/* ===== 分类页面样式 ===== */
.category-page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 16px 32px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.category-page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.category-page-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.category-page-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
  white-space: nowrap;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.9);
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.back-home-btn:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
  transform: translateX(-3px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}



.category-site-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* 分类页面中的站点卡片样式优化 */
.category-site-grid .site-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 100px;
}

.category-site-grid .site-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.category-site-grid .site-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.category-site-grid .site-card:hover {
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.18);
  transform: translateY(-6px);
  border-color: rgba(102, 126, 234, 0.3);
}

.category-site-grid .site-card:hover::before {
  opacity: 1;
}

.category-site-grid .site-card:hover::after {
  opacity: 1;
}

.category-site-grid .site-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
  z-index: 1;
}

.category-site-grid .site-card:hover .card-icon {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

.category-site-grid .site-card:hover .card-icon img,
.category-site-grid .site-card:hover .card-icon svg {
  filter: none;
}

.category-site-grid .site-card .card-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.category-site-grid .site-card .card-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  transition: all 0.3s;
  margin-bottom: 6px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-site-grid .site-card:hover .card-name {
  color: #667eea;
  letter-spacing: 0.3px;
}

.category-site-grid .site-card .card-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s;
}

.category-site-grid .site-card:hover .card-desc {
  color: #4b5563;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
  font-size: 14px;
}

/* 分类页面移动端适配 */
@media (max-width: 768px) {
  .category-page-header {
    background: -webkit-linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    padding: 24px 20px !important;
    border-radius: 16px !important;
    margin-bottom: 16px !important;
    -webkit-box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25) !important;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25) !important;
    text-align: center !important;
    display: block !important;
  }
  
  .category-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
  }
  
  .category-page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
  }
  
  .category-page-title {
    font-size: 24px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    left: auto;
    transform: none;
    white-space: normal;
  }
  
  .category-page-count {
    display: none;
  }
  
  .back-home-btn {
    display: none;
  }
  
  .category-site-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 12px;
  }
  
  /* 强制应用分类页面的卡片样式 */
  .category-site-grid .site-card {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    border-radius: 10px !important;
    padding: 10px 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
    min-height: auto !important;
  }
  
  .category-site-grid .site-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .category-site-grid .site-card:hover::before,
  .category-site-grid .site-card:active::before {
    opacity: 1;
  }
  
  .category-site-grid .site-card .card-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%) !important;
    margin-bottom: 6px !important;
  }
  
  .category-site-grid .site-card .card-name {
    font-size: 13px !important;
    font-weight: 600;
    color: #1f2937 !important;
    margin-bottom: 4px !important;
  }
  
  .category-site-grid .site-card .card-desc {
    font-size: 11px !important;
    color: #6b7280 !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

