.expandable-item {
    width: 100%;
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
	transform: translateZ(0);
    transition: all 0.3s ease;
    background-color: #3a3a3a;
    border-left: 4px solid #3498db;
}
    
body.light-theme .expandable-item {
    background-color: #f5f5f5;
    border-left: 4px solid #2980b9;
}
    
.item-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}
    
.item-header:hover {
    background-color: #444444;
}
    
body.light-theme .item-header:hover {
    background-color: #e8e8e8;
}
    
.item-title {
    font-size: 18px;
    font-weight: bold;
    color: #3498db;
}
    
body.light-theme .item-title {
    color: #2980b9;
}
    
.expand-icon {
    transition: transform 0.3s ease;
}
    
.expandable-item:hover .expand-icon {
    transform: rotate(180deg);
}
    
.item-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background-color: #2d2d2d;
	will-change: max-height;
}
    
body.light-theme .item-content {
    background-color: #ffffff;
}
    
.expandable-item:hover .item-content {
    max-height: 300px;
}
    
.thumbnail-container {
    padding: 15px;
    text-align: center;
}
    
.thumbnail {
    max-width: 500px;
    max-height: 250px; /* 限制最大高度 */
    width: auto;
    height: auto;
    aspect-ratio: 5/3; /* 设置宽高比为 5:3 */
    object-fit: cover; /* 保持比例填充 */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 车辆配置区域 */
.content-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    align-items: flex-start;
}

.vehicle-specs {
    display: flex;
    gap: 30px;
    flex: 1;
}

.specs-main {
    flex: 1;
    background: #3a3a3a;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #3498db;
}

.specs-side {
    width: 280px;
    background: #3a3a3a;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #e74c3c;
}

body.light-theme .specs-main,
body.light-theme .specs-side {
    background: #f8f9fa;
}

body.light-theme .specs-main {
    border-left: 4px solid #2980b9;
}

body.light-theme .specs-side {
    border-left: 4px solid #c0392b;
}

.side-title {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 15px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 8px;
}

body.light-theme .side-title {
    color: #c0392b;
    border-bottom: 2px solid #c0392b;
}

.side-item {
    margin: 12px 0;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.side-label {
    font-weight: bold;
    color: #e0e0e0;
    min-width: 80px;
    line-height: 1.2;
}

body.light-theme .side-label {
    color: #333333;
}

.side-value {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 入库情况颜色 */
.storage-direct { color: #2ecc71; } /* 绿色 */
.storage-copy { color: #f39c12; } /* 黄色 */
.storage-blacklist { color: #e74c3c; } /* 红色 */

/* 难度和稀有程度颜色 */
.rating-1 { color: #2ecc71; } /* ★☆☆☆☆ - 绿色 */
.rating-2 { color: #27ae60; } /* ★★☆☆☆ - 深绿色 */
.rating-3 { color: #f39c12; } /* ★★★☆☆ - 黄色 */
.rating-4 { color: #e67e22; } /* ★★★★☆ - 橙色 */
.rating-5 { color: #e74c3c; } /* ★★★★★ - 红色 */

/* 车友会颜色 */
.meetup-full { color: #2ecc71; } /* 完全继承 - 绿色 */
.meetup-partial { color: #f39c12; } /* 会掉配件 - 黄色 */
.meetup-none { color: #e74c3c; } /* 无法集成 - 红色 */

/* 响应式设计 */
@media (max-width: 968px) {
    .vehicle-specs {
        flex-direction: column;
    }
    
    .specs-side {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .vehicle-specs {
        gap: 20px;
    }
}

.thumbnail {
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.specs-container {
    flex: 1;
    background: #3a3a3a;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #3498db;
}

body.light-theme .specs-container {
    background: #f8f9fa;
    border-left: 4px solid #2980b9;
}

.specs-title {
    font-size: 20px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

body.light-theme .specs-title {
    color: #2980b9;
    border-bottom: 2px solid #2980b9;
}

.spec-item, .property-item {
    margin: 6px 0;
    display: flex;
    align-items: center;
}

.spec-label {
    font-weight: bold;
    color: #e0e0e0;
    min-width: 80px;
    margin-right: 10px;
}

body.light-theme .spec-label {
    color: #333333;
}

.spec-value {
    color: #e74c3c; /* 红色值 */
    font-weight: bold;
}

.spec-value.normal {
    color: #e0e0e0; /* 正常色 */
}

.spec-value.unknown {
    color: #989898; /* 灰色 */
}

body.light-theme .spec-value.normal {
    color: #333333;
}

.accessory-item {
    color: #e74c3c; /* 配件永为红色 */
    font-weight: bold;
    margin: 12px 0;
    padding-left: 10px;
    border-left: 3px solid #e74c3c;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .thumbnail {
            max-width: 100%;
    }
}

/* 获取方法样式 */
.acquisition-methods {
    margin-top: 30px;
}

.method-intro {
    color: #bdc3c7;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 15px;
    background: #3a3a3a;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

body.light-theme .method-intro {
    color: #666666;
    background: #f8f9fa;
    border-left: 4px solid #2980b9;
}

.route-image {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 20px 0;
    border: 2px solid #404040;
}

body.light-theme .route-image {
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.method-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.method-item {
    background: #3a3a3a;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #404040;
    transition: all 0.3s ease;
}

body.light-theme .method-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.method-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

body.light-theme .method-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.method-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.method-number {
    background: #3498db;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-right: 15px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.method-title {
    color: #3498db;
    font-size: 22px;
    font-weight: bold;
    margin: 0;
}

body.light-theme .method-title {
    color: #2980b9;
}

.method-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background: #2d2d2d;
    border-radius: 6px;
    border-left: 3px solid #e74c3c;
}

body.light-theme .detail-item {
    background: #f8f9fa;
    border-left: 3px solid #c0392b;
}

.detail-label {
    font-weight: bold;
    color: #e74c3c;
    min-width: 80px;
    margin-right: 10px;
    font-size: 14px;
}

body.light-theme .detail-label {
    color: #c0392b;
}

.detail-value {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.5;
}

body.light-theme .detail-value {
    color: #333333;
}

.method-description {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 15px;
}

body.light-theme .method-description {
    color: #666666;
}

.note-link {
    color: #e74c3c;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    background: rgba(231, 76, 60, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.note-link:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #c0392b;
    text-decoration: none;
}

body.light-theme .note-link {
    color: #c0392b;
    background: rgba(192, 57, 43, 0.1);
}

body.light-theme .note-link:hover {
    background: rgba(192, 57, 43, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .method-details {
        grid-template-columns: 1fr;
    }
    
    .method-item {
        padding: 20px 15px;
    }
    
    .method-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .method-number {
        margin-right: 0;
    }
}



/* ===== 新系统样式 ===== */

/* 车辆卡片样式 */
.vehicle-card {
  background: #3a3a3a;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #404040;
  position: relative;
  
  /* 添加这行：让卡片内部使用flex布局 */
  display: flex;
  flex-direction: column;
  height: 100%; /* 确保卡片高度一致 */
}

body.light-theme .vehicle-card {
  background: white;
  border: 1px solid #e0e0e0;
}

.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: #3498db;
}

body.light-theme .vehicle-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #2980b9;
}

.card-image {
  height: 180px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0; /* 图片区域不收缩 */
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vehicle-card:hover .card-image img {
  transform: scale(1.05);
}

.card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(52, 152, 219, 0.9);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.card-difficulty {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(231, 76, 60, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* 修改这部分：让内容区域自动填充并底部对齐 */
.card-content {
  padding: 20px;
  flex: 1; /* 关键：让内容区域填满剩余空间 */
  display: flex;
  flex-direction: column;
}

.card-title {
  color: #3498db;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.3;
}

body.light-theme .card-title {
  color: #2980b9;
}

.card-description {
  color: #bdc3c7;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
  
  /* 限制描述行数 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0; /* 描述区域不收缩 */
}

body.light-theme .card-description {
  color: #666;
}

/* 修改这部分：让元信息区域固定在底部上方 */
.card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 12px;
  margin-top: auto; /* 关键：自动向上推 */
  padding-top: 10px;
  border-top: 1px solid #444;
}

body.light-theme .card-meta {
  border-top: 1px solid #e0e0e0;
}

.meta-item {
  color: #95a5a6;
  display: flex;
  align-items: center;
  gap: 4px;
}

body.light-theme .meta-item {
  color: #7f8c8d;
}

/* 修改这部分：按钮区域固定对齐 */
.card-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0; /* 按钮区域不收缩 */
}

.btn-view, .btn-quick-view {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
}

.btn-view {
  background: #3498db;
  color: white;
}

.btn-view:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-quick-view {
  background: #3a3a3a;
  color: #e0e0e0;
  border: 1px solid #404040;
}

body.light-theme .btn-quick-view {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #e0e0e0;
}

.btn-quick-view:hover {
  background: #444444;
  border-color: #3498db;
}

body.light-theme .btn-quick-view:hover {
  background: #e8e8e8;
  border-color: #2980b9;
}


/* 列表页面布局 */
.list-header {
  margin-bottom: 30px;
}

.controls-container {
  background: #3a3a3a;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

body.light-theme .controls-container {
  background: #f8f9fa;
}

.search-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 2px solid #3498db;
  border-radius: 8px;
  background: #2d2d2d;
  color: #e0e0e0;
  font-size: 16px;
  transition: all 0.3s ease;
}

body.light-theme .search-box input {
  background: white;
  color: #333;
  border-color: #2980b9;
}

.search-box input:focus {
  outline: none;
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #3498db;
  pointer-events: none;
}

.category-select {
  padding: 12px 20px;
  border: 2px solid #3498db;
  border-radius: 8px;
  background: #2d2d2d;
  color: #e0e0e0;
  font-size: 16px;
  min-width: 180px;
  cursor: pointer;
  transition: all 0.3s ease;
}

body.light-theme .category-select {
  background: white;
  color: #333;
  border-color: #2980b9;
}

.category-select:focus {
  outline: none;
  border-color: #e74c3c;
}

.result-info {
  color: #bdc3c7;
  font-size: 14px;
  text-align: right;
}

body.light-theme .result-info {
  color: #666;
}

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

/* 加载状态 */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.loading-state .spinner {
  border: 4px solid rgba(52, 152, 219, 0.3);
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 无结果状态 */
.no-results, .error-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: #3a3a3a;
  border-radius: 10px;
  border-left: 4px solid #e74c3c;
}

body.light-theme .no-results,
body.light-theme .error-message {
  background: #f8f9fa;
  border-left: 4px solid #c0392b;
}

/* 分页样式 */
.pagination-container {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #404040;
}

body.light-theme .pagination-container {
  border-top: 1px solid #e0e0e0;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-btn, .page-number {
  padding: 8px 16px;
  border: 1px solid #404040;
  background: #3a3a3a;
  color: #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 40px;
  text-align: center;
  font-size: 14px;
}

body.light-theme .page-btn,
body.light-theme .page-number {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #e0e0e0;
}

.page-btn:hover, .page-number:hover {
  background: #3498db;
  color: white;
  border-color: #3498db;
}

.page-number.active {
  background: #e74c3c;
  color: white;
  border-color: #e74c3c;
  cursor: default;
}

/* 首页样式 */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.quick-item {
  background: #3a3a3a;
  border-radius: 10px;
  padding: 25px;
  border-left: 4px solid #9b59b6;
}

body.light-theme .quick-item {
  background: #f8f9fa;
  border-left: 4px solid #8e44ad;
}

.quick-item h3 {
  color: #9b59b6;
  margin-bottom: 20px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-item ul {
  list-style: none;
  padding-left: 0;
}

.quick-item li {
  margin: 12px 0;
  padding-left: 20px;
  position: relative;
}

.quick-item li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #3498db;
}

.quick-item a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

body.light-theme .quick-item a {
  color: #666;
}

.quick-item a:hover {
  color: #e74c3c;
}

/* 统计卡片 */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-card {
  background: #3a3a3a;
  border-radius: 10px;
  padding: 25px 15px;
  text-align: center;
  border-top: 4px solid #3498db;
  transition: transform 0.3s ease;
}

body.light-theme .stat-card {
  background: #f8f9fa;
  border-top: 4px solid #2980b9;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 36px;
  font-weight: bold;
  color: #3498db;
  margin-bottom: 8px;
}

.stat-label {
  color: #bdc3c7;
  font-size: 14px;
}

body.light-theme .stat-label {
  color: #666;
}

/* 精选载具 */
.featured-section {
  margin-top: 40px;
}

.featured-vehicles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.featured-card {
  background: #3a3a3a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #404040;
  transition: all 0.3s ease;
}

body.light-theme .featured-card {
  background: white;
  border: 1px solid #e0e0e0;
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

.featured-info {
  padding: 20px;
}

.featured-info h3 {
  color: #3498db;
  margin-bottom: 10px;
  font-size: 18px;
}

.featured-info p {
  color: #bdc3c7;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 12px;
  color: #95a5a6;
}

.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: #e74c3c;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* 详情页样式 */
.detail-header {
  background: #3a3a3a;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  border-left: 4px solid #3498db;
}

body.light-theme .detail-header {
  background: #f8f9fa;
  border-left: 4px solid #2980b9;
}

.breadcrumb {
  color: #bdc3c7;
  margin-bottom: 15px;
  font-size: 14px;
}

.breadcrumb a {
  color: #3498db;
  text-decoration: none;
}

.breadcrumb span {
  color: #e74c3c;
  font-weight: bold;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.meta-tag {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.meta-tag.category {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
}

.meta-tag.difficulty {
  background: rgba(243, 156, 18, 0.2);
  color: #f39c12;
}

.meta-tag.date {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

.meta-tag.video {
  background: rgba(155, 89, 182, 0.2);
  color: #9b59b6;
  text-decoration: none;
}

.detail-description {
  background: #3a3a3a;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  line-height: 1.8;
}

body.light-theme .detail-description {
  background: #f8f9fa;
}

/* 变体样式 */
.variants-section {
  margin: 40px 0;
}

.variants-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 20px;
}

.variant-card {
  background: #3a3a3a;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  border: 1px solid #404040;
  margin-bottom: 20px;
  min-height: 300px;
}

body.light-theme .variant-card {
  background: white;
  border: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
  .variant-card {
    flex-direction: column;
  }
}

.variant-image {
  flex: 0 0 400px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .variant-card {
    flex-direction: column;
  }
  
  .variant-image {
    flex: none;
    width: 100%;
    height: 250px; /* 在手机上固定高度 */
  }
}

.variant-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 使用cover填满容器，不显示背景 */
}

.variant-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 15px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
}

/* ===== 车辆详情页 ===== */
.variant-details {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 25px !important;
  width: 100% !important;
}

@media (max-width: 1100px) {
  .variant-details {
    padding: 20px 25px;
    gap: 25px;
  }
}

@media (max-width: 992px) {
  .variant-details {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .variant-details {
    padding: 20px;
  }
}

/* 统一配置和属性的样式 */
.variant-specs, .variant-properties {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

.variant-specs h4, .variant-properties h4 {
  color: #3498db;
  font-size: 18px;
  margin: 15px 0 12px 0; /* 紧凑的上边距 */
  padding-bottom: 8px;
  border-bottom: 2px solid #3498db;
  text-align: center;
}


body.light-theme .variant-specs h4,
body.light-theme .variant-properties h4 {
  color: #2980b9;
  border-bottom: 3px solid #2980b9;
}

/* 项目列表容器 */
.specs-list, .properties-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 单个项目样式 */
.spec-item, .property-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #2d2d2d;
  border-radius: 8px;
  border-left: 3px solid #3498db;
  transition: all 0.2s ease;
  min-width: 32px;
}

body.light-theme .spec-item,
body.light-theme .property-item {
  background: #f8f9fa;
  border-left: 3px solid #2980b9;
}

.spec-item:hover, .property-item:hover {
  background: #3a3a3a;
  transform: translateX(3px);
}

body.light-theme .spec-item:hover,
body.light-theme .property-item:hover {
  background: #e8e8e8;
}

.spec-label, .property-label {
  font-weight: bold;
  color: #e0e0e0;
  min-width: 100px;
  margin-right: 15px;
  font-size: 14px;
  flex-shrink: 0; /* 不收缩 */
}

body.light-theme .spec-label,
body.light-theme .property-label {
  color: #333;
}

/* 值样式 */
.spec-value, .property-value {
  font-weight: bold;
  text-align: right;
  flex: 1;
  font-size: 14px;
  min-width: 0; /* 允许收缩 */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 配置值正常色 */
.spec-value.normal {
  color: #95a5a6;
}

body.light-theme .spec-value.normal {
  color: #7f8c8d;
}

/* 配件项样式 */
.accessory-item {
  margin: 12px 0;
  padding: 10px 15px;
  background: rgba(231, 76, 60, 0.1);
  border-radius: 6px;
  border-left: 3px solid #e74c3c;
  color: #e74c3c;
  font-weight: bold;
  font-size: 14px;
}

body.light-theme .accessory-item {
  background: rgba(192, 57, 43, 0.1);
  border-left: 3px solid #c0392b;
  color: #c0392b;
}

/* 属性值颜色分类 */
/* 入库情况 */
.storage-direct { color: #2ecc71; }
.storage-copy { color: #f39c12; }
.storage-blacklist { color: #e74c3c; }

/* 难度和稀有程度 */
.rating-1 { color: #2ecc71; } /* ★☆☆☆☆ */
.rating-2 { color: #27ae60; } /* ★★☆☆☆ */
.rating-3 { color: #f39c12; } /* ★★★☆☆ */
.rating-4 { color: #e67e22; } /* ★★★★☆ */
.rating-5 { color: #e74c3c; } /* ★★★★★ */

/* 车友会 */
.meetup-full { color: #2ecc71; }
.meetup-partial { color: #f39c12; }
.meetup-none { color: #e74c3c; }

/* 确保标签和值在同一行，不会换行 */
.spec-item, .property-item {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.spec-label, .property-label {
  flex-shrink: 0;
}

.spec-value, .property-value {
  flex-shrink: 1;
  min-width: 0; /* 允许收缩 */
}

/* 如果内容太长，允许换行 */
@media (max-width: 768px) {
  .spec-item, .property-item {
    flex-wrap: wrap;
    white-space: normal;
  }
  
  .spec-label, .property-label {
    width: 100%;
    margin-bottom: 5px;
  }
  
  .spec-value, .property-value {
    width: 100%;
    text-align: left;
  }
}

/* 响应式调整 */
@media (max-width: 576px) {
  .spec-item, .property-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 10px;
  }
  
  .spec-label, .property-label {
    width: 100%;
    margin-right: 0;
    margin-bottom: 5px;
  }
  
  .spec-value, .property-value {
    width: 100%;
    text-align: left;
  }
}

/* 如果图片特别宽，可以这样调整 */
@media (min-width: 1200px) {
  .variant-image {
    flex: 0 0 450px; /* 在大屏幕上显示更宽的图片 */
  }
}

/* 让两个区域等高 */
.variant-specs, .variant-properties {
  min-height: 300px; /* 可以根据内容调整 */
  padding: 15px;
  background: #3a3a3a;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.light-theme .variant-specs,
body.light-theme .variant-properties {
  background: #f8f9fa;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .variant-card {
    flex-direction: column;
  }
  
  .variant-image {
    flex: none;
    height: 200px;
  }
  
  .variant-details {
    padding: 20px;
    gap: 20px;
  }
  
  .variant-specs h4, .variant-properties h4 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .spec-item, .property-item {
    padding: 8px 12px;
    margin: 8px 0;
  }
}

.variant-specs h4, .variant-properties h4 {
  color: #3498db;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #3498db;
}

/* 获取方法样式 */
.methods-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.method-card {
  background: #3a3a3a;
  border-radius: 10px;
  padding: 25px;
  border-left: 4px solid #e74c3c;
}

body.light-theme .method-card {
  background: #f8f9fa;
  border-left: 4px solid #c0392b;
}

.method-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.method-number {
  background: #e74c3c;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

.method-header h4 {
  color: #e74c3c;
  margin: 0;
  font-size: 20px;
}

.method-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
  padding: 15px;
  background: #525252;
  border-radius: 6px;
}

body.light-theme .method-details {
  background: #a0a0a0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2d2d2d;
  border-radius: 8px;
  border-left: 4px solid #c0392b;
  padding: 12px 15px;
}

.detail-value {
  color: #e0e0e0;
  font-size: 14px;
}

body.light-theme .detail-value {
  color: #333;
}

.method-intro {
  color: #f39c12;
  font-style: italic;
  margin: 10px 0;
}

.method-description {
  line-height: 1.8;
  margin: 15px 0;
}

/* 相关推荐 */
#similar-vehicles {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #404040;
}

#similar-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.similar-card {
  background: #3a3a3a;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.similar-card:hover {
  transform: translateY(-5px);
}

.similar-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.similar-info {
  padding: 15px;
}

.similar-info h4 {
  color: #3498db;
  margin-bottom: 8px;
  font-size: 16px;
}

.similar-info p {
  color: #bdc3c7;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .vehicles-grid {
    grid-template-columns: 1fr;
  }
  
  .search-container {
    flex-direction: column;
  }
  
  .category-select {
    width: 100%;
  }
  
  .quick-links {
    grid-template-columns: 1fr;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .featured-vehicles {
    grid-template-columns: 1fr;
  }
  
  #similar-container {
    grid-template-columns: 1fr;
  }
  
  .card-actions {
    flex-direction: column;
  }
}

.highlight-link {
    display: inline-block;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    
    padding: 16px 40px;
    border-radius: 50px; /* 圆角按钮 */
    border: none;
    
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
    
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.highlight-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.5);
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

.highlight-link:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* 浅色主题 */
body.light-theme .highlight-link {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

body.light-theme .highlight-link:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.5);
}

/* ===== 变体爆炸数据样式 ===== */
.variant-explosion-section {
  margin-top: 15px;
  background: transparent;
  grid-column: 1 / -1 !important; /* 关键：横跨两列 */
  width: 100%;
}

.variant-card {
  position: relative;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 0;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #404040;
}

.explosion-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: #e74c3c;
  width: 100%;
  margin-bottom: 10px;
}

.explosion-toggle:hover {
  background: rgba(231, 76, 60, 0.2);
  border-color: rgba(231, 76, 60, 0.5);
  transform: translateY(-1px);
}

.toggle-icon {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.toggle-text {
  font-weight: bold;
  flex: 1;
}

.explosion-data-box {
  padding: 0;
  border: 1px solid #404040;
  border-radius: 8px;
  background: #1a1a1a;
  overflow: hidden;
  width: 100%;
  margin-bottom: 10px;
}

body.light-theme .explosion-data-box {
  border: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.data-container {
  position: relative;
  padding: 12px;
}

.data-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.explosion-code {
  flex: 1;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.4;
  color: #f8f8f8;
  background: #1a1a1a;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #333;
  margin: 0;
  word-break: break-all;
  white-space: normal;
  overflow-wrap: anywhere;
  min-height: 40px;
  display: flex;
  align-items: center;
}

body.light-theme .explosion-code {
  color: #333;
  background: #ffffff;
  border: 1px solid #ddd;
}

.mini-copy-btn {
  flex-shrink: 0;
  background: #3498db;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-copy-btn:hover {
  background: #2980b9;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .variant-card {
    grid-template-columns: 1fr;
    padding-bottom: 15px;
  }
  
  .variant-explosion-section {
    grid-column: 1 !important;
  }
  
  .explosion-toggle {
    padding: 10px 15px;
    font-size: 13px;
  }
  
  .explosion-code {
    font-size: 11px;
    padding: 8px 10px;
  }
  
  .data-container {
    padding: 10px;
  }
}

/* 调整复制按钮状态 */
.mini-copy-btn.copied {
  background: #2ecc71 !important;
  animation: pulse 0.3s ease;
}

.mini-copy-btn.error {
  background: #e74c3c !important;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}