/* 购车必读知识列表页样式 */

/* Hero区域 */
.hero.small {
  padding: 40px 0;
  background: #fff;
  text-align: left;
  color: #333;
}

.hero.small h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.hero.small p {
  font-size: 16px;
  margin-bottom: 0;
  opacity: 0.7;
}

/* 主内容区域 */
.main-content {
  display: flex;
  gap: 24px;
  margin-top: 30px;
  padding-bottom: 50px;
}

/* 文章列表 */
.article-list {
  flex: 1;
}

.article-card {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.article-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.article-card a {
  display: flex;
  gap: 20px;
  padding:20px;
}

.article-card.hidden {
  display: none;
}

.article-image {
  width: 200px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.article-content {
  flex: 1;
  min-width: 0;
}

.article-category {
  display: inline-block;
  padding: 4px 12px;
  background: #fff8f0;
  color: #ff7d00;
  font-size: 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.article-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-title:hover {
  color: #ff7d00;
}

.article-summary {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  gap: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #999;
}

.meta-item i {
  font-size: 12px;
}



/* 侧边栏 */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  height: fit-content;
}

.sidebar-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sidebar-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-title i {
  color: #ff7d00;
}

/* 搜索框 */
.search-box {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid #eee;
  border-radius: 8px;
  font-size: 14px;
  background: #f9f9f9;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #ff7d00;
  background: #fff;
}

.search-box::before {
  content: '\f002';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 14px;
}

/* 分类列表 */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-item {
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: all 0.3s ease;
  margin-bottom: 4px;
}

.category-item:last-child {
  margin-bottom: 0;
}

.category-item:hover {
  background: #fff8f0;
  color: #ff7d00;
}

.category-item.active {
  background: linear-gradient(135deg, #ff7d00, #ff9500);
  color: #fff;
}

.category-item a {
  display: block;
  padding: 10px 12px;
}

/* 热门文章 */
.hot-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hot-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.hot-rank {
  width: 24px;
  height: 24px;
  background: #f0f0f0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #999;
  flex-shrink: 0;
}

.hot-item:first-child .hot-rank {
  background: #ff4d4f;
  color: #fff;
}

.hot-item:nth-child(2) .hot-rank {
  background: #ff7d00;
  color: #fff;
}

.hot-item:nth-child(3) .hot-rank {
  background: #ffc53d;
  color: #fff;
}

.hot-item a {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.hot-item a:hover {
  color: #ff7d00;
}

/* 统计信息 */
.stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stat-item {
  flex: 1;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #ff7d00;
}

.stat-label {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero.small {
    padding: 20px 0;
    background: #fff;
    text-align: left;
    color: #333;
  }

  .hero.small h1 {
    font-size: 22px;
    margin-bottom: 6px;
    line-height: 1.3;
  }

  .hero.small p {
    font-size: 14px;
    margin-bottom: 0;
    opacity: 0.7;
  }

  .main-content {
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    padding-bottom: 30px;
  }

  .sidebar {
    width: 100%;
    position: static;
    margin-top: 16px;
  }

  .article-card {
    flex-direction: column;
    margin-bottom: 12px;
    border-radius: 8px;
  }

  .article-card a {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .article-image {
    width: 100%;
    height: 160px;
    border-radius: 8px 8px 0 0;
  }

  .article-content {
    padding: 12px 16px;
    flex: none;
  }

  .article-category {
    font-size: 11px;
    padding: 2px 8px;
    margin-bottom: 8px;
  }

  .article-title {
    font-size: 15px;
    margin-bottom: 6px;
    line-height: 1.4;
  }

  .article-summary {
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.5;
  }

  .article-meta {
    gap: 12px;
  }

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

  .sidebar-section {
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 8px;
  }

  .sidebar-title {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .search-input {
    padding: 10px 12px 10px 36px;
    font-size: 13px;
  }

  .category-item {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .category-item a {
    padding: 8px 10px;
  }

  .hot-item {
    padding: 8px 0;
    gap: 8px;
  }

  .hot-rank {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .hot-item a {
    font-size: 12px;
  }

  .pagination {
    gap: 4px;
    margin-top: 16px;
  }

  .page-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .page-btn.prev,
  .page-btn.next {
    padding: 0 8px;
  }

  .policy-card {
    border-radius: 8px;
  }

  .policy-header {
    padding: 12px 16px;
  }

  .policy-type {
    padding: 4px 12px;
    font-size: 12px;
  }

  .policy-time {
    font-size: 12px;
  }

  .policy-body {
    padding: 14px 16px;
  }

  .policy-item {
    margin-bottom: 12px;
  }

  .policy-item p {
    font-size: 13px;
  }

  .policy-footer {
    padding: 12px 16px;
  }

  .policy-detail-btn {
    padding: 6px 16px;
    font-size: 12px;
  }

  .policy-modal-content {
    width: 95%;
    padding: 20px;
    max-height: 85vh;
  }
}

/* ========== 政策卡片样式 ========== */

/* 政策卡片 */
.policy-card {
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.policy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fff8f0, #fff);
  border-bottom: 1px solid #f0f0f0;
}

.policy-type {
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
}

.policy-type.type-scrap {
  background: linear-gradient(135deg, #ff7d00, #ff9500);
  color: #fff;
}

.policy-type.type-replace {
  background: linear-gradient(135deg, #52c41a, #73d13d);
  color: #fff;
}

.policy-time {
  font-size: 13px;
  color: #666;
}

.policy-time i {
  margin-right: 4px;
  color: #999;
}

.policy-body {
  padding: 20px;
  position: relative;
}

.policy-item {
  margin-bottom: 16px;
}

.policy-item:last-child {
  margin-bottom: 0;
}

.policy-item label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}

.policy-item p {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.policy-item .subsidy-text {
  color: #ff4d4f;
  font-weight: 600;
}

.policy-footer {
  padding: 16px 20px;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
}

.policy-detail-btn {
  padding: 8px 10px;
  color: #ff7d00;
  border: 1px solid #ff7d00;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.policy-detail-btn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #ff7d00, #ff9500);
}

.policy-detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 125, 0, 0.3);
}

.policy-detail-btn i {
  margin-right: 4px;
}

/* 政策详情弹窗 */
.policy-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.policy-modal.active {
  display: flex;
}

.policy-modal-content {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
}

.policy-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.policy-modal-close:hover {
  background: #e0e0e0;
  color: #333;
}

/* ========== 地补政策卡片样式 ========== */

.regional-card .policy-header {
  background: linear-gradient(135deg, #e8f5e9, #fff);
}

.region-info {
  display: flex;
  align-items: center;
}

.region-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #52c41a, #73d13d);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
}

.region-badge i {
  font-size: 12px;
}

.subsidy-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 12px;
  position: absolute;
  right: 0px;
  top: 0px;
}

.subsidy-label {
  font-size: 13px;
  color: #666;
}

.subsidy-amount {
  font-size: 28px;
  font-weight: 700;
  color: #ff4d4f;
}

/* ========== 厂补政策卡片样式 ========== */

.manufacturer-card .policy-header {
  background: linear-gradient(135deg, #e3f2fd, #fff);
}

.car-info {
  display: flex;
  gap: 4px;
  align-items: center;
}

.car-brand {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #1890ff, #096dd9);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
}

.car-model {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.discount-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.discount-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background: #f5f5f5;
  border-radius: 8px;
  text-align: center;
}


.discount-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.discount-value {
  font-size: 16px;
  font-weight: 700;
  color: #ff4d4f;
}

.main-discount .discount-value {
  font-size: 20px;
}

.warranty-item label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1890ff;
}

.warranty-item label i {
  font-size: 14px;
}

.empty-content {
  display: block;
  padding: 100px 0;
  text-align: center;
  color: #999;
  width: 100%;
}

@media (max-width: 768px) {
  .discount-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}