/*
Theme Name: 升维画布 - AI漫剧工具
Theme URI: https://yourdomain.com/
Author: 野岛文化
Author URI: https://yourdomain.com/
Description: 升维画布AI漫剧工具官网主题
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shengwei-huabu
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #00D4AA;
  --primary-dark: #00B894;
  --accent: #00F5C4;
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --border-color: #2a2a2a;
  --gradient-primary: linear-gradient(135deg, #00D4AA 0%, #00F5C4 50%, #00D4AA 100%);
  --gradient-bg: linear-gradient(180deg, #0a0a0a 0%, #0d1a15 50%, #0a0a0a 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 60px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.95);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  width: 100px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--bg-dark);
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* 去除 nav 下的 ul 列表的小圆点 */
.nav ul {
    list-style: none; /* 去除列表默认样式 */
    padding: 0;       /* 去除默认内边距 */
    margin: 0;        /* 去除默认外边距 */
}

/* 去除 li 的默认样式，防止继承 */
.nav li {
    list-style: none;
    display: inline-block; /* 如果您希望菜单横向排列 */
}
.nav li a{
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav li a:hover {
  color: var(--text-primary);
}

.nav li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav li a:hover::after {
  width: 100%;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-dark);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 170, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(0, 212, 170, 0.1);
}

.btn-large {
  padding: 16px 40px;
  font-size: 17px;
  border-radius: 12px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 60px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 1200px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: 100px;
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: 72px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.hero-title-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 80px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 60px;
}

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

.hero-stat-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* Product Preview */
.product-preview {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.product-preview-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  /*box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);*/
}

.product-preview-wrapper::before {
  content: '';
  position: absolute;
  inset: -1px;
  /*background: linear-gradient(135deg, rgba(0, 212, 170, 0.3) 0%, transparent 50%, rgba(0, 245, 196, 0.3) 100%);*/
  border-radius: 17px;
  z-index: -1;
}

.product-preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* Features Section */
.features {
  padding: 120px 60px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 212, 170, 0.1);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.2) 0%, rgba(0, 212, 170, 0.05) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.feature-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Showcase Section */
.showcase {
  padding: 120px 60px;
  background: var(--gradient-bg);
}

.showcase-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.showcase-content.reverse {
  direction: rtl;
}

.showcase-content.reverse > * {
  direction: ltr;
}

.showcase-text {
  max-width: 500px;
}

.showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 212, 170, 0.1);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.showcase-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.showcase-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

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

.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-secondary);
}

.showcase-list li svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.showcase-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  /*box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);*/
}

.showcase-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Workflow Section */
.workflow {
  padding: 120px 60px;
}

.workflow-steps {
  display: flex;
  justify-content: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.workflow-step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  position: relative;
}

.workflow-step::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -40px;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.workflow-step:last-child::after {
  display: none;
}

.workflow-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.2) 0%, rgba(0, 212, 170, 0.05) 100%);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 auto 24px;
}

.workflow-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.workflow-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Pricing Section */
.pricing {
  padding: 120px 60px;
  background: var(--gradient-bg);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: '推荐';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: var(--gradient-primary);
  color: var(--bg-dark);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
}

.pricing-card:hover {
  border-color: rgba(0, 212, 170, 0.5);
}

.pricing-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.pricing-btn {
  width: 100%;
}

/* CTA Section */
.cta {
  padding: 120px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 40px;
}

/* Footer */
.footer {
  padding: 60px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  /*border-top: 1px solid var(--border-color);*/
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 auto;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 1024px) {
  .header {
    padding: 0 30px;
  }

  .hero {
    padding: 100px 30px 60px;
  }

  .hero-title {
    font-size: 48px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .showcase-content.reverse {
    direction: ltr;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-card.featured {
    transform: none;
  }

  .workflow-steps {
    flex-direction: column;
    align-items: center;
  }

  .workflow-step::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}


/* ==============================================
   列表页 + 内容页 统一样式（完全替代内联样式）
   ============================================== */

/* 通用容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* --------------------------
   列表页 archive 样式
-------------------------- */
.page-header {
  padding: 120px 60px 60px;
  text-align: center;
  position: relative;
}
.breadcrumbs {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}
.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumbs span {
  margin: 0 8px;
}
.page-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
}
.page-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.archive-list {
  padding: 40px 60px 100px;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: 0.3s;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 170, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.post-thumbnail {
  display: block;
  aspect-ratio: 16/9;
}
.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-content {
  padding: 24px;
}
.post-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.post-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}
.post-title a {
  color: var(--text-primary);
  text-decoration: none;
}
.post-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.no-posts {
  text-align: center;
  padding: 60px 0;
  color: var(--text-secondary);
}

/* 分页样式 */
.pagination {
  margin-top: 80px;
  text-align: center;
}
.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 15px;
  text-decoration: none;
  transition: 0.3s;
}
.pagination .page-numbers.current {
  background: var(--primary);
  color: #000;
  font-weight: 600;
}
.pagination .page-numbers:hover:not(.current) {
  border-color: var(--primary);
  color: var(--primary);
}
.pagination .prev, .pagination .next {
  padding: 0 16px;
  width: auto;
}

/* --------------------------
   内容页 single 样式
-------------------------- */
.single-header {
  padding: 120px 60px 40px;
  position: relative;
}
.single-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.single-meta {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.single-content {
  padding: 20px 60px 100px;
}
.single-content .container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
}
.post-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
}
.post-body {
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 16px;
}
.post-body h2 {
  font-size: 28px;
  margin: 36px 0 16px;
  font-weight: 700;
}
.post-body h3 {
  font-size: 22px;
  margin: 28px 0 12px;
  font-weight: 600;
}
.post-body p {
  margin-bottom: 1.6em;
}
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px 0;
}
.post-body a {
  color: var(--primary);
  text-decoration: underline;
}

/* 标签样式 */
.post-tags {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.post-tags a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.2);
  color: var(--primary);
  font-size: 13px;
  margin-right: 8px;
  margin-bottom: 8px;
  text-decoration: none;
}

/* 上下篇导航 */
.post-nav {
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}
.post-nav a {
  color: var(--primary);
  text-decoration: none;
}
.post-nav a:hover {
  text-decoration: underline;
}

/* 右侧边栏 */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.related-posts {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
}
.related-posts h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.related-item {
  display: flex;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 16px;
  transition: 0.3s;
}
.related-item:hover {
  opacity: 0.8;
}
.related-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-info {
  flex: 1;
}
.related-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.related-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.no-related {
  color: var(--text-muted);
  font-size: 14px;
}
/* ==============================================
   响应式适配 - 手机 / 平板
   适配：首页、列表页、内容页、导航、面包屑、分页
   ============================================== */

/* 平板宽度 1024px 以下 */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  /* 列表页 3列 → 2列 */
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* 内容页左右布局 → 上下布局 */
  .single-content .container {
    grid-template-columns: 1fr;
  }

  /* 右侧栏宽度自适应 */
  .post-sidebar {
    margin-top: 20px;
  }
}

/* 手机宽度 768px 以下 */
@media (max-width: 768px) {
  /* 头部导航适配 */
  .header {
    padding: 0 20px;
    height: 65px;
  }

  .nav {
    display: none;
  }

  .logo-text {
    font-size: 18px;
  }

  /* 面包屑居中 */
  .breadcrumbs {
    text-align: center;
    font-size: 13px;
  }

  /* 标题字号缩小 */
  .page-title,
  .single-title {
    font-size: 28px !important;
    line-height: 1.3;
  }

  .section-title {
    font-size: 26px;
  }

  /* 内容内边距统一 */
  .page-header,
  .single-header {
    padding: 100px 20px 30px;
  }

  .archive-list,
  .single-content {
    padding: 20px 20px 60px;
  }

  /* 列表页 2列 → 1列 */
  .posts-grid {
    grid-template-columns: 1fr;
  }

  /* 内容页内边距 */
  .post-main {
    padding: 25px;
  }

  /* 内容正文字号 */
  .post-body {
    font-size: 15px;
    line-height: 1.7;
  }

  .post-body h2 {
    font-size: 22px;
  }

  .post-body h3 {
    font-size: 19px;
  }

  /* 上下篇导航垂直排列 */
  .post-nav {
    flex-direction: column;
    gap: 10px;
  }

  /* 分页按钮缩小 */
  .pagination .page-numbers {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  /* 相关文章推荐 */
  .related-item {
    margin-bottom: 12px;
  }

  .related-thumb {
    width: 50px;
    height: 50px;
  }
}

/* 小屏手机 480px 以下 */
@media (max-width: 480px) {
  .header-actions .btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }
}



.breadcrumbs a{
  color: var(--primary);
}