/* ========================================
   非凡创想插件公共样式 v1.0
   所有插件页面引用此文件统一 UI 风格
   ======================================== */

/* ========== 弹窗 Toast ========== */
.ffcx-toast-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ffcxFadeIn 0.2s ease;
}
.ffcx-toast-box {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 28px 24px 20px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: ffcxToastIn 0.3s ease;
}
.ffcx-toast-icon {
    font-size: 40px;
    margin-bottom: 12px;
    line-height: 1;
}
.ffcx-toast-box h3 {
    color: #f1f5f9;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px 0;
}
.ffcx-toast-box p {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 18px 0;
}
.ffcx-toast-box button,
.ffcx-btn-ok {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    padding: 10px 32px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    transition: transform 0.15s;
}
.ffcx-toast-box button:hover,
.ffcx-btn-ok:hover {
    transform: translateY(-1px);
}

/* ========== 确认弹窗按钮组 ========== */
.ffcx-confirm-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.ffcx-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.ffcx-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
}

/* ========== 进度条 ========== */
.ffcx-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin: 16px 0;
}
.ffcx-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ========== 表单输入框 ========== */
.ffcx-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    width: 100%;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.ffcx-input:focus {
    border-color: rgba(129, 140, 248, 0.6);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.ffcx-input.error {
    border-color: rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}
.ffcx-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 6px;
}
.ffcx-label .required {
    color: #f87171;
}

/* ========== 按钮 ========== */
.ffcx-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform 0.15s;
}
.ffcx-btn-primary:hover {
    transform: translateY(-2px);
}
.ffcx-btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.ffcx-btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* ========== 卡片 ========== */
.ffcx-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(20px);
}

/* ========== 页面布局 ========== */
.ffcx-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1e293b, #312e81, #1e1b4b);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ========== 动画 ========== */
@keyframes ffcxFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes ffcxToastIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
.ffcx-fade-in {
    animation: ffcxFadeIn 0.6s ease;
}

/* ========== 缺失字段标签 ========== */
.ffcx-missing-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 16px;
}
.ffcx-missing-fields span {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}
