: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-radius: 12px;
    --ptx-radius-sm: 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);
    --header-height: 60px;
}

* {
    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: var(--header-height);
}

/* 固定在顶部的头部 - 移动端 */
.ptx-mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--ptx-border);
}

.ptx-mobile-header .ptx-header-left,
.ptx-mobile-header .ptx-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 汉堡菜单按钮 */
.ptx-menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--ptx-text-dark);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo */
.ptx-mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ptx-mobile-logo-img {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border-radius: var(--ptx-radius-sm);
}

.ptx-mobile-logo-text h1 {
    font-size: 16px;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 搜索按钮 */
.ptx-search-toggle {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--ptx-text-dark);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 侧滑导航菜单 - 按照pantx.cn移动端样式 */
.ptx-navbar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: white;
    z-index: 2000;
    transition: var(--ptx-transition);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    padding-top: var(--header-height);
}

.ptx-navbar.ptx-active {
    left: 0;
}

.ptx-navbar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--ptx-transition);
}

.ptx-navbar-overlay.ptx-active {
    opacity: 1;
    visibility: visible;
}

/* 侧滑导航栏的关闭按钮 */
.ptx-navbar-close {
    position: absolute;
    top: 15px;
    left: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--ptx-text-dark);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}

/* 侧滑导航栏头部操作区域 */
.ptx-header-actions {
    position: absolute;
    top: 17px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2001;
}

/* 热搜按钮样式 */
.ptx-hot-search-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 16px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--ptx-transition);
    box-shadow: 0 4px 12px rgba(238, 90, 82, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ptx-hot-search-btn:hover {
    background: linear-gradient(135deg, #ff5252, #e74c3c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 82, 0.3);
}

.ptx-hot-search-btn i {
    font-size: 16px;
}

.ptx-hot-search-btn span {
    font-weight: 600;
}

/* 导航菜单列表 */
.ptx-navbar-list {
    list-style: none;
    padding: 20px 0;
}

.ptx-navbar-list > li {
    border-bottom: 1px solid var(--ptx-border-light);
}

.ptx-navbar-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: var(--ptx-transition);
}

.ptx-navbar-list > li > a:hover {
    background: #f8fafc;
    color: var(--ptx-primary);
}

.ptx-navbar-list > li > a i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

/* 二级菜单 - 修改为默认展开 */
.ptx-navbar-submenu {
    background: #f8fafc;
    padding: 15px 0;
    display: block; /* 修改：默认显示 */
    border-top: 1px solid var(--ptx-border-light);
}

.ptx-navbar-submenu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 24px;
}

.ptx-navbar-submenu a {
    display: block;
    padding: 12px 15px;
    background: white;
    border-radius: var(--ptx-radius-sm);
    color: #666;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    transition: var(--ptx-transition);
    border: 1px solid var(--ptx-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ptx-navbar-submenu a:hover {
    color: var(--ptx-primary);
    border-color: var(--ptx-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

/* 移除二级菜单箭头动画样式 */
.ptx-navbar-list > li.ptx-has-submenu > a i.ptx-submenu-toggle {
    display: none; /* 隐藏箭头，因为不需要展开/收起功能 */
}

/* 搜索遮罩层 */
.ptx-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--ptx-transition);
    padding: var(--header-height) 16px 0;
    overflow-y: auto;
}

.ptx-search-overlay.ptx-active {
    opacity: 1;
    visibility: visible;
}

/* 搜索框 */
.ptx-search-container {
    margin-top: 20px;
    position: relative;
}

.ptx-search-box {
    width: 100%;
    padding: 18px 65px 18px 25px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: var(--ptx-text-dark);
    font-size: 16px;
    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-submit {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ptx-transition);
}

.ptx-search-submit:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

/* 搜索推荐 */
.ptx-search-recommend {
    margin-top: 30px;
}

.ptx-search-recommend h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--ptx-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ptx-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ptx-search-tag {
    padding: 10px 16px;
    background: #f1f5f9;
    border-radius: 50px;
    font-size: 14px;
    color: var(--ptx-text-medium);
    transition: var(--ptx-transition);
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.ptx-search-tag:hover {
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    color: white;
    border-color: transparent;
}

/* 关闭搜索按钮 */
.ptx-close-search {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--ptx-text-dark);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}

/* 主内容区 */
.ptx-mobile-content {
    padding: 16px;
}

/* 轮播图区域 */
.ptx-mobile-carousel-section {
    margin-bottom: 30px;
    position: relative;
}

.ptx-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--ptx-radius);
    box-shadow: var(--ptx-shadow);
}

.ptx-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.ptx-index-carousel-item {
    min-width: 100%;
    position: relative;
}

.ptx-carousel-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.ptx-carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 15px;
    color: white;
}

.ptx-carousel-caption h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.ptx-carousel-caption p {
    font-size: 13px;
    opacity: 0.9;
}

.ptx-index-carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.ptx-index-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--ptx-transition);
}

.ptx-index-carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

.ptx-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: var(--ptx-transition);
    z-index: 10;
}

.ptx-carousel-control:hover {
    background: rgba(0, 0, 0, 0.5);
}

.ptx-carousel-control.prev {
    left: 10px;
}

.ptx-carousel-control.next {
    right: 10px;
}

/* 新的今日推荐模块 - 以图片为背景，标题和信息在底部 */
.ptx-mobile-today-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.ptx-today-item {
    position: relative;
    border-radius: var(--ptx-radius);
    overflow: hidden;
    box-shadow: var(--ptx-shadow);
    transition: var(--ptx-transition);
    height: 180px;
    border: 1px solid var(--ptx-border);
}

.ptx-today-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--ptx-shadow-hover);
    border-color: rgba(79, 70, 229, 0.3);
}

.ptx-today-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ptx-today-item:hover .ptx-today-img {
    transform: scale(1.05);
}

.ptx-today-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.8) 100%);
}

.ptx-today-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    color: white;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    z-index: 2;
}

.ptx-today-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    z-index: 2;
}

.ptx-today-title {
    font-size: 14px;
    margin-bottom: 8px;
    color: white;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.ptx-today-meta {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
}

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

/* 热门资源轮播 */
.ptx-mobile-carousel-horizontal {
    margin: 20px 0;
    overflow: hidden;
}

.ptx-mobile-carousel-track {
    display: flex;
    gap: 16px;
    animation: ptx-carousel-scroll 30s linear infinite;
}

.ptx-mobile-carousel-item {
    min-width: 200px;
    background: white;
    border-radius: var(--ptx-radius);
    padding: 20px;
    border: 1px solid var(--ptx-border);
    box-shadow: var(--ptx-shadow);
}

.ptx-mobile-carousel-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--ptx-text-dark);
}

.ptx-mobile-carousel-item p {
    font-size: 13px;
    color: var(--ptx-text-light);
    margin-bottom: 12px;
}

@keyframes ptx-carousel-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 模块标题样式 - 横线 标题 横线 */
.ptx-module-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    text-align: center;
}

.ptx-module-title {
    font-size: 22px;
    color: var(--ptx-text-dark);
    padding: 0 15px;
    position: relative;
    white-space: nowrap;
}

.ptx-module-title::before,
.ptx-module-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
}

.ptx-module-title::before {
    right: 100%;
    margin-right: 10px;
}

.ptx-module-title::after {
    left: 100%;
    margin-left: 10px;
}

/* 查看更多按钮 - 调整为更小 */
.ptx-view-more {
    text-align: center;
    margin-top: 20px;
}

.ptx-view-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ptx-transition);
    text-decoration: none;
    min-width: 120px;
}

.ptx-view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3);
}

/* 热门标签 - 随机背景颜色 */
.ptx-mobile-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.ptx-mobile-tag {
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 13px;
    color: white;
    transition: var(--ptx-transition);
    cursor: pointer;
    border: 1px solid transparent;
    font-weight: 500;
}

/* 随机颜色类 */
.ptx-tag-color-1 {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.ptx-tag-color-2 {
    background: linear-gradient(135deg, #10b981, #059669);
}

.ptx-tag-color-3 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.ptx-tag-color-4 {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.ptx-tag-color-5 {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.ptx-tag-color-6 {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.ptx-tag-color-7 {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.ptx-tag-color-8 {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.ptx-mobile-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 猜你喜欢模块 - 包含原来的今日推荐样式 */
.ptx-mobile-section {
    margin-bottom: 30px;
}

.ptx-mobile-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ptx-mobile-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);
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.ptx-mobile-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ptx-shadow-hover);
    border-color: rgba(79, 70, 229, 0.3);
}

.ptx-mobile-featured-img {
    height: 140px;
    overflow: hidden;
    flex-shrink: 0;
}

.ptx-mobile-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ptx-mobile-featured-card:hover .ptx-mobile-featured-img img {
    transform: scale(1.05);
}

.ptx-mobile-featured-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ptx-mobile-featured-tag {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    color: white;
    border-radius: 15px;
    font-size: 11px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.ptx-mobile-featured-title {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--ptx-text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 40px;
}

.ptx-mobile-featured-meta {
    display: flex;
    justify-content: space-between;
    color: var(--ptx-text-light);
    font-size: 11px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--ptx-border-light);
}

.ptx-mobile-featured-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* 排行榜主内容区 */
.ptx-ranking-content {
    padding: 16px;
    min-height: calc(100vh - var(--header-height) - 120px);
}

/* 简洁的标题 */
.ptx-ranking-header {
    margin-bottom: 20px;
    padding: 0 10px;
}

.ptx-ranking-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ptx-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 排行榜列表 - 简化版 */
.ptx-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* 排行榜项：左边排名 + 中间标题 + 右边浏览量 */
.ptx-ranking-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--ptx-radius);
    overflow: hidden;
    box-shadow: var(--ptx-shadow);
    transition: var(--ptx-transition);
    border: 1px solid var(--ptx-border);
    padding: 14px 16px;
    height: 70px;
}

.ptx-ranking-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--ptx-shadow-hover);
    border-color: rgba(79, 70, 229, 0.3);
}

/* 排名指示器 - 左侧 */
.ptx-ranking-rank {
    width: 36px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 20px;
    text-align: center;
    margin-right: 16px;
}

/* 前3名特殊颜色 */
.ptx-ranking-item:nth-child(1) .ptx-ranking-rank {
    color: #ff6b00;
}

.ptx-ranking-item:nth-child(2) .ptx-ranking-rank {
    color: #ff9500;
}

.ptx-ranking-item:nth-child(3) .ptx-ranking-rank {
    color: #ffc107;
}

/* 第4名及以后默认颜色 */
.ptx-ranking-item:nth-child(n+4) .ptx-ranking-rank {
    color: var(--ptx-text-medium);
}

/* 中间标题区域 */
.ptx-ranking-content-middle {
    flex: 1;
    overflow: hidden;
    padding-right: 10px;
}

.ptx-ranking-title-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--ptx-text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 右边浏览量区域 */
.ptx-ranking-views {
    flex-shrink: 0;
    text-align: right;
    font-size: 12px;
    color: var(--ptx-text-light);
}

.ptx-ranking-hot {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.ptx-views-count {
    font-weight: 600;
    color: var(--ptx-danger);
    font-size: 14px;
}

.ptx-views-label {
    font-size: 11px;
    opacity: 0.8;
}

/* 搜索结果主内容区 */
.ptx-search-content {
    padding: 16px;
    min-height: calc(100vh - var(--header-height) - 120px);
}

.ptx-detail-content {
    padding: 16px;
    min-height: calc(100vh - var(--header-height) - 120px);
}

/* 1. 面包屑导航 */
.ptx-breadcrumb {
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ptx-border-light);
}

.ptx-breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.ptx-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.ptx-breadcrumb-item a {
    color: var(--ptx-text-medium);
    text-decoration: none;
    transition: var(--ptx-transition);
}

.ptx-breadcrumb-item a:hover {
    color: var(--ptx-primary);
}

.ptx-breadcrumb-item.active a {
    color: var(--ptx-primary);
    font-weight: 500;
}

.ptx-breadcrumb-separator {
    color: var(--ptx-text-light);
    font-size: 12px;
}

/* 2. 搜索关键词和结果信息 - 新样式 */
.ptx-search-header {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: var(--ptx-radius);
    box-shadow: var(--ptx-shadow);
    border: 1px solid var(--ptx-border);
}

.ptx-search-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--ptx-text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.ptx-search-term {
    color: var(--ptx-primary);
    font-weight: 700;
    font-style: italic;
}

.ptx-search-summary {
    font-size: 14px;
    color: var(--ptx-text-medium);
    line-height: 1.5;
}

.ptx-search-summary strong {
    color: var(--ptx-primary);
    font-weight: 600;
}

/* 3. 搜索结果列表 */
.ptx-search-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

/* 列表项：左边图片 + 右边内容 */
.ptx-search-item {
    display: flex;
    background: white;
    border-radius: var(--ptx-radius);
    overflow: hidden;
    box-shadow: var(--ptx-shadow);
    transition: var(--ptx-transition);
    border: 1px solid var(--ptx-border);
    padding: 0;
    height: 120px;
}

.ptx-search-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--ptx-shadow-hover);
    border-color: rgba(79, 70, 229, 0.3);
}

/* 左边图片区域 */
.ptx-search-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
}

.ptx-search-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* 右边内容区域 */
.ptx-search-content-right {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.ptx-search-title-item {
    font-size: 15px;
    font-weight: 600;
    color: var(--ptx-text-dark);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ptx-search-keyword-match {
    color: var(--ptx-primary);
    font-weight: 700;
}

.ptx-search-description {
    font-size: 13px;
    color: var(--ptx-text-medium);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* 搜索元数据 - 改为时间和浏览量 */
.ptx-search-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--ptx-text-light);
}

.ptx-search-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ptx-search-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 主内容区 - 资讯列表页样式 */
.ptx-news-content {
    padding: 16px;
    min-height: calc(100vh - var(--header-height) - 120px);
}

/* 2. 资讯列表 */
.ptx-news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

/* 列表项：左边图片 + 右边内容 */
.ptx-news-item {
    display: flex;
    background: white;
    border-radius: var(--ptx-radius);
    overflow: hidden;
    box-shadow: var(--ptx-shadow);
    transition: var(--ptx-transition);
    border: 1px solid var(--ptx-border);
    padding: 0;
    height: 120px;
}

.ptx-news-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--ptx-shadow-hover);
    border-color: rgba(79, 70, 229, 0.3);
}

/* 左边图片区域 */
.ptx-news-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
}

.ptx-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* 右边内容区域 */
.ptx-news-content-right {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.ptx-news-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ptx-text-dark);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ptx-news-summary {
    font-size: 13px;
    color: var(--ptx-text-medium);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.ptx-news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--ptx-text-light);
}

.ptx-news-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ptx-news-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ptx-detail-card {
    background: white;
    border-radius: var(--ptx-radius);
    overflow: hidden;
    box-shadow: var(--ptx-shadow);
    border: 1px solid var(--ptx-border);
    margin-bottom: 24px;
}

/* 资源封面图 */
.ptx-resource-cover {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.ptx-resource-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ptx-resource-cover:hover img {
    transform: scale(1.05);
}

/* 资源标签 */
.ptx-resource-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

/* 资源信息区域 */
.ptx-resource-info {
    padding: 20px;
}

.ptx-resource-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ptx-text-dark);
    line-height: 1.4;
    margin-bottom: 12px;
}

.ptx-resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ptx-border-light);
}

.ptx-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--ptx-text-medium);
}

.ptx-meta-item i {
    color: var(--ptx-primary);
}

/* 资源标签区域 */
.ptx-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ptx-tag {
    padding: 8px 14px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 14px;
    color: var(--ptx-text-medium);
    border: 1px solid var(--ptx-border);
}

/* 资源简介 */
.ptx-resource-description {
    margin-bottom: 24px;
}

.ptx-description-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ptx-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ptx-description-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ptx-text-medium);
}

/* 3. 资源截图模块 - 新增 */
.ptx-screenshot-section {
    margin-bottom: 24px;
    background: white;
    border-radius: var(--ptx-radius);
    padding: 20px;
    box-shadow: var(--ptx-shadow);
    border: 1px solid var(--ptx-border);
}

.ptx-screenshot-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--ptx-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 轮播容器 */
.ptx-screenshot-carousel {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: var(--ptx-radius);
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

/* 轮播图片容器 */
.ptx-carousel-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 轮播项 */
.ptx-carousel-item {
    position: absolute;
    width: 70%;
    height: 100%;
    top: 0;
    left: 15%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    border-radius: var(--ptx-radius-sm);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0.8;
    transform: scale(0.85);
}

.ptx-carousel-item.active {
    left: 15%;
    z-index: 3;
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.ptx-carousel-item.prev {
    left: 0%;
    z-index: 2;
    opacity: 0.9;
    transform: scale(0.9) rotateY(-15deg);
}

.ptx-carousel-item.next {
    left: 30%;
    z-index: 2;
    opacity: 0.9;
    transform: scale(0.9) rotateY(15deg);
}

/* 轮播图片 */
.ptx-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播导航按钮 */
.ptx-carousel-nav {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 4;
    pointer-events: none;
}

.ptx-carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--ptx-transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: all;
    color: var(--ptx-text-dark);
    font-size: 24px;
}

.ptx-carousel-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--ptx-primary);
}

.ptx-carousel-btn.prev-btn {
    transform: translateX(-10px);
}

.ptx-carousel-btn.next-btn {
    transform: translateX(10px);
}

/* 轮播指示器 */
.ptx-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.ptx-carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    border: none;
    cursor: pointer;
    transition: var(--ptx-transition);
}

.ptx-carousel-indicator.active {
    background: var(--ptx-primary);
    transform: scale(1.2);
}

/* 4. 下载按钮区域 */
.ptx-download-section {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--ptx-radius);
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--ptx-border);
}

.ptx-download-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--ptx-text-dark);
    text-align: center;
}

.ptx-download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ptx-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    color: white;
    border: none;
    border-radius: var(--ptx-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ptx-transition);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
}

.ptx-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.ptx-download-btn-secondary {
    background: white;
    color: var(--ptx-text-dark);
    border: 1px solid var(--ptx-border);
}

.ptx-download-btn-secondary:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.ptx-download-note {
    font-size: 13px;
    color: var(--ptx-text-light);
    text-align: center;
    margin-top: 15px;
    line-height: 1.6;
}

/* 5. 相关推荐 */
.ptx-related-section {
    margin-bottom: 30px;
}

.ptx-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--ptx-text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.ptx-related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ptx-related-item {
    display: flex;
    background: white;
    border-radius: var(--ptx-radius);
    overflow: hidden;
    box-shadow: var(--ptx-shadow);
    transition: var(--ptx-transition);
    border: 1px solid var(--ptx-border);
    padding: 0;
    height: 120px;
}

.ptx-related-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--ptx-shadow-hover);
    border-color: rgba(79, 70, 229, 0.3);
}

/* 左边图片区域 */
.ptx-related-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
}

.ptx-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* 右边内容区域 */
.ptx-related-content {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.ptx-related-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ptx-text-dark);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ptx-related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--ptx-text-light);
}

.ptx-related-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ptx-related-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 4. 分页导航 */
.ptx-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--ptx-border-light);
}

.ptx-pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    background: white;
    color: var(--ptx-text-dark);
    border: 1px solid var(--ptx-border);
    border-radius: var(--ptx-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ptx-transition);
    min-width: 120px;
    text-decoration: none;
}

.ptx-pagination-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, var(--ptx-primary), var(--ptx-secondary));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3);
}

.ptx-pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ptx-pagination-info {
    font-size: 14px;
    color: var(--ptx-text-medium);
    padding: 0 10px;
}

/* 底部 - 黑色背景 */
.ptx-mobile-footer {
    margin-top: 40px;
    padding: 30px 16px 20px;
    background: #1a1a1a;
    color: #cccccc;
}

.ptx-mobile-copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999999;
    font-size: 12px;
    line-height: 1.6;
}

/* 回到顶部按钮 */
.ptx-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    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);
    z-index: 999;
    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);
}

.footer-p-style a {
    color: white;
    text-decoration: none;
}

@media (min-width: 768px) {
    .ptx-navbar {
        max-width: 320px;
    }

    .ptx-mobile-content {
        padding: 20px;
    }

    .ptx-carousel-img {
        height: 250px;
    }

    .ptx-today-item {
        height: 220px;
    }

    .ptx-module-title {
        font-size: 24px;
    }

    .ptx-ranking-content {
        padding: 20px;
        max-width: 600px;
        margin: 0 auto;
    }

    .ptx-ranking-item {
        height: 75px;
        padding: 16px 20px;
    }

    .ptx-ranking-rank {
        width: 40px;
        font-size: 22px;
        margin-right: 20px;
    }

    .ptx-ranking-title-item {
        font-size: 15px;
    }

    .ptx-ranking-title {
        font-size: 22px;
    }

    .ptx-search-content {
        padding: 20px;
        max-width: 800px;
        margin: 0 auto;
    }

    .ptx-search-item {
        height: 140px;
    }

    .ptx-search-image {
        width: 140px;
        height: 140px;
    }

    .ptx-search-title-item {
        font-size: 16px;
    }

    .ptx-search-title {
        font-size: 22px;
    }

    .ptx-news-content {
        padding: 20px;
        max-width: 800px;
        margin: 0 auto;
    }

    .ptx-news-item {
        height: 140px;
    }

    .ptx-news-image {
        width: 140px;
        height: 140px;
    }

    .ptx-news-title {
        font-size: 16px;
    }

    .ptx-detail-content {
        padding: 20px;
        max-width: 800px;
        margin: 0 auto;
    }

    .ptx-resource-cover {
        height: 300px;
    }

    .ptx-screenshot-carousel {
        height: 280px;
    }

    .ptx-download-buttons {
        flex-direction: row;
    }

    .ptx-download-btn {
        flex: 1;
    }
}