/* 首页模板B版本专用样式 - 完全自定义版本 */

/* 轮播图样式 */
#homeCarousel {
    margin-bottom: 0;
}

#homeCarousel .carousel-inner {
    height: 400px;
}

#homeCarousel .carousel-inner .item {
    height: 400px;
}

#homeCarousel .carousel-inner .item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

#homeCarousel .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    bottom: 50px;
}

#homeCarousel .carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

#homeCarousel .carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* 通用间距 */
.section-categories,
.section-products,
.section-blog,
.section-stats {
    margin-bottom: 60px;
}

/* 区块标题样式已在主样式文件中定义 */

/* 快速导航区域 */
.category-item {
    text-align: center;
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-item a {
    text-decoration: none;
    color: inherit;
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.category-item:hover .category-icon {
    transform: scale(1.1);
}

.category-bg-primary { background: linear-gradient(135deg, #007bff, #0056b3); }
.category-bg-success { background: linear-gradient(135deg, #28a745, #1e7e34); }
.category-bg-danger { background: linear-gradient(135deg, #dc3545, #c82333); }
.category-bg-warning { background: linear-gradient(135deg, #ffc107, #e0a800); }
.category-bg-info { background: linear-gradient(135deg, #17a2b8, #138496); }
.category-bg-secondary { background: linear-gradient(135deg, #6c757d, #545b62); }

.category-icon i {
    color: white;
    font-size: 2em;
}

.category-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.category-item p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* 产品区域 */
.product-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

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

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-title a {
    color: #333;
    text-decoration: none;
}

.product-title a:hover {
    color: #007bff;
}

.product-desc {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-tags {
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.product-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.stat-item {
    color: #666;
    font-size: 14px;
}

.stat-item i {
    margin-right: 5px;
}

.stat-item:first-child i {
    color: #dc3545;
}

.stat-item:nth-child(2) i {
    color: #17a2b8;
}

/* 博客区域 - 卡片网格布局（新版） */
.blog-card {
    background: white;
    border-radius: 12px;
    padding: 20px 20px 18px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    min-height: 160px;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.blog-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
    text-decoration: none;
}
.blog-card-meta-row {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    font-size: 14px;
    color: #444;
    font-weight: 400;
}
.blog-date {
    color: #444;
    font-size: 14px;
    font-weight: 400;
}
.blog-dot {
    color: #888;
    font-size: 14px;
    margin: 0 4px;
}
.blog-category {
    color: #4f7cff;
    font-size: 14px;
    font-weight: 400;
}
.blog-card-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.blog-card-bottom-row:hover {
    text-decoration: none;
}
.blog-card-title {
    font-size: 16px;
    font-weight: 400;
    color: #222;
    line-height: 1.8;
    margin: 0;
    white-space: normal;
    word-break: break-all;
    flex: 1;
    min-width: 0;
    margin-right: 12px;
}
.blog-card-image {
    width: 120px;
    height: 66.67px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}
.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .blog-card {
        padding: 14px 10px 12px 10px;
    }
    .blog-card-image {
        width: 90px;
        height: 50px;
    }
    .blog-card-title {
        font-size: 14px;
    }
    .blog-card-meta-row, .blog-date, .blog-dot, .blog-category {
        font-size: 12px;
    }
}
@media (max-width: 576px) {
    .blog-card {
        margin-bottom: 16px;
        padding: 10px 6px 8px 6px;
    }
    .blog-card-title {
        font-size: 13px;
    }
    .blog-card-meta-row, .blog-date, .blog-dot, .blog-category {
        font-size: 11px;
    }
    .blog-card-image {
        width: 70px;
        height: 39px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blog-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .blog-card-content {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .blog-card-image {
        width: 100%;
        height: 150px;
    }
    
    .blog-card-meta {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .blog-card {
        margin-bottom: 20px;
    }
    
    .blog-card-title {
        font-size: 14px;
    }
    
    .blog-date,
    .blog-category {
        font-size: 11px;
    }
}

/* 新统计数据区域样式 */
.section-stats, .section-stats-new {
  background: none;
  margin: 60px 0 60px 0;
  padding: 0;
  border-radius: 0;
  color: inherit;
}
.stats-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.stat-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(80, 112, 255, 0.10);
  padding: 36px 24px 28px 24px;
  text-align: center;
  min-width: 180px;
  flex: 1 1 200px;
  transition: box-shadow 0.3s;
  margin-bottom: 20px;
}
.stat-card:hover {
  box-shadow: 0 8px 32px rgba(80, 112, 255, 0.18);
}
.stat-icon {
  font-size: 2.5rem;
  color: #667eea;
  margin-bottom: 12px;
}
.stat-number {
  font-size: 2.6rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 1.1rem;
  color: #888;
  letter-spacing: 1px;
}
@media (max-width: 768px) {
  .stats-row { gap: 16px; }
  .stat-card { padding: 24px 10px; min-width: 120px; }
  .stat-number { font-size: 2rem; }
}
/* 兼容旧样式移除 */
.stats-container, .stat-item, .section-stats {
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: inherit !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

/* CTA区域 */
.section-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.section-cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.section-cta .container {
    position: relative;
    z-index: 1;
}

.section-cta h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.section-cta p {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* 按钮样式已在主样式文件中定义 */

/* 响应式设计 */
@media (max-width: 768px) {
    #homeCarousel .carousel-caption {
        bottom: 20px;
        padding: 15px;
    }
    
    #homeCarousel .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    #homeCarousel .carousel-caption p {
        font-size: 1rem;
    }
    
    /* section-title 响应式样式已在主样式文件中定义 */
    
    .category-item {
        margin-bottom: 20px;
    }
    
    .section-cta h3 {
        font-size: 1.5rem;
    }
    
    .section-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    #homeCarousel .carousel-caption {
        display: none;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-icon i {
        font-size: 1.5em;
    }
}

/* 动画效果已在主样式文件中定义 */

/* 确保与主题样式隔离 */
.section-categories,
.section-products,
.section-blog,
.section-stats,
.section-cta {
    position: relative;
    z-index: 1;
}

/* 页脚样式已在主样式文件中定义 */ 

/* 大号透明灰色边框按钮 */
.btn-outline-gray {
    display: inline-block;
    padding: 12px 36px;
    font-size: 18px;
    border: 2px solid #ccc;
    background: transparent;
    color: #333;
    border-radius: 30px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    font-weight: 500;
    margin: 30px auto 0 auto;
    text-align: center;
}
.btn-outline-gray:hover,
.btn-outline-gray:focus {
    border-color: #888;
    color: #222;
    background: #f7f7f7;
    text-decoration: none;
}

.blog-more-btn-wrap {
    text-align: center;
    margin-bottom: 40px;
} 

/* 分类列表样式 */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.category-item {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.category-item i {
    font-size: 36px;
    color: #ffffff;
    width: 36px;
    text-align: center;
}

.category-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    flex: 1;
}

.no-categories {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-item {
        padding: 12px 15px;
    }
    
    .category-item i {
        font-size: 18px;
        margin-right: 12px;
    }
    
    .category-name {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .category-item {
        padding: 10px 12px;
    }
    
    .category-item i {
        font-size: 16px;
        margin-right: 10px;
    }
    
    .category-name {
        font-size: 13px;
    }
} 

/* 固定高度产品卡片 */
.fixed-product-item {
    height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    overflow: hidden;
    margin-bottom: 30px;
}
.fixed-product-image {
    width: 100%;
    aspect-ratio: 9/5;
    background: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fixed-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 18px 18px 10px 18px;
}
.product-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #222;
    line-height: 1.4;
}
.product-categories {
    font-size: 13px;
    color: #4f7cff;
    margin-bottom: 8px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.clamp-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.7;
    max-height: 3.4em;
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}
.product-stats {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
}
@media (max-width: 992px) {
    .fixed-product-item { height: 370px; }
}
@media (max-width: 768px) {
    .fixed-product-item { height: 320px; }
    .product-content { padding: 12px 10px 8px 10px; }
    .product-title { font-size: 16px; }
}
@media (max-width: 576px) {
    .fixed-product-item { height: 260px; }
    .product-title { font-size: 15px; }
    .product-categories { font-size: 12px; }
    .clamp-2-lines { font-size: 13px; }
} 