/* 盘天下资源平台 - 主CSS文件 */
/* 整合了首页、列表页、详情页、排行榜页和搜索结果页样式，去除重复定义 */

/* 基础变量定义 */
:root {
    --ptx-primary: #4f46e5;
    --ptx-secondary: #7c3aed;
    --ptx-accent: #f59e0b;
    --ptx-bg-light: #f8fafc;
    --ptx-bg-card: #ffffff;
    --ptx-text-dark: #1e293b;
    --ptx-text-medium: #475569;
    --ptx-text-light: #64748b;
    --ptx-border: #e2e8f0;
    --ptx-border-light: #f1f5f9;
    --ptx-success: #10b981;
    --ptx-danger: #ef4444;
    --ptx-warning: #f59e0b;
    --ptx-info: #3b82f6;
    --ptx-radius: 8px;
    --ptx-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --ptx-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.12);
    --ptx-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ptx-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--ptx-bg-light);
    color: var(--ptx-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 140px;
}

/* 玻璃态效果 */
.ptx-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 图标样式 */
.ptx-icon {
    font-size: 1rem;
    vertical-align: middle;
}

/* 进度条 */
.ptx-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ptx-primary), var(--ptx-secondary));
    z-index: 1001;
    transition: width 0.3s ease;
}

/* 顶部头部 */
.ptx-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    color: var(--ptx-text-dark);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--ptx-border);
}

.ptx-header-top {
    padding: 15px 0;
    border-bottom: 1px solid var(--ptx-border-light);
}

.ptx-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部容器宽度调整为1300px，比主内容区宽 */
.ptx-header .ptx-container {
    max-width: 1300px;
}

.ptx-header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo样式 */
.ptx-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
}

.ptx-logo-img {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    border-radius: var(--ptx-radius);
}

.ptx-logo-text h1 {
    font-size: 20px;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ptx-logo-text p {
    font-size: 12px;
    color: var(--ptx-text-light);
}

/* 搜索框 */
.ptx-search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.ptx-search-box {
    width: 100%;
    padding: 14px 55px 14px 25px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: var(--ptx-text-dark);
    font-size: 15px;
    border-radius: 30px;
    transition: var(--ptx-transition);
}

.ptx-search-box:focus {
    outline: none;
    border-color: var(--ptx-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    background: white;
}

/* 搜索结果页搜索框样式 */
.ptx-search-page .ptx-search-box {
    background: #ffffff;
    border: 2px solid var(--ptx-primary);
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.2);
}

.ptx-search-page .ptx-search-box:focus {
    border-color: var(--ptx-secondary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.ptx-search-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ptx-transition);
}

.ptx-search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

/* 热搜按钮样式 */
.ptx-hot-search-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--ptx-text-medium);
    border-radius: 8px !important;
    text-decoration: none;
    font-size: 14px;
    transition: var(--ptx-transition);
    cursor: pointer;
    font-weight: normal;
    height: 36px;
}

.ptx-hot-search-btn:hover {
    background: #e2e8f0;
    color: var(--ptx-primary);
    transform: translateY(-2px);
}

/* 搜索结果页热搜按钮样式 */
.ptx-search-page .ptx-hot-search-btn {
    background: #ffffff;
    border: 1px solid var(--ptx-border);
    color: var(--ptx-text-medium);
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ptx-search-page .ptx-hot-search-btn:hover {
    background: var(--ptx-primary);
    color: white;
    border-color: var(--ptx-primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.ptx-hot-search-btn i {
    font-size: 18px;
}

/* 顶部操作按钮容器 */
.ptx-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    justify-content: flex-end;
}

/* 多层级导航栏 */
.ptx-nav {
    padding: 0;
    position: relative;
    z-index: 999;
}

.ptx-nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.ptx-nav-list > li {
    position: relative;
}

.ptx-nav-list > li > a {
    display: block;
    padding: 18px 36px;
    color: var(--ptx-text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--ptx-transition);
    border-bottom: 3px solid transparent;
    position: relative;
}

.ptx-nav-list > li:hover > a,
.ptx-nav-list > li.ptx-active > a {
    background: #f8fafc;
    border-bottom-color: var(--ptx-primary);
    color: var(--ptx-primary);
}

/* 搜索结果页导航栏样式 */
.ptx-search-page .ptx-nav-list > li > a {
    padding: 18px 25px;
    color: var(--ptx-text-light);
}

.ptx-search-page .ptx-nav-list > li:hover > a,
.ptx-search-page .ptx-nav-list > li.ptx-active > a {
    background: rgba(79, 70, 229, 0.05);
}

.ptx-nav-list > li > a em {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 6px;
    opacity: 0.7;
}

/* 二级菜单 */
.ptx-sub-nav {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    backdrop-filter: blur(10px);
    min-width: 220px;
    border-radius: 0 0 var(--ptx-radius) var(--ptx-radius);
    box-shadow: var(--ptx-shadow-hover);
    display: none;
    padding: 10px 0;
    z-index: 1000;
    border: 1px solid var(--ptx-border);
    border-top: none;
    animation: ptx-slideDown 0.3s ease-out;
}

@keyframes ptx-slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ptx-nav-list > li:hover .ptx-sub-nav {
    display: block;
}

.ptx-sub-nav li {
    list-style: none;
}

.ptx-sub-nav a {
    display: block;
    padding: 12px 25px;
    color: var(--ptx-text-medium);
    text-decoration: none;
    font-size: 14px;
    transition: var(--ptx-transition);
    position: relative;
}

.ptx-sub-nav a:hover {
    background: #f8fafc;
    color: var(--ptx-primary);
    padding-left: 30px;
}

.ptx-sub-nav a::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: var(--ptx-primary);
    border-radius: 50%;
    opacity: 0;
    transition: var(--ptx-transition);
}

.ptx-sub-nav a:hover::before {
    opacity: 1;
}

/* =============================== */
/* 详情页特有样式开始 */
/* =============================== */

/* 详情页面主内容区 */
.ptx-detail-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 15px 4rem;
}

/* 面包屑导航 */
.ptx-breadcrumb {
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: var(--ptx-bg-card);
    border-radius: var(--ptx-radius);
    border: 1px solid var(--ptx-border);
    box-shadow: var(--ptx-shadow);
}

.ptx-breadcrumb ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ptx-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ptx-text-light);
    font-size: 0.9rem;
}

.ptx-breadcrumb a {
    color: var(--ptx-text-dark);
    text-decoration: none;
    transition: var(--ptx-transition);
}

.ptx-breadcrumb a:hover {
    color: var(--ptx-primary);
}

.ptx-breadcrumb .ptx-separator {
    color: var(--ptx-text-light);
    font-size: 0.8rem;
}

.ptx-breadcrumb .ptx-current {
    color: var(--ptx-primary);
    font-weight: 500;
}

/* 模块1: 图片/标题/时间 */
.ptx-detail-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
    background: var(--ptx-bg-card);
    border-radius: var(--ptx-radius);
    overflow: hidden;
    border: 1px solid var(--ptx-border);
    padding: 2rem;
    box-shadow: var(--ptx-shadow);
}

.ptx-detail-poster {
    border-radius: var(--ptx-radius);
    overflow: hidden;
    box-shadow: var(--ptx-shadow);
}

.ptx-detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ptx-detail-poster:hover img {
    transform: scale(1.03);
}

.ptx-detail-title-section {
    display: flex;
    flex-direction: column;
}

.ptx-detail-category {
    display: inline-block;
    padding: 6px 15px;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    color: white;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.ptx-detail-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--ptx-text-dark);
}

.ptx-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 1.5rem;
    color: var(--ptx-text-light);
    font-size: 0.9rem;
}

.ptx-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ptx-detail-meta-item i {
    color: var(--ptx-primary);
}

.ptx-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.ptx-detail-tag {
    padding: 5px 12px;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--ptx-primary);
    transition: var(--ptx-transition);
    cursor: pointer;
}

.ptx-detail-tag:hover {
    background: rgba(79, 70, 229, 0.15);
    color: var(--ptx-primary);
    transform: translateY(-2px);
}

/* 模块2: 简介 */
.ptx-detail-section {
    background: var(--ptx-bg-card);
    border-radius: var(--ptx-radius);
    border: 1px solid var(--ptx-border);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--ptx-shadow);
}

.ptx-section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ptx-border);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ptx-text-dark);
}

.ptx-section-title i {
    color: var(--ptx-primary);
}

.ptx-detail-description {
    color: var(--ptx-text-medium);
    line-height: 1.8;
    font-size: 1.05rem;
}

.ptx-detail-description p {
    margin-bottom: 1.5rem;
}

/* 模块3: 截图 - Swiper轮播样式 */
.ptx-single-slide {
    position: relative;
    overflow: hidden;
    border-radius: var(--ptx-radius);
    background: var(--ptx-bg-card);
    border: 1px solid var(--ptx-border);
    padding: 1.5rem;
}

.ptx-single-slide-container {
    position: relative;
    overflow: hidden;
}

.ptx-swiper-wrapper {
    display: flex;
    transition-duration: 300ms;
}

.ptx-swiper-slide {
    width: 270px !important;
    margin-right: 20px;
    flex-shrink: 0;
    border-radius: var(--ptx-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--ptx-transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.ptx-swiper-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ptx-swiper-slide a {
    display: block;
    width: 100%;
    height: 180px;
}

.ptx-swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--ptx-radius);
}

.ptx-single-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--ptx-transition);
    border: 1px solid var(--ptx-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ptx-single-button:hover {
    background: var(--ptx-primary);
    border-color: var(--ptx-primary);
}

.ptx-single-button:hover svg path {
    fill: white;
}

.ptx-single-button-prev {
    left: 10px;
}

.ptx-single-button-next {
    right: 10px;
}

/* 模块4: 下载 */
.ptx-download-plane {
    display: flex;
    align-items: center;
    background: var(--ptx-bg-card);
    border-radius: var(--ptx-radius);
    padding: 1.5rem;
    border: 1px solid var(--ptx-border);
    margin-bottom: 1.5rem;
    transition: var(--ptx-transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.ptx-download-plane:hover {
    border-color: var(--ptx-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.1);
}

.ptx-download-plane-icon {
    flex-shrink: 0;
    margin-right: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.05);
    border-radius: var(--ptx-radius);
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.ptx-download-plane-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.ptx-download-plane-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ptx-download-plane-info > div:first-child {
    flex: 1;
}

.ptx-download-plane-info a {
    font-size: 1.2rem;
    color: var(--ptx-text-dark);
    text-decoration: none;
    transition: var(--ptx-transition);
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.ptx-download-plane-info a:hover {
    color: var(--ptx-primary);
}

.ptx-source-info {
    color: var(--ptx-text-light);
    font-size: 0.9rem;
}

.ptx-download-btn-container {
    flex-shrink: 0;
}

.ptx-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    color: white;
    border: none;
    border-radius: var(--ptx-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ptx-transition);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.ptx-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.ptx-download-btn i {
    font-size: 1.1rem;
}

/* 下载说明区域 */
.ptx-download-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(245, 158, 11, 0.05);
    border-radius: var(--ptx-radius);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.ptx-download-note h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--ptx-text-dark);
}

.ptx-download-note ul {
    color: var(--ptx-text-medium);
    padding-left: 1.5rem;
}

.ptx-download-note li {
    margin-bottom: 0.5rem;
}

.ptx-download-note code {
    background: rgba(79, 70, 229, 0.1);
    color: var(--ptx-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* 模块5: 相关推荐 */
.ptx-related-resources {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.ptx-related-item {
    background: var(--ptx-bg-card);
    border-radius: var(--ptx-radius);
    overflow: hidden;
    border: 1px solid var(--ptx-border);
    transition: var(--ptx-transition);
    box-shadow: var(--ptx-shadow);
}

.ptx-related-item:hover {
    transform: translateY(-5px);
    border-color: var(--ptx-primary);
    box-shadow: var(--ptx-shadow-hover);
}

.ptx-related-img {
    height: 180px;
    overflow: hidden;
}

.ptx-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ptx-related-item:hover .ptx-related-img img {
    transform: scale(1.05);
}

.ptx-related-info {
    padding: 1.5rem;
}

.ptx-related-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--ptx-primary);
    border-radius: 12px;
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.ptx-related-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--ptx-text-dark);
    line-height: 1.4;
}

.ptx-related-meta {
    display: flex;
    justify-content: space-between;
    color: var(--ptx-text-light);
    font-size: 0.8rem;
}

/* =============================== */
/* 详情页特有样式结束 */
/* =============================== */

/* =============================== */
/* 搜索结果页特有样式开始 */
/* =============================== */

/* 搜索结果主内容区 */
.ptx-search-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 15px 4rem;
}

/* 搜索统计信息 */
.ptx-search-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--ptx-bg-card);
    border-radius: var(--ptx-radius);
    border: 1px solid var(--ptx-border);
    box-shadow: var(--ptx-shadow);
}

.ptx-search-result-info {
    font-size: 1.1rem;
    color: var(--ptx-text-dark);
}

.ptx-search-keyword {
    color: var(--ptx-primary);
    font-weight: 600;
    padding: 2px 8px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 4px;
}

.ptx-search-count {
    color: var(--ptx-danger);
    font-weight: 600;
}

.ptx-search-time {
    color: var(--ptx-text-light);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* 搜索筛选栏 */
.ptx-search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--ptx-bg-card);
    border-radius: var(--ptx-radius);
    border: 1px solid var(--ptx-border);
    box-shadow: var(--ptx-shadow);
}

.ptx-filter-title {
    font-weight: 600;
    color: var(--ptx-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
}

.ptx-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ptx-filter-btn {
    padding: 8px 16px;
    background: var(--ptx-bg-light);
    border: 1px solid var(--ptx-border);
    color: var(--ptx-text-light);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--ptx-transition);
    font-size: 0.9rem;
}

.ptx-filter-btn:hover {
    background: rgba(79, 70, 229, 0.1);
    color: var(--ptx-primary);
    border-color: var(--ptx-primary);
}

.ptx-filter-btn.ptx-active {
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    color: white;
    border-color: transparent;
}

/* 排序选项 */
.ptx-sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.ptx-sort-select {
    padding: 8px 15px;
    background: var(--ptx-bg-light);
    border: 1px solid var(--ptx-border);
    color: var(--ptx-text-dark);
    border-radius: var(--ptx-radius);
    font-size: 0.9rem;
    cursor: pointer;
}

/* 列表布局 */
.ptx-search-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2.5rem;
}

/* 搜索结果列表 */
.ptx-search-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ptx-result-item {
    display: flex;
    background: var(--ptx-bg-card);
    border-radius: var(--ptx-radius);
    overflow: hidden;
    border: 1px solid var(--ptx-border);
    transition: var(--ptx-transition);
    position: relative;
    box-shadow: var(--ptx-shadow);
}

.ptx-result-item:hover {
    transform: translateY(-5px);
    border-color: var(--ptx-primary);
    box-shadow: var(--ptx-shadow-lg);
}

.ptx-result-img {
    width: 180px;
    min-width: 180px;
    height: auto;
    overflow: hidden;
}

.ptx-result-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ptx-result-item:hover .ptx-result-img img {
    transform: scale(1.05);
}

.ptx-result-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ptx-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.ptx-result-category {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    color: white;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.ptx-result-match {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--ptx-warning);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

.ptx-result-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--ptx-text-dark);
    line-height: 1.4;
}

.ptx-result-name a {
    color: inherit;
    text-decoration: none;
}

.ptx-result-name a:hover {
    color: var(--ptx-primary);
}

.ptx-result-highlight {
    background: rgba(245, 158, 11, 0.2);
    padding: 0 4px;
    border-radius: 3px;
    font-weight: 600;
}

.ptx-result-desc {
    color: var(--ptx-text-medium);
    margin-bottom: 15px;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.ptx-result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ptx-text-light);
    font-size: 0.85rem;
    margin-top: auto;
}

.ptx-result-stats {
    display: flex;
    gap: 20px;
}

.ptx-result-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ptx-result-download-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    color: white;
    border: none;
    border-radius: var(--ptx-radius);
    cursor: pointer;
    transition: var(--ptx-transition);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ptx-result-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

/* 无结果提示 */
.ptx-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--ptx-bg-card);
    border-radius: var(--ptx-radius);
    border: 1px solid var(--ptx-border);
    box-shadow: var(--ptx-shadow);
}

.ptx-no-results-icon {
    font-size: 3rem;
    color: var(--ptx-text-light);
    margin-bottom: 1.5rem;
}

.ptx-no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--ptx-text-dark);
}

.ptx-no-results p {
    color: var(--ptx-text-medium);
    margin-bottom: 1.5rem;
}

/* 相关搜索 */
.ptx-related-search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1rem;
}

.ptx-related-search a {
    padding: 6px 12px;
    background: var(--ptx-bg-light);
    border: 1px solid var(--ptx-border);
    border-radius: 20px;
    color: var(--ptx-text-light);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--ptx-transition);
}

.ptx-related-search a:hover {
    background: var(--ptx-primary);
    color: white;
    border-color: var(--ptx-primary);
}

/* =============================== */
/* 搜索结果页特有样式结束 */
/* =============================== */

/* 主内容区 - 首页 */
.ptx-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px 2rem;
}

/* 今日精选推荐模块 */
.ptx-featured-section {
    margin: 50px 0;
}

.ptx-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.ptx-section-title-secondary {
    font-size: 28px;
    color: var(--ptx-text-dark);
    position: relative;
    padding-left: 20px;
}

.ptx-section-title-secondary::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
}

.ptx-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.ptx-featured-card {
    background: white;
    border-radius: var(--ptx-radius);
    overflow: hidden;
    box-shadow: var(--ptx-shadow);
    transition: var(--ptx-transition);
    border: 1px solid var(--ptx-border);
}

.ptx-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ptx-shadow-hover);
    border-color: rgba(79, 70, 229, 0.3);
}

.ptx-featured-img {
    height: 200px;
    overflow: hidden;
}

.ptx-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ptx-featured-card:hover .ptx-featured-img img {
    transform: scale(1.05);
}

.ptx-featured-content {
    padding: 20px;
}

.ptx-featured-content div {
    display: flex;
    justify-content: space-between;
    margin-top:15px;
    color:var(--ptx-text-light);
    font-size:12px;
}

.ptx-featured-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    color: white;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 10px;
}

.ptx-featured-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--ptx-text-dark);
    line-height: 1.4;
}

/* 热门资源轮播 */
.ptx-carousel {
    position: relative;
    margin: 4rem 0;
    overflow: hidden;
}

.ptx-carousel-track {
    display: flex;
    gap: 1.5rem;
    animation: ptx-carousel-scroll 30s linear infinite;
}

.ptx-carousel-item {
    min-width: 280px;
    background: white;
    border-radius: var(--ptx-radius);
    padding: 1.5rem;
    border: 1px solid var(--ptx-border);
    box-shadow: var(--ptx-shadow);
}

@keyframes ptx-carousel-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 列表页面主内容区 */
.ptx-list-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 15px 4rem;
}

/* 页面标题 */
.ptx-list-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 20px;
    color: var(--ptx-text-dark);
}

.ptx-list-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    border-radius: 2px;
}

.ptx-list-title span {
    font-size: 1rem;
    color: var(--ptx-text-light);
    margin-left: 10px;
}

/* 列表布局 */
.ptx-list-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2.5rem;
}

/* 资源列表项 */
.ptx-resource-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ptx-resource-item {
    display: flex;
    background: var(--ptx-bg-card);
    border-radius: var(--ptx-radius);
    overflow: hidden;
    border: 1px solid var(--ptx-border);
    transition: var(--ptx-transition);
    position: relative;
    box-shadow: var(--ptx-shadow);
}

.ptx-resource-item:hover {
    transform: translateY(-5px);
    border-color: var(--ptx-primary);
    box-shadow: var(--ptx-shadow-hover);
}

.ptx-resource-img {
    width: 200px;
    min-width: 200px;
    height: auto;
    overflow: hidden;
}

.ptx-resource-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ptx-resource-item:hover .ptx-resource-img img {
    transform: scale(1.05);
}

.ptx-resource-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ptx-resource-category {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    color: white;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 12px;
    align-self: flex-start;
    font-weight: 500;
}

.ptx-resource-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--ptx-text-dark);
    line-height: 1.4;
}

.ptx-resource-desc {
    color: var(--ptx-text-medium);
    margin-bottom: 15px;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.ptx-resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ptx-text-light);
    font-size: 0.85rem;
    margin-top: 18px;
}

.ptx-resource-stats {
    display: flex;
    gap: 20px;
}

.ptx-resource-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ptx-resource-tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.ptx-resource-tag {
    padding: 3px 10px;
    background: var(--ptx-bg-light);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--ptx-text-medium);
    border: 1px solid var(--ptx-border);
}

/* 分页 */
.ptx-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.ptx-pagination-btn {
    padding: 10px 18px;
    background: var(--ptx-bg-card);
    border: 1px solid var(--ptx-border);
    color: var(--ptx-text-dark);
    border-radius: var(--ptx-radius);
    cursor: pointer;
    transition: var(--ptx-transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.ptx-pagination-btn:hover {
    background: var(--ptx-primary);
    color: white;
    border-color: var(--ptx-primary);
}

.ptx-pagination-btn.ptx-active {
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    color: white;
    border-color: transparent;
}

.ptx-pagination-btn.ptx-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ptx-pagination-pages {
    display: flex;
    gap: 5px;
}

/* 侧边栏 */
.ptx-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ptx-sidebar-section {
    background: var(--ptx-bg-card);
    border-radius: var(--ptx-radius);
    border: 1px solid var(--ptx-border);
    overflow: hidden;
    box-shadow: var(--ptx-shadow);
}

.ptx-sidebar-title {
    padding: 1.2rem 1.5rem;
    background: var(--ptx-bg-light);
    border-bottom: 1px solid var(--ptx-border);
    font-size: 1.1rem;
    color: var(--ptx-text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.ptx-sidebar-title i {
    color: var(--ptx-primary);
}

.ptx-sidebar-list {
    padding: 1.5rem;
}

.ptx-sidebar-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--ptx-border-light);
}

.ptx-sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ptx-sidebar-item:first-child {
    padding-top: 0;
}

.ptx-sidebar-item a {
    text-decoration: none;
    color: var(--ptx-text-dark);
    transition: var(--ptx-transition);
    display: block;
}

.ptx-sidebar-item a:hover {
    color: var(--ptx-primary);
}

.ptx-sidebar-item-title {
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.4;
    font-weight: 500;
}

.ptx-sidebar-item-meta {
    display: flex;
    justify-content: space-between;
    color: var(--ptx-text-light);
    font-size: 0.8rem;
}

/* 徽章样式 */
.ptx-hot-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--ptx-danger);
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 8px;
    font-weight: 500;
}

.ptx-new-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--ptx-success);
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 8px;
    font-weight: 500;
}

/* 首页特色模块 */
.ptx-promo-section {
    margin: 20px 0;
    border-radius: var(--ptx-radius);
    overflow: hidden;
}

.ptx-promo-container {
    display: flex;
    background: white;
    border-radius: var(--ptx-radius);
    overflow: hidden;
    box-shadow: var(--ptx-shadow);
    border: 1px solid var(--ptx-border);
    max-height: 350px;
}

/* 左侧大图区域 */
.ptx-promo-main {
    flex: 0 0 60%;
    position: relative;
    overflow: hidden;
    min-height: 240px;
}

.ptx-promo-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--ptx-transition);
}

.ptx-promo-main:hover .ptx-promo-main-image {
    transform: scale(1.05);
}

.ptx-promo-main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
}

.ptx-promo-main-title {
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 700;
    line-height: 1.3;
}

.ptx-promo-main-desc {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 10px;
    line-height: 1.4;
}

.ptx-promo-main-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    opacity: 0.9;
}

/* 右侧区域 */
.ptx-promo-side {
    flex: 0 0 40%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    background: white;
    justify-content: space-between;
}

.ptx-promo-side-card {
    margin-bottom: 10px;
    background: #f8fafc;
    border-radius: var(--ptx-radius);
    overflow: hidden;
    border: 1px solid var(--ptx-border);
    transition: var(--ptx-transition);
    flex-shrink: 0;
    height: 130px;
    display: flex;
}

.ptx-promo-side-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ptx-shadow-hover);
}

.ptx-promo-side-image {
    width: 40%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.ptx-promo-side-content {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ptx-promo-side-tag {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    color: white;
    border-radius: 10px;
    font-size: 10px;
    margin-bottom: 6px;
    align-self: flex-start;
}

.ptx-promo-side-name {
    font-size: 14px;
    color: var(--ptx-text-dark);
    margin-bottom: 4px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ptx-promo-side-desc {
    font-size: 11px;
    color: var(--ptx-text-medium);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ptx-promo-side-meta {
    color: var(--ptx-text-light);
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

/* 热门标签区域 */
.ptx-side-hot-tags {
    margin-top: 10px;
    flex-grow: 1;
    overflow: visible;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.5), rgba(248, 250, 252, 0.2));
    border-radius: var(--ptx-radius);
    padding: 12px;
    border: 1px solid var(--ptx-border-light);
}

.ptx-side-hot-tags-title {
    font-size: 14px;
    color: var(--ptx-text-dark);
    margin-bottom: 8px;
    font-weight: 600;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--ptx-border-light);
}

.ptx-side-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-grow: 1;
    align-items: flex-start;
    justify-content: flex-start;
    height: 140px;
    overflow-y: auto;
    padding-right: 5px;
}

/* 自定义滚动条样式 */
.ptx-side-tags-grid::-webkit-scrollbar {
    width: 4px;
}

.ptx-side-tags-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.ptx-side-tags-grid::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.5);
    border-radius: 2px;
}

.ptx-side-tags-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 70, 229, 0.7);
}

/* 侧边热门标签样式 */
.ptx-side-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    color: var(--ptx-text-dark);
    text-decoration: none;
    transition: var(--ptx-transition);
    font-size: 12px;
    border: 1px solid var(--ptx-border);
    font-weight: 500;
    line-height: 1.2;
    height: fit-content;
    min-width: auto;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

/* 为每个标签设置不同的颜色 */
.ptx-side-tag.color-1 { background-color: #f0f9ff; border-color: #bae6fd; }
.ptx-side-tag.color-2 { background-color: #e0f2fe; border-color: #7dd3fc; }
.ptx-side-tag.color-3 { background-color: #cffafe; border-color: #22d3ee; }
.ptx-side-tag.color-4 { background-color: #ccfbf1; border-color: #5eead4; }
.ptx-side-tag.color-5 { background-color: #d1fae5; border-color: #34d399; }
.ptx-side-tag.color-6 { background-color: #dcfce7; border-color: #86efac; }
.ptx-side-tag.color-7 { background-color: #f7fee7; border-color: #d9f99d; }
.ptx-side-tag.color-8 { background-color: #fefce8; border-color: #fde68a; }
.ptx-side-tag.color-9 { background-color: #fef9c3; border-color: #facc15; }
.ptx-side-tag.color-10 { background-color: #fef3c7; border-color: #fbbf24; }
.ptx-side-tag.color-11 { background-color: #ffedd5; border-color: #fdba74; }
.ptx-side-tag.color-12 { background-color: #fed7aa; border-color: #fb923c; }
.ptx-side-tag.color-13 { background-color: #fee2e2; border-color: #fca5a5; }
.ptx-side-tag.color-14 { background-color: #fce7f3; border-color: #f9a8d4; }
.ptx-side-tag.color-15 { background-color: #f3e8ff; border-color: #d8b4fe; }
.ptx-side-tag.color-16 { background-color: #e9d5ff; border-color: #c084fc; }

.ptx-side-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 12px rgba(79, 70, 229, 0.2);
    border-color: transparent;
    color: white;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    z-index: 10;
}

/* 电影模块样式 */
.ptx-movie-section {
    margin: 50px 0;
}

.ptx-section-title-decorative {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.ptx-section-decor-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ptx-primary), transparent);
    max-width: 200px;
}

.ptx-section-title-with-icon {
    font-size: 28px;
    color: var(--ptx-text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    position: relative;
    padding: 0 20px;
    white-space: nowrap;
}

.ptx-movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.ptx-movie-card {
    background: white;
    border-radius: var(--ptx-radius);
    padding: 0;
    transition: var(--ptx-transition);
    border: 1px solid var(--ptx-border);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.ptx-movie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--ptx-primary), var(--ptx-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 2;
}

.ptx-movie-card:hover::before {
    transform: scaleX(1);
}

.ptx-movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: var(--ptx-shadow-hover);
}

.ptx-movie-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ptx-movie-image {
    height: 180px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.ptx-movie-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ptx-movie-card:hover .ptx-movie-image img {
    transform: scale(1.05);
}

.ptx-movie-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    z-index: 3;
}

.ptx-movie-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ptx-movie-title {
    font-size: 16px;
    color: var(--ptx-text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 600;
}

.ptx-movie-desc {
    color: var(--ptx-text-medium);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.ptx-movie-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    justify-content: space-between;
}

.ptx-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ptx-text-light);
    font-size: 12px;
}

.ptx-meta-item i {
    color: var(--ptx-primary);
    font-size: 14px;
}

.ptx-movie-view-more {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    width: 100%;
}

.ptx-view-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--ptx-transition);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
    border: none;
    cursor: pointer;
}

.ptx-view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
    gap: 15px;
}

.ptx-view-more-btn i {
    transition: var(--ptx-transition);
}

.ptx-view-more-btn:hover i {
    transform: translateX(5px);
}

/* 底部 */
.ptx-footer {
    margin-top: 6rem;
    padding: 4rem 15px 2rem;
    background: #0f172a;
    border-top: 1px solid #334155;
    color: #cbd5e1;
}

.ptx-footer .ptx-footer-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.ptx-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.ptx-footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 600;
}

.ptx-footer-links {
    list-style: none;
    padding-top: 1rem;
}

.ptx-footer-links li {
    margin-bottom: 0.3rem;
}

.ptx-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--ptx-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.ptx-footer-links a:hover {
    color: var(--ptx-primary);
    padding-left: 0.5rem;
}

.ptx-footer-about-text {
    color: #94a3b8;
    margin-top: 1rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.ptx-copyright {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ptx-copyright a {
    color: white !important;
    text-decoration: none !important;
}

.ptx-copyright a:hover {
    color: var(--ptx-primary) !important;
}

/* 悬浮操作栏 */
.ptx-floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.ptx-back-to-top {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: var(--ptx-shadow-hover);
    transition: var(--ptx-transition);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.ptx-back-to-top.ptx-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ptx-back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.ptx-back-to-top::after {
    content: '回到顶部';
    position: absolute;
    right: 60px;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    color: white;
    opacity: 0;
    transition: var(--ptx-transition);
}

.ptx-back-to-top:hover::after {
    opacity: 1;
    right: 70px;
}

/* =============================== */
/* 排行榜页特有样式开始 */
/* =============================== */

/* 排行榜页面主内容区 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 15px 4rem;
    min-height: calc(100vh - 140px);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-title {
    font-size: 2rem;
    color: var(--ptx-text-dark);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title i {
    color: var(--ptx-accent);
}

/* 排行榜样式 */
.ranking-list {
    background: var(--ptx-bg-card);
    border-radius: var(--ptx-radius);
    overflow: hidden;
    border: 1px solid var(--ptx-border);
    box-shadow: var(--ptx-shadow);
}

/* 文件项 */
.file-item {
    border-bottom: 1px solid var(--ptx-border);
    transition: var(--ptx-transition);
}

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background: rgba(79, 70, 229, 0.02);
}

.file-content {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
}

/* 排名序号 */
.rank-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--ptx-bg-light);
    color: var(--ptx-text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 16px;
    flex-shrink: 0;
    position: relative;
}

.top-3 {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
}

.fire-icon {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 14px;
    color: #f59e0b;
}

.top-3 .fire-icon {
    color: white;
}

/* 文件信息 */
.file-info {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
}

.file-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ptx-text-dark);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-title:hover {
    color: var(--ptx-primary);
}

/* 移动端元信息 */
.mobile-meta {
    display: flex;
    gap: 1rem;
    color: var(--ptx-text-light);
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .mobile-meta {
        display: none;
    }
}

.mobile-meta > div {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 桌面端元信息 */
.desktop-meta {
    display: none;
}

@media (min-width: 768px) {
    .desktop-meta {
        display: flex;
        align-items: center;
        gap: 2rem;
        flex-shrink: 0;
    }
}

.file-source {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ptx-text-light);
    font-size: 0.9rem;
    min-width: 100px;
}

.file-views {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ptx-text-light);
    font-size: 0.9rem;
    min-width: 100px;
}

/* 分享按钮 */
.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--ptx-border);
    background: var(--ptx-bg-card);
    color: var(--ptx-text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ptx-transition);
    margin-left: 0.5rem;
}

.share-btn:hover {
    background: var(--ptx-primary);
    color: white;
    border-color: var(--ptx-primary);
}

/* =============================== */
/* 排行榜页特有样式结束 */
/* =============================== */

/* 动画效果 */
@keyframes ptx-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ptx-fade-in {
    animation: ptx-fadeInUp 0.6s ease-out;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .ptx-header-top-content {
        flex-wrap: wrap;
    }
    
    .ptx-logo {
        min-width: auto;
        flex: 1;
    }
    
    .ptx-search-container {
        order: 3;
        max-width: 100%;
        margin-top: 15px;
    }
    
    .ptx-header-actions {
        flex: 1;
        justify-content: flex-end;
    }
    
    .ptx-nav-list > li > a {
        padding: 15px 18px;
        font-size: 14px;
    }
    
    .ptx-list-layout {
        grid-template-columns: 1fr;
    }
    
    .ptx-sidebar {
        margin-top: 3rem;
    }
    
    .ptx-detail-header {
        grid-template-columns: 1fr;
    }
    
    .ptx-search-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .ptx-promo-container {
        flex-direction: column;
        max-height: none;
    }
    
    .ptx-promo-main {
        flex: 0 0 280px;
    }
    
    .ptx-promo-side {
        flex: 1;
        padding: 12px;
    }
    
    .ptx-promo-main-title {
        font-size: 18px;
    }
    
    .ptx-side-tags-grid {
        justify-content: center;
    }
    
    .ptx-promo-side-card {
        height: 120px;
    }

    .ptx-side-tag {
        padding: 5px 10px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 180px;
    }
    
    .ptx-nav-list {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .ptx-nav-list > li > a {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .ptx-nav-list::-webkit-scrollbar {
        height: 4px;
    }
    
    .ptx-nav-list::-webkit-scrollbar-track {
        background: #f1f5f9;
    }
    
    .ptx-nav-list::-webkit-scrollbar-thumb {
        background: rgba(79, 70, 229, 0.5);
        border-radius: 2px;
    }
    
    .ptx-promo-main {
        min-height: 220px;
    }
    
    .ptx-promo-main-content {
        padding: 12px;
    }
    
    .ptx-promo-main-title {
        font-size: 16px;
    }
    
    .ptx-floating-actions {
        bottom: 1rem;
        right: 1rem;
    }
    
    .ptx-promo-side-card {
        height: 110px;
    }
    
    .ptx-promo-side-image {
        width: 35%;
    }

    .ptx-side-tag {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .ptx-resource-item,
    .ptx-result-item {
        flex-direction: column;
    }
    
    .ptx-resource-img,
    .ptx-result-img {
        width: 100%;
        height: 200px;
    }
    
    .ptx-pagination {
        flex-wrap: wrap;
    }
    
    .ptx-pagination-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .ptx-detail-title {
        font-size: 1.8rem;
    }
    
    .ptx-download-plane {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ptx-download-plane-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .ptx-download-plane-info {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .ptx-download-btn-container {
        margin-top: 1rem;
        width: 100%;
    }
    
    .ptx-download-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ptx-related-resources {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .file-content {
        padding: 1rem;
    }
    
    .file-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .ptx-search-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .ptx-search-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .ptx-sort-options {
        margin-left: 0;
    }
    
    .ptx-result-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .ptx-header-top-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .ptx-logo {
        width: 100%;
        justify-content: center;
    }
    
    .ptx-header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .ptx-promo-main-content {
        padding: 10px;
    }
    
    .ptx-promo-main-title {
        font-size: 14px;
    }
    
    .ptx-promo-side {
        padding: 10px;
    }
    
    .ptx-featured-grid {
        grid-template-columns: 1fr;
    }
    
    .ptx-hot-search-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .ptx-promo-side-card {
        height: 100px;
    }
    
    .ptx-promo-side-name {
        font-size: 13px;
    }
    
    .ptx-promo-side-desc {
        font-size: 10px;
    }
    
    .ptx-resource-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ptx-resource-stats,
    .ptx-result-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .ptx-detail-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .ptx-swiper-slide {
        width: 240px !important;
    }
}