/* =============================================================
   免费试用弹窗（trial-modal）
   浅蓝主色 + 居中浮层
   ============================================================= */

.trial-modal {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.trial-modal.active { display: flex; }

.trial-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    animation: tmFade 0.2s ease;
}
@keyframes tmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tmPop { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

.trial-modal-card {
    position: relative;
    width: 540px;
    max-width: 100%;
    max-height: calc(100vh - 48px);
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(22, 93, 255, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: tmPop 0.25s ease;
}

.trial-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    color: #4E5969;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.trial-modal-close:hover { background: #F2F5FF; color: #165DFF; }

.trial-modal-header {
    background: linear-gradient(135deg, #165DFF 0%, #4080FF 100%);
    color: #FFFFFF;
    padding: 28px 32px 24px;
    text-align: left;
    position: relative;
}
.trial-modal-tag {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    margin-bottom: 10px;
    font-weight: 500;
}
.trial-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #FFFFFF;
    line-height: 1.3;
}
.trial-modal-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.trial-modal-body {
    padding: 22px 32px 24px;
    overflow-y: auto;
}
.trial-modal-agent-name {
    font-size: 16px;
    font-weight: 600;
    color: #1D2129;
    margin: 0 0 6px;
}
.trial-modal-agent-desc {
    font-size: 13px;
    color: #4E5969;
    line-height: 1.6;
    margin: 0 0 16px;
}
.trial-modal-intro {
    font-size: 13px;
    color: #4E5969;
    background: #F2F5FF;
    border-left: 3px solid #165DFF;
    padding: 10px 14px;
    border-radius: 6px;
    line-height: 1.6;
    margin: 0 0 16px;
}
.trial-modal-section-label {
    font-size: 13px;
    color: #1D2129;
    font-weight: 600;
    margin: 0 0 10px;
}
.trial-modal-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.trial-modal-features li {
    position: relative;
    padding-left: 26px;
    font-size: 13px;
    color: #4E5969;
    line-height: 1.6;
}
.trial-modal-features li::before {
    content: '';
    position: absolute;
    left: 0; top: 4px;
    width: 18px; height: 18px;
    background: #E8F3FF;
    border-radius: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='none' stroke='%23165DFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.5l2.5 2.5 4.5-5'/></svg>");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}
.trial-modal-fit {
    font-size: 12.5px;
    color: #86909C;
    margin: 0;
    padding-top: 10px;
    border-top: 1px dashed #E5E8F0;
}

.trial-modal-footer {
    padding: 16px 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #FAFBFF;
    border-top: 1px solid #F0F1F3;
}
.trial-modal-primary {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #165DFF 0%, #4080FF 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.22);
}
.trial-modal-primary:hover { box-shadow: 0 6px 16px rgba(22, 93, 255, 0.32); transform: translateY(-1px); }
.trial-modal-secondary {
    width: 100%;
    height: 36px;
    background: transparent;
    color: #86909C;
    border: none;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.trial-modal-secondary:hover { color: #4E5969; }

body.trial-modal-open { overflow: hidden; }
