/* 产品导航样式 */

.site-content {
  margin-top: 50px;
  background: #F5F5F5;
}

/* 标签样式 */
.aipn-tag-badge {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px;
    font-size: 12px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
}

.color-1 { background-color: #EAEFFF; color: #6279E5; }
.color-2 { background-color: #E2F7F7; color: #2CB1B1; }
.color-3 { background-color: #FFF2D8; color: #F39800; }
.color-4 { background-color: #F3EAFF; color: #D17DED; }
.color-5 { background-color: #EAF3FF; color: #57A2FF; }
.color-6 { background-color: #ECF7E5; color: #91D465; }
.color-7 { background-color: #FFF1FB; color: #ED7DAF; }
.color-8 { background-color: #EAFFF7; color: #53DFAE; }
.color-9 { background-color: #FFFAD6; color: #E8C30B; }

/* .color-1 { 
  background-color: #007bff; 
}
.color-2 { background-color: #28a745; }
.color-3 { background-color: #dc3545; }
.color-4 { background-color: #ffc107; color: #212529; }
.color-5 { background-color: #17a2b8; }
.color-6 { background-color: #6f42c1; }
.color-7 { background-color: #fd7e14; }
.color-8 { background-color: #e83e8c; } */

/* 按钮样式 */
.aipn-btn-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    transition: all 0.3s ease;
}

.aipn-btn-card:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.aipn-like-btn {
    min-width: 80px;
}

.aipn-official-btn {
    min-width: 100px;
}

/* 热度分数样式 */
.hot-score-box {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* 轮播图样式 */
.aipn-carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.aipn-carousel-inner {
    display: flex;
    transition: transform 0.3s ease;
}

.aipn-carousel-item {
    flex: 0 0 100%;
    position: relative;
}

.aipn-carousel-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.aipn-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    transition: background 0.3s ease;
}

.aipn-carousel-control:hover {
    background: rgba(0, 0, 0, 0.7);
}

.aipn-carousel-control.prev {
    left: 10px;
}

.aipn-carousel-control.next {
    right: 10px;
}

.related-products {
  border-radius: 13px;
  border: none;
  margin-bottom: 16px;
  padding: 20px;
  background: #ffffff;
}

/* 相关产品样式 */
.related-products-title {
    position: relative;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.related-products-title span {
    position: relative;
    padding-left: 15px;
}

.related-products-title span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 2px;
}

/* 分页样式 */
.aipn-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.aipn-page-total {
    color: #666;
    font-size: 14px;
}

.aipn-page-btn {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.aipn-page-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    text-decoration: none;
}

.aipn-page-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.aipn-page-jump-form {
    display: flex;
    align-items: center;
    gap: 5px;
}

.aipn-page-jump-input {
    width: 60px;
    text-align: center;
}

.aipn-page-jump-btn {
    padding: 8px 12px;
    font-size: 12px;
}

/* 分类筛选样式（合并整理） */
.category-filter {
  background-color: #ffffff;
  border-radius: 13px;
  padding: 20px;
  margin-bottom: 16px;
}

.category-filter .badge {
  color: #6B6B6E;
  font-size: 12px;
  text-decoration: none;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.category-filter .badge.active {
  background: #EEF3FF;
  color: #3370FF;
}

.category-filter .badge:hover {
  background: inherit;
  color: inherit;
  transform: none;
  box-shadow: none;
}

.category-filter .badge.clicked {
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

/* 加载动画 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.glyphicon-refresh {
  animation: spin 1s linear infinite;
}

/* 广告位样式 */
.aipn-ad-widget {
    margin-bottom: 20px;
}

.aipn-ad-widget img {
  width: 100%;
  height: auto;
}

.ad-lazy-container {
    min-height: 200px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-list-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    .aipn-carousel-img {
        height: 200px;
    }
    
    .aipn-page-jump-form {
        margin-top: 10px;
    }
    
    .category-filter .badge {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* 懒加载样式 */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

/* 搜索框样式 */
.navbar .form-control {
    border-radius: 20px;
    border: 1px solid #dee2e6;
}

.navbar .btn-outline-primary {
    border-radius: 20px;
    border-color: #007bff;
    color: #007bff;
}

.navbar .btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* 产品信息卡片样式 */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.card-body {
    padding: 20px;
}

.card-body h6 {
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
}

.card-body ul li {
    padding: 5px 0;
    border-bottom: 1px solid #f8f9fa;
}

.card-body ul li:last-child {
    border-bottom: none;
}

/* 标签列表样式 */
.aipn-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

/* 产品内容样式 */
.aipn-content {
  background-color: #ffffff;
  line-height: 1.8;
  border-radius: 13px;
  margin-bottom: 16px;
  border: none;
  padding: 20px;
}

.aipn-content h1,
.aipn-content h2,
.aipn-content h3,
.aipn-content h4,
.aipn-content h5,
.aipn-content h6 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.aipn-content p {
    margin-bottom: 20px;
    color: #555;
}

.aipn-content img {
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* 归档页面样式 */
.aipn-arihive-header {
  background: #ffffff;
  border-radius: 8px 8px 0 0;
}

.aipn-arihive-header h2 {
    margin-bottom: 14px;
}

.aipn-archive-header-desc {
    margin: 0;
}

/* 返回顶部按钮样式 */
#back-to-top {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

#back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* 确保所有内容区域使用一致的网格结构 */
.row.mb-4 {
  margin-bottom: 24px !important;
}

.row.mb-3 {
  margin-bottom: 16px !important;
}

.product-list {
  background-color: #ffffff;
  border-radius: 13px;
  padding: 20px;
  margin-bottom: 16px;
}

/* 产品列表项样式 */
.product-list-item {
  transition: background-color 0.2s ease;
}

.product-list-item .media {
  display: table;
  min-width:100%;
  border-radius:13px;
  padding:18px 20px;
  background:#fff;
}

.product-list-item .media .media-left {
  width: 72px;
  margin-right: 20px;
}

.product-list-item .media .media-right {
  min-width: 205px;
  display: table-cell;
  vertical-align: middle;
  text-align: right;
}

.product-list-item .media:hover {
  background:#F8F9FC;
  border-radius: 13px;
}

.product-list-item:last-child {
  border-bottom: none !important;
}

.product-list-item .media .media-left img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.product-list-item .media .media-body {
  font-weight: 600;
  font-size: 16px;
  max-width: 420px;
  display: inline-block;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-list-item .media .media-body h3 {
  margin-top: 0;
  margin-bottom: 8px;
  line-height: 30px;
  font-size: 18px;
  font-weight: 400;
}

.product-list-item .media .media-body h3 a{
  color: #1A1A1A;
  display: inline-block;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-list-item .media .media-body .text-muted {
  font-size: 14px;
  font-weight: 400;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 14px;
}

.product-list-item .media .media-body .label {
  margin-right: 12px;
  vertical-align:middle;
}

.aipn-product-info-item {
  display: inline-block;
  width: 46px;
  text-align: center;
  vertical-align: middle;
}

.aipn-product-info-item i {
  font-size: 16px;
}

.aipn-product-info-item span {
  font-size: 13px;
  font-weight: 400;
  color: #6B6B6E;
  display: block;
  line-height: 30px;
}

.aipn-product-info {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}


.product-title {
  font-size: 24px;
  line-height: 30px;
  font-weight: 400;
  color: #1A1A1A;
  margin-top: 0;
  margin-bottom: 14px;
}

.product-excerpt {
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
  color: #3D3D3D;
  margin-bottom: 10px;
}

.product-tags .label {
  margin-right: 12px;
  vertical-align:middle;
}

/* WordPress正文编辑区样式 */
.entry-content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  color: #2c3e50;
  font-size: 16px;
}

/* 标题样式 */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-weight: 600;
  color: #1a202c;
  margin-top: 32px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.entry-content h1 {
  font-size: 32px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}

.entry-content h2 {
  font-size: 20px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6.4px;
}

.entry-content h3 {
  font-size: 18px;
}

.entry-content h4 {
  font-size: 16px;
}

.entry-content h5 {
  font-size: 16px;
}

.entry-content h6 {
  font-size: 16px;
}

/* 段落样式 */
.entry-content p {
  margin-bottom: 24px;
  text-align: justify;
  word-break: break-word;
}

/* 链接样式 */
.entry-content a {
  color: #3182ce;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.entry-content a:hover {
  color: #2c5282;
  border-bottom-color: #2c5282;
}

/* 列表样式 */
.entry-content ul,
.entry-content ol {
  margin-bottom: 24px;
  padding-left: 32px;
}

.entry-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.entry-content ul li {
  list-style-type: disc;
  color: #4a5568;
}

.entry-content ol li {
  list-style-type: decimal;
  color: #4a5568;
}

/* 嵌套列表 */
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* 引用样式 */
.entry-content blockquote {
  background: #f7fafc;
  border-left: 4px solid #3182ce;
  padding: 16px 24px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #4a5568;
}

.entry-content blockquote p {
  margin-bottom: 0;
}

.entry-content blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: #718096;
  font-style: normal;
}

/* 代码样式 */
.entry-content code {
  background: #f1f5f9;
  color: #e53e3e;
  padding: 3.2px 6.4px;
  border-radius: 4px;
  font-size: 14px;
  font-family: "SF Mono", Monaco, Inconsolata, "Roboto Mono", Consolas, "Courier New", monospace;
}

.entry-content pre {
  background: #2d3748;
  color: #e2e8f0;
  padding: 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 32px 0;
  font-family: "SF Mono", Monaco, Inconsolata, "Roboto Mono", Consolas, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
}

.entry-content pre code {
  background: none;
  color: inherit;
}

/* 迁移自插件css/aipn-main.css，适配Bootstrap 3 */
.entry-content pre code {
  background: none;
  color: inherit;
}

