/*
Theme Name: Puock Pro
Theme URI: https://github.com/Licoy/wordpress-theme-puock
Author: Puock Pro Team
Author URI: https://github.com/Licoy/wordpress-theme-puock
Description: 智梦AGI - Puock Pro主题定制版
Version: 2.8.16-pro
*/

@import url('../wordpress-theme-puock-2.8.16/style.css');

/* 主题色 */
:root {
    --pp-primary: #1c60f3;
    --pp-secondary: #6c757d;
    --pp-accent: #00d084;
    --pp-dark: #0d1117;
    --pp-light: #f8f9fa;
}

/* Hero 区域样式 */
.pp-hero-section {
    background: linear-gradient(135deg, var(--pp-dark) 0%, #1a1a2e 100%);
    padding: 60px 0;
    position: relative;
    margin-bottom: 30px;
}

.pp-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='grid' width='10' height='10' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 10 0 L 0 0 0 10' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23grid)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.pp-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.pp-hero-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* 快捷入口 */
.pp-quick-nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.pp-quick-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.pp-quick-nav a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.pp-quick-nav a i {
    font-size: 1.3rem;
}

/* Hero 卡片 */
.pp-hero-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
    margin-bottom: 15px;
}

.pp-hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

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

.pp-hero-card-body {
    padding: 15px;
}

.pp-hero-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.pp-hero-card-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.pp-hero-card-title a:hover {
    color: var(--pp-primary);
}

.pp-hero-card-meta {
    color: #888;
    font-size: 0.8rem;
}

/* 数据统计 */
.pp-stats-section {
    background: #fff;
    padding: 30px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.pp-stat-item {
    text-align: center;
    padding: 15px;
}

.pp-stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pp-primary), var(--pp-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pp-stat-label {
    color: var(--pp-secondary);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* 今日头条大卡片 */
.pp-featured-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

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

.pp-featured-card-body {
    padding: 20px;
}

.pp-featured-card-header {
    margin-bottom: 12px;
}

.pp-featured-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.pp-featured-card-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.pp-featured-card-title a:hover {
    color: var(--pp-primary);
}

.pp-featured-card-excerpt {
    color: var(--pp-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* 24h热榜卡片 */
.pp-hot-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

.pp-hot-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.pp-hot-card-body {
    padding: 12px;
}

.pp-hot-card-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
}

.pp-hot-card-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.pp-hot-card-title a:hover {
    color: var(--pp-primary);
}

.pp-hot-card-meta {
    color: #999;
    font-size: 0.75rem;
    margin-top: 8px;
}

/* 视频专区 */
.pp-video-section {
    background: var(--pp-dark);
    padding: 50px 0;
    margin: 40px 0;
}

.pp-video-card {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.pp-video-thumbnail {
    position: relative;
}

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

.pp-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pp-primary);
    font-size: 1.2rem;
}

.pp-video-info {
    padding: 15px;
}

.pp-video-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.pp-video-meta {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

/* 产品库 */
.pp-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pp-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pp-product-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #f5f5f5;
}

.pp-product-body {
    padding: 15px;
}

.pp-product-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 5px;
}

.pp-product-company {
    color: var(--pp-secondary);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.pp-product-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pp-product-tag {
    padding: 3px 8px;
    background: #f0f2f5;
    border-radius: 10px;
    font-size: 0.7rem;
    color: var(--pp-secondary);
}

/* 排行榜 */
.pp-rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pp-rank-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
}

.pp-rank-item:last-child {
    border-bottom: none;
}

.pp-rank-number {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--pp-primary), var(--pp-accent));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    margin-right: 10px;
    flex-shrink: 0;
}

.pp-rank-number.top3 {
    background: linear-gradient(135deg, #fcb900, #ff6900);
}

.pp-rank-title {
    flex: 1;
    font-size: 0.8rem;
    color: #333;
    line-height: 1.4;
}

.pp-rank-title a {
    color: inherit;
    text-decoration: none;
}

.pp-rank-title a:hover {
    color: var(--pp-primary);
}

/* 活动卡片 */
.pp-event-card {
    background: linear-gradient(135deg, var(--pp-primary), var(--pp-accent));
    border-radius: 12px;
    padding: 18px;
    color: #fff;
    margin-bottom: 12px;
}

.pp-event-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pp-event-time {
    opacity: 0.9;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.pp-event-btn {
    background: #fff;
    color: var(--pp-primary);
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

/* 区块标题 */
.pp-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pp-primary);
}

.pp-section-title i {
    color: var(--pp-primary);
}

/* 标签样式 */
.pp-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 6px;
}

.pp-tag-primary { background: var(--pp-primary); color: #fff; }
.pp-tag-success { background: var(--pp-accent); color: #fff; }
.pp-tag-warning { background: #fcb900; color: #333; }
.pp-tag-danger { background: #cf2e2e; color: #fff; }

/* 热门标签 - 修复样式 */
.sidebar-widget .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-widget .tag-cloud a {
    display: inline-block;
    padding: 6px 12px;
    background: #e4e6eb;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #4a4a4a;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-widget .tag-cloud a:hover {
    background: var(--pp-primary);
    color: #fff;
}

/* 右侧边栏跟随 - 修复 */
@media (min-width: 992px) {
    #content .col-lg-4 > .sidebar-widget:first-child {
        top: 80px;
    }
}

/* 右侧模块 */
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.sidebar-widget .widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pp-primary);
}

/* 社群网格 */
.pp-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.pp-social-item {
    text-align: center;
    padding: 12px 6px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: #f8f9fa;
}

.pp-social-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pp-social-item .pp-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    font-size: 1rem;
    color: #fff;
}

.pp-social-item .pp-social-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
}

.pp-social-item .pp-social-desc {
    font-size: 0.65rem;
    color: #888;
}

.pp-social-item.weixin { background: #e8f5e9; }
.pp-social-item.weixin .pp-social-icon { background: #07c160; }
.pp-social-item.weibo { background: #ffebee; }
.pp-social-item.weibo .pp-social-icon { background: #e6162d; }
.pp-social-item.douyin { background: #f5f5f5; }
.pp-social-item.douyin .pp-social-icon { background: #000; }
.pp-social-item.github { background: #f5f5f5; }
.pp-social-item.github .pp-social-icon { background: #333; }

/* 悬浮弹窗 */
.pp-social-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 100;
    min-width: 140px;
    margin-bottom: 8px;
}

.pp-social-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #fff;
}

.pp-social-item:hover .pp-social-popup {
    display: block;
}

.pp-social-popup img {
    width: 90px;
    height: 90px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.pp-social-popup p {
    margin: 0;
    font-size: 0.75rem;
    color: #666;
}

/* Pro版文章列表 */
.pp-article-list {
    margin-bottom: 25px;
}

.pp-article-item {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.pp-article-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

.pp-article-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.pp-article-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.pp-article-title a:hover {
    color: var(--pp-primary);
}

.pp-article-excerpt {
    color: var(--pp-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.pp-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: #888;
}

.pp-article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.pp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    margin: 0 4px;
    background: #fff;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pp-pagination .page-numbers:hover {
    background: var(--pp-primary);
    color: #fff;
}

.pp-pagination .page-numbers.current {
    background: var(--pp-primary);
    color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .pp-hero-title { font-size: 1.6rem; }
    .pp-quick-nav { justify-content: center; }
    .pp-stat-number { font-size: 1.5rem; }
    .pp-featured-card img { height: 200px; }
    .pp-product-grid { grid-template-columns: 1fr 1fr; }
    .pp-social-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Hero轮播样式 */
.pp-hero-carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.pp-hero-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.pp-hero-card.active {
    display: block !important;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.pp-hero-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.pp-hero-card-body {
    padding: 18px;
}


/* Hero轮播样式 - 酷炫过渡效果 */
.pp-hero-carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 380px;
    background: #f5f5f5;
}

.pp-hero-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pp-hero-card.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.pp-hero-card.prev {
    opacity: 0;
    transform: translateX(-100%);
}

.pp-hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pp-hero-card:hover img {
    transform: scale(1.05);
}

.pp-hero-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.pp-hero-card-title {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.pp-hero-card-title a {
    color: #fff;
    text-decoration: none;
}

.pp-hero-card-title a:hover {
    color: var(--pp-accent);
}

.pp-hero-card-meta {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

/* 轮播指示器 - 酷炫样式 */
.pp-carousel-indicators {
    position: absolute;
    bottom: 15px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.pp-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pp-carousel-dot.active {
    width: 30px;
    border-radius: 5px;
    background: var(--pp-primary);
    box-shadow: 0 0 10px var(--pp-primary);
}

.pp-carousel-dot:hover {
    background: rgba(255,255,255,0.6);
    transform: scale(1.1);
}

/* 左右切换按钮 */
.pp-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
}

.pp-hero-carousel:hover .pp-carousel-nav {
    opacity: 1;
}

.pp-carousel-nav:hover {
    background: var(--pp-primary);
}

.pp-carousel-nav.prev { left: 15px; }
.pp-carousel-nav.next { right: 15px; }

#community {
	position: sticky
}
