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

:root {
  --primary: #4f6df5;
  --primary-dark: #3d5bdb;
  --primary-light: #eef1ff;
  --text-main: #1a1a2e;
  --text-secondary: #666;
  --text-muted: #999;
  --bg-page: #f5f6fa;
  --bg-card: #fff;
  --border: #e8e8ef;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 30px rgba(79, 109, 245, 0.12);
  --max-width: 1240px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ===== Header ===== */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 24px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-img {
  width: auto;
  height: 36px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-item {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-item:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-item.active {
  color: var(--primary);
  font-weight: 600;
}

/* ===== Nav Dropdown ===== */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-flex;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 200;
  overflow: hidden;
}

.nav-dropdown-wrapper:hover .nav-dropdown {
  display: block;
}

.nav-dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-dropdown-item.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
}

.dropdown-arrow {
  font-size: 12px;
  margin-left: 4px;
}

@media (max-width: 768px) {
  .nav-dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    background: var(--bg-page);
  }
  .nav-dropdown-wrapper.open .nav-dropdown {
    display: block;
  }
  .nav-dropdown-wrapper > .nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

.header-right {
  flex-shrink: 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  width: 240px;
  transition: border-color 0.2s;
}

.search-box:focus-within {
  border-color: var(--primary);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: var(--text-main);
}

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

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #4f6df5 0%, #7b5cf5 100%);
  padding: 56px 24px;
  text-align: center;
}

#heroBannerArea {
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Hero Banner Background (只换背景，不动内容) ===== */
.hero-banner-bg {
  background-size: cover !important;
  background-position: center !important;
  transition: background-image 0.8s ease-in-out;
}
.hero-banner-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.hero-banner-dot.active { background: #fff; width: 24px; border-radius: 4px; }

.hero-search-wrap {
  display: flex; justify-content: center;
  padding: 0 24px; margin-top: 20px; position: relative; z-index: 2;
}
.hero-search {
  width: 100%; max-width: 560px; background: #fff; border-radius: 28px;
  padding: 10px 20px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15); transition: box-shadow 0.3s;
}
.hero-search:focus-within { box-shadow: 0 4px 24px rgba(79,109,245,0.35); }
.hero-search .search-icon { color: #999; flex-shrink: 0; width: 18px; height: 18px; }
.hero-search input { flex: 1; border: none; outline: none; font-size: 14px; color: #333; background: transparent; padding: 4px 0; }
.hero-search input::placeholder { color: #aaa; }

.hero .hot-searches { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; position: relative; z-index: 2; }
.hero .hot-label { color: rgba(255,255,255,0.85); font-size: 13px; white-space: nowrap; display: flex; align-items: center; }
.hero .hot-tag { color: rgba(255,255,255,0.9); font-size: 12px; padding: 3px 12px; border-radius: 20px; background: rgba(255,255,255,0.15); text-decoration: none; transition: background 0.2s; }
.hero .hot-tag:hover { background: rgba(255,255,255,0.3); }

@media (max-width: 768px) {
  .hero-banner-bg { padding: 32px 16px !important; }
  .hero-search-wrap { margin-top: 16px; }
  .hero-search { max-width: 100%; border-radius: 22px; padding: 8px 16px; }
  .hero .hot-searches { gap: 6px; margin-top: 12px; }
  .hero .hot-tag { font-size: 11px; padding: 2px 10px; }
  .hero-banner-dots { bottom: 10px; gap: 6px; }
}
@media (max-width: 480px) {
  .hero-search-wrap { margin-top: 12px; }
  .hero-search { border-radius: 18px; padding: 7px 14px; }
  .hero .hot-tag { font-size: 10px; padding: 2px 8px; }
  .hero-banner-dots { bottom: 6px; }
  .hero-banner-dot { width: 6px; height: 6px; }
  .hero-banner-dot.active { width: 18px; }
}


/* ===== Breadcrumb (SSR) ===== */
.breadcrumb {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--text-secondary); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 4px; }

/* ===== Detail Article (SSR) ===== */
.detail-article { margin-bottom: 24px; }
.detail-article .detail-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.4;
}

.meta-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.meta-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
}

.detail-intro {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--bg-page);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}
.detail-intro p { margin: 0; }

.detail-image {
  margin-bottom: 24px;
}
.detail-image img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
}

/* ===== Not Found (SSR) ===== */
.not-found {
  text-align: center;
  padding: 60px 24px;
}
.not-found h2 {
  font-size: 24px;
  color: var(--text-main);
  margin-bottom: 12px;
}
.not-found p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.not-found a {
  display: inline-block;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
}

/* ===== Pan Buttons (SSR) ===== */
.pan-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.pan-buttons .pan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.pan-buttons .pan-btn:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.pan-result {
  margin-top: 4px;
}

/* ===== Section Title ===== */
.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

/* ===== Card has thumbnail ===== */
.card-thumb.has-thumb { padding: 0; }
.card-thumb.has-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.card:hover .card-thumb.has-thumb img { transform: scale(1.05); }

/* ===== Announcement Bar ===== */
.site-announcement {
  background: linear-gradient(90deg, #4f6df5, #7b5cf5);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 8px 0;
}
.site-announcement a { color: #fff; text-decoration: underline; }
.site-announcement .announcement-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}
.announcement-close {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.announcement-close:hover { color: #fff; }

/* ===== Homepage Banner ===== */
.home-banner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.banner-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 200px;
}
.banner-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: none;
}
.banner-slide:first-child { display: block; }
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
  display: flex;
  align-items: center;
}
.banner-content { padding: 0 40px; color: #fff; }
.banner-content h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.banner-content p { font-size: 14px; opacity: 0.9; margin-bottom: 12px; }
.banner-btn {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  transition: background 0.2s;
}
.banner-btn:hover { background: rgba(255,255,255,0.3); }
.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s;
}
.banner-dot.active { background: #fff; }

/* ===== Hot Searches ===== */
.hot-searches {
  margin-top: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.hot-searches .hot-label { font-size: 13px; color: rgba(255,255,255,0.7); }
.hot-tag {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  transition: background 0.2s;
}
.hot-tag:hover { background: rgba(255,255,255,0.3); }

/* ===== Footer Links ===== */
.footer-links {
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.footer-links a { color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-link-sep { color: var(--text-muted); margin: 0 4px; }
.icp-number { font-size: 12px; color: var(--text-muted); }
.icp-number a { color: var(--text-muted); }

/* ===== Hamburger ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 22px; height: 2px; background: var(--text-main);
  border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-card); flex-direction: column; padding: 12px; border-bottom: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
  .main-nav.open { display: flex; }
}

/* ===== Filter Bar ===== */
.filter-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px 0;
}
.filter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-tag {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tag:hover { border-color: var(--primary); color: var(--primary); }
.filter-tag.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.result-count {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ===== Main Content ===== */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 40px;
}

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

/* ===== Card ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--bg-page);
  position: relative;
}
.card-thumb img,
.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.card:hover .card-thumb img,
.card:hover .card-thumb-img { transform: scale(1.05); }
.card-gradient {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 600;
}
.card-body {
  padding: 16px;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-tag {
  font-size: 11px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 10px;
  font-weight: 500;
}
.card-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== Skeleton Loading ===== */
.skeleton { pointer-events: none; }
.skeleton-box {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}
.skeleton-line {
  height: 14px;
  margin-bottom: 8px;
  border-radius: 4px;
}
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w100 { width: 100%; }
.skeleton-line.w50 { width: 50%; }
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Empty State ===== */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px;
  text-align: center;
}
.empty-icon {
  width: 80px; height: 80px;
  margin-bottom: 16px;
  opacity: 0.4;
}
.empty-state p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 0 40px;
}
.page-btn {
  min-width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0 10px;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}
.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-left { flex: 1; min-width: 240px; }
.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}
.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.footer-right {
  text-align: right;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-right { text-align: center; }
  .filter-bar { padding: 12px 16px 0; }
  .main-content { padding: 16px 16px 32px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
  .card-thumb { height: 150px; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .header-inner { gap: 16px; padding: 0 16px; }
  .hero-title { font-size: 24px; }
  .hero-subtitle { font-size: 13px; }
}

/* ===== Detail Page ===== */
.detail-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 0;
}
.detail-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.detail-breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.detail-breadcrumb a:hover { color: var(--primary); }
.detail-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

/* Detail Loading */
.detail-loading { padding: 10px 0; }

/* Info Card (Sidebar) */
.info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.info-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}
.info-label {
  color: var(--text-secondary);
  flex-shrink: 0;
}
.info-value {
  color: var(--text-main);
  font-weight: 500;
}
.info-card-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.info-card-actions .action-btn,
.info-card-actions button,
.info-card-actions a[role="button"],
.info-card-actions .btn-download,
.info-card-actions [class*="btn"]:not(.pan-btn) {
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  display: block;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
}
.info-card-actions .action-btn:hover,
.info-card-actions button:hover,
.info-card-actions a[role="button"]:hover,
.info-card-actions .btn-download:hover,
.info-card-actions [class*="btn"]:not(.pan-btn):hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.info-card-actions p { margin: 0; }

/* Pan Buttons (SSR) */
.pan-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pan-btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s, transform 0.1s;
  display: block;
  text-decoration: none;
}
.pan-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* Pan Result */
.pan-result { margin-top: 12px; }
.pan-result .pan-link-item {
  background: var(--bg-page);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 8px;
}
.pan-result .pan-link-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}
.pan-result .pan-link-url {
  font-size: 13px;
  color: var(--primary);
  word-break: break-all;
}
.pan-result .pan-pwd {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.pan-result .pan-copy-btn {
  margin-top: 6px;
  padding: 4px 14px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  color: var(--text-secondary);
}

/* Not Found */
.not-found {
  text-align: center;
  padding: 60px 24px;
}
.not-found h2 {
  font-size: 22px; color: var(--text-main); margin-bottom: 8px;
}
.not-found p {
  color: var(--text-muted); margin-bottom: 20px;
}
.not-found a {
  display: inline-block;
  padding: 10px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

/* Detail Sidebar */
.detail-sidebar { width: 100%; }

/* ===== Detail Article (SSR content) ===== */
.detail-article { display: flex; flex-direction: column; gap: 16px; }
.detail-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin: 0;
}
.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.meta-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}
.detail-intro {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}
.detail-intro p { margin: 0; }

/* Detail Image */
.detail-image {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-page);
}
.detail-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Detail Content
#detailContent h2,
.detail-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.3;
}
#detailContent .detail-meta-row,
.detail-content .detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
#detailContent .detail-meta-tag,
.detail-content .detail-meta-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 12px;
}*/
#detailContent h2,
.detail-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.3;
}
#detailContent .detail-meta-row,
.detail-content .detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
#detailContent .detail-meta-tag,
.detail-content .detail-meta-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 12px;
}
#detailContent .detail-body,
.detail-content .detail-body {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  line-height: 1.8;
  font-size: 15px;
  color: var(--text-secondary);
}
#detailContent .detail-body img,
.detail-content .detail-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 12px 0;
}

/* Related Section */
.related-section {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 0 24px 32px;
}
.related-inner { width: 100%; }
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 18px;
  background: var(--primary);
  border-radius: 2px;
}

@media (min-width: 768px) {
  .detail-layout {
    padding-top: 32px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
  }
  .detail-main { flex: 1; min-width: 0; }
  .detail-sidebar { width: 300px; flex-shrink: 0; }
}

@media (max-width: 767px) {
  .detail-layout { padding: 16px 16px 0; }
  .related-section { padding: 0 16px 24px; }
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast-show {
  opacity: 1;
  transform: translateX(0);
}
.toast-info { background: rgba(79, 109, 245, 0.9); }
.toast-success { background: rgba(34, 197, 94, 0.9); }
.toast-error { background: rgba(239, 68, 68, 0.9); }
