/* ================================
   CSS Reset & Base Styles
   ================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  min-width: 320px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: #1a73e8;
}

ul,
ol {
  list-style: none;
}

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

button,
input,
select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* ================================
   Container
   ================================ */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 1340px) {
  .container {
    padding: 0;
  }
}

/* ================================
   Header Styles
   ================================ */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #1a73e8;
  letter-spacing: 1px;
}

.search-box {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 25px;
  padding: 8px 15px;
  width: 100%;
  max-width: 400px;
  transition: box-shadow 0.3s ease;
}

.search-box:focus-within {
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.3);
  background: #fff;
}

.search-box input {
  flex: 1;
  background: transparent;
  padding: 5px 10px;
  font-size: 14px;
}

.search-box input::placeholder {
  color: #999;
}

.search-btn {
  background: #1a73e8;
  color: #fff;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.search-btn:hover {
  background: #1557b0;
}

/* Navigation */
.nav {
  background: #1a73e8;
}

.nav-list {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 20px;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-item a {
  display: block;
  padding: 14px 20px;
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.nav-item a:hover,
.nav-item.active a {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
}

/* ================================
   Main Content
   ================================ */
.main {
  padding: 0px 0;
  /* min-height: calc(100vh - 300px); */
}

/* ================================
   Carousel
   ================================ */
.carousel-section {
  margin-bottom: 30px;
  margin-top: 10px;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.carousel-caption h2 {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0 0 12px 0;
}

.carousel-tags {
  display: flex;
  gap: 16px;
  align-items: center;
}

.carousel-category {
  display: inline-block;
  padding: 4px 12px;
  background-color: #ff6b35;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.carousel-time {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 400;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 移动端隐藏轮播图左右切换按钮 */
@media (max-width: 767px) {
  .carousel-btn {
    display: none;
  }
}

.carousel-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel-indicators span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicators span.active {
  background: #fff;
  transform: scale(1.2);
}

/* ================================
   News Section (三栏布局)
   ================================ */
.news-section {
  margin-bottom: 30px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 320px;
  gap: 25px;
}

.news-block {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1a73e8;
}

.block-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-icon {
  width: 5px;
  height: 20px;
  border-radius: 4px;
}

.industry-icon {
  background: #ff6b35;
}
.newcar-icon {
  background: #1a73e8;
}
.hot-icon {
  background: #e53935;
}
.review-icon {
  background: #7c4dff;
}
.guide-icon {
  background: #00bcd4;
}
.energy-icon {
  background: #4caf50;
}
.gallery-icon {
  background: #ff9800;
}
.people-icon {
  background: #9c27b0;
}
.knowledge-icon {
  background: #607d8b;
}
.policy-icon {
  background: #795548;
}
.related-icon {
  background: #3f51b5;
}
.category-icon {
  background: #009688;
}
.tag-icon {
  background: #f44336;
}

.more-link {
  font-size: 13px;
  color: #666;
  transition: color 0.3s ease;
}

.more-link:hover {
  color: #1a73e8;
}

/* News Item */
.news-item.featured {
  margin-bottom: 15px;
}

.news-item.featured a {
  display: block;
}

.news-item.featured img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

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

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

.tag {
  padding: 0px 8px;
  border-radius: 3px;
  font-size: 12px;
  color: #fff;
}

.tag-industry {
  background: #ff6b35;
}
.tag-newcar {
  background: #1a73e8;
}
.tag-review {
  background: #7c4dff;
}
.tag-guide {
  background: #00bcd4;
}
.tag-newenergy {
  background: #4caf50;
}
.tag-knowledge {
  background: #607d8b;
}
.tag-policy {
  background: #795548;
}

.tag-gallery {
  background: #ff5722;
}

.news-text-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}

.news-text-list li:last-child {
  border-bottom: none;
}

.news-text-list a {
  font-size: 16px;
  color: #333;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-text-list a:hover {
  color: #1a73e8;
}

/* Hot Ranking */
.hot-ranking {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

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

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

.rank-num {
  min-width: 24px;
  height: 24px;
  background: #ddd;
  color: #666;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-num.top3 {
  background: linear-gradient(135deg, #ff6b35, #e53935);
  color: #fff;
}

.rank-content {
  display: flex;
  gap: 10px;
  flex: 1;
}

.rank-content img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

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

.rank-info h4 {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
}

.rank-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #999;
}

/* ================================
   Content Section
   ================================ */
.content-section {
  margin-bottom: 30px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 25px;
}

.content-main {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.content-block {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Review Section */
.review-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.review-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #f8f9fa;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.review-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.review-info {
  padding: 15px;
}

.review-info h4 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.review-meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #999;
}

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

.review-item {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.review-item:hover {
  background: #eef3ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.review-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

.review-item-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-item-info h5 {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}

.review-item-info .time {
  font-size: 12px;
  color: #999;
}

/* Guide Section */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #f8f9fa;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.guide-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.guide-info {
  padding: 15px;
}

.guide-info h4 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}

.guide-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-info .time {
  font-size: 12px;
  color: #999;
}

/* New Energy Section */
.new-energy-block {
  background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
}

.energy-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.energy-card.main {
  display: block;
}

.energy-img {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.energy-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.energy-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #4caf50;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.energy-info {
  padding: 15px 0;
}

.energy-info h4 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
}

.energy-info p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
}

.energy-tags {
  display: flex;
  gap: 8px;
}

.energy-tags .tag {
  background: #e8f5e9;
  color: #4caf50;
}

.energy-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.energy-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.energy-item:hover {
  transform: translateX(5px);
}

.energy-item img {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.energy-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.energy-item-info h5 {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
  text-align: justify;
}

.energy-highlights {
  display: flex;
  gap: 10px;
}

.energy-highlights span {
  font-size: 12px;
  color: #4caf50;
  background: #e8f5e9;
  padding: 3px 10px;
  border-radius: 15px;
}

/* ================================
   Sidebar
   ================================ */
.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-item {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 14px;
  text-align: center;
  line-height: 1.2;
}

/* People List */
.people-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.people-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.people-item:hover {
  background: #eef3ff;
}

.people-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.people-info {
  flex: 1;
}

.people-info h5 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.people-info p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Knowledge List */
.knowledge-list li {
  padding: 12px 0;
  border-bottom: 1px dashed #eee;
}

.knowledge-list li:last-child {
  border-bottom: none;
}

.knowledge-list a {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: #333;
}

.knowledge-image {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.knowledge-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.knowledge-title {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.knowledge-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #999;
}

.knowledge-category {
  background-color: #e8f0fe;
  color: #1a73e8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  margin-right: 4px;
  white-space: nowrap;
}

.knowledge-time,
.knowledge-views {
  display: inline-block;
}

.knowledge-list a:hover .knowledge-title {
  color: #1a73e8;
}

/* Policy List */
.policy-list li {
  padding: 12px 0;
  border-bottom: 1px dashed #eee;
}

.policy-list li:last-child {
  border-bottom: none;
}

.policy-list a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
}

.policy-list .knowledge-image {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.policy-list .knowledge-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0px;
}

.policy-list .knowledge-title {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.policy-list .knowledge-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #999;
}

.policy-list a:hover .knowledge-title {
  color: #1a73e8;
}

.policy-list a:hover .title {
  color: #1a73e8;
}

/* ================================
   Footer
   ================================ */
.footer {
  background: #2c3e50;
  color: #fff;
  padding: 50px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo .logo-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo .logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

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

.footer-col ul li a,
.footer-col ul li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #fff;
}

/* 热门标签栏目底部边距 */
.sidebar-block:last-child {
  margin-bottom: 20px;
}

.footer-bottom {
  padding: 25px 0;
  text-align: center;
}

.copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.disclaimer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ================================
   List Page Styles
   ================================ */
.list-page .breadcrumb {
  padding: 15px 0;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #666;
}

.breadcrumb a:hover {
  color: #1a73e8;
}

.breadcrumb .separator {
  margin: 0 10px;
  color: #ccc;
}

.breadcrumb .current {
  color: #333;
}

.list-header {
  margin-bottom: 25px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-label {
  font-size: 14px;
  color: #666;
}

.filter-btn {
  padding: 6px 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 13px;
  color: #666;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
}

.filter-select {
  padding: 6px 30px 6px 12px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  appearance: none;
}

.list-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

/* Article List */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.article-thumb {
  flex-shrink: 0;
}

.article-thumb img {
  width: 280px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.article-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

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

.article-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #999;
}

/* List Sidebar */
.list-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hot-article-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
}

.hot-article-list li:last-child {
  border-bottom: none;
}

.hot-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

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

.hot-rank.top3 {
  background: linear-gradient(135deg, #ff6b35, #e53935);
  color: #fff;
}

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

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

/* Related Categories */
.related-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-link {
  padding: 8px 16px;
  background: #f0f4ff;
  color: #1a73e8;
  border-radius: 20px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.category-link:hover {
  background: #1a73e8;
  color: #fff;
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  padding: 6px 14px;
  background: #f5f5f5;
  color: #666;
  border-radius: 15px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.tag-item:hover {
  background: #1a73e8;
  color: #fff;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  padding: 0px 0px 20px;
}

.page-btn,
.page-num {
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  transition: all 0.3s ease;
}

.page-btn:hover:not(.disabled),
.page-num:hover,
.page-num.active {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
}

.page-btn.disabled {
  color: #ccc;
  cursor: not-allowed;
}

.page-ellipsis {
  padding: 8px 5px;
  color: #999;
}

.page-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 15px;
  font-size: 14px;
  color: #666;
}

.page-jump input {
  width: 50px;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: center;
}

.jump-btn {
  padding: 6px 12px;
  background: #1a73e8;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
}

.page-info {
  margin-left: 15px;
  font-size: 14px;
  color: #666;
}

/* ================================
   Detail Page Styles
   ================================ */
.detail-page .breadcrumb {
  padding: 15px 0;
  font-size: 14px;
  color: #666;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

.article-detail {
  background: #fff;
  border-radius: 12px;
  padding: 30px 50px 30px 50px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
}

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

.article-header .article-title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  margin-bottom: 20px;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
}

.meta-item svg {
  color: #999;
}

/* Article Body */
.article-body {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

.article-intro {
  padding: 20px;
  background: #f8f9fa;
  border-left: 4px solid #1a73e8;
  border-radius: 0 8px 8px 0;
  margin-bottom: 30px;
}

.article-intro p {
  margin: 0;
  color: #555;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin: 35px 0 20px;
  padding-left: 6px;
  border-left: 4px solid #1a73e8;
}

.article-body p {
  margin-bottom: 20px;
  text-align: justify;
}

.article-body img {
  max-width: 100%;
  border-radius: 10px;
  margin: 30px auto;
}

.article-figure {
  margin: 30px 0;
  text-align: center;
}

.article-figure img {
  max-width: 100%;
  border-radius: 10px;
  margin: 0 auto;
}

.article-figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: #999;
}

/* Params Table */
.params-table {
  margin: 30px 0;
  overflow-x: auto;
}

.params-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

.params-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
}

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

.params-table tr:hover td {
  background: #f8f9fa;
}

/* Article Score */
.article-score {
  margin: 40px 0;
  padding: 25px;
  background: linear-gradient(135deg, #f0f4ff 0%, #fff 100%);
  border-radius: 12px;
}

.article-score h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.score-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.score-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.score-label {
  width: 80px;
  font-size: 14px;
  color: #666;
}

.score-bar {
  flex: 1;
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a73e8, #4caf50);
  border-radius: 5px;
  transition: width 0.5s ease;
}

.score-value {
  width: 40px;
  font-size: 16px;
  font-weight: 600;
  color: #1a73e8;
  text-align: right;
}

.total-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.total-label {
  font-size: 16px;
  color: #666;
}

.total-value {
  font-size: 48px;
  font-weight: 700;
  color: #1a73e8;
}

.total-suffix {
  font-size: 18px;
  color: #999;
}

/* Article Disclaimer */
.article-disclaimer {
  margin: 50px 0;
  padding: 15px 20px;
  background: #f8f9fa;
  border-left: 3px solid #ccc;
  border-radius: 0 4px 4px 0;
}

.article-disclaimer p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* Article Navigation */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.nav-prev,
.nav-next {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.nav-prev:hover,
.nav-next:hover {
  background: #eef3ff;
}

.nav-next {
  text-align: right;
}

.nav-label {
  font-size: 12px;
  color: #999;
}

.nav-title {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Related Articles */
.related-articles {
  margin-top: 30px;
}

.related-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1a73e8;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.related-item {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  transition: transform 0.3s ease;
}

.related-item:hover {
  transform: translateY(-5px);
}

.related-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.related-item h4 {
  padding: 12px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Detail Sidebar */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recommend-list li {
  padding: 12px 0;
  border-bottom: 1px dashed #eee;
}

.recommend-list li:last-child {
  border-bottom: none;
}

.recommend-item a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
}

.recommend-item .knowledge-image {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.recommend-item .knowledge-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0px;
}

.recommend-item .knowledge-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.recommend-item .knowledge-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: #999;
}

.recommend-item a:hover .knowledge-title {
  color: #1a73e8;
}

/* ================================
   Gallery Detail Page Styles
   ================================ */

.gallery-detail {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* 防止内容溢出 */
}

.gallery-intro {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-left: 4px solid #1a73e8;
  border-radius: 0 8px 8px 0;
}

.gallery-intro p {
  margin: 0;
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

.gallery-grid-container {
  margin-bottom: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* 防止内容溢出 */
}

.gallery-image-viewer {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* 图片说明移到大图上面 */
.image-caption-top {
    padding: 20px 0px;
    background: #fff;
}

.image-caption-top h4 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.image-caption-top p {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* 大图容器，包含左右切换按钮 */
.main-image-container {
  position: relative;
  width: 100%;
  height: 600px; /* 设置固定高度 */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* 防止内容溢出 */
  border-radius: 6px; /* 恢复圆角效果，与外层容器保持一致 */
}

.main-gallery-image {
  width: auto !important;
  height: 600px !important;
  max-height: 600px !important;
  min-height: 600px !important;
  object-fit: cover; /* 保持比例填充容器，可能会裁剪部分内容 */
  display: block;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.image-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}

.image-nav-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.image-nav-prev {
  left: 10px;
}

.image-nav-next {
  right: 10px;
}

/* 缩略图区域，改为一行左右滑动展示 */
.gallery-thumbnails {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  width: 100%;
  box-sizing: border-box;
}

.thumbnail-scroll-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  width: 100%;
  min-width: 0; /* 防止flex子项撑开容器 */
}

.thumbnail-list {
  display: flex;
  gap: 10px;
  transition: transform 0.3s ease;
  white-space: nowrap;
  width: fit-content; /* 改为内容宽度，而不是100% */
  box-sizing: border-box;
}

.thumbnail-item {
  flex: 0 0 auto;
  /*width: 120px;*/
  max-width: 120px;
  height: 80px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.thumbnail-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.thumbnail-item.active {
  border: 3px solid #1a73e8;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 确保图片完全覆盖容器，可能会裁剪部分内容 */
  display: block;
}

.thumb-nav-btn {
  width: 30px;
  height: 30px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.thumb-nav-btn:hover {
  background: #e0e0e0;
}

.thumb-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.image-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.info-label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.info-value {
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.gallery-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #f0f4ff;
  border-radius: 10px;
}

.gallery-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
  background: #1557b0;
}

.gallery-nav-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.image-counter {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* Mobile styles for gallery */
@media (max-width: 768px) {
  .gallery-detail {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 6px 0px 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.00);
  }
  
  .gallery-intro {
    padding: 15px;
  }
  
  .image-caption-top {
    padding:10px 0px;
  }
  
  .main-image-container {
    height: 240px; /* 移动端减小固定高度 */
    border-radius: 6px; /* 移动端恢复圆角效果 */
  }
  
  .image-nav-btn {
    width: 40px;
    height: 40px;
  }
  
  .image-nav-prev {
    left: 5px;
  }
  
  .image-nav-next {
    right: 5px;
  }
  
  .thumbnail-item {
    /*width: 100px;*/
    height: 80px;
  }
  
  .image-info {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
  }
  
  .gallery-navigation {
    padding: 10px 15px;
  }
  
  .gallery-nav-btn {
    padding: 8px 15px;
    font-size: 12px;
  }
  
  .thumb-nav-btn {
    width: 28px;
    height: 28px;
  }
}

/* ================================
   Search Page Styles
   ================================ */
.search-header {
  margin-bottom: 25px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.search-keyword {
  margin-bottom: 20px;
  font-size: 16px;
  color: #333;
}

.search-keyword strong {
  color: #1a73e8;
  font-size: 20px;
}

.result-count {
  margin-left: 20px;
  font-size: 14px;
  color: #666;
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.filter-checkbox input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.filter-checkbox span {
  font-size: 14px;
  color: #333;
}

/* Search Results */
.search-results {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.result-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1a73e8;
}

.section-icon {
  width: 5px;
  height: 24px;
  border-radius: 4px;
}

.article-icon {
  background: #1a73e8;
}
.car-icon {
  background: #ff6b35;
}

/* Search Article Item */
.article-results {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.search-article-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-article-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.search-article-item a {
  display: flex;
  gap: 30px;
  padding: 15px;
}

.search-article-item .article-thumb img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.search-article-item .article-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.search-article-item .article-title em {
  color: #e53935;
  font-style: normal;
}

.search-article-item .article-summary em {
  color: #e53935;
  font-style: normal;
}

/* Car Results */
.car-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.car-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.car-img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.car-info {
  padding: 15px;
}

.car-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.car-params {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.car-params span {
  font-size: 12px;
  color: #666;
  background: #f5f5f5;
  padding: 3px 8px;
  border-radius: 4px;
}

.car-price {
  font-size: 14px;
}

.price-label {
  color: #999;
}

.price-value {
  color: #e53935;
  font-weight: 600;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 12px;
}

.no-results-icon {
  margin-bottom: 20px;
  color: #ccc;
}

.no-results h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

.no-results p {
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
}

.hot-search {
  margin-bottom: 30px;
}

.hot-label {
  font-size: 14px;
  color: #666;
  margin-right: 10px;
}

.hot-search a {
  display: inline-block;
  padding: 6px 14px;
  background: #f5f5f5;
  color: #333;
  border-radius: 20px;
  font-size: 13px;
  margin: 5px;
  transition: all 0.3s ease;
}

.hot-search a:hover {
  background: #1a73e8;
  color: #fff;
}

.recommend-articles h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
}

.recommend-articles ul li {
  margin-bottom: 10px;
}

.recommend-articles ul li a {
  font-size: 14px;
  color: #1a73e8;
}

.recommend-articles ul li a:hover {
  text-decoration: underline;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1200px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hot-ranking {
    grid-column: span 2;
  }

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

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

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

  .list-sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-content {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .hot-ranking {
    grid-column: span 1;
  }

  .review-featured {
    grid-template-columns: 1fr;
  }

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

  .energy-section {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    grid-template-columns: 1fr;
  }

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

  .detail-sidebar {
    grid-template-columns: 1fr;
  }

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

  .article-item a {
    flex-direction: column;
  }

  .article-thumb img {
    width: 100%;
    height: 200px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .header-top-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
  }
  .article-title {
    font-size: 20px;
  }
  .search-article-item .article-title {
    font-size: 20px;
  }
  .detail-content {
    gap: 10px;
}

  .related-grid {

    gap: 20px;
}
  .search-box {
    max-width: 60%;
    height: 36px;
    padding: 6px 12px;
  }
  
  .logo-icon {
    width: 32px;
    height: 32px;
  }
  
  .logo-text {
    font-size: 18px;
  }
  
  .search-box input {
    padding: 3px 8px;
    font-size: 13px;
  }
  
  .search-btn {
    padding: 6px;
  }

  .nav-item a {
    padding: 12px 2px;
    font-size: 16px;
  }

  .carousel-item img {
    height: 250px;
  }

  .carousel-caption h2 {
    font-size: 18px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

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

  .filter-bar {
    flex-direction: column;
    gap: 15px;
  }

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

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

  .article-body {
    font-size: 16px;
  }

  .article-body h2 {
    font-size: 18px;
  }

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

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

  .search-article-item a {
    flex-direction: column;
  }

  .search-article-item .article-thumb img {
    width: 100%;
    height: 180px;
  }

  .car-results {
    grid-template-columns: 1fr;
  }

  .pagination {
    gap: 5px;
  }

  .page-jump {
    display: none;
  }

  /* 移动端首页布局调整：轮播图+信息流 */
  .news-section,
  .content-section {
    display: none;
  }
  
  /* 创建信息流布局 */
  .main .container {
    display: flex;
    flex-direction: column;
    gap: 0px;
    /* 确保移动端内容可以正常滚动 */
    overflow-x: hidden;
  }

  .carousel-section {
    margin-bottom: 15px;
    margin-top: 10px;
}

.footer {
    background: #2c3e50;
    color: #fff;
    padding: 0px 0 0;
}
  
  /* 全分类信息流 */
.feed-container {
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    display: none; /* PC端默认隐藏 */
    flex-direction: column;
    gap: 0px;
    margin-bottom: 30px;
    visibility: hidden; /* 确保完全隐藏，防止页面抖动 */
}

/* 移动端显示feed容器 */
@media (max-width: 767px) {
    .feed-container {
        display: flex !important;
        visibility: visible !important; /* 移动端恢复可见性 */
        background: #fff;
        padding: 0 0px;
    }
    
    /* 加载中提示样式 */
    .loading-indicator {
        width: 100%;
        text-align: center;
        padding: 20px 15px;
        background: rgba(26, 115, 232, 0.05);
        border-radius: 8px;
        margin-bottom: 15px;
        display: none;
        visibility: hidden; /* 双重确保隐藏 */
    }
    
    .loading-spinner {
        width: 20px;
        height: 20px;
        border: 2px solid rgba(26, 115, 232, 0.3);
        border-radius: 50%;
        border-top-color: #1a73e8;
        animation: spin 1s linear infinite;
        margin: 0 auto 8px;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    /* 信息流项目动画 */
    .feed-item {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.5s ease forwards;
    }
    
    .feed-item:nth-child(1) { animation-delay: 0.1s; }
    .feed-item:nth-child(2) { animation-delay: 0.2s; }
    .feed-item:nth-child(3) { animation-delay: 0.3s; }
    .feed-item:nth-child(4) { animation-delay: 0.4s; }
    .feed-item:nth-child(5) { animation-delay: 0.5s; }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* 图库详情页移动端样式 */
@media (max-width: 767px) {
  .gallery-image-viewer {
    border-radius: 12px; /* 移动端保持一致的圆角 */
  }
  .main-gallery-image {
    width: auto !important;
    height: 200px !important;
    max-height: 200px !important;
    min-height: 200px !important;
  }
}
  
  .feed-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
  }
  
  /* 去掉最后一个信息项的底部边框 */
  .feed-item:last-child {
    border-bottom: none;
  }
  
  .feed-item-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    flex-direction: row-reverse; /* 将图片和文本的位置反转 */
  }
  
  .feed-item-img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
  }
  
  .feed-item-info {
    flex: 1;
    min-width: 0;
    text-align: left;
  }
  
  .feed-item-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: justify;
  }
  
.carousel-category {
    display: inline-block;
    padding: 2px 6px;
    background-color: #ff6b35;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carousel-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-caption h2 {
    color: #fff;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0 0 6px 0;
  }

  .feed-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
  }
  
  /* 加载更多按钮 - 默认在PC端隐藏（加强版） */
  /*button.load-more#loadMoreBtn {*/
  /*  display: none !important;*/
  /*  visibility: hidden !important;*/
  /*  opacity: 0 !important;*/
  /*  position: absolute !important;*/
  /*  left: -9999px !important;*/
  /*  top: -9999px !important;*/
  /*  width: 0 !important;*/
  /*  height: 0 !important;*/
  /*  padding: 0 !important;*/
  /*  margin: 0 !important;*/
  /*  border: none !important;*/
  /*  overflow: hidden !important;*/
  /*  white-space: nowrap !important;*/
  /*  pointer-events: none !important;*/
  /*  clip-path: inset(50%) !important;*/
  /*}*/
  
  /* 按钮基础样式，只在移动端显示时生效 */
  @media screen and (max-width: 767px) {
    button.load-more#loadMoreBtn {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      width: 100%;
      margin: 15px 0;
      padding: 12px;
      background: #f5f5f5;
      color: #666;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
  }
  
  .load-more:hover {
    background: #e0e0e0;
    color: #333;
  }
  
  .load-more.loading {
    opacity: 0.7;
    cursor: not-allowed;
  }
  
  /* 移动端显示加载更多按钮和简化页脚 */
  @media screen and (max-width: 767px) {
    
    /* 移动端页脚简化 */
    .footer-info,
    .footer-links {
      display: none;
    }
    
    .footer-bottom {
      padding: 20px 0;
    }
  }
  
  .footer-content {
    padding-bottom: 0;
  }
}

@media (max-width: 480px) {
  .gallery-image-viewer {
    border-radius: 8px; /* 更小屏幕上使用稍小的圆角 */
  }
  
  .main-image-container {
    height: 200px; /* 更小屏幕上进一步减小高度 */
    border-radius: 6px; /* 更小屏幕上使用稍小的圆角 */
  }
  .detail-content {
    gap: 10px;
}
.search-article-item a {
    gap: 20px;
  }
  .list-content {
    gap: 20px;
  }

  .header-top-inner {
    gap: 8px;
  }

  .related-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .search-box {
    max-width: 55%;
    height: 32px;
    padding: 4px 10px;
  }
  
  .logo-icon {
    width: 28px;
    height: 28px;
  }
  
  .logo-text {
    font-size: 16px;
  }
  
  .search-box input {
    padding: 2px 20px 2px 6px;
    font-size: 12px;
  }
  
  .search-btn {
    padding: 4px;
  }
  .container {
    padding: 0 15px;
  }

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

  .carousel-item img {
    height: 200px;
  }

  .carousel-caption {
    padding: 30px 20px 20px;
  }

  .carousel-caption h2 {
    font-size: 20px;
  }

  .block-title {
    font-size: 18px;
  }

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

  .article-detail {
    background: #fff;
    border-radius: 12px;
    padding: 10px 6px 0px 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.00);
  }

  .article-header .article-title {
    font-size: 24px;
  }

  .article-meta-bar {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .article-meta-bar::-webkit-scrollbar {
    display: none;
  }
  
  .meta-item {
    font-size: 13px;
    gap: 4px;
  }
  
  .meta-item:first-child {
    flex-shrink: 0;
  }
  
  .meta-item svg {
    width: 14px;
    height: 14px;
  }
  
  /* 列表页文章元数据样式优化 */
  .article-meta {
    gap: 15px;
    font-size: 12px;
  }
  
  .article-meta .time {
    white-space: nowrap;
  }
  
  .article-meta .views {
    white-space: nowrap;
  }

  .total-value {
    font-size: 36px;
  }

  .search-filters {
    flex-direction: column;
    gap: 15px;
  }
}
