/* page 页面专属样式 */
/* 文章主体 */
.article-section {
  padding: 40px 0;
}

.article-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

/* 文章内容区 */
.article-main {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.article-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.article-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.4;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: #999;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta-item i {
  color: #ff7d00;
}

.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.article-content h2 {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin: 30px 0 16px;
  padding-left: 12px;
  border-left: 4px solid #ff7d00;
}

.article-content h3 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 24px 0 12px;
}

.article-content p {
  margin-bottom: 16px;
  text-align: justify;
}

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

.article-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.article-content strong {
  color: #ff7d00;
  font-weight: bold;
}

.highlight-box {
  background: linear-gradient(135deg, #fff9f0, #fff4e5);
  border-left: 4px solid #ff7d00;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
}

.highlight-box p {
  margin: 0;
  color: #666;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.info-table th,
.info-table td {
  padding: 12px 16px;
  border: 1px solid #eee;
  text-align: left;
}

.info-table th {
  background: #fafafa;
  font-weight: bold;
  color: #333;
}

.info-table td {
  color: #666;
}

.tip-card {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
  display: flex;
  gap: 12px;
}

.tip-card i {
  font-size: 20px;
  color: #0ea5e9;
  flex-shrink: 0;
}

.tip-card-content {
  flex: 1;
}

.tip-card-title {
  font-weight: bold;
  color: #0369a1;
  margin-bottom: 4px;
}

.tip-card-text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* 侧边栏 */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.sidebar-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.related-article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-article-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.3s;
  cursor: pointer;
}

.related-article-item:hover {
  background: #f7f8fa;
}

.related-article-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #fff9f0, #fff4e5);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.related-article-icon i {
  font-size: 18px;
  color: #ff7d00;
}

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

.related-article-title {
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-article-desc {
  font-size: 12px;
  color: #999;
}

/* 政策详情页专属样式 */
.policy-type-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ff7d00, #ff9500);
  color: #FFF;
}

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

.policy-type-badge.type-replace {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #fff;
}

.policy-detail-section {
  margin-bottom: 36px;
}

.policy-detail-section h2 {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #ff7d00;
  display: flex;
  align-items: center;
  gap: 8px;
}

.policy-detail-section h2 i {
  font-size: 18px;
  color: #ff7d00;
}

.policy-content-box {
  background: #fafafa;
  border-radius: 10px;
  padding: 20px 24px;
  border: 1px solid #eee;
}

.policy-content-box p {
  margin: 0;
  color: #666;
  line-height: 1.8;
  font-size: 15px;
}

.policy-content-box.highlight-subtitle {
  background: linear-gradient(135deg, #fff9f0, #fff4e5);
  border-color: #ffe4c4;
}

.policy-content-box.highlight-subtitle p {
  color: #333;
  font-weight: 500;
}

.policy-process-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.process-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.process-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #ff7d00, #ff9326);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
}

.process-text {
  color: #666;
  line-height: 1.6;
  padding-top: 4px;
}

.policy-materials-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.material-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
}

.material-item i {
  color: #22c55e;
  font-size: 16px;
}

.policy-attention-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.attention-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #666;
  line-height: 1.6;
}

.attention-item i {
  color: #f59e0b;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.attention-section .policy-content-box {
  background: #fffbeb;
  border-color: #fef3c7;
}

.policy-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.policy-category-list li {
  margin-bottom: 8px;
}

.policy-category-list li:last-child {
  margin-bottom: 0;
}

.policy-category-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #666;
  transition: all 0.3s;
}

.policy-category-list a:hover {
  background: #f7f8fa;
  color: #333;
}

.policy-category-list a.active {
  background: linear-gradient(135deg, #fff9f0, #fff4e5);
  color: #ff7d00;
  font-weight: 500;
}

.policy-category-list a i {
  font-size: 16px;
}

.policy-time-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.time-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}

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

.time-label {
  color: #999;
  font-size: 14px;
}

.time-value {
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

.article-meta-item a {
  color: #ff7d00;
}

.article-meta-item a:hover {
  text-decoration: underline;
}

.policy-type-badge.type-regional {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #fff;
}

.region-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.region-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #eee;
}

.region-label {
  color: #999;
  font-size: 14px;
}

.region-value {
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

.subsidy-amount-text {
  font-size: 28px;
  font-weight: bold;
  color: #ff7d00;
  text-align: center;
}

.policy-type-badge.type-manufacturer {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #fff;
}

.car-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.car-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #eee;
}

.car-info-label {
  color: #999;
  font-size: 14px;
}

.car-info-value {
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

.subsidy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.subsidy-item {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #eee;
  text-align: center;
}

.subsidy-label {
  display: block;
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
}

.subsidy-value {
  font-size: 20px;
  font-weight: bold;
  color: #ff7d00;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #666;
  line-height: 1.6;
}

.benefit-item i {
  color: #22c55e;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 相关文章 */
.related-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 6%);
}

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

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

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

.related-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;
}

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

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

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

.related-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;
}

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

/* 响应式 */
@media (max-width: 768px) {
  .article-container {
    grid-template-columns: 1fr;
  }

  .article-main {
    padding: 24px;
  }

  .article-title {
    font-size: 22px;
  }

  .article-content h2 {
    font-size: 20px;
  }

  .article-content h3 {
    font-size: 17px;
  }

  .nav-menu {
    gap: 15px;
  }

  .policy-content-box {
    padding: 16px;
  }

  .policy-detail-section {
    margin-bottom: 28px;
  }
}