/* 弹窗组件样式（预约演示 + 申请试用） */

/* ===== 预约演示弹窗 ===== */
.demo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

.demo-overlay.show {
    display: flex;
    animation: demoFadeIn 0.2s ease;
}

.demo-modal {
    background-color: #fff;
    border-radius: 16px;
    width: fit-content;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: demoSlideUp 0.3s ease;
}

.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 0;
}

.demo-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-header h2 i {
    color: #1a6dcc;
}

.demo-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.demo-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.demo-body {
    padding: 20px 28px 28px;
}

.demo-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 24px;
}

.demo-form-col .form-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.demo-form-col .form-group {
    margin-bottom: 18px;
}

.demo-form-col .form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.demo-form-col .required::after {
    content: " *";
    color: #e74c3c;
}

.demo-form-col .form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fafafa;
    box-sizing: border-box;
}

.demo-form-col .form-input:focus {
    outline: none;
    border-color: #1a6dcc;
    box-shadow: 0 0 0 3px rgba(26, 109, 204, 0.1);
    background-color: #fff;
}

.demo-form-col .form-input.error {
    border-color: #e74c3c;
}

.demo-form-col .error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.demo-form-col .error-message.show {
    display: block;
}

.demo-form-col .submit-button {
    width: 100%;
    background: linear-gradient(135deg, #1a6dcc 0%, #0d5ab6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.demo-form-col .submit-button:hover {
    background: linear-gradient(135deg, #1557a3 0%, #0a468f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 109, 204, 0.3);
}

.demo-form-col .submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.demo-benefits-col {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
    border-radius: 12px;
    padding: 20px;
    width: 450px;
    box-sizing: border-box;
}

.demo-benefits-col h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
    text-align: center;
}

.demo-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.demo-benefit-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.demo-benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.demo-benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0 auto 10px;
}

.demo-benefit-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.demo-benefit-card p {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin: 0;
}

.demo-form-col .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: demoSpin 0.6s linear infinite;
}

.demo-form-col .spinner.show {
    display: inline-block;
}

/* ===== 申请试用弹窗 ===== */
.trial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.trial-overlay.show {
    display: flex;
    animation: trialFadeIn 0.2s ease;
}

.trial-modal {
    background-color: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: trialSlideUp 0.3s ease;
}

.trial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.trial-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.trial-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #7f8c8d;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.trial-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #2c3e50;
}

.trial-body {
    padding: 24px;
}

.trial-body .form-description {
    color: #7f8c8d;
    margin-bottom: 24px;
    font-size: 14px;
}

.trial-body .form-group {
    margin-bottom: 20px;
}

.trial-body .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
}

.trial-body .required::after {
    content: " *";
    color: #e74c3c;
}

.trial-body .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: white;
    box-sizing: border-box;
}

.trial-body .form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.trial-body .form-input.error {
    border-color: #e74c3c;
}

.trial-body .form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.trial-body textarea.form-input {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.trial-body .error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.trial-body .error-message.show {
    display: block;
}

.trial-body .form-footer {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.trial-body .submit-button {
    flex: 1;
    background-color: #1a6dcc;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.trial-body .submit-button:hover {
    background-color: #0d5ab6;
}

.trial-body .submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.trial-body .cancel-button {
    flex: 1;
    background-color: white;
    color: #7f8c8d;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trial-body .cancel-button:hover {
    background-color: #f8f9fa;
    border-color: #7f8c8d;
}

.trial-body .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: trialSpin 0.6s linear infinite;
}

.trial-body .spinner.show {
    display: inline-block;
}

/* ===== 动画 ===== */
@keyframes demoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes demoSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes demoSpin {
    to { transform: rotate(360deg); }
}

@keyframes trialFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes trialSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes trialSpin {
    to { transform: rotate(360deg); }
}

/* ===== 响应式 ===== */
@media (max-width: 640px) {
    .demo-modal { width: 100%; }
    .demo-layout { grid-template-columns: 1fr; }
    .demo-benefits-col { width: 100%; }
    .demo-header { padding: 20px 20px 0; }
    .demo-body { padding: 16px 20px 24px; }
    .demo-benefits-col { order: -1; }
}

@media (max-width: 576px) {
    .trial-header { padding: 16px 20px; }
    .trial-body { padding: 20px; }
    .trial-body .form-footer { flex-direction: column; }
    .trial-body .form-input { font-size: 16px; }
}
