/* 提示词卡片组件样式 */
.prompt-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.prompt-card:hover {
    border-color: #d0d0d0;
}

/* 第一行：标题和付费类型 */
.prompt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.prompt-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prompt-card-title-link:hover {
    color: #0065ff;
}

.prompt-card-payment-type {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.prompt-card-payment-type-free {
    background-color: #dcfce7;
    color: #166534;
}

.prompt-card-payment-type-payment {
    background-color: #fef9c3;
    color: #854d0e;
}

/* 第二行：用户信息和统计数据 */
.prompt-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 24px;
}

.prompt-card-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 24px;
}

.prompt-card-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.prompt-card-user-name {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.prompt-card-stats {
    display: flex;
    gap: 16px;
}

.prompt-card-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
}

.prompt-card-stat-icon {
    color: #999;
}

/* 第三行：分类 */
.prompt-card-category {
    display: flex;
    gap: 8px;
}

.prompt-card-category-tag {
    padding: 4px 8px;
    background-color: #f0f0f0;
    color: #666;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* 第四行：简介 */
.prompt-card-description {
    flex: 1;
}

.prompt-card-description-text {
    height: 63px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 第五行：参数列表 */
.prompt-card-params {
    margin-top: auto;
}

.prompt-card-param-scroll-container {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.prompt-card-param-scroll-btn {
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    flex-shrink: 0;
}

.prompt-card-param-scroll-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.prompt-card-param-scroll-btn:active {
    transform: scale(0.95);
}

.prompt-card-param-scroll-container:hover .prompt-card-param-scroll-btn {
    opacity: 1;
    visibility: visible;
}

.prompt-card-param-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* 隐藏滚动条 */
.prompt-card-param-list::-webkit-scrollbar {
    display: none;
}

.prompt-card-param-tag {
    padding: 3px 8px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.prompt-card-param-more {
    padding: 3px 8px;
    background-color: #e6f7ff;
    color: #1890ff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* 第六行：价格信息和试用按钮 */
.prompt-card-actions {
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.prompt-card-price-section {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.prompt-card-price-value {
    font-size: 16px;
    font-weight: bold;
}

.prompt-card-price-normal {
    color: #0065ff;
}

.prompt-card-price-discount {
    color: #ff0f23;
}

.prompt-card-price-free {
    color: #01a34a;
}

.prompt-card-price-limited-tag {
    background-color: #ffebee;
    color: #ff0f23;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 6px;
}

.prompt-card-original-price {
    font-size: 10px;
    color: #999;
    text-decoration: line-through;
    margin-left: 6px;
}

.prompt-card-try-button {
    padding: 4px 16px;
    background-color: #0065ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
    flex-shrink: 0;
}

.prompt-card-try-button:hover {
    background-color: #3385ff;
}

.prompt-card-try-button:active {
    background-color: #0052cc;
    transform: scale(0.98);
}

/* 新增样式类 - 提取自行内样式 */
.prompt-card-header-section {
    height: 168px;

    padding: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prompt-card-category-tag-positioned {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    color: #2d64dc;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(32, 77, 220, 0.2);
}

.prompt-card-logo-container {
    height: 65px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.prompt-card-logo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    display: block;
}

.prompt-card-content-section {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prompt-card-header-section-with-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.prompt-card-header-section-with-video {
    position: relative;
    overflow: hidden;
}

.prompt-card-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.prompt-card-header-section-with-video .prompt-card-category-tag-positioned {
    z-index: 2;
}

/* 播放按钮样式 */
.prompt-card-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 80px;
    height: 56px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 1;
    visibility: visible;
}

.prompt-card-play-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

.prompt-card-header-section-with-video:hover .prompt-card-play-icon svg {
    transform: scale(1.1);
}

/* 播放按钮隐藏状态 */
.prompt-card-play-icon.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.8);
}