/**
 * YanPro - 现代香烟评测主题
 * Theme Version: 2.0.0
 * Design Style: 轻奢商务 | 数据可视化 | 电商式布局
 */

/* ============================================
   CSS 变量定义系统
   ============================================ */
:root {
  /* 色彩系统 */
  --color-primary: #2C3E50;
  --color-primary-light: #34495E;
  --color-primary-dark: #1A252F;
  --color-accent: #C0392B;
  --color-accent-light: #E74C3C;
  --color-gold: #D4AF37;
  --color-gold-light: #F4E5A3;
  
  /* 背景与文字 */
  --bg-primary: #F8F9FA;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #ECF0F1;
  --text-primary: #2C3E50;
  --text-secondary: #7F8C8D;
  --text-muted: #95A5A6;
  --text-inverse: #FFFFFF;
  
  /* 价格颜色 */
  --price-color: #C0392B;
  --price-bg: #FDEDEC;
  
  /* 边框与阴影 */
  --border-color: #E0E0E0;
  --border-light: #ECF0F1;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.15);
  
  /* 间距系统 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* 过渡动画 */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* 字号 */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-4xl: 32px;
  
  /* 字重 */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
}

/* ============================================
   基础重置与排版
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body.single,
body.page {
  background-color: var(--bg-secondary);
}

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

a:hover {
  color: var(--color-accent-light);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: var(--font-semibold);
  line-height: 1.3;
  color: var(--text-primary);
}

/* ============================================
   布局容器
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================
   页面包装器与两栏布局
   ============================================ */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 主体内容区域容器 - 实现两栏布局 */
body:not(.single):not(.page) .page-wrapper .main-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-lg);
  gap: var(--space-xl);
}

/* 主要内容区域 */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 0;
}

/* 侧边栏 */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

/* 响应式布局 */
@media (max-width: 992px) {
  body:not(.single):not(.page) .page-wrapper .main-wrapper {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    order: 2;
  }
}

/* ============================================
   头部导航区域
   ============================================ */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  max-width: 1280px;
  margin: 0 auto;
}

.site-logo {
  font-family: "Noto Serif SC", serif;
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-primary);
  letter-spacing: 2px;
}

.site-logo a {
  color: inherit;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.site-nav a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary);
  background: var(--bg-tertiary);
}

/* ============================================
   页面标题区域
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--text-inverse);
  padding: var(--space-xxl) var(--space-lg);
  text-align: center;
}

.page-hero__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-sm);
  color: var(--text-inverse);
}

.page-hero__subtitle {
  font-size: var(--text-base);
  opacity: 0.9;
}

/* ============================================
   面包屑导航
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  max-width: 1280px;
  margin: 0 auto;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

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

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

.breadcrumb__separator {
  color: var(--text-muted);
}

/* ============================================
   文章列表网格布局
   ============================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
  width: 100%;
}

.article-grid--list {
  grid-template-columns: 1fr;
}

/* ============================================
   产品卡片组件 (product-card)
   ============================================ */
.product-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.product-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-card__type {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--color-primary);
  color: var(--text-inverse);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
  font-weight: var(--font-medium);
}

.product-card__type--gold {
  background: var(--color-gold);
  color: var(--color-primary);
}

.product-card__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__title a {
  color: var(--text-primary);
}

.product-card__title a:hover {
  color: var(--color-accent);
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.product-card__price--retail {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--price-color);
}

.product-card__price--unit {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.product-card__price--wholesale {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.product-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.product-card__spec {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.product-card__spec i {
  font-size: 10px;
  color: var(--text-muted);
}

.product-card__rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
}

.product-card__rating-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.product-card__rating-value {
  font-weight: var(--font-semibold);
  color: var(--color-gold);
}

.product-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-primary);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.product-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* ============================================
   普通文章列表 (post-multi)
   ============================================ */
.article-item {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.article-item:hover {
  box-shadow: var(--shadow-md);
}

.article-item__header {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.article-item__thumbnail {
  flex-shrink: 0;
  height: 150px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-tertiary);
}

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

.article-item__content {
  flex: 1;
  min-width: 0;
  margin-top: 20px;
}

.article-item__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

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

.article-item__title a:hover {
  color: var(--color-accent);
}

.article-item__excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.article-item__meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============================================
   置顶文章 (post-istop)
   ============================================ */
.article-item--pinned {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--bg-secondary) 100%);
  border: 2px solid var(--color-gold);
}

.article-item--pinned::before {
  content: "置顶推荐";
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-primary);
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

/* ============================================
   产品详情页 (post-single-yan)
   ============================================ */
.product-detail {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}
.post-date{
    display: block;
    font-size: 14px;
    font-weight: normal;
    color: #7F8C8D;
    margin-top: 8px;
    float: right;
}

/* 产品头部概览 */
.product-hero {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: var(--space-xxl);
  margin: var(--space-xxl) 0;
}

.product-gallery {
  position: relative;
}

.product-gallery__main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-tertiary);
  aspect-ratio: 1;
}

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

.product-gallery__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--color-accent);
  color: var(--text-inverse);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: var(--font-semibold);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.product-info__title {
  font-size: var(--text-3xl);
  line-height: 1.2;
}

.product-info__title .post-date {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* 价格面板 */
.price-panel {
  background: var(--price-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border-left: 4px solid var(--price-color);
}

.price-panel__title {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.price-matrix {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.price-row--main {
  background: var(--price-color);
  color: var(--text-inverse);
}

.price-row--main .price-label {
  color: rgba(255, 255, 255, 0.9);
}

.price-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.price-amount {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
}

.price-amount small {
  font-size: var(--text-sm);
  font-weight: var(--font-normal);
  opacity: 0.9;
}

.price-amount .unknown {
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  opacity: 0.7;
}

/* 快速参数 */
.quick-params {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.quick-params__title {
  font-size: var(--text-base);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.quick-params__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.quick-params__item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.quick-params__item .param-name {
  color: var(--text-muted);
}

.quick-params__item .param-value {
  font-weight: var(--font-medium);
}

/* 理化指标条 */
.specs-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xxl);
}

.specs-bar__item {
  text-align: center;
  color: var(--text-inverse);
}

.specs-bar__value {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  display: block;
  margin-bottom: var(--space-xs);
}

.specs-bar__label {
  font-size: var(--text-sm);
  opacity: 0.8;
}

/* 详细参数表格 */
.specs-table-wrapper {
  margin-bottom: var(--space-xxl);
  overflow-x: auto;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.specs-table th,
.specs-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.specs-table th {
  background: var(--bg-primary);
  font-weight: var(--font-semibold);
  width: 120px;
  color: var(--text-secondary);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:hover td {
  background: var(--bg-primary);
}

.specs-table .unknown {
  color: var(--text-muted);
  font-style: italic;
}

/* 评分面板 */
.rating-panel {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-xl);
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xxl);
}

.rating-overview {
  text-align: center;
}

.rating-circle {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-md);
}

.rating-circle svg {
  transform: rotate(-90deg);
}

.rating-circle__bg {
  fill: none;
  stroke: var(--border-light);
  stroke-width: 12;
}

.rating-circle__fill {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 396;
  stroke-dashoffset: 396;
  transition: stroke-dashoffset 1s ease;
}

.rating-circle__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.rating-circle__value {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--color-gold);
  display: block;
}

.rating-circle__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.rating-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
}

.rating-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.rating-item__header {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
}

.rating-item__name {
  color: var(--text-secondary);
}

.rating-item__score {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.rating-item__score.gold {
  color: var(--color-gold);
}

.rating-bar {
  height: 8px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.rating-bar__fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transition: width 0.8s ease;
}

.rating-bar__fill.gold {
  background: var(--color-gold);
}

/* 免责声明 */
.disclaimer {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

/* 上下篇导航 */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-xl);
}

.post-nav__item {
  flex: 1;
  max-width: 45%;
}

.post-nav__item--next {
  text-align: right;
}

.post-nav__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.post-nav__link {
  font-weight: var(--font-medium);
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-nav__link:hover {
  color: var(--color-accent);
}

/* ============================================
   相关文章模块
   ============================================ */
.related-section {
  margin-bottom: var(--space-xl);
}

.related-section__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-accent);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.related-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.related-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.related-card__info {
  padding: var(--space-md);
}

.related-card__title {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card__title a {
  color: var(--text-primary);
}

.related-card__title a:hover {
  color: var(--color-accent);
}

.related-card__price {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--price-color);
}

/* ============================================
   文章内容样式
   ============================================ */
.post-content {
  margin-bottom: var(--space-xl);
}

.post-content h2 {
  font-size: var(--text-2xl);
  margin: var(--space-xl) 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-light);
}

.post-content h3 {
  font-size: var(--text-xl);
  margin: var(--space-lg) 0 var(--space-md);
}

.post-content p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.post-content img {
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
}

.post-content ul,
.post-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.post-content li {
  margin-bottom: var(--space-sm);
  list-style: disc;
}

.post-content blockquote {
  background: var(--bg-primary);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ============================================
   标签与作者信息
   ============================================ */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.post-tags i {
  color: var(--text-muted);
}

.post-tags a {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.post-tags a:hover {
  background: var(--color-accent);
  color: var(--text-inverse);
}

/* ============================================
   评论区域
   ============================================ */
.comments-area {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
}

.comments-area__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.comment-list {
  margin-bottom: var(--space-xl);
}

.comment-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-light);
}

.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-semibold);
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.comment-author {
  font-weight: var(--font-semibold);
  color: var(--color-primary);
}

.comment-date {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.comment-content {
  color: var(--text-secondary);
  line-height: 1.7;
}

.comment-form {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.comment-form__title {
  font-size: var(--text-base);
  margin-bottom: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-accent);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-submit:hover {
  background: var(--color-accent-light);
}

/* ============================================
   分页导航
   ============================================ */
.page-nav {
  /*display: flex;*/
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl) 0;
}

.page-nav a,
.page-nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.page-nav a {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.page-nav a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.page-nav .current {
  background: var(--color-accent);
  color: var(--text-inverse);
  border-color: var(--color-accent);
}

.page-nav .disabled {
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border-color: transparent;
}

/* ============================================
   侧边栏
   ============================================ */
.sidebar__widget {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-light);
}

.sidebar__widget:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-accent);
}

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.category-list a:hover {
  color: var(--color-accent);
}

.category-list .count {
  background: var(--bg-tertiary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tag-cloud a {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tag-cloud a:hover {
  background: var(--color-accent);
  color: var(--text-inverse);
}

/* ============================================
   页脚
   ============================================ */
.site-footer {
  background: var(--color-primary);
  color: var(--text-inverse);
  padding: var(--space-xxl) var(--space-lg);
  margin-top: auto;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
}

.footer-links a:hover {
  color: var(--text-inverse);
}

.footer-copyright {
  font-size: var(--text-sm);
  opacity: 0.7;
}

/* ============================================
   空状态
   ============================================ */
.empty-state {
  text-align: center;
  padding: var(--space-xxl);
  color: var(--text-muted);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: var(--space-md);
  display: block;
}

.empty-state h3 {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
  .product-hero {
    grid-template-columns: 350px 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
    body:not(.single):not(.page) .page-wrapper .main-wrapper{
    display: unset;    
    }
  .product-hero {
    grid-template-columns: 1fr;
  }
  
  .product-gallery__main {
    aspect-ratio: 4 / 3;
  }
  
  .rating-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .rating-circle {
    margin: 0 auto var(--space-lg);
  }
  
  .specs-bar {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .quick-params__list {
    grid-template-columns: 1fr;
  }
  
  .article-grid {
    grid-template-columns: 1fr;
  }
  
  .article-item__header {
    flex-direction: column;
  }
  
  .article-item__thumbnail {
    width: 100%;
    height: 200px;
  }
  
  .post-nav {
    flex-direction: column;
  }
  
  .post-nav__item {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --text-4xl: 24px;
    --text-3xl: 22px;
    --text-2xl: 20px;
  }
  
  .product-detail {
    padding: 0;
  }
  
  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
  
  .price-amount {
    font-size: var(--text-xl);
  }
}

/* ============================================
   动画效果
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card,
.article-item,
.related-card {
  animation: fadeInUp 0.5s ease forwards;
}

/* 打印样式 */
@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .post-nav,
  .comments-area,
  .related-section {
    display: none;
  }
  
  .product-detail {
    max-width: 100%;
    padding: 0;
  }
}
