/* 产品管理系统共享样式 */

/* ===== footer 友情链接旁的"产品管理"入口 ===== */
.ruifa-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 16px;
    padding: 4px 12px;
    color: #999;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.25s;
    vertical-align: middle;
    user-select: none;
}
.ruifa-admin-link:hover {
    color: #0071e3;
    border-color: #0071e3;
    background: #fff;
}
.ruifa-admin-link .ruifa-admin-icon {
    font-size: 14px;
    line-height: 1;
}

/* ===== 密码对话框 ===== */
.admin-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}
.admin-modal.admin-show { display: flex; }
.admin-modal-box {
    width: 380px;
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
    animation: adminModalIn 0.3s ease;
}
@keyframes adminModalIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.admin-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}
.admin-modal-sub {
    color: #888;
    font-size: 13px;
    margin-bottom: 24px;
}
.admin-modal-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.admin-modal-input:focus { border-color: #0071e3; }
.admin-modal-input.admin-error { border-color: #e53935; animation: adminShake 0.4s; }
@keyframes adminShake {
    0%,100% { transform: translateX(0); }
    20%,60% { transform: translateX(-6px); }
    40%,80% { transform: translateX(6px); }
}
.admin-modal-msg {
    color: #e53935;
    font-size: 13px;
    margin-top: 8px;
    min-height: 18px;
}
.admin-modal-btns {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}
.admin-modal-btn {
    flex: 1;
    padding: 11px 0;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}
.admin-modal-btn.primary {
    background: #0071e3;
    color: #fff;
}
.admin-modal-btn.primary:hover { background: #005bb5; }
.admin-modal-btn.ghost {
    background: #f5f5f5;
    color: #666;
}
.admin-modal-btn.ghost:hover { background: #eaeaea; }
