/**
 * PC端分类页面样式
 *
 * @package HiTemp
 * @since 1.0.0
 */

/* ===== 分类页面 ===== */
.category-page {
    background: #f8fafc;
}

/* ===== 分类头部 ===== */
.category-hero {
    background: linear-gradient(135deg, #f66600 0%, #ff8534 50%, #ffa366 100%);
    position: relative;
    overflow: hidden;
}

.category-hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.category-hero .hero-content {
    max-width: 600px;
}

.category-hero .hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.category-hero .hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.category-hero .hero-decoration {
    position: relative;
    width: 200px;
    height: 200px;
}

.category-hero .deco-circle {
    width: 180px;
    height: 180px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 10px;
}

.category-hero .deco-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.4) 2px, transparent 2px);
    background-size: 12px 12px;
    position: absolute;
    bottom: 0;
    right: 0;
}

/* ===== 分类筛选 ===== */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 30px 0;
    justify-content: center;
}

.category-filter .filter-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-filter .filter-item:hover {
    border-color: #f66600;
    color: #f66600;
}

.category-filter .filter-item.active {
    background: #f66600;
    border-color: #f66600;
    color: #fff;
    box-shadow: 0 2px 8px rgba(246, 102, 0, 0.25);
}

.category-filter .filter-item .count {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 4px;
}

.category-filter .filter-item.active .count {
    background: rgba(255, 255, 255, 0.25);
}

/* ===== 文章网格 ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 0px;
    margin-bottom: 40px;
    align-items: start;
}

/* ===== 文章卡片 ===== */
.post-card {
    position: relative;
    border-radius: 16px;
    border: 2px solid transparent;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* 只有书签样式需要超出显示 */
.post-card:has(.product-tag-style1) {
    overflow: visible;
    padding-top: 8px;
}

/* 书签样式卡片内的链接需要负margin抵消padding */
.post-card:has(.product-tag-style1) .post-card-link {
    margin-top: -8px;
}

.post-card-link {
    display: block;
    text-decoration: none;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

.post-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f66600, transparent);
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.post-card:hover {
    border-color: #f66600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.post-card:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.post-card:hover .post-thumbnail img {
    transform: none !important;
}

.post-thumbnail {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8fafc;
    transition: transform 0.3s ease;
}

.post-thumbnail .no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #94a3b8;
    font-size: 48px;
}

/* 产品标签 */
.post-card .product-tag {
    position: absolute;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-card .product-tag i {
    font-size: 11px;
}

/* 样式1: 书签竖排 */
.post-card .product-tag-style1 {
    top: -8px;
    right: 15px;
    border-radius: 0 0 4px 4px;
    padding: 10px 8px 12px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 2px;
}
.post-card .product-tag-style1::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: inherit;
    border-top-width: 6px;
}

/* 样式2: 折纸效果 */
.post-card .product-tag-style2 {
    top: 0;
    right: 0;
    border-radius: 0 14px 0 0;
    padding: 6px 12px 6px 16px;
    clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
}
.post-card .product-tag-style2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.3) 50%);
}

/* 样式3: 斜角标签 */
.post-card .product-tag-style3 {
    top: 12px;
    right: -30px;
    padding: 4px 35px;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 样式4: 边框镂空 */
.post-card .product-tag-style4 {
    top: 10px;
    right: 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 样式5: 立体凸起 */
.post-card .product-tag-style5 {
    top: 10px;
    right: 10px;
    border-radius: 4px;
    box-shadow: 0 3px 0 rgba(0,0,0,0.2), 0 4px 10px rgba(0,0,0,0.15);
}

/* VIP会员免费标签 */
.post-card .vip-free-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.post-card .vip-free-tag i {
    font-size: 10px;
}

/* 包年免费标签 - 金色 */
.post-card .vip-free-tag.yearly-free {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.95) 0%, rgba(245, 158, 11, 0.95) 100%);
    color: #78350f;
}

/* 终身免费标签 - 紫色 */
.post-card .vip-free-tag.lifetime-free {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%);
    color: #fff;
}

/* ===== 卡片底部信息栏（统一容器） ===== */
.post-card .post-card-footer {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 10;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(246, 102, 0, 0.3);
}

/* 上半部分：浏览量/日期栏 */
.post-card .post-card-footer .post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgb(255 152 0 / 88%);
    backdrop-filter: blur(4px);
    padding: 12px 12px;
    border-radius: 12px 12px 0 0;
}

.post-card .post-card-footer .post-meta-views,
.post-card .post-card-footer .post-meta-date {
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.post-card .post-card-footer .post-meta-views {
    flex: 1;
}

.post-card .post-card-footer .post-meta-views i {
    font-size: 11px;
    color: #f66600;
}

.post-card .post-card-footer .post-meta-date {
    text-align: right;
    white-space: nowrap;
}

.post-card .post-card-footer .post-meta-date i {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.post-card .post-card-footer .post-meta-date .update-text {
    color: #ff5722;
}

/* 下半部分：分类/标题栏 */
.post-card .post-card-footer .post-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f66600;
    padding: 14px 12px;
    border-radius: 0 0 12px 12px;
}

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

.post-card .post-card-footer .post-info .post-info-text .post-category {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.post-card .post-card-footer .post-info .post-info-text .post-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 箭头按钮 */
.post-card .post-card-footer .post-info .post-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    color: #f66600;
    font-size: 14px;
    margin-left: 8px;
}


/* ===== 无文章提示 ===== */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.no-posts i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.no-posts p {
    font-size: 16px;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    font-size: 14px;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination a:hover {
    color: #f66600;
    border-color: #f66600;
}

.pagination .current {
    color: #fff;
    background: #f66600;
    border-color: #f66600;
}

.pagination .prev,
.pagination .next {
    gap: 5px;
}

/* ===== 服务展示区块 ===== */
.services-section {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
	margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.services-header {
    text-align: center;
    margin-bottom: 35px;
}

.services-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.services-desc {
    font-size: 14px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.service-item:hover {
    background: #f8fafc;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 48px;
}

.service-name {
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .post-card .post-card-footer .post-card-meta {
        padding: 11px 12px;
    }
    
    .post-card .post-card-footer .post-info {
        padding: 10px 12px;
    }
    
    .post-card .post-card-footer .post-info .post-info-text .post-title {
        font-size: 12px;
    }
    
    .post-card .post-card-footer .post-info .post-arrow {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 992px) {
    .category-hero .hero-title {
        font-size: 32px;
    }
    
    .category-hero .hero-decoration {
        display: none;
    }
}

@media (max-width: 768px) {
    .category-hero .hero-title {
        font-size: 28px;
    }
    
    .category-hero .hero-subtitle {
        font-size: 15px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .post-card .post-card-footer {
        bottom: 8px;
        left: 8px;
        right: 8px;
    }
    
    .post-card .post-card-footer .post-card-meta {
        padding: 7px 10px;
    }
    
    .post-card .post-card-footer .post-meta-views,
    .post-card .post-card-footer .post-meta-date {
        font-size: 11px;
    }
    
    .post-card .post-card-footer .post-info {
        padding: 8px 10px;
    }
    
    .post-card .post-card-footer .post-info .post-info-text .post-category {
        font-size: 10px;
    }
    
    .post-card .post-card-footer .post-info .post-info-text .post-title {
        font-size: 13px;
    }
    
    .post-card .post-card-footer .post-info .post-arrow {
        width: 28px;
        height: 28px;
        font-size: 13px;
        margin-left: 6px;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-thumbnail {
        aspect-ratio: 4 / 5;
    }
    
    .services-section {
        padding: 25px 15px;
    }
    
    .services-title {
        font-size: 22px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .service-icon {
        font-size: 28px;
    }
    
    .service-name {
        font-size: 13px;
    }
}

