/**
 * 模板选择弹窗样式
 */

/* 弹窗主容器 */
.template-selector-modal {
    padding: 15px 20px;
}

/* 区域样式 */
.ts-section {
    margin-bottom: 20px;
}

.ts-section-title {
    font-size: 14px;
    color: #333;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.ts-section-title .fa {
    margin-right: 6px;
    color: #1a73e8;
}

/* 模板网格 */
.ts-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

/* 模板卡片 */
.ts-template-item {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    text-align: center;
}

.ts-template-item:hover {
    border-color: #1a73e8;
    background: #f8faff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.15);
}

.ts-template-item.selected {
    border-color: #1a73e8;
    background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%);
}

.ts-template-item.selected::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 8px;
    color: #1a73e8;
    font-weight: bold;
    font-size: 14px;
}

.ts-template-item {
    position: relative;
}

/* 模板名称 */
.ts-template-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

/* 默认徽章 */
.ts-default-badge {
    display: inline-block;
    background: #1a73e8;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: normal;
}

/* 模板描述 */
.ts-template-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

/* 选项区域 */
.ts-options {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.ts-checkbox-label {
    font-size: 13px;
    color: #666;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ts-checkbox-label input[type="checkbox"] {
    transform: scale(1.1);
}

/* Layer弹窗自定义样式 */
.template-selector-layer .layui-layer-btn {
    padding: 15px 20px;
    text-align: center !important;
}

.template-selector-layer .layui-layer-btn a {
    min-width: 100px;
}

.template-selector-layer .layui-layer-btn0 {
    background: #1a73e8 !important;
    border-color: #1a73e8 !important;
}

.template-selector-layer .layui-layer-btn1 {
    background: #f5f5f5 !important;
    color: #666 !important;
    border-color: #ddd !important;
}