/**
 * 文案页面跳转样式覆盖
 * 将手风琴样式改为链接卡片样式
 */

/* 禁用手风琴展开效果 */
.template-card .template-body {
    display: none !important;
}

/* 让卡片整体看起来更像链接 */
.template-card {
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.15) !important;
}

.template-card:active {
    transform: translateY(0);
}

/* 调整箭头图标为右箭头样式 */
.template-toggle {
    background: rgba(233, 30, 99, 0.08) !important;
}

.template-card:hover .template-toggle {
    background: rgba(233, 30, 99, 0.15) !important;
}

.toggle-icon {
    font-size: 14px !important;
    font-weight: normal !important;
}

/* 添加"查看详情"提示 */
.template-header::after {
    content: '';
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card:hover .template-header::after {
    opacity: 1;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .template-card:hover {
        transform: none; /* 移动端不使用悬浮效果 */
    }
    
    .template-header::after {
        display: none; /* 移动端不显示提示文字 */
    }
}

/* 修复展开状态的样式（防止误触发） */
.template-card.expanded {
    background: white !important;
    border: 1px solid rgba(233, 30, 99, 0.1) !important;
    box-shadow: 0 1px 4px rgba(233, 30, 99, 0.08) !important;
    margin-bottom: 12px !important;
}

.template-card.expanded .template-header {
    background: transparent !important;
    border-bottom: none !important;
    padding: 12px 16px !important;
}

.template-card.expanded .template-name {
    color: #e91e63 !important;
}

.template-card.expanded .template-desc {
    color: #999 !important;
}

.template-card.expanded .template-summary {
    background: rgba(233, 30, 99, 0.05) !important;
    border-left-color: #e91e63 !important;
    color: #666 !important;
}

.template-card.expanded .template-toggle {
    background: rgba(233, 30, 99, 0.1) !important;
    transform: none !important;
}

.template-card.expanded .toggle-icon {
    color: #e91e63 !important;
}
